KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > nfunk > jep > Node


1 /*****************************************************************************
2
3 JEP - Java Math Expression Parser 2.3.0
4       October 3 2004
5       (c) Copyright 2004, Nathan Funk and Richard Morris
6       See LICENSE.txt for license information.
7
8 *****************************************************************************/

9 /* Generated By:JJTree: Do not edit this line. Node.java */
10
11 /* All AST nodes must implement this interface. It provides basic
12    machinery for constructing the parent and child relationships
13    between nodes. */

14 package org.nfunk.jep;
15
16 import java.util.*;
17
18 public interface Node {
19
20   /** This method is called after the node has been made the current
21     node. It indicates that child nodes can now be added to it. */

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

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

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

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

39   public Node jjtGetChild(int i);
40
41   /** Return the number of children the node has. */
42   public int jjtGetNumChildren();
43
44   /** Accept the visitor. **/
45   public Object JavaDoc jjtAccept(ParserVisitor visitor, Object JavaDoc data) throws ParseException;
46
47   /** Push the value of the node on the stack *
48   public void evaluate(Stack stack) throws ParseException;
49 */

50 }
51
Popular Tags