public abstract class AbstractFunction extends AbstractLazyFunction implements Function
booleanFunction, name, numParams| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFunction(java.lang.String name,
int numParams)
Creates a new function with given name and parameter count.
|
protected |
AbstractFunction(java.lang.String name,
int numParams,
boolean booleanFunction)
Creates a new function with given name and parameter count.
|
| Modifier and Type | Method and Description |
|---|---|
Expression.LazyNumber |
lazyEval(java.util.List<Expression.LazyNumber> lazyParams)
Lazily evaluate this function.
|
getName, getNumParams, isBooleanFunction, numParamsVariesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getNumParams, isBooleanFunction, numParamsVariesprotected AbstractFunction(java.lang.String name,
int numParams)
name - The name of the function.numParams - The number of parameters for this function.
-1 denotes a variable number of parameters.protected AbstractFunction(java.lang.String name,
int numParams,
boolean booleanFunction)
name - The name of the function.numParams - The number of parameters for this function.
-1 denotes a variable number of parameters.booleanFunction - Whether this function is a boolean function.public Expression.LazyNumber lazyEval(java.util.List<Expression.LazyNumber> lazyParams)
LazyFunctionlazyEval in interface LazyFunctionlazyParams - The accepted parameters.