KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > genimen > djeneric > repository > oql > core > Node


1 /* Generated By:JJTree: Do not edit this line. Node.java */
2
3 package com.genimen.djeneric.repository.oql.core;
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 interface Node
10 {
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
24   public Node jjtGetParent();
25
26   /** This method tells the node to add its argument to the node's
27    list of children. */

28   public void jjtAddChild(Node n, int i);
29
30   /** This method returns a child node. The children are numbered
31    from zero, left to right. */

32   public Node jjtGetChild(int i);
33
34   /** Return the number of children the node has. */
35   public int jjtGetNumChildren();
36 }
Popular Tags