public static class ExpressionFactory.ArrayFunction extends java.lang.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 java.util.List<Expression> |
args |
private java.lang.Class<?> |
arrayComponentType |
private java.lang.Class<?>[] |
expectedParameterTypes |
private java.lang.reflect.Method |
m |
private boolean |
nullable |
Constructor and Description |
---|
ArrayFunction(java.lang.reflect.Method m,
java.util.List<Expression> args)
Constructs a new
ArrayFunction . |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
evaluate(Environment env)
Evaluate this expression.
|
java.lang.String |
toString() |
private final java.lang.reflect.Method m
private final boolean nullable
private final java.util.List<Expression> args
private final java.lang.Class<?>[] expectedParameterTypes
private final java.lang.Class<?> arrayComponentType
public ArrayFunction(java.lang.reflect.Method m, java.util.List<Expression> args)
ArrayFunction
.m
- methodargs
- argumentspublic java.lang.Object evaluate(Environment env)
Expression
evaluate
in interface Expression
env
- The environmentList
, String or any
primitive type or wrapper classes of a primitive type.public java.lang.String toString()
toString
in class java.lang.Object