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
Methods inherited from class org.spockframework.runtime.model.NodeInfo |
getDescription, getLine, getMetadata, getName, getParent, isStub, setDescription, setLine, setMetadata, setName, setParent, setReflection |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FeatureInfo
public FeatureInfo()
getReflection
public java.lang.reflect.AnnotatedElement getReflection()
- Overrides:
getReflection
in class NodeInfo<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 interface IInterceptable
addInterceptor
public void addInterceptor(IMethodInterceptor interceptor)
- Specified by:
addInterceptor
in interface IInterceptable
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 interface IExcludable
setExcluded
public void setExcluded(boolean excluded)
- Specified by:
setExcluded
in interface IExcludable
isSkipped
public boolean isSkipped()
- Specified by:
isSkipped
in interface ISkippable
setSkipped
public void setSkipped(boolean skipped)
- Specified by:
setSkipped
in interface ISkippable
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
Copyright © 2013. All rights reserved