public class FormulaRegistry extends Object
Constructor and Description |
---|
FormulaRegistry() |
Modifier and Type | Method and Description |
---|---|
Collection<FormulaFunction> |
findFunctions(String functionName,
Integer nArguments)
Finds the registered function with the given name and that can
accept the given number of arguments.
|
FormulaFunctionSet |
findFunctionSet(String name)
Returns the registered function set with the given name.
|
Object |
findNamedConstant(String constantName) |
static FormulaRegistry |
getDefault()
Returns the default formula registry.
|
Set<String> |
listFunctionSets()
Returns the names of all the registered function sets.
|
void |
registerFormulaFunctionSet(FormulaFunctionSet functionSet)
Registers a formula set.
|
public static FormulaRegistry getDefault()
public void registerFormulaFunctionSet(FormulaFunctionSet functionSet)
functionSet
- a formula setpublic Set<String> listFunctionSets()
public FormulaFunctionSet findFunctionSet(String name)
name
- the function set namepublic Collection<FormulaFunction> findFunctions(String functionName, Integer nArguments)
functionName
- the name of the functionnArguments
- the number of the argumentsCopyright © 2010–2015. All rights reserved.