public class MethodInvocation extends java.lang.Object implements IMethodInvocation
| Constructor and Description |
|---|
MethodInvocation(FeatureInfo feature,
IterationInfo iteration,
java.lang.Object sharedInstance,
java.lang.Object instance,
java.lang.Object target,
MethodInfo method,
java.lang.Object[] arguments) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object[] |
getArguments()
Returns the arguments for this method invocation.
|
FeatureInfo |
getFeature()
Returns the feature which this method invocation belongs to (if any).
|
java.lang.Object |
getInstance()
Returns the Specification instance for the current iteration.
|
IterationInfo |
getIteration()
Return the iteration which this method invocation belongs to (if any).
|
MethodInfo |
getMethod()
Returns the method invoked by this method invocation.
|
java.lang.Object |
getSharedInstance()
Returns the Specification instance for @Shared fields.
|
SpecInfo |
getSpec()
Returns the specification which this method invocation belongs to.
|
java.lang.Object |
getTarget()
Returns the target (receiver) of this method invocation.
|
protected void |
invokeTargetMethod() |
void |
proceed()
Proceeds with the method call.
|
public MethodInvocation(FeatureInfo feature, IterationInfo iteration, java.lang.Object sharedInstance, java.lang.Object instance, java.lang.Object target, MethodInfo method, java.lang.Object[] arguments)
public SpecInfo getSpec()
IMethodInvocationgetSpec in interface IMethodInvocationpublic FeatureInfo getFeature()
IMethodInvocationgetFeature in interface IMethodInvocationpublic IterationInfo getIteration()
IMethodInvocationgetIteration in interface IMethodInvocationpublic java.lang.Object getSharedInstance()
IMethodInvocationgetSharedInstance in interface IMethodInvocationpublic java.lang.Object getInstance()
IMethodInvocationgetInstance in interface IMethodInvocationpublic java.lang.Object getTarget()
IMethodInvocationgetTarget in interface IMethodInvocationpublic MethodInfo getMethod()
IMethodInvocationgetMethod in interface IMethodInvocationpublic java.lang.Object[] getArguments()
IMethodInvocationgetArguments in interface IMethodInvocationpublic void proceed()
throws java.lang.Throwable
IMethodInvocationproceed in interface IMethodInvocationjava.lang.Throwable - any exception thrown by the method callprotected void invokeTargetMethod()
throws java.lang.Throwable
java.lang.ThrowableCopyright © 2012. All rights reserved