public abstract class Expression.Function extends Object
| Constructor | Description |
|---|---|
Function(String name,
int numParams) |
Creates a new function with given name and parameter count.
|
| Modifier and Type | Method | Description |
|---|---|---|
abstract BigDecimal |
eval(List<BigDecimal> parameters) |
Implementation for this function.
|
BigDecimal |
eval(Map<String,Object> variables,
List<Object> parameters) |
|
String |
getName() |
|
int |
getNumParams() |
|
String |
toString() |
public Function(String name, int numParams)
name - The name of the function.numParams - The number of parameters for this function.public String getName()
public int getNumParams()
public abstract BigDecimal eval(List<BigDecimal> parameters)
parameters - Parameters will be passed by the expression evaluator as a
List of BigDecimal values.BigDecimal value as a
computing result.Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.