Package org.spockframework.runtime.model
Class FeatureInfo
java.lang.Object
org.spockframework.runtime.model.NodeInfo<SpecInfo,AnnotatedElement>
org.spockframework.runtime.model.SpecElementInfo<SpecInfo,AnnotatedElement>
org.spockframework.runtime.model.FeatureInfo
- All Implemented Interfaces:
IAttachmentContainer,IExcludable,IInterceptable,ISkippable,ITaggable
- Author:
- Peter Niederwieser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddDataProvider(DataProviderInfo dataProvider) voidaddIterationInterceptor(IMethodInterceptor interceptor) voidaddParameterName(String parameterName) intintgetSpec()booleanhasBytecodeName(String name) Tells if any of the methods associated with this feature has the specified name in bytecode.booleanbooleanvoidsetDataProcessorMethod(MethodInfo method) voidsetDeclarationOrder(int declarationOrder) voidsetExecutionOrder(int executionOrder) voidsetFeatureMethod(MethodInfo method) voidsetIterationNameProvider(NameProvider<IterationInfo> provider) voidsetReportIterations(boolean flag) Methods inherited from class org.spockframework.runtime.model.SpecElementInfo
addAttachment, addInterceptor, addTag, getAttachments, getInterceptors, getTags, isExcluded, isSkipped, setExcluded, setSkippedMethods inherited from class org.spockframework.runtime.model.NodeInfo
getAnnotation, getAnnotations, getDescription, getLine, getMetadata, getName, getParent, isAnnotationPresent, setDescription, setLine, setMetadata, setName, setParent, setReflection
-
Constructor Details
-
FeatureInfo
public FeatureInfo()
-
-
Method Details
-
getSpec
-
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
-
getIterationInterceptors
-
addIterationInterceptor
-
getFeatureMethod
-
setFeatureMethod
-
getDataProcessorMethod
-
setDataProcessorMethod
-
getDataProviders
-
addDataProvider
-
isParameterized
public boolean isParameterized() -
isReportIterations
public boolean isReportIterations() -
setReportIterations
public void setReportIterations(boolean flag) -
getIterationNameProvider
-
setIterationNameProvider
-
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:
- trueinvalid input: '<'/tt iff any of the methods associated with this feature has the specified name in bytecode
-