Package com.sun.el.parser
Class SimpleNode
java.lang.Object
com.sun.el.lang.ELSupport
com.sun.el.parser.SimpleNode
- All Implemented Interfaces:
Node
- Direct Known Subclasses:
ArithmeticNode
,AstAssign
,AstBracketSuffix
,AstChoice
,AstCompositeExpression
,AstConcat
,AstDeferredExpression
,AstDotSuffix
,AstDynamicExpression
,AstEmpty
,AstFloatingPoint
,AstFunction
,AstIdentifier
,AstInteger
,AstLambdaExpression
,AstLambdaParameters
,AstListData
,AstLiteralExpression
,AstMapData
,AstMapEntry
,AstMethodArguments
,AstNegative
,AstNot
,AstNull
,AstSemiColon
,AstString
,AstValue
,BooleanNode
- Version:
- $Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: kchung $
- Author:
- Jacob Hookom [jacob@hookom.net]
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(NodeVisitor visitor) void
boolean
getImage()
javax.el.MethodInfo
getMethodInfo
(EvaluationContext ctx, Class[] paramTypes) getType
(EvaluationContext ctx) javax.el.ValueReference
int
hashCode()
invoke
(EvaluationContext ctx, Class[] paramTypes, Object[] paramValues) boolean
boolean
void
jjtAddChild
(Node n, int i) This method tells the node to add its argument to the node's list of children.void
jjtClose()
This method is called after all the child nodes have been added.jjtGetChild
(int i) This method returns a child node.int
Return the number of children the node has.void
jjtOpen()
This method is called after the node has been made the current node.void
jjtSetParent
(Node n) This pair of methods are used to inform the node of its parent.void
void
setValue
(EvaluationContext ctx, Object value) toString()
Methods inherited from class com.sun.el.lang.ELSupport
checkType, coerceToBoolean, coerceToCharacter, coerceToEnum, coerceToNumber, coerceToNumber, coerceToNumber, coerceToNumber, coerceToString, coerceToType, coerceToType, compare, containsNulls, equals, isBigDecimalOp, isBigIntegerOp, isDoubleOp, isDoubleStringOp, isLongOp, isStringFloat, throwUnhandled, toFloat, toNumber
-
Field Details
-
parent
-
children
-
id
protected int id -
image
-
-
Constructor Details
-
SimpleNode
public SimpleNode(int i)
-
-
Method Details
-
jjtOpen
public void jjtOpen()Description copied from interface:Node
This method is called after the node has been made the current node. It indicates that child nodes can now be added to it. -
jjtClose
public void jjtClose()Description copied from interface:Node
This method is called after all the child nodes have been added. -
jjtSetParent
Description copied from interface:Node
This pair of methods are used to inform the node of its parent.- Specified by:
jjtSetParent
in interfaceNode
-
jjtGetParent
- Specified by:
jjtGetParent
in interfaceNode
-
jjtAddChild
Description copied from interface:Node
This method tells the node to add its argument to the node's list of children.- Specified by:
jjtAddChild
in interfaceNode
-
jjtGetChild
Description copied from interface:Node
This method returns a child node. The children are numbered from zero, left to right.- Specified by:
jjtGetChild
in interfaceNode
-
jjtGetNumChildren
public int jjtGetNumChildren()Description copied from interface:Node
Return the number of children the node has.- Specified by:
jjtGetNumChildren
in interfaceNode
-
toString
-
toString
-
dump
-
getImage
-
setImage
-
getType
-
getValue
-
getValueReference
- Specified by:
getValueReference
in interfaceNode
- Throws:
javax.el.ELException
-
isReadOnly
- Specified by:
isReadOnly
in interfaceNode
- Throws:
javax.el.ELException
-
setValue
-
accept
-
invoke
public Object invoke(EvaluationContext ctx, Class[] paramTypes, Object[] paramValues) throws javax.el.ELException -
getMethodInfo
public javax.el.MethodInfo getMethodInfo(EvaluationContext ctx, Class[] paramTypes) throws javax.el.ELException - Specified by:
getMethodInfo
in interfaceNode
- Throws:
javax.el.ELException
-
equals
-
isParametersProvided
public boolean isParametersProvided()- Specified by:
isParametersProvided
in interfaceNode
-
hashCode
public int hashCode()
-