Package | Description |
---|---|
desmoj.extensions.experimentation.reflect |
Reading out experiment parameters using reflection.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.reflect.Field |
ReflectionManager.getField(java.lang.Class c,
java.lang.String fieldName)
Retrieves a field from a given class.
|
static java.lang.reflect.Method |
ReflectionManager.getMethod(java.lang.Class c,
java.lang.String methodName)
Retrieves a method of a given class with an empty parameter list.
|
static java.lang.reflect.Method |
ReflectionManager.getMethod(java.lang.Class c,
java.lang.String methodName,
java.lang.Class[] params)
Retrieves a method of a given class.
|
java.lang.Object |
FieldAccessPoint.getValue() |
static java.lang.Object |
ReflectionManager.getValue(java.lang.Object owner,
java.lang.reflect.Field field)
Returns the value of the given field has in the specified object.
|
static java.lang.Object |
ReflectionManager.invokeConstructor(java.lang.reflect.Constructor c,
java.lang.Object[] args)
Invokes a constructor.
|
static java.lang.Object |
ReflectionManager.invokeMethod(java.lang.Object owner,
java.lang.reflect.Method method,
java.lang.Object[] args)
Invokes a method on an object If anything goes wrong a reflect exception
is thrown
|
static void |
ReflectionManager.setValue(java.lang.Object owner,
java.lang.reflect.Field field,
java.lang.Object value)
Sets the value of the given field of the specified object.
|
Constructor and Description |
---|
FieldAccessPoint(java.lang.String name,
java.lang.String fieldName,
java.lang.Object accessed)
constructs an access point object for the specified field name and the given
declaring object.
|