• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements.  See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License.  You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  *  Unless required by applicable law or agreed to in writing, software
12  *  distributed under the License is distributed on an "AS IS" BASIS,
13  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  *  See the License for the specific language governing permissions and
15  *  limitations under the License.
16  *
17  */
18 /* Generated By:JJTree: Do not edit this line. Node.java */
19 /* JJT: 0.3pre1 */
20 
21 package Mini;
22 
23 /* All AST nodes must implement this interface.  It provides basic
24    machinery for constructing the parent and child relationships
25    between nodes. */
26 
27 public interface Node {
28 
29   /** This method is called after the node has been made the current
30     node.  It indicates that child nodes can now be added to it. */
jjtOpen()31   public void jjtOpen();
32 
33   /** This method is called after all the child nodes have been
34     added. */
jjtClose()35   public void jjtClose();
36 
37   /** This pair of methods are used to inform the node of its
38     parent. */
jjtSetParent(Node n)39   public void jjtSetParent(Node n);
jjtGetParent()40   public Node jjtGetParent();
41 
42   /** This method tells the node to add its argument to the node's
43     list of children.  */
jjtAddChild(Node n, int i)44   public void jjtAddChild(Node n, int i);
45 
46   /** This method returns a child node.  The children are numbered
47      from zero, left to right. */
jjtGetChild(int i)48   public Node jjtGetChild(int i);
49 
50   /** Return the number of children the node has. */
jjtGetNumChildren()51   int jjtGetNumChildren();
52 }
53