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, numParamsVaries
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getNumParams, isBooleanFunction, numParamsVaries
protected 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)
LazyFunction
lazyEval
in interface LazyFunction
lazyParams
- The accepted parameters.Copyright © 2020. All Rights Reserved.