public class FunctionInvocation extends Expression
Represents a function call.
Constructor and Description |
---|
FunctionInvocation(String functionName,
List argumentList)
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 looking up the name in the VariableResolver
|
List |
getArgumentList() |
String |
getExpressionString()
Returns the expression in the expression language syntax
|
String |
getFunctionName() |
protected Method |
resolveFunction(FunctionMapper functions)
Returns the
Method which is mapped to the function
name used by this FunctionInvocation . |
void |
setArgumentList(List l) |
void |
setFunctionName(String f) |
public FunctionInvocation(String functionName, List argumentList)
public String getFunctionName()
public void setFunctionName(String f)
public List getArgumentList()
public void setArgumentList(List l)
public String getExpressionString()
getExpressionString
in class Expression
public Object evaluate(VariableResolver pResolver, FunctionMapper functions) throws ELException
evaluate
in class Expression
ELException
protected Method resolveFunction(FunctionMapper functions) throws ELException
Method
which is mapped to the function
name used by this FunctionInvocation
.functions
- The function mappings in use for this evaluationMethod
to executeELException
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.