FileDocCategorySizeDatePackage
SimpleNode.javaAPI DocJava SE 5 API3898Fri Aug 26 14:55:02 BST 2005com.sun.jmx.snmp.IPAcl

SimpleNode

public class SimpleNode extends Object implements Node
version
4.12 12/19/03
author
Sun Microsystems, Inc.

Fields Summary
protected Node
parent
protected Node[]
children
protected int
id
protected Parser
parser
Constructors Summary
public SimpleNode(int i)

        id = i;
    
public SimpleNode(Parser p, int i)

        this(i);
        parser = p;
    
Methods Summary
public voidbuildAclEntries(PrincipalImpl owner, AclImpl acl)
Build the Acl entries from the syntactic tree.

        if (children != null) {
            for (int i = 0; i < children.length; ++i) {
                SimpleNode n = (SimpleNode)children[i];
                if (n != null) {
                    n.buildAclEntries(owner, acl);
                }
            } /* end of loop */
        }                     
    
public voidbuildInformEntries(java.util.Hashtable dest)
Build the Inform entries from the syntactic tree.

        if (children != null) {
            for (int i = 0; i < children.length; ++i) {
                SimpleNode n = (SimpleNode)children[i];
                if (n != null) {
                    n.buildInformEntries(dest);
                }
            } /* end of loop */
        }                     
    
public voidbuildTrapEntries(java.util.Hashtable dest)
Build the Trap entries from the syntactic tree.

        if (children != null) {
            for (int i = 0; i < children.length; ++i) {
                SimpleNode n = (SimpleNode)children[i];
                if (n != null) {
                    n.buildTrapEntries(dest);
                }
            } /* end of loop */
        }                     
    
public voiddump(java.lang.String prefix)

        if (children != null) {
            for (int i = 0; i < children.length; ++i) {
                SimpleNode n = (SimpleNode)children[i];
                if (n != null) {
                    n.dump(prefix + " ");
                }
            }
        }
    
public voidjjtAddChild(Node n, int i)

        if (children == null) {
            children = new Node[i + 1];
        } else if (i >= children.length) {
            Node c[] = new Node[i + 1];
            System.arraycopy(children, 0, c, 0, children.length);
            children = c;
        }
        children[i] = n;
    
public voidjjtClose()

    
public static NodejjtCreate(int id)

        return new SimpleNode(id);
    
public static NodejjtCreate(Parser p, int id)

        return new SimpleNode(p, id);
    
public NodejjtGetChild(int i)

        return children[i];
    
public intjjtGetNumChildren()

        return (children == null) ? 0 : children.length;
    
public NodejjtGetParent()

 return parent; 
public voidjjtOpen()

    
public voidjjtSetParent(Node n)

 parent = n; 
public java.lang.StringtoString()

 return ParserTreeConstants.jjtNodeName[id]; 
public java.lang.StringtoString(java.lang.String prefix)

 return prefix + toString();