Interface PairNode<S extends ASTNode,T extends ASTNode>

All Superinterfaces:

public interface PairNode<S extends ASTNode,T extends ASTNode> extends ASTNode
A node with two children, the first of type S and the second of type T.
  • Method Details

    • getLeft

      S getLeft()
      Returns the left child.
    • getRight

      T getRight()
      Returns the right child.
    • setLeft

      void setLeft(S child)
      Set the left child.
    • setRight

      void setRight(T child)
      Set the right child.
    • copy

      PairNode<S,T> copy()
      Description copied from interface: ASTNode
      Returns a deep copy of this AST node. The node and all of its descendants will be cloned. The cloning does not copy analysis or attribute information.
      Specified by:
      copy in interface ASTNode
      deep copy of this node