|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.spockframework.runtime.extension.MethodInvocation
public class MethodInvocation
| Constructor Summary | |
|---|---|
MethodInvocation(FeatureInfo feature,
IterationInfo iteration,
java.lang.Object sharedInstance,
java.lang.Object instance,
java.lang.Object target,
MethodInfo method,
java.lang.Object[] arguments)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MethodInvocation(FeatureInfo feature,
IterationInfo iteration,
java.lang.Object sharedInstance,
java.lang.Object instance,
java.lang.Object target,
MethodInfo method,
java.lang.Object[] arguments)
| Method Detail |
|---|
public SpecInfo getSpec()
IMethodInvocation
getSpec in interface IMethodInvocationpublic FeatureInfo getFeature()
IMethodInvocation
getFeature in interface IMethodInvocationpublic IterationInfo getIteration()
IMethodInvocation
getIteration in interface IMethodInvocationpublic java.lang.Object getSharedInstance()
IMethodInvocation
getSharedInstance in interface IMethodInvocationpublic java.lang.Object getInstance()
IMethodInvocation
getInstance in interface IMethodInvocationpublic java.lang.Object getTarget()
IMethodInvocation
getTarget in interface IMethodInvocationpublic MethodInfo getMethod()
IMethodInvocation
getMethod in interface IMethodInvocationpublic java.lang.Object[] getArguments()
IMethodInvocation
getArguments in interface IMethodInvocation
public void proceed()
throws java.lang.Throwable
IMethodInvocation
proceed in interface IMethodInvocationjava.lang.Throwable - any exception thrown by the method call
protected void invokeTargetMethod()
throws java.lang.Throwable
java.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||