01: /* Generated By:JJTree: Do not edit this line. Node.java */
02: /*
03: * GeoTools - OpenSource mapping toolkit
04: * http://geotools.org
05: * (C) 2006, GeoTools Project Managment Committee (PMC)
06: *
07: * This library is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU Lesser General Public
09: * License as published by the Free Software Foundation;
10: * version 2.1 of the License.
11: *
12: * This library is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * Lesser General Public License for more details.
16: */
17:
18: package org.geotools.filter.text.cql2;
19:
20: /* All AST nodes must implement this interface. It provides basic
21: machinery for constructing the parent and child relationships
22: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/cql/modified-src/org/geotools/filter/text/cql2/Node.java $
23: between nodes. */
24:
25: interface Node {
26:
27: public void dispose();
28:
29: public Token getToken();
30:
31: public int getType();
32:
33: /** This method is called after the node has been made the current
34: node. It indicates that child nodes can now be added to it. */
35: public void jjtOpen();
36:
37: /** This method is called after all the child nodes have been
38: added. */
39: public void jjtClose();
40:
41: /** This pair of methods are used to inform the node of its
42: parent. */
43: public void jjtSetParent(Node n);
44:
45: public Node jjtGetParent();
46:
47: /** This method tells the node to add its argument to the node's
48: list of children. */
49: public void jjtAddChild(Node n, int i);
50:
51: /** This method returns a child node. The children are numbered
52: from zero, left to right. */
53: public Node jjtGetChild(int i);
54:
55: /** Return the number of children the node has. */
56: public int jjtGetNumChildren();
57:
58: /** Accept the visitor. **/
59: public Object jjtAccept(CQLParserVisitor visitor, Object data);
60: }
|