public abstract class LazyFunction
extends java.lang.Object
Constructor and Description |
---|
LazyFunction(Expression exp,
java.lang.String name,
int numParams)
Creates a new function with given name and parameter count.
|
Modifier and Type | Method and Description |
---|---|
Expression |
getExpression() |
java.lang.String |
getName() |
int |
getNumParams() |
abstract LazyNumber |
lazyEval(java.util.List<LazyNumber> lazyParams)
Implementation for this function.
|
boolean |
numParamsVaries() |
public LazyFunction(Expression exp, java.lang.String name, int numParams)
name
- The name of the function.numParams
- The number of parameters for this function.public Expression getExpression()
public java.lang.String getName()
public int getNumParams()
public boolean numParamsVaries()
public abstract LazyNumber lazyEval(java.util.List<LazyNumber> lazyParams)
parameters
- Parameters will be passed by the expression evaluator as a
List
of BigDecimal
values.BigDecimal
value as a
computing result.