public class ExpressionString extends Expression
Represents an expression String consisting of a mixture of Strings and Expressions.
Constructor and Description |
---|
ExpressionString(Object[] pElements)
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 the expression string by evaluating each element,
converting it to a String (using toString, or "" for null values)
and concatenating the results into a single String.
|
Object[] |
getElements() |
String |
getExpressionString()
Returns the expression in the expression language syntax
|
void |
setElements(Object[] pElements) |
public ExpressionString(Object[] pElements)
public Object[] getElements()
public void setElements(Object[] pElements)
public Object evaluate(VariableResolver pResolver, FunctionMapper functions) throws ELException
evaluate
in class Expression
ELException
public String getExpressionString()
getExpressionString
in class Expression
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.