Interface Node

All Superinterfaces:
Serializable
All Known Implementing Classes:
AdditiveExpressionSequence, AndExpressionSequence, ArrayLiteral, ComparisonExpressionSequence, CompleteExpression, CompositeReference, ConditionalExpression, Elision, FunctionCallParameters, Identifier, Literal, MultiplicativeExpressionSequence, Operator, OrExpressionSequence, PropertyIdentifierReference, PropertyValueReference, SimpleNode, UnaryExpression

public interface Node extends Serializable
  • Method Details

    • jjtOpen

      void jjtOpen()
      This method is called after the node has been made the current node. It indicates that child nodes can now be added to it.
    • jjtClose

      void jjtClose()
      This method is called after all the child nodes have been added.
    • jjtSetParent

      void jjtSetParent(Node n)
      Set the parent node of this node
      Parameters:
      n - parent node to set
    • jjtGetParent

      Node jjtGetParent()
      Returns:
      parent node
    • jjtAddChild

      void jjtAddChild(Node n, int i)
      This method tells the node to add its argument to the node's list of children.
      Parameters:
      n - node to add as a child
      i - zero-based index where to add the child
    • jjtGetChild

      Node jjtGetChild(int i)
      This method returns a child node. The children are numbered from zero, left to right.
      Parameters:
      i - zero-baeed child index
    • jjtGetNumChildren

      int jjtGetNumChildren()
      Returns:
      the number of children the node has. Always ≥ 0.
    • getId

      int getId()
    • jjtAccept

      Object jjtAccept(ExpressionVisitor visitor, Object data) throws VisitException
      Accept the visitor.
      Throws:
      VisitException