Package org.spockframework.runtime.model
Class NodeInfo<P extends NodeInfo,R extends AnnotatedElement>
java.lang.Object
org.spockframework.runtime.model.NodeInfo<P,R>
- Direct Known Subclasses:
DataProviderInfo,FieldInfo,IterationInfo,MethodInfo,SpecElementInfo
Base class for runtime information about an element in a Spock specification.
- Author:
- Peter Niederwieser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends Annotation>
TgetAnnotation(Class<T> clazz) org.junit.runner.DescriptionintgetLine()getName()booleanisAnnotationPresent(Class<? extends Annotation> clazz) voidsetDescription(org.junit.runner.Description description) voidsetLine(int line) voidsetMetadata(Object metadata) voidvoidvoidsetReflection(R reflection)
-
Constructor Details
-
NodeInfo
public NodeInfo()
-
-
Method Details
-
getName
-
setName
-
getLine
public int getLine() -
setLine
public void setLine(int line) -
getParent
-
setParent
-
getReflection
-
setReflection
-
getMetadata
-
setMetadata
-
getDescription
public org.junit.runner.Description getDescription() -
setDescription
public void setDescription(org.junit.runner.Description description) -
getAnnotations
-
getAnnotation
-
isAnnotationPresent
-