Package org.camunda.bpm.impl.juel
Interface ExpressionNode
- All Superinterfaces:
- Node
- All Known Implementing Classes:
- AstBinary,- AstBoolean,- AstBracket,- AstChoice,- AstComposite,- AstDot,- AstEval,- AstFunction,- AstIdentifier,- AstLiteral,- AstMethod,- AstNested,- AstNode,- AstNull,- AstNumber,- AstParameters,- AstProperty,- AstRightValue,- AstString,- AstText,- AstUnary
Expression node interface. This interface provides all the methods needed for value expressions
 and method expressions.
- Author:
- Christoph Beck
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionjakarta.el.MethodInfogetMethodInfo(Bindings bindings, jakarta.el.ELContext context, Class<?> returnType, Class<?>[] paramTypes) Get method information.getStructuralId(Bindings bindings) Get the canonical expression string for this node.Class<?>Get the value type accepted insetValue(Bindings, ELContext, Object).Evaluate node.jakarta.el.ValueReferencegetValueReference(Bindings bindings, jakarta.el.ELContext context) Get value reference.invoke(Bindings bindings, jakarta.el.ELContext context, Class<?> returnType, Class<?>[] paramTypes, Object[] paramValues) Invoke method.booleanbooleanbooleanbooleanisReadOnly(Bindings bindings, jakarta.el.ELContext context) Determine whethersetValue(Bindings, ELContext, Object)will throw aPropertyNotWritableException.voidAssign value.Methods inherited from interface org.camunda.bpm.impl.juel.NodegetCardinality, getChild
- 
Method Details- 
isLiteralTextboolean isLiteralText()- Returns:
- trueif this node represents literal text
 
- 
isLeftValueboolean isLeftValue()- Returns:
- trueif the subtree rooted at this node could be used as an lvalue expression (identifier or property sequence with non-literal prefix).
 
- 
isMethodInvocationboolean isMethodInvocation()- Returns:
- trueif the subtree rooted at this node is a method invocation.
 
- 
getValueEvaluate node.- Parameters:
- bindings- bindings containing variables and functions
- context- evaluation context
- expectedType- result type
- Returns:
- evaluated node, coerced to the expected type
 
- 
getValueReferenceGet value reference.- Parameters:
- bindings-
- context-
- Returns:
- value reference
 
- 
getTypeGet the value type accepted insetValue(Bindings, ELContext, Object).- Parameters:
- bindings- bindings containing variables and functions
- context- evaluation context
- Returns:
- accepted type or nullfor non-lvalue nodes
 
- 
isReadOnlyDetermine whethersetValue(Bindings, ELContext, Object)will throw aPropertyNotWritableException.- Parameters:
- bindings- bindings containing variables and functions
- context- evaluation context
- Returns:
- trueif this a read-only expression node
 
- 
setValueAssign value.- Parameters:
- bindings- bindings containing variables and functions
- context- evaluation context
- value- value to set
 
- 
getMethodInfojakarta.el.MethodInfo getMethodInfo(Bindings bindings, jakarta.el.ELContext context, Class<?> returnType, Class<?>[] paramTypes) Get method information. If this is a non-lvalue node, answernull.- Parameters:
- bindings- bindings containing variables and functions
- context- evaluation context
- returnType- expected method return type (may be- nullmeaning don't care)
- paramTypes- expected method argument types
- Returns:
- method information or null
 
- 
invokeObject invoke(Bindings bindings, jakarta.el.ELContext context, Class<?> returnType, Class<?>[] paramTypes, Object[] paramValues) Invoke method.- Parameters:
- bindings- bindings containing variables and functions
- context- evaluation context
- returnType- expected method return type (may be- nullmeaning don't care)
- paramTypes- expected method argument types
- paramValues- parameter values
- Returns:
- result of the method invocation
 
- 
getStructuralIdGet the canonical expression string for this node. Variable and funtion names will be replaced in a way such that two expression nodes that have the same node structure and bindings will also answer the same value here. For example,"${foo:bar()+2*foobar}"may lead to"${<fn>() + 2 * <var>}"iffoobaris a bound variable. Otherwise, the structural id would be"${<fn>() + 2 * foobar}". If the bindings isnull, the full canonical subexpression is returned.
 
-