KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > aspectwerkz > expression > ast > Node


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4
5 /* Generated By:JJTree: Do not edit this line. Node.java */
6
7 package com.tc.aspectwerkz.expression.ast;
8
9 /*
10  * All AST nodes must implement this interface. It provides basic machinery for constructing the parent and child
11  * relationships between nodes.
12  */

13
14 public interface Node {
15
16   /**
17    * This method is called after the node has been made the current node. It indicates that child nodes can now be
18    * added to it.
19    */

20   public void jjtOpen();
21
22   /**
23    * This method is called after all the child nodes have been added.
24    */

25   public void jjtClose();
26
27   /**
28    * This pair of methods are used to inform the node of its parent.
29    */

30   public void jjtSetParent(Node n);
31
32   public Node jjtGetParent();
33
34   /**
35    * This method tells the node to add its argument to the node's list of children.
36    */

37   public void jjtAddChild(Node n, int i);
38
39   /**
40    * This method returns a child node. The children are numbered from zero, left to right.
41    */

42   public Node jjtGetChild(int i);
43
44   /**
45    * Return the number of children the node has.
46    */

47   public int jjtGetNumChildren();
48
49   /**
50    * Accept the visitor. *
51    */

52   public Object JavaDoc jjtAccept(ExpressionParserVisitor visitor, Object JavaDoc data);
53 }
Popular Tags