FileDocCategorySizeDatePackage
SimpleNode.javaAPI DocApache Tomcat 6.0.143993Fri Jul 20 04:20:36 BST 2007org.apache.el.parser

SimpleNode

public abstract class SimpleNode extends org.apache.el.lang.ELSupport implements Node
author
Jacob Hookom [jacob@hookom.net]
version
$Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: markt $

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

        id = i;
    
Methods Summary
public voidaccept(NodeVisitor visitor)

        visitor.visit(this);
        if (this.children != null && this.children.length > 0) {
            for (int i = 0; i < this.children.length; i++) {
                this.children[i].accept(visitor);
            }
        }
    
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.StringgetImage()

        return image;
    
public javax.el.MethodInfogetMethodInfo(org.apache.el.lang.EvaluationContext ctx, java.lang.Class[] paramTypes)

        throw new UnsupportedOperationException();
    
public java.lang.ClassgetType(org.apache.el.lang.EvaluationContext ctx)

        throw new UnsupportedOperationException();
    
public java.lang.ObjectgetValue(org.apache.el.lang.EvaluationContext ctx)

        throw new UnsupportedOperationException();
    
public java.lang.Objectinvoke(org.apache.el.lang.EvaluationContext ctx, java.lang.Class[] paramTypes, java.lang.Object[] paramValues)

        throw new UnsupportedOperationException();
    
public booleanisReadOnly(org.apache.el.lang.EvaluationContext ctx)

        return true;
    
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 voidsetImage(java.lang.String image)

        this.image = image;
    
public voidsetValue(org.apache.el.lang.EvaluationContext ctx, java.lang.Object value)

        throw new PropertyNotWritableException(MessageFactory.get("error.syntax.set"));
    
public java.lang.StringtoString(java.lang.String prefix)

        return prefix + toString();
    
public java.lang.StringtoString()

        if (this.image != null) {
            return ELParserTreeConstants.jjtNodeName[id] + "[" + this.image
                    + "]";
        }
        return ELParserTreeConstants.jjtNodeName[id];