public static class ExpressionFactory.LengthFunction extends java.lang.Object implements Expression
Functions.count(java.util.List)
instead (see #10061).Modifier and Type | Field and Description |
---|---|
private Expression |
arg |
Constructor and Description |
---|
LengthFunction(Expression args)
Constructs a new
LengthFunction . |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
evaluate(Environment env)
Evaluate this expression.
|
private final Expression arg
public LengthFunction(Expression args)
LengthFunction
.args
- 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.