Top Fields Constructors Methods
com.sun.el.parser

public abstract Class SimpleNode

extends ELSupport
implements Node
Class Inheritance
All Implemented Interfaces
com.sun.el.parser.Node
Known Direct Subclasses
com.sun.el.parser.AstNot, com.sun.el.parser.ArithmeticNode, com.sun.el.parser.AstAssign, com.sun.el.parser.AstBracketSuffix, com.sun.el.parser.AstChoice, com.sun.el.parser.AstCompositeExpression, com.sun.el.parser.AstConcat, com.sun.el.parser.AstDeferredExpression, com.sun.el.parser.AstDotSuffix, com.sun.el.parser.AstDynamicExpression, com.sun.el.parser.AstEmpty, com.sun.el.parser.AstFloatingPoint, com.sun.el.parser.AstFunction, com.sun.el.parser.AstIdentifier, com.sun.el.parser.AstInteger, com.sun.el.parser.AstLambdaExpression, com.sun.el.parser.AstLambdaParameters, com.sun.el.parser.AstListData, com.sun.el.parser.AstLiteralExpression, com.sun.el.parser.AstMapData, com.sun.el.parser.AstMapEntry, com.sun.el.parser.AstMethodArguments, com.sun.el.parser.AstNegative, com.sun.el.parser.AstNull, com.sun.el.parser.AstSemiColon, com.sun.el.parser.AstString, com.sun.el.parser.AstValue, com.sun.el.parser.BooleanNode
Imports
javax.el.ELException, .MethodInfo, .PropertyNotWritableException, .ValueReference, com.sun.el.lang.ELSupport, .EvaluationContext, com.sun.el.util.MessageFactory

Author
Jacob Hookom [[email protected]]
Version
$Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: kchung $

Field Summary

Modifier and TypeField and Description
protected Node[]
protected int
protected String
protected Node

Constructor Summary

AccessConstructor and Description
public
SimpleNode(int i)

Method Summary

Modifier and TypeMethod and Description
public void
public void
dump(String prefix)

public boolean
equals(Object
the reference object with which to compare.
node
)

Overrides java.lang.Object.equals.

Implements com.sun.el.parser.Node.equals.

Indicates whether some other object is "equal to" this one.
public String
public MethodInfo
public Class<T>
public Object
public ValueReference
public int
hashCode()

Overrides java.lang.Object.hashCode.

Implements com.sun.el.parser.Node.hashCode.

Returns a hash code value for the object.
public Object
invoke(EvaluationContext ctx, Class<T>[] paramTypes, Object[] paramValues)

Implements com.sun.el.parser.Node.invoke.

public boolean
public boolean
public void
jjtAddChild(Node n, int i)

Implements com.sun.el.parser.Node.jjtAddChild.

This method tells the node to add its argument to the node's list of children.
public void
jjtClose()

Implements com.sun.el.parser.Node.jjtClose.

This method is called after all the child nodes have been added.
public Node
jjtGetChild(int i)

Implements com.sun.el.parser.Node.jjtGetChild.

This method returns a child node.
public int
jjtGetNumChildren()

Implements com.sun.el.parser.Node.jjtGetNumChildren.

Return the number of children the node has.
public Node
public void
jjtOpen()

Implements com.sun.el.parser.Node.jjtOpen.

This method is called after the node has been made the current node.
public void
jjtSetParent(Node n)

Implements com.sun.el.parser.Node.jjtSetParent.

This pair of methods are used to inform the node of its parent.
public void
public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public String
toString(String prefix)

Inherited from com.sun.el.lang.ELSupport:
checkTypecoerceToBooleancoerceToCharactercoerceToEnumcoerceToNumbercoerceToNumbercoerceToNumbercoerceToNumbercoerceToStringcoerceToTypecoerceToTypecomparecontainsNullsequalsisBigDecimalOpisBigIntegerOpisDoubleOpisDoubleStringOpisLongOpisStringFloatthrowUnhandledtoFloattoNumber

Field Detail

childrenback to summary
protected Node[] children
idback to summary
protected int id
imageback to summary
protected String image
parentback to summary
protected Node parent

Constructor Detail

SimpleNodeback to summary
public SimpleNode(int i)

Method Detail

acceptback to summary
public void accept(NodeVisitor visitor) throws ELException

Implements com.sun.el.parser.Node.accept.

Annotations
@Override
dumpback to summary
public void dump(String prefix)
equalsback to summary
public boolean equals(Object node)

Overrides java.lang.Object.equals.

Implements com.sun.el.parser.Node.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Parameters
node:Object

the reference object with which to compare.

Returns:boolean

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
getImageback to summary
public String getImage()

Implements com.sun.el.parser.Node.getImage.

Annotations
@Override
getMethodInfoback to summary
public MethodInfo getMethodInfo(EvaluationContext ctx, Class<T>[] paramTypes) throws ELException

Implements com.sun.el.parser.Node.getMethodInfo.

Annotations
@Override
getTypeback to summary
public Class<T> getType(EvaluationContext ctx) throws ELException

Implements com.sun.el.parser.Node.getType.

Annotations
@Override
getValueback to summary
public Object getValue(EvaluationContext ctx) throws ELException

Implements com.sun.el.parser.Node.getValue.

Annotations
@Override
getValueReferenceback to summary
public ValueReference getValueReference(EvaluationContext ctx) throws ELException

Implements com.sun.el.parser.Node.getValueReference.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Implements com.sun.el.parser.Node.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Returns:int

a hash code value for this object.

Annotations
@Override
invokeback to summary
public Object invoke(EvaluationContext ctx, Class<T>[] paramTypes, Object[] paramValues) throws ELException

Implements com.sun.el.parser.Node.invoke.

Annotations
@Override
isParametersProvidedback to summary
public boolean isParametersProvided()

Implements com.sun.el.parser.Node.isParametersProvided.

Annotations
@Override
isReadOnlyback to summary
public boolean isReadOnly(EvaluationContext ctx) throws ELException

Implements com.sun.el.parser.Node.isReadOnly.

Annotations
@Override
jjtAddChildback to summary
public void jjtAddChild(Node n, int i)

Implements com.sun.el.parser.Node.jjtAddChild.

Doc from com.sun.el.parser.Node.jjtAddChild.

This method tells the node to add its argument to the node's list of children.

Annotations
@Override
jjtCloseback to summary
public void jjtClose()

Implements com.sun.el.parser.Node.jjtClose.

Doc from com.sun.el.parser.Node.jjtClose.

This method is called after all the child nodes have been added.

Annotations
@Override
jjtGetChildback to summary
public Node jjtGetChild(int i)

Implements com.sun.el.parser.Node.jjtGetChild.

Doc from com.sun.el.parser.Node.jjtGetChild.

This method returns a child node. The children are numbered from zero, left to right.

Annotations
@Override
jjtGetNumChildrenback to summary
public int jjtGetNumChildren()

Implements com.sun.el.parser.Node.jjtGetNumChildren.

Doc from com.sun.el.parser.Node.jjtGetNumChildren.

Return the number of children the node has.

Annotations
@Override
jjtGetParentback to summary
public Node jjtGetParent()

Implements com.sun.el.parser.Node.jjtGetParent.

Annotations
@Override
jjtOpenback to summary
public void jjtOpen()

Implements com.sun.el.parser.Node.jjtOpen.

Doc from com.sun.el.parser.Node.jjtOpen.

This method is called after the node has been made the current node. It indicates that child nodes can now be added to it.

Annotations
@Override
jjtSetParentback to summary
public void jjtSetParent(Node n)

Implements com.sun.el.parser.Node.jjtSetParent.

Doc from com.sun.el.parser.Node.jjtSetParent.

This pair of methods are used to inform the node of its parent.

Annotations
@Override
setImageback to summary
public void setImage(String image)
setValueback to summary
public void setValue(EvaluationContext ctx, Object value) throws ELException

Implements com.sun.el.parser.Node.setValue.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
toStringback to summary
public String toString(String prefix)