public class JavaReflectAccess
extends java.lang.Object
Constructor and Description |
---|
JavaReflectAccess() |
Modifier and Type | Method and Description |
---|---|
ClassFinder |
getClassFinder() |
java.lang.reflect.Constructor<?> |
getConstructor(JvmConstructor constructor) |
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 classLoader) |
@Inject(optional=true) public void setClassLoader(java.lang.ClassLoader classLoader)
public java.lang.reflect.Field getField(JvmField field)
Field
corresponding to the given JvmField
or null
.public java.lang.reflect.Method getMethod(JvmOperation operation)
Method
corresponding to the given JvmOperation
or null
.public java.lang.reflect.Constructor<?> getConstructor(JvmConstructor constructor)
Constructor
corresponding to the given JvmConstructor
or null
.public java.lang.Class<?> getRawType(JvmType type)
Class
corresponding to the given JvmType
or null
.protected java.lang.Class<?>[] getParamTypes(JvmExecutable exe)
public ClassFinder getClassFinder()