PageRenderTime 40ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/bundles/plugins-trunk/XML/sidekick/ecmascript/parser/Node.java

#
Java | 37 lines | 11 code | 10 blank | 16 comment | 0 complexity | 7d5bf8e0446c44c177c39f22f43b6a87 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. /* Generated By:JJTree: Do not edit this line. Node.java */
  2. package sidekick.ecmascript.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(EcmaScriptVisitor visitor, Object data);
  27. }