001/* Generated By:JJTree: Do not edit this line. Node.java Version 7.0 */ 002/* JavaCCOptions:MULTI=true,NODE_USES_PARSER=false,VISITOR=true,TRACK_TOKENS=false,NODE_PREFIX=AST,NODE_EXTENDS=,NODE_FACTORY=,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */ 003package jmri.jmris.srcp.parser; 004 005/* All AST nodes must implement this interface. It provides basic 006 machinery for constructing the parent and child relationships 007 between nodes. */ 008 009public 010interface Node { 011 012 /* This method is called after the node has been made the current 013 node. It indicates that child nodes can now be added to it. */ 014 public void jjtOpen(); 015 016 /* This method is called after all the child nodes have been 017 added. */ 018 public void jjtClose(); 019 020 /* This pair of methods are used to inform the node of its 021 parent. */ 022 public void jjtSetParent(Node n); 023 public Node jjtGetParent(); 024 025 /* This method tells the node to add its argument to the node's 026 list of children. */ 027 public void jjtAddChild(Node n, int i); 028 029 /* This method returns a child node. The children are numbered 030 from zero, left to right. */ 031 public Node jjtGetChild(int i); 032 033 /* Return the number of children the node has. */ 034 public int jjtGetNumChildren(); 035 036 public int getId(); 037 038 /* Accept the visitor. **/ 039 public Object jjtAccept(SRCPParserVisitor visitor, Object data); 040} 041/* JavaCC - OriginalChecksum=603d7df9c235e44171d179b8d09d5866 (do not edit this line) */