randoop.util
Class MethodReflectionCode
Object
ReflectionCode
MethodReflectionCode
public final class MethodReflectionCode
extends ReflectionCode
This is used to wrap a method together with its parameters, ready for execution.
Can be run only once.
| Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MethodReflectionCode
public MethodReflectionCode(Method method,
Object receiver,
Object[] inputs)
runReflectionCodeRaw
public void runReflectionCodeRaw()
throws IllegalAccessException,
InvocationTargetException
- Description copied from class:
ReflectionCode
- Executed the reflection code. All internal exceptions must be thrown as
NotCaughtIllegalStateException because everything else is caught.
- Specified by:
runReflectionCodeRaw in class ReflectionCode
- Throws:
IllegalAccessException
InvocationTargetException
getReturnVariable
public Object getReturnVariable()
- Specified by:
getReturnVariable in class ReflectionCode
getExceptionThrown
public Throwable getExceptionThrown()
- Specified by:
getExceptionThrown in class ReflectionCode
getMethod
public Method getMethod()
getReceiver
public Object getReceiver()
getInputs
public Object[] getInputs()
toString
public String toString()
- Overrides:
toString in class Object