001/* Generated By:JJTree: Do not edit this line. Node.java Version 4.3 */ 002/* JavaCCOptions:MULTI=false,NODE_USES_PARSER=true,VISITOR=false,TRACK_TOKENS=false,NODE_PREFIX=AST,NODE_EXTENDS=,NODE_FACTORY=,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */ 003package ptolemy.data.expr; 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 interface Node { 010 011 /** This method is called after the node has been made the current 012 node. It indicates that child nodes can now be added to it. */ 013 public void jjtOpen(); 014 015 /** This method is called after all the child nodes have been 016 added. */ 017 public void jjtClose(); 018 019 /** This pair of methods are used to inform the node of its 020 parent. */ 021 public void jjtSetParent(Node n); 022 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/* JavaCC - OriginalChecksum=ce665d554e71026ffaa2321b21874750 (do not edit this line) */