KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > codehaus > aspectwerkz > annotation > expression > ast > Node


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

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

14     public void jjtOpen();
15
16     /**
17      * This method is called after all the child nodes have been added.
18      */

19     public void jjtClose();
20
21     /**
22      * This pair of methods are used to inform the node of its parent.
23      */

24     public void jjtSetParent(Node n);
25
26     public Node jjtGetParent();
27
28     /**
29      * This method tells the node to add its argument to the node's list of children.
30      */

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

36     public Node jjtGetChild(int i);
37
38     /**
39      * Return the number of children the node has.
40      */

41     public int jjtGetNumChildren();
42
43     /**
44      * Accept the visitor. *
45      */

46     public Object JavaDoc jjtAccept(AnnotationParserVisitor visitor, Object JavaDoc data);
47 }
Popular Tags