org.spockframework.runtime.model
Class FeatureInfo

java.lang.Object
  extended by org.spockframework.runtime.model.NodeInfo<SpecInfo,java.lang.reflect.AnnotatedElement>
      extended by 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
FeatureInfo()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureInfo

public FeatureInfo()
Method Detail

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