public final class ConstructorReflectionCode extends ReflectionCode
ReflectionCode.ReflectionCodeException| Modifier and Type | Field and Description |
|---|---|
private java.lang.reflect.Constructor<?> |
constructor
The constructor to be called.
|
private java.lang.Object[] |
inputs
The arguments that the constructor is applied to.
|
exceptionThrown, retval| Constructor and Description |
|---|
ConstructorReflectionCode(java.lang.reflect.Constructor<?> constructor,
java.lang.Object[] inputs)
Create a new ConstructorReflectionCode to represent a constructor invocation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
runReflectionCodeRaw()
Execute the reflection code.
|
java.lang.String |
toString() |
getExceptionThrown, getReturnValue, hasRun, hasStarted, runReflectionCode, setHasRun, setHasStarted, statusprivate final java.lang.reflect.Constructor<?> constructor
private final java.lang.Object[] inputs
public ConstructorReflectionCode(java.lang.reflect.Constructor<?> constructor,
java.lang.Object[] inputs)
constructor - the constructor to be calledinputs - the arguments that the constructor is applied to. If an inner class constructor
has a receiver, it is the first element of this array.public void runReflectionCodeRaw()
ReflectionCoderunReflectionCodeRaw in class ReflectionCodepublic java.lang.String toString()
toString in class java.lang.Object