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, getValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCardinality, getChild
public final boolean isLiteralText()
false
true
if this node represents literal textpublic final Class<?> getType(Bindings bindings, ELContext context)
null
bindings
- bindings containing variables and functionscontext
- evaluation contextnull
for non-lvalue nodespublic final boolean isReadOnly(Bindings bindings, ELContext context)
true
bindings
- 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)
ExpressionNode
null
.bindings
- bindings containing variables and functionscontext
- evaluation contextreturnType
- expected method return type (may be null
meaning don't care)paramTypes
- expected method argument typesnull
public final Object invoke(Bindings bindings, ELContext context, Class<?> returnType, Class<?>[] paramTypes, Object[] paramValues)
ExpressionNode
bindings
- 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)
ExpressionNode
Copyright © 2019. All rights reserved.