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