public class ComplexValue extends Expression
Represents a dynamic value, which consists of a prefix and an optional set of ValueSuffix elements. A prefix is something like an identifier, and a suffix is something like a "property of" or "indexed element of" operator.
Constructor and Description |
---|
ComplexValue(Expression pPrefix,
List pSuffixes)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Expression |
bindFunctions(FunctionMapper functions)
Returns an expression with all
FunctionInvocation s replaced by
BoundFunctionInvocation s. |
Object |
evaluate(VariableResolver pResolver,
FunctionMapper functions)
Evaluates by evaluating the prefix, then applying the suffixes
|
String |
getExpressionString()
Returns the expression in the expression language syntax
|
Expression |
getPrefix() |
List |
getSuffixes() |
void |
setPrefix(Expression pPrefix) |
void |
setSuffixes(List pSuffixes) |
public ComplexValue(Expression pPrefix, List pSuffixes)
public Expression getPrefix()
public void setPrefix(Expression pPrefix)
public List getSuffixes()
public void setSuffixes(List pSuffixes)
public String getExpressionString()
getExpressionString
in class Expression
public Object evaluate(VariableResolver pResolver, FunctionMapper functions) throws ELException
evaluate
in class Expression
ELException
public Expression bindFunctions(FunctionMapper functions) throws ELException
Expression
FunctionInvocation
s replaced by
BoundFunctionInvocation
s.bindFunctions
in class Expression
functions
- the functions to use in this transformationFunctionInvocation
s replaced by
BoundFunctionInvocation
s.ELException
- if any of the functions in this Expression
are
not present in functions
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.