Class Node<P extends Node,A>

java.lang.Object
org.spockframework.compiler.model.Node<P,A>
Direct Known Subclasses:
Block, Field, Method, Spec

public abstract class Node<P extends Node,A> extends Object
Base class for all SpecL AST nodes.
Author:
Peter Niederwieser
  • Constructor Details

    • Node

      public Node(P parent, A ast)
  • Method Details

    • 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 String getName()
    • setName

      public void setName(String name)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • accept

      public abstract void accept(ISpecVisitor visitor) throws Exception
      Throws:
      Exception