Package org.spockframework.runtime.model
Class MethodInfo
- java.lang.Object
-
- org.spockframework.runtime.model.NodeInfo<SpecInfo,java.lang.reflect.Method>
-
- org.spockframework.runtime.model.MethodInfo
-
- All Implemented Interfaces:
IInterceptable
public class MethodInfo extends NodeInfo<SpecInfo,java.lang.reflect.Method> implements IInterceptable
Runtime information about a method in a Spock specification.- Author:
- Peter Niederwieser
-
-
Constructor Summary
Constructors Constructor Description MethodInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addInterceptor(IMethodInterceptor interceptor)
FeatureInfo
getFeature()
java.util.List<IMethodInterceptor>
getInterceptors()
MethodKind
getKind()
boolean
hasBytecodeName(java.lang.String name)
void
setFeature(FeatureInfo feature)
void
setKind(MethodKind kind)
-
Methods inherited from class org.spockframework.runtime.model.NodeInfo
getDescription, getLine, getMetadata, getName, getParent, getReflection, isStub, setDescription, setLine, setMetadata, setName, setParent, setReflection
-
-
-
-
Method Detail
-
getKind
public MethodKind getKind()
-
setKind
public void setKind(MethodKind kind)
-
getFeature
public FeatureInfo getFeature()
-
setFeature
public void setFeature(FeatureInfo feature)
-
getInterceptors
public java.util.List<IMethodInterceptor> getInterceptors()
- Specified by:
getInterceptors
in interfaceIInterceptable
-
addInterceptor
public void addInterceptor(IMethodInterceptor interceptor)
- Specified by:
addInterceptor
in interfaceIInterceptable
-
hasBytecodeName
public boolean hasBytecodeName(java.lang.String name)
-
-