|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExpressionNode
Expression node interface. This interface provides all the methods needed for value expressions and method expressions.
Tree| Method Summary | |
|---|---|
MethodInfo |
getMethodInfo(Bindings bindings,
ELContext context,
Class<?> returnType,
Class<?>[] paramTypes)
Get method information. |
String |
getStructuralId(Bindings bindings)
Get the canonical expression string for this node. |
Class<?> |
getType(Bindings bindings,
ELContext context)
Get the value type accepted in setValue(Bindings, ELContext, Object). |
Object |
getValue(Bindings bindings,
ELContext context,
Class<?> expectedType)
Evaluate node. |
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()
|
boolean |
isMethodInvocation()
|
boolean |
isReadOnly(Bindings bindings,
ELContext context)
Determine whether setValue(Bindings, ELContext, Object) will throw a
PropertyNotWritableException. |
void |
setValue(Bindings bindings,
ELContext context,
Object value)
Assign value. |
| Methods inherited from interface org.camunda.bpm.engine.impl.juel.Node |
|---|
getCardinality, getChild |
| Method Detail |
|---|
boolean isLiteralText()
true if this node represents literal textboolean isLeftValue()
true if the subtree rooted at this node could be used as an lvalue
expression (identifier or property sequence with non-literal prefix).boolean isMethodInvocation()
true if the subtree rooted at this node is a method invocation.
Object getValue(Bindings bindings,
ELContext context,
Class<?> expectedType)
bindings - bindings containing variables and functionscontext - evaluation contextexpectedType - result type
ValueReference getValueReference(Bindings bindings,
ELContext context)
bindings - context -
Class<?> getType(Bindings bindings,
ELContext context)
setValue(Bindings, ELContext, Object).
bindings - bindings containing variables and functionscontext - evaluation context
null for non-lvalue nodes
boolean isReadOnly(Bindings bindings,
ELContext context)
setValue(Bindings, ELContext, Object) will throw a
PropertyNotWritableException.
bindings - bindings containing variables and functionscontext - evaluation context
true if this a read-only expression node
void setValue(Bindings bindings,
ELContext context,
Object value)
bindings - bindings containing variables and functionscontext - evaluation contextvalue - value to set
MethodInfo getMethodInfo(Bindings bindings,
ELContext context,
Class<?> returnType,
Class<?>[] paramTypes)
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
Object invoke(Bindings bindings,
ELContext context,
Class<?> returnType,
Class<?>[] paramTypes,
Object[] paramValues)
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
String getStructuralId(Bindings bindings)
"${foo:bar()+2*foobar}" may lead to
"${<fn>() + 2 * <var>}" if foobar is a bound variable.
Otherwise, the structural id would be "${<fn>() + 2 * foobar}".
If the bindings is null, the full canonical subexpression is returned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||