00001 package edu.ksu.cis.bandera.abstraction.predicate.parser; 00002 00003 /* Generated By:JJTree: Do not edit this line. Node.java */ 00004 /* All AST nodes must implement this interface. It provides basic 00005 machinery for constructing the parent and child relationships 00006 between nodes. */ 00007 00008 public interface Node { 00009 00010 /** Accept the visitor. **/ 00011 public Object jjtAccept(PredicateParserVisitor visitor, Object data); 00012 /** This method tells the node to add its argument to the node's 00013 list of children. */ 00014 public void jjtAddChild(Node n, int i); 00015 /** This method is called after all the child nodes have been 00016 added. */ 00017 public void jjtClose(); 00018 /** This method returns a child node. The children are numbered 00019 from zero, left to right. */ 00020 public Node jjtGetChild(int i); 00021 /** Return the number of children the node has. */ 00022 public int jjtGetNumChildren(); 00023 public Node jjtGetParent(); 00024 /** This method is called after the node has been made the current 00025 node. It indicates that child nodes can now be added to it. */ 00026 public void jjtOpen(); 00027 /** This pair of methods are used to inform the node of its 00028 parent. */ 00029 public void jjtSetParent(Node n); 00030 }