1
2
3 package org.codehaus.aspectwerkz.expression.ast;
4
5
6
7
8
9
10 public interface Node {
11
12 /***
13 * This method is called after the node has been made the current node. It indicates that child nodes can now be
14 * added to it.
15 */
16 public void jjtOpen();
17
18 /***
19 * This method is called after all the child nodes have been added.
20 */
21 public void jjtClose();
22
23 /***
24 * This pair of methods are used to inform the node of its parent.
25 */
26 public void jjtSetParent(Node n);
27
28 public Node jjtGetParent();
29
30 /***
31 * This method tells the node to add its argument to the node's list of children.
32 */
33 public void jjtAddChild(Node n, int i);
34
35 /***
36 * This method returns a child node. The children are numbered from zero, left to right.
37 */
38 public Node jjtGetChild(int i);
39
40 /***
41 * Return the number of children the node has.
42 */
43 public int jjtGetNumChildren();
44
45 /***
46 * Accept the visitor. *
47 */
48 public Object jjtAccept(ExpressionParserVisitor visitor, Object data);
49 }