org.spockframework.runtime.model
Class SpecInfo

java.lang.Object
  extended by org.spockframework.runtime.model.NodeInfo<NodeInfo,java.lang.Class<?>>
      extended by org.spockframework.runtime.model.SpecInfo
All Implemented Interfaces:
IMethodNameMapper, IExcludable, IInterceptable, ISkippable

public class SpecInfo
extends NodeInfo<NodeInfo,java.lang.Class<?>>
implements IMethodNameMapper, ISkippable, IExcludable, IInterceptable

Runtime information about a Spock specification.

Author:
Peter Niederwieser

Constructor Summary
SpecInfo()
           
 
Method Summary
 void addFeature(FeatureInfo feature)
           
 void addField(FieldInfo field)
           
 void addInterceptor(IMethodInterceptor interceptor)
           
 void addListener(IRunListener listener)
           
 void filterFeatures(IFeatureFilter filter)
           
 java.util.List<FeatureInfo> getAllFeatures()
           
 java.util.List<FeatureInfo> getAllFeaturesInExecutionOrder()
           
 java.util.List<FieldInfo> getAllFields()
           
 java.util.List<MethodInfo> getAllFixtureMethods()
           
 SpecInfo getBottomSpec()
           
 MethodInfo getCleanupMethod()
           
 MethodInfo getCleanupSpecMethod()
           
 java.util.List<FeatureInfo> getFeatures()
           
 java.util.List<FieldInfo> getFields()
           
 java.lang.String getFilename()
           
 java.util.List<MethodInfo> getFixtureMethods()
           
 MethodInfo getInitializerMethod()
           
 java.util.List<IMethodInterceptor> getInterceptors()
           
 java.util.List<IRunListener> getListeners()
           
 MethodInfo getSetupMethod()
           
 MethodInfo getSetupSpecMethod()
           
 MethodInfo getSharedInitializerMethod()
           
 FieldInfo getSharedInstanceField()
           
 java.util.List<SpecInfo> getSpecsBottomToTop()
           
 java.util.List<SpecInfo> getSpecsTopToBottom()
           
 SpecInfo getSubSpec()
           
 SpecInfo getSuperSpec()
           
 SpecInfo getTopSpec()
           
 boolean isBottomSpec()
           
 boolean isExcluded()
           
 boolean isInitializerOrFixtureMethod(java.lang.String className, java.lang.String methodName)
           
 boolean isSkipped()
           
 boolean isTopSpec()
           
 void setCleanupMethod(MethodInfo cleanupMethod)
           
 void setCleanupSpecMethod(MethodInfo cleanupSpecMethod)
           
 void setExcluded(boolean excluded)
           
 void setFilename(java.lang.String filename)
           
 void setInitializerMethod(MethodInfo initializerMethod)
           
 void setSetupMethod(MethodInfo setupMethod)
           
 void setSetupSpecMethod(MethodInfo setupSpecMethod)
           
 void setSharedInitializerMethod(MethodInfo sharedInitializerMethod)
           
 void setSharedInstanceField(FieldInfo sharedInstanceField)
           
 void setSkipped(boolean skipped)
           
 void setSubSpec(SpecInfo subSpec)
           
 void setSuperSpec(SpecInfo superSpec)
           
 void sortFeatures(IFeatureSortOrder order)
           
 java.lang.String toFeatureName(java.lang.String methodName)
           
 
Methods inherited from class org.spockframework.runtime.model.NodeInfo
getDescription, getLine, getMetadata, getName, getParent, getReflection, 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

SpecInfo

public SpecInfo()
Method Detail

getFilename

public java.lang.String getFilename()

setFilename

public void setFilename(java.lang.String filename)

getSuperSpec

public SpecInfo getSuperSpec()

setSuperSpec

public void setSuperSpec(SpecInfo superSpec)

getSubSpec

public SpecInfo getSubSpec()

setSubSpec

public void setSubSpec(SpecInfo subSpec)

getTopSpec

public SpecInfo getTopSpec()

isTopSpec

public boolean isTopSpec()

getBottomSpec

public SpecInfo getBottomSpec()

isBottomSpec

public boolean isBottomSpec()

getSpecsTopToBottom

public java.util.List<SpecInfo> getSpecsTopToBottom()

getSpecsBottomToTop

public java.util.List<SpecInfo> getSpecsBottomToTop()

getSharedInstanceField

public FieldInfo getSharedInstanceField()

setSharedInstanceField

public void setSharedInstanceField(FieldInfo sharedInstanceField)

getInitializerMethod

public MethodInfo getInitializerMethod()

setInitializerMethod

public void setInitializerMethod(MethodInfo initializerMethod)

getSharedInitializerMethod

public MethodInfo getSharedInitializerMethod()

setSharedInitializerMethod

public void setSharedInitializerMethod(MethodInfo sharedInitializerMethod)

getSetupMethod

public MethodInfo getSetupMethod()

setSetupMethod

public void setSetupMethod(MethodInfo setupMethod)

getCleanupMethod

public MethodInfo getCleanupMethod()

setCleanupMethod

public void setCleanupMethod(MethodInfo cleanupMethod)

getSetupSpecMethod

public MethodInfo getSetupSpecMethod()

setSetupSpecMethod

public void setSetupSpecMethod(MethodInfo setupSpecMethod)

getCleanupSpecMethod

public MethodInfo getCleanupSpecMethod()

setCleanupSpecMethod

public void setCleanupSpecMethod(MethodInfo cleanupSpecMethod)

getFixtureMethods

public java.util.List<MethodInfo> getFixtureMethods()

getAllFixtureMethods

public java.util.List<MethodInfo> getAllFixtureMethods()

getFields

public java.util.List<FieldInfo> getFields()

getAllFields

public java.util.List<FieldInfo> getAllFields()

addField

public void addField(FieldInfo field)

getFeatures

public java.util.List<FeatureInfo> getFeatures()

getAllFeatures

public java.util.List<FeatureInfo> getAllFeatures()

getAllFeaturesInExecutionOrder

public java.util.List<FeatureInfo> getAllFeaturesInExecutionOrder()

addFeature

public void addFeature(FeatureInfo feature)

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

getListeners

public java.util.List<IRunListener> getListeners()

addListener

public void addListener(IRunListener listener)

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

filterFeatures

public void filterFeatures(IFeatureFilter filter)

sortFeatures

public void sortFeatures(IFeatureSortOrder order)

isInitializerOrFixtureMethod

public boolean isInitializerOrFixtureMethod(java.lang.String className,
                                            java.lang.String methodName)
Specified by:
isInitializerOrFixtureMethod in interface IMethodNameMapper

toFeatureName

public java.lang.String toFeatureName(java.lang.String methodName)
Specified by:
toFeatureName in interface IMethodNameMapper


Copyright © 2013. All rights reserved