org.eclipse.xtext.common.types.util
Class JavaReflectAccess
java.lang.Object
org.eclipse.xtext.common.types.util.JavaReflectAccess
public class JavaReflectAccess
- extends java.lang.Object
- Author:
- Sven Efftinge - Initial contribution and API
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaReflectAccess
public JavaReflectAccess()
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()