public static class ExpressionFactory.ArrayFunction extends Object implements Expression
ExpressionFactory.ParameterFunction.
If any of the arguments evaluate to null, the result will also be null.| Modifier and Type | Field and Description |
|---|---|
private List<Expression> |
args |
private Class<?> |
arrayComponentType |
private Class<?>[] |
expectedParameterTypes |
private Method |
m |
private boolean |
nullable |
| Constructor and Description |
|---|
ArrayFunction(Method m,
List<Expression> args)
Constructs a new
ArrayFunction. |
| Modifier and Type | Method and Description |
|---|---|
Object |
evaluate(Environment env)
Evaluate this expression.
|
String |
toString() |
private final boolean nullable
private final List<Expression> args
private final Class<?>[] expectedParameterTypes
private final Class<?> arrayComponentType
public ArrayFunction(Method m, List<Expression> args)
ArrayFunction.m - methodargs - argumentspublic Object evaluate(Environment env)
Expressionevaluate in interface Expressionenv - The environmentList, String or any
primitive type or wrapper classes of a primitive type.