public interface LazyFunction
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Gets the name of this function.
The name is use to invoke this function in the expression. |
int |
getNumParams()
Gets the number of parameters this function accepts.
A value of -1 denotes that this function accepts a variable
number of parameters. |
boolean |
isBooleanFunction()
Gets whether this function evaluates to a boolean expression.
|
Expression.LazyNumber |
lazyEval(java.util.List<Expression.LazyNumber> lazyParams)
Lazily evaluate this function.
|
boolean |
numParamsVaries()
Gets whether the number of accepted parameters varies.
That means that the function does accept an undefined amount of parameters. |
java.lang.String getName()
int getNumParams()
-1
denotes that this function accepts a variable
number of parameters.boolean numParamsVaries()
true
if the number of accepted parameters varies.boolean isBooleanFunction()
true
if this function evaluates to a boolean
expression.Expression.LazyNumber lazyEval(java.util.List<Expression.LazyNumber> lazyParams)
lazyParams
- The accepted parameters.