KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > jmx > snmp > IPAcl > Node


1 /*
2  * @(#)file Node.java
3  * @(#)author Sun Microsystems, Inc.
4  * @(#)version 4.7
5  * @(#)date 08/02/09
6  *
7  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
8  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
9  *
10  */

11
12
13 /* Generated By:JJTree: Do not edit this line. Node.java */
14
15 package com.sun.jmx.snmp.IPAcl;
16
17 /* All AST nodes must implement this interface. It provides basic
18    machinery for constructing the parent and child relationships
19    between nodes. */

20
21 interface Node {
22
23   /** This method is called after the node has been made the current
24     node. It indicates that child nodes can now be added to it. */

25   public void jjtOpen();
26
27   /** This method is called after all the child nodes have been
28     added. */

29   public void jjtClose();
30
31   /** This pair of methods are used to inform the node of its
32     parent. */

33   public void jjtSetParent(Node n);
34   public Node jjtGetParent();
35
36   /** This method tells the node to add its argument to the node's
37     list of children. */

38   public void jjtAddChild(Node n, int i);
39
40   /** This method returns a child node. The children are numbered
41      from zero, left to right. */

42   public Node jjtGetChild(int i);
43
44   /** Return the number of children the node has. */
45   public int jjtGetNumChildren();
46 }
47
Popular Tags