KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejen > util > arl > Node


1 /* Generated By:JJTree: Do not edit this line. Node.java */
2 package org.ejen.util.arl;
3
4 /* All AST nodes must implement this interface. It provides basic
5  machinery for constructing the parent and child relationships
6  between nodes. */

7 public interface Node {
8
9     /** This method is called after the node has been made the current
10      node. It indicates that child nodes can now be added to it. */

11     public void jjtOpen();
12
13     /** This method is called after all the child nodes have been
14      added. */

15     public void jjtClose();
16
17     /** This pair of methods are used to inform the node of its
18      parent. */

19     public void jjtSetParent(Node n);
20     public Node jjtGetParent();
21
22     /** This method tells the node to add its argument to the node's
23      list of children. */

24     public void jjtAddChild(Node n, int i);
25
26     /** This method returns a child node. The children are numbered
27      from zero, left to right. */

28     public Node jjtGetChild(int i);
29
30     /** Return the number of children the node has. */
31     public int jjtGetNumChildren();
32 }
33
Popular Tags