Package org.spockframework.runtime.model
Class FeatureInfo
java.lang.Object
org.spockframework.runtime.model.NodeInfo<SpecInfo,AnnotatedElement>
org.spockframework.runtime.model.FeatureInfo
- All Implemented Interfaces:
IExcludable,IInterceptable,ISkippable
public class FeatureInfo
extends NodeInfo<SpecInfo,AnnotatedElement>
implements ISkippable, IExcludable, IInterceptable
- Author:
- Peter Niederwieser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddDataProvider(DataProviderInfo dataProvider) voidaddInterceptor(IMethodInterceptor interceptor) voidaddIterationInterceptor(IMethodInterceptor interceptor) voidaddParameterName(String parameterName) intintbooleanhasBytecodeName(String name) Tells if any of the methods associated with this feature has the specified name in bytecode.booleanbooleanbooleanbooleanvoidsetDataProcessorMethod(MethodInfo method) voidsetDeclarationOrder(int declarationOrder) voidsetExcluded(boolean excluded) voidsetExecutionOrder(int executionOrder) voidsetFeatureMethod(MethodInfo method) voidsetIterationNameProvider(NameProvider<IterationInfo> provider) voidsetReportIterations(boolean flag) voidsetSkipped(boolean skipped) Methods inherited from class org.spockframework.runtime.model.NodeInfo
getDescription, getLine, getMetadata, getName, getParent, isStub, setDescription, setLine, setMetadata, setName, setParent, setReflection
-
Constructor Details
-
FeatureInfo
public FeatureInfo()
-
-
Method Details
-
getReflection
- Overrides:
getReflectionin classNodeInfo<SpecInfo,AnnotatedElement>
-
getDeclarationOrder
public int getDeclarationOrder() -
setDeclarationOrder
public void setDeclarationOrder(int declarationOrder) -
getExecutionOrder
public int getExecutionOrder() -
setExecutionOrder
public void setExecutionOrder(int executionOrder) -
getParameterNames
-
addParameterName
-
getDataVariables
-
getBlocks
-
addBlock
-
getInterceptors
- Specified by:
getInterceptorsin interfaceIInterceptable
-
addInterceptor
- Specified by:
addInterceptorin interfaceIInterceptable
-
getIterationInterceptors
-
addIterationInterceptor
-
getFeatureMethod
-
setFeatureMethod
-
getDataProcessorMethod
-
setDataProcessorMethod
-
getDataProviders
-
addDataProvider
-
isParameterized
public boolean isParameterized() -
isReportIterations
public boolean isReportIterations() -
setReportIterations
public void setReportIterations(boolean flag) -
getIterationNameProvider
-
setIterationNameProvider
-
isExcluded
public boolean isExcluded()- Specified by:
isExcludedin interfaceIExcludable
-
setExcluded
public void setExcluded(boolean excluded) - Specified by:
setExcludedin interfaceIExcludable
-
isSkipped
public boolean isSkipped()- Specified by:
isSkippedin interfaceISkippable
-
setSkipped
public void setSkipped(boolean skipped) - Specified by:
setSkippedin interfaceISkippable
-
hasBytecodeName
Tells if any of the methods associated with this feature has the specified name in bytecode.- Parameters:
name- a method name in bytecode- Returns:
- true</tt iff any of the methods associated with this feature has the specified name in bytecode
-