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()
IMethodInvocation
getSpec
in interface IMethodInvocation
public FeatureInfo getFeature()
IMethodInvocation
getFeature
in interface IMethodInvocation
public IterationInfo getIteration()
IMethodInvocation
getIteration
in interface IMethodInvocation
public java.lang.Object getSharedInstance()
IMethodInvocation
getSharedInstance
in interface IMethodInvocation
public java.lang.Object getInstance()
IMethodInvocation
getInstance
in interface IMethodInvocation
public java.lang.Object getTarget()
IMethodInvocation
getTarget
in interface IMethodInvocation
public MethodInfo getMethod()
IMethodInvocation
getMethod
in interface IMethodInvocation
public java.lang.Object[] getArguments()
IMethodInvocation
getArguments
in interface IMethodInvocation
public void proceed() throws java.lang.Throwable
IMethodInvocation
proceed
in interface IMethodInvocation
java.lang.Throwable
- any exception thrown by the method callprotected void invokeTargetMethod() throws java.lang.Throwable
java.lang.Throwable
Copyright © 2019. All rights reserved