PageRenderTime 21ms CodeModel.GetById 12ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1/* Generated By:JJTree: Do not edit this line. Node.java */
 2
 3package org.apache.hadoop.hive.serde2.dynamic_type;
 4
 5/* All AST nodes must implement this interface.  It provides basic
 6 machinery for constructing the parent and child relationships
 7 between nodes. */
 8
 9public interface Node {
10
11  /**
12   * This method is called after the node has been made the current node. It
13   * indicates that child nodes can now be added to it.
14   */
15  public void jjtOpen();
16
17  /**
18   * This method is called after all the child nodes have been added.
19   */
20  public void jjtClose();
21
22  /**
23   * This pair of methods are used to inform the node of its parent.
24   */
25  public void jjtSetParent(Node n);
26
27  public Node jjtGetParent();
28
29  /**
30   * This method tells the node to add its argument to the node's list of
31   * children.
32   */
33  public void jjtAddChild(Node n, int i);
34
35  /**
36   * This method returns a child node. The children are numbered from zero, left
37   * to right.
38   */
39  public Node jjtGetChild(int i);
40
41  /** Return the number of children the node has. */
42  public int jjtGetNumChildren();
43}