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 voidaccept(ISpecVisitor visitor)AgetAst()The Groovy AST representation of this node.java.lang.StringgetName()PgetParent()The parent of this node.voidsetAst(A ast)voidsetName(java.lang.String name)java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
accept
public abstract void accept(ISpecVisitor visitor) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-