org.eclipse.xtext.common.types.util
Class JavaReflectAccess

java.lang.Object
  extended by org.eclipse.xtext.common.types.util.JavaReflectAccess

public class JavaReflectAccess
extends java.lang.Object

Author:
Sven Efftinge - Initial contribution and API

Constructor Summary
JavaReflectAccess()
           
 
Method Summary
 ClassFinder getClassFinder()
           
 java.lang.reflect.Constructor<?> getConstructor(JvmConstructor operation)
           
 java.lang.reflect.Field getField(JvmField field)
           
 java.lang.reflect.Method getMethod(JvmOperation operation)
           
protected  java.lang.Class<?>[] getParamTypes(JvmExecutable exe)
           
 java.lang.Class<?> getRawType(JvmType type)
           
 void setClassLoader(java.lang.ClassLoader classlaoder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaReflectAccess

public JavaReflectAccess()
Method Detail

setClassLoader

@Inject(optional=true)
public void setClassLoader(java.lang.ClassLoader classlaoder)

getField

public java.lang.reflect.Field getField(JvmField field)
Returns:
the Field corresponding to the given JvmField or null.

getMethod

public java.lang.reflect.Method getMethod(JvmOperation operation)
Returns:
the Method corresponding to the given JvmOperation or null.

getConstructor

public java.lang.reflect.Constructor<?> getConstructor(JvmConstructor operation)
Returns:
the Constructor corresponding to the given JvmConstructor or null.

getRawType

public java.lang.Class<?> getRawType(JvmType type)
Returns:
the Class corresponding to the given JvmType or null.

getParamTypes

protected java.lang.Class<?>[] getParamTypes(JvmExecutable exe)

getClassFinder

public ClassFinder getClassFinder()