01: package org.obe.sql;
02:
03: import java.io.IOException;
04: import java.io.Writer;
05:
06: public interface Node {
07: /** This method is called after the node has been made the current
08: node. It indicates that child nodes can now be added to it. */
09: void jjtOpen();
10:
11: /** This method is called after all the child nodes have been
12: added. */
13: void jjtClose();
14:
15: /** This pair of methods are used to inform the node of its
16: parent. */
17: void jjtSetParent(Node n);
18:
19: Node jjtGetParent();
20:
21: /** This method tells the node to add its argument to the node's
22: list of children. */
23: void jjtAddChild(Node n, int i);
24:
25: /** This method returns a child node. The children are numbered
26: from zero, left to right. */
27: Node jjtGetChild(int i);
28:
29: /** Return the number of children the node has. */
30: int jjtGetNumChildren();
31:
32: /** Accept the visitor. **/
33: Object jjtAccept(SQLParserVisitor visitor, Object data);
34:
35: void write(Writer out) throws IOException;
36:
37: Object execute(Object context);
38:
39: Object execute(Object context, Object lhs);
40:
41: Object execute(Object context, Object lhs, Object rhs);
42: }
|