1. /*
  2. * @(#)file Node.java
  3. * @(#)author Sun Microsystems, Inc.
  4. * @(#)version 4.7
  5. * @(#)date 04/09/15
  6. *
  7. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  8. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  9. *
  10. */
  11. /* Generated By:JJTree: Do not edit this line. Node.java */
  12. package com.sun.jmx.snmp.IPAcl;
  13. /* All AST nodes must implement this interface. It provides basic
  14. machinery for constructing the parent and child relationships
  15. between nodes. */
  16. interface Node {
  17. /** This method is called after the node has been made the current
  18. node. It indicates that child nodes can now be added to it. */
  19. public void jjtOpen();
  20. /** This method is called after all the child nodes have been
  21. added. */
  22. public void jjtClose();
  23. /** This pair of methods are used to inform the node of its
  24. parent. */
  25. public void jjtSetParent(Node n);
  26. public Node jjtGetParent();
  27. /** This method tells the node to add its argument to the node's
  28. list of children. */
  29. public void jjtAddChild(Node n, int i);
  30. /** This method returns a child node. The children are numbered
  31. from zero, left to right. */
  32. public Node jjtGetChild(int i);
  33. /** Return the number of children the node has. */
  34. public int jjtGetNumChildren();
  35. }