Package org.spockframework.runtime.model
Class MethodInfo
java.lang.Object
org.spockframework.runtime.model.NodeInfo<SpecInfo,Method>
org.spockframework.runtime.model.MethodInfo
- All Implemented Interfaces:
IExcludable,IInterceptable
Runtime information about a method in a Spock specification.
- Author:
- Peter Niederwieser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInterceptor(IMethodInterceptor interceptor) getKind()booleanhasBytecodeName(String name) Invokes this method on the specified target and with the specified arguments.booleanvoidsetExcluded(boolean excluded) voidsetFeature(FeatureInfo feature) voidsetKind(MethodKind kind) Methods inherited from class org.spockframework.runtime.model.NodeInfo
getAnnotation, getAnnotations, getDescription, getLine, getMetadata, getName, getParent, getReflection, isAnnotationPresent, setDescription, setLine, setMetadata, setName, setParent, setReflection
-
Constructor Details
-
MethodInfo
public MethodInfo()
-
-
Method Details
-
getKind
-
setKind
-
getFeature
-
setFeature
-
isExcluded
public boolean isExcluded()- Specified by:
isExcludedin interfaceIExcludable
-
setExcluded
public void setExcluded(boolean excluded) - Specified by:
setExcludedin interfaceIExcludable
-
getInterceptors
- Specified by:
getInterceptorsin interfaceIInterceptable
-
addInterceptor
- Specified by:
addInterceptorin interfaceIInterceptable
-
hasBytecodeName
-
invoke
Invokes this method on the specified target and with the specified arguments. Does not handle interceptors.- Parameters:
target- the target of the method callarguments- the arguments for the method call- Returns:
- the return value of the method call
- Throws:
Throwable
-