1. /* Generated By:JJTree: Do not edit this line. Node.java */
  2. package org.apache.commons.jexl.parser;
  3. /* All AST nodes must implement this interface. It provides basic
  4. machinery for constructing the parent and child relationships
  5. between nodes. */
  6. public interface Node {
  7. /** This method is called after the node has been made the current
  8. node. It indicates that child nodes can now be added to it. */
  9. public void jjtOpen();
  10. /** This method is called after all the child nodes have been
  11. added. */
  12. public void jjtClose();
  13. /** This pair of methods are used to inform the node of its
  14. parent. */
  15. public void jjtSetParent(Node n);
  16. public Node jjtGetParent();
  17. /** This method tells the node to add its argument to the node's
  18. list of children. */
  19. public void jjtAddChild(Node n, int i);
  20. /** This method returns a child node. The children are numbered
  21. from zero, left to right. */
  22. public Node jjtGetChild(int i);
  23. /** Return the number of children the node has. */
  24. public int jjtGetNumChildren();
  25. /** Accept the visitor. **/
  26. public Object jjtAccept(ParserVisitor visitor, Object data);
  27. }