Package org.spockframework.runtime.model
Class FeatureInfo
- java.lang.Object
-
- org.spockframework.runtime.model.NodeInfo<SpecInfo,java.lang.reflect.AnnotatedElement>
-
- org.spockframework.runtime.model.FeatureInfo
-
- All Implemented Interfaces:
IExcludable,IInterceptable,ISkippable
public class FeatureInfo extends NodeInfo<SpecInfo,java.lang.reflect.AnnotatedElement> implements ISkippable, IExcludable, IInterceptable
- Author:
- Peter Niederwieser
-
-
Constructor Summary
Constructors Constructor Description FeatureInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBlock(BlockInfo block)voidaddDataProvider(DataProviderInfo dataProvider)voidaddInterceptor(IMethodInterceptor interceptor)voidaddIterationInterceptor(IMethodInterceptor interceptor)voidaddParameterName(java.lang.String parameterName)java.util.List<BlockInfo>getBlocks()MethodInfogetDataProcessorMethod()java.util.List<DataProviderInfo>getDataProviders()java.util.List<java.lang.String>getDataVariables()intgetDeclarationOrder()intgetExecutionOrder()MethodInfogetFeatureMethod()java.util.List<IMethodInterceptor>getInterceptors()java.util.List<IMethodInterceptor>getIterationInterceptors()NameProvider<IterationInfo>getIterationNameProvider()java.util.List<java.lang.String>getParameterNames()java.lang.reflect.AnnotatedElementgetReflection()booleanhasBytecodeName(java.lang.String name)Tells if any of the methods associated with this feature has the specified name in bytecode.booleanisExcluded()booleanisParameterized()booleanisReportIterations()booleanisSkipped()voidsetDataProcessorMethod(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
-
-
-
-
Method Detail
-
getReflection
public java.lang.reflect.AnnotatedElement getReflection()
- Overrides:
getReflectionin classNodeInfo<SpecInfo,java.lang.reflect.AnnotatedElement>
-
getDeclarationOrder
public int getDeclarationOrder()
-
setDeclarationOrder
public void setDeclarationOrder(int declarationOrder)
-
getExecutionOrder
public int getExecutionOrder()
-
setExecutionOrder
public void setExecutionOrder(int executionOrder)
-
getParameterNames
public java.util.List<java.lang.String> getParameterNames()
-
addParameterName
public void addParameterName(java.lang.String parameterName)
-
getDataVariables
public java.util.List<java.lang.String> getDataVariables()
-
getBlocks
public java.util.List<BlockInfo> getBlocks()
-
addBlock
public void addBlock(BlockInfo block)
-
getInterceptors
public java.util.List<IMethodInterceptor> getInterceptors()
- Specified by:
getInterceptorsin interfaceIInterceptable
-
addInterceptor
public void addInterceptor(IMethodInterceptor interceptor)
- Specified by:
addInterceptorin interfaceIInterceptable
-
getIterationInterceptors
public java.util.List<IMethodInterceptor> getIterationInterceptors()
-
addIterationInterceptor
public void addIterationInterceptor(IMethodInterceptor interceptor)
-
getFeatureMethod
public MethodInfo getFeatureMethod()
-
setFeatureMethod
public void setFeatureMethod(MethodInfo method)
-
getDataProcessorMethod
public MethodInfo getDataProcessorMethod()
-
setDataProcessorMethod
public void setDataProcessorMethod(MethodInfo method)
-
getDataProviders
public java.util.List<DataProviderInfo> getDataProviders()
-
addDataProvider
public void addDataProvider(DataProviderInfo dataProvider)
-
isParameterized
public boolean isParameterized()
-
isReportIterations
public boolean isReportIterations()
-
setReportIterations
public void setReportIterations(boolean flag)
-
getIterationNameProvider
public NameProvider<IterationInfo> getIterationNameProvider()
-
setIterationNameProvider
public void setIterationNameProvider(NameProvider<IterationInfo> provider)
-
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
public boolean hasBytecodeName(java.lang.String name)
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
-
-