1 /* Generated By:JJTree: Do not edit this line. Node.java */
3 package jp.sourceforge.expression_computer.javacc;
5 /* All AST nodes must implement this interface. It provides basic
6 machinery for constructing the parent and child relationships
9 public interface Node {
11 /** This method is called after the node has been made the current
12 node. It indicates that child nodes can now be added to it. */
13 public void jjtOpen();
15 /** This method is called after all the child nodes have been
17 public void jjtClose();
19 /** This pair of methods are used to inform the node of its
21 public void jjtSetParent(Node n);
22 public Node jjtGetParent();
24 /** This method tells the node to add its argument to the node's
26 public void jjtAddChild(Node n, int i);
28 /** This method returns a child node. The children are numbered
29 from zero, left to right. */
30 public Node jjtGetChild(int i);
32 /** Return the number of children the node has. */
33 public int jjtGetNumChildren();