|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.odysseus.el.tree.impl.ast.AstNode
de.odysseus.el.tree.impl.ast.AstRightValue
public abstract class AstRightValue
Constructor Summary | |
---|---|
AstRightValue()
|
Method Summary | |
---|---|
MethodInfo |
getMethodInfo(Bindings bindings,
ELContext context,
java.lang.Class<?> returnType,
java.lang.Class<?>[] paramTypes)
Get method information. |
java.lang.Class<?> |
getType(Bindings bindings,
ELContext context)
according to the spec, the result is undefined for rvalues, so answer null |
java.lang.Object |
invoke(Bindings bindings,
ELContext context,
java.lang.Class<?> returnType,
java.lang.Class<?>[] paramTypes,
java.lang.Object[] paramValues)
Invoke method. |
boolean |
isLeftValue()
|
boolean |
isLiteralText()
Answer false |
boolean |
isReadOnly(Bindings bindings,
ELContext context)
non-lvalues are always readonly, so answer true |
void |
setValue(Bindings bindings,
ELContext context,
java.lang.Object value)
non-lvalues are always readonly, so throw an exception |
Methods inherited from class de.odysseus.el.tree.impl.ast.AstNode |
---|
appendStructure, eval, getStructuralId, getValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.odysseus.el.tree.Node |
---|
getCardinality, getChild |
Constructor Detail |
---|
public AstRightValue()
Method Detail |
---|
public final boolean isLiteralText()
false
true
if this node represents literal textpublic final java.lang.Class<?> getType(Bindings bindings, ELContext context)
null
bindings
- bindings containing variables and functionscontext
- evaluation context
null
for non-lvalue nodespublic final boolean isReadOnly(Bindings bindings, ELContext context)
true
bindings
- bindings containing variables and functionscontext
- evaluation context
true
if this a read-only expression nodepublic final void setValue(Bindings bindings, ELContext context, java.lang.Object value)
bindings
- bindings containing variables and functionscontext
- evaluation contextvalue
- value to setpublic final MethodInfo getMethodInfo(Bindings bindings, ELContext context, java.lang.Class<?> returnType, java.lang.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 types
null
public final java.lang.Object invoke(Bindings bindings, ELContext context, java.lang.Class<?> returnType, java.lang.Class<?>[] paramTypes, java.lang.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 values
public 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 proefix).
|
Copyright © 2006-2009 Odysseus Software GmbH. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |