Class Node<P extends Node,A>
- java.lang.Object
-
- org.spockframework.compiler.model.Node<P,A>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
accept(ISpecVisitor visitor)
A
getAst()
The Groovy AST representation of this node.java.lang.String
getName()
P
getParent()
The parent of this node.void
setAst(A ast)
void
setName(java.lang.String name)
java.lang.String
toString()
-
-
-
Method Detail
-
getParent
public P getParent()
The parent of this node.- Returns:
- the parent of this node
-
getAst
public A getAst()
The Groovy AST representation of this node.- Returns:
- the Groovy AST representation of this node
-
setAst
public void setAst(A ast)
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
accept
public abstract void accept(ISpecVisitor visitor) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-