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 void
addBlock(BlockInfo block)
void
addDataProvider(DataProviderInfo dataProvider)
void
addInterceptor(IMethodInterceptor interceptor)
void
addIterationInterceptor(IMethodInterceptor interceptor)
void
addParameterName(java.lang.String parameterName)
java.util.List<BlockInfo>
getBlocks()
MethodInfo
getDataProcessorMethod()
java.util.List<DataProviderInfo>
getDataProviders()
java.util.List<java.lang.String>
getDataVariables()
int
getDeclarationOrder()
int
getExecutionOrder()
MethodInfo
getFeatureMethod()
java.util.List<IMethodInterceptor>
getInterceptors()
java.util.List<IMethodInterceptor>
getIterationInterceptors()
NameProvider<IterationInfo>
getIterationNameProvider()
java.util.List<java.lang.String>
getParameterNames()
java.lang.reflect.AnnotatedElement
getReflection()
boolean
hasBytecodeName(java.lang.String name)
Tells if any of the methods associated with this feature has the specified name in bytecode.boolean
isExcluded()
boolean
isParameterized()
boolean
isReportIterations()
boolean
isSkipped()
void
setDataProcessorMethod(MethodInfo method)
void
setDeclarationOrder(int declarationOrder)
void
setExcluded(boolean excluded)
void
setExecutionOrder(int executionOrder)
void
setFeatureMethod(MethodInfo method)
void
setIterationNameProvider(NameProvider<IterationInfo> provider)
void
setReportIterations(boolean flag)
void
setSkipped(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:
getReflection
in 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:
getInterceptors
in interfaceIInterceptable
-
addInterceptor
public void addInterceptor(IMethodInterceptor interceptor)
- Specified by:
addInterceptor
in 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:
isExcluded
in interfaceIExcludable
-
setExcluded
public void setExcluded(boolean excluded)
- Specified by:
setExcluded
in interfaceIExcludable
-
isSkipped
public boolean isSkipped()
- Specified by:
isSkipped
in interfaceISkippable
-
setSkipped
public void setSkipped(boolean skipped)
- Specified by:
setSkipped
in 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
-
-