FileDocCategorySizeDatePackage
SimpleNode.javaAPI DocAndroid 1.5 API2316Wed May 06 22:42:46 BST 2009org.apache.james.mime4j.field.address.parser

SimpleNode

public class SimpleNode extends org.apache.james.mime4j.field.address.parser.BaseNode implements Node

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

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

    this(i);
    parser = p;
  
Methods Summary
public java.lang.ObjectchildrenAccept(AddressListParserVisitor visitor, java.lang.Object data)
Accept the visitor.

    if (children != null) {
      for (int i = 0; i < children.length; ++i) {
        children[i].jjtAccept(visitor, data);
      }
    }
    return data;
  
public voiddump(java.lang.String prefix)

    System.out.println(toString(prefix));
    if (children != null) {
      for (int i = 0; i < children.length; ++i) {
	SimpleNode n = (SimpleNode)children[i];
	if (n != null) {
	  n.dump(prefix + " ");
	}
      }
    }
  
public java.lang.ObjectjjtAccept(AddressListParserVisitor visitor, java.lang.Object data)
Accept the visitor.

    return visitor.visit(this, data);
  
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 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 AddressListParserTreeConstants.jjtNodeName[id]; 
public java.lang.StringtoString(java.lang.String prefix)

 return prefix + toString();