public final class MethodReflectionCode extends ReflectionCode
ReflectionCode.ReflectionCodeException| Modifier and Type | Field and Description |
|---|---|
private java.lang.Object[] |
inputs
The arguments that the method is applied to.
|
private java.lang.reflect.Method |
method
The method to be called.
|
private java.lang.Object |
receiver
The receiver, or null for a static method.
|
exceptionThrown, retval| Constructor and Description |
|---|
MethodReflectionCode(java.lang.reflect.Method method,
java.lang.Object receiver,
java.lang.Object[] inputs)
Create a new MethodReflectionCode to represent a method invocation.
|
| Modifier and Type | Method and Description |
|---|---|
private boolean |
isInstanceMethod() |
void |
runReflectionCodeRaw()
Execute the reflection code.
|
java.lang.String |
toString() |
getExceptionThrown, getReturnValue, hasRun, hasStarted, runReflectionCode, setHasRun, setHasStarted, statusprivate final java.lang.reflect.Method method
private final java.lang.Object receiver
private final java.lang.Object[] inputs
public MethodReflectionCode(java.lang.reflect.Method method,
java.lang.Object receiver,
java.lang.Object[] inputs)
method - the method to be calledreceiver - the receiver, or null for a static methodinputs - the arguments that the method is applied toprivate boolean isInstanceMethod()
public void runReflectionCodeRaw()
ReflectionCoderunReflectionCodeRaw in class ReflectionCodepublic java.lang.String toString()
toString in class java.lang.Object