View Javadoc

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