/tags/release-0.1-rc2/hive/external/serde/src/java/org/apache/hadoop/hive/serde2/dynamic_type/Node.java
Java | 43 lines | 10 code | 10 blank | 23 comment | 0 complexity | df3d46cb8612fb99c3cc1b4a53a76bbb MD5 | raw file
Possible License(s): Apache-2.0, BSD-3-Clause, JSON, CPL-1.0
- /* Generated By:JJTree: Do not edit this line. Node.java */
- package org.apache.hadoop.hive.serde2.dynamic_type;
- /* All AST nodes must implement this interface. It provides basic
- machinery for constructing the parent and child relationships
- between nodes. */
- public interface Node {
- /**
- * This method is called after the node has been made the current node. It
- * indicates that child nodes can now be added to it.
- */
- public void jjtOpen();
- /**
- * This method is called after all the child nodes have been added.
- */
- public void jjtClose();
- /**
- * This pair of methods are used to inform the node of its parent.
- */
- public void jjtSetParent(Node n);
- public Node jjtGetParent();
- /**
- * This method tells the node to add its argument to the node's list of
- * children.
- */
- public void jjtAddChild(Node n, int i);
- /**
- * This method returns a child node. The children are numbered from zero, left
- * to right.
- */
- public Node jjtGetChild(int i);
- /** Return the number of children the node has. */
- public int jjtGetNumChildren();
- }