public abstract class AstRightValue extends AstNode
| Constructor and Description |
|---|
AstRightValue() |
| Modifier and Type | Method and Description |
|---|---|
MethodInfo |
getMethodInfo(Bindings bindings,
ELContext context,
Class<?> returnType,
Class<?>[] paramTypes)
Get method information.
|
Class<?> |
getType(Bindings bindings,
ELContext context)
according to the spec, the result is undefined for rvalues, so answer
null |
ValueReference |
getValueReference(Bindings bindings,
ELContext context)
Get value reference.
|
Object |
invoke(Bindings bindings,
ELContext context,
Class<?> returnType,
Class<?>[] paramTypes,
Object[] paramValues)
Invoke method.
|
boolean |
isLeftValue() |
boolean |
isLiteralText()
Answer
false |
boolean |
isMethodInvocation() |
boolean |
isReadOnly(Bindings bindings,
ELContext context)
non-lvalues are always readonly, so answer
true |
void |
setValue(Bindings bindings,
ELContext context,
Object value)
non-lvalues are always readonly, so throw an exception
|
appendStructure, eval, getStructuralId, getValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCardinality, getChildpublic final boolean isLiteralText()
falsetrue if this node represents literal textpublic final Class<?> getType(Bindings bindings, ELContext context)
nullbindings - bindings containing variables and functionscontext - evaluation contextnull for non-lvalue nodespublic final boolean isReadOnly(Bindings bindings, ELContext context)
truebindings - bindings containing variables and functionscontext - evaluation contexttrue if this a read-only expression nodepublic final void setValue(Bindings bindings, ELContext context, Object value)
bindings - bindings containing variables and functionscontext - evaluation contextvalue - value to setpublic final MethodInfo getMethodInfo(Bindings bindings, ELContext context, Class<?> returnType, Class<?>[] paramTypes)
ExpressionNodenull.bindings - bindings containing variables and functionscontext - evaluation contextreturnType - expected method return type (may be null meaning don't care)paramTypes - expected method argument typesnullpublic final Object invoke(Bindings bindings, ELContext context, Class<?> returnType, Class<?>[] paramTypes, Object[] paramValues)
ExpressionNodebindings - bindings containing variables and functionscontext - evaluation contextreturnType - expected method return type (may be null meaning don't care)paramTypes - expected method argument typesparamValues - parameter valuespublic final boolean isLeftValue()
true if the subtree rooted at this node could be used as an lvalue
expression (identifier or property sequence with non-literal prefix).public boolean isMethodInvocation()
true if the subtree rooted at this node is a method invocation.public final ValueReference getValueReference(Bindings bindings, ELContext context)
ExpressionNodeCopyright © 2022. All rights reserved.