Methods Summary |
---|
public void | accept(com.sun.el.parser.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 void | dump(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 boolean | equals(java.lang.Object node)
if (! (node instanceof SimpleNode)) {
return false;
}
SimpleNode n = (SimpleNode) node;
if (this.id != n.id) {
return false;
}
if (this.children == null && n.children == null) {
if (this.image == null) {
return n.image == null;
}
return this.image.equals(n.image);
}
if (this.children == null || n.children == null) {
// One is null and the other is non-null
return false;
}
if (this.children.length != n.children.length) {
return false;
}
if (this.children.length == 0) {
if (this.image == null) {
return n.image == null;
}
return this.image.equals(n.image);
}
for (int i = 0; i < this.children.length; i++) {
if (! this.children[i].equals(n.children[i])) {
return false;
}
}
return true;
|
public java.lang.String | getImage()
return image;
|
public javax.el.MethodInfo | getMethodInfo(com.sun.el.lang.EvaluationContext ctx, java.lang.Class[] paramTypes)
throw new UnsupportedOperationException();
|
public java.lang.Class | getType(com.sun.el.lang.EvaluationContext ctx)
throw new UnsupportedOperationException();
|
public java.lang.Object | getValue(com.sun.el.lang.EvaluationContext ctx)
throw new UnsupportedOperationException();
|
public int | hashCode()
if (this.children == null || this.children.length == 0) {
if (this.image != null) {
return this.image.hashCode();
}
return this.id;
}
int h = 0;
for (int i = this.children.length - 1; i >=0; i--) {
h = h + h + h + this.children[i].hashCode();
}
h = h + h + h + id;
return h;
|
public java.lang.Object | invoke(com.sun.el.lang.EvaluationContext ctx, java.lang.Class[] paramTypes, java.lang.Object[] paramValues)
throw new UnsupportedOperationException();
|
public boolean | isReadOnly(com.sun.el.lang.EvaluationContext ctx)
return true;
|
public void | jjtAddChild(com.sun.el.parser.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 void | jjtClose()
|
public com.sun.el.parser.Node | jjtGetChild(int i)
return children[i];
|
public int | jjtGetNumChildren()
return (children == null) ? 0 : children.length;
|
public com.sun.el.parser.Node | jjtGetParent()
return parent;
|
public void | jjtOpen()
|
public void | jjtSetParent(com.sun.el.parser.Node n)
parent = n;
|
public void | setImage(java.lang.String image)
this.image = image;
|
public void | setValue(com.sun.el.lang.EvaluationContext ctx, java.lang.Object value)
throw new PropertyNotWritableException(MessageFactory.get("error.syntax.set"));
|
public java.lang.String | toString(java.lang.String prefix)
return prefix + toString();
|
public java.lang.String | toString()
if (this.image != null) {
return ELParserTreeConstants.jjtNodeName[id] + "[" + this.image
+ "]";
}
return ELParserTreeConstants.jjtNodeName[id];
|