/src/main/java/com/bog/model/ast/Node.java

https://gitlab.com/bog/qbic · Java · 39 lines · 12 code · 9 blank · 18 comment · 0 complexity · b3e514f83353d4a52292b8a602d4a70e MD5 · raw file

  1. /* Generated By:JJTree: Do not edit this line. Node.java Version 4.3 */
  2. /* JavaCCOptions:MULTI=true,NODE_USES_PARSER=false,VISITOR=true,TRACK_TOKENS=false,NODE_PREFIX=AST,NODE_EXTENDS=,NODE_FACTORY=,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */
  3. package com.bog.model.ast;
  4. /* All AST nodes must implement this interface. It provides basic
  5. machinery for constructing the parent and child relationships
  6. between nodes. */
  7. public
  8. interface Node {
  9. /** This method is called after the node has been made the current
  10. node. It indicates that child nodes can now be added to it. */
  11. public void jjtOpen();
  12. /** This method is called after all the child nodes have been
  13. added. */
  14. public void jjtClose();
  15. /** This pair of methods are used to inform the node of its
  16. parent. */
  17. public void jjtSetParent(Node n);
  18. public Node jjtGetParent();
  19. /** This method tells the node to add its argument to the node's
  20. list of children. */
  21. public void jjtAddChild(Node n, int i);
  22. /** This method returns a child node. The children are numbered
  23. from zero, left to right. */
  24. public Node jjtGetChild(int i);
  25. /** Return the number of children the node has. */
  26. public int jjtGetNumChildren();
  27. /** Accept the visitor. **/
  28. public Object jjtAccept(BrainfuckVisitor visitor, Object data);
  29. }
  30. /* JavaCC - OriginalChecksum=41e8539f9203f038e99fe9d8e2448bf2 (do not edit this line) */