public class BasicFunctionFactory extends AbstractFunctionFactory implements ExpressionFunctionManager
AbstractFunctionFactory
in order to implement the
ExpressionFunctionManager
interface, making it mutable.categories, functions, parent
Constructor and Description |
---|
BasicFunctionFactory() |
BasicFunctionFactory(FunctionFactory parent) |
Modifier and Type | Method and Description |
---|---|
void |
addFunction(java.lang.String name,
java.lang.String category,
Function f)
Adds the given function to the expression system.
|
void |
addFunction(java.lang.String name,
java.lang.String category,
Function f,
boolean visible)
Adds the given function, optionally making it invisible to the various configuration helpers.
|
boolean |
isDefined(java.lang.String functionName)
Returns whether the specified function has already been defined.
|
getCategories, getFunction, getFunctionNames, getFunctionsInCategory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCategories, getFunction, getFunctionNames, getFunctionsInCategory
public BasicFunctionFactory()
public BasicFunctionFactory(FunctionFactory parent)
public boolean isDefined(java.lang.String functionName)
ExpressionFunctionManager
isDefined
in interface ExpressionFunctionManager
public void addFunction(java.lang.String name, java.lang.String category, Function f) throws java.lang.IllegalArgumentException
ExpressionFunctionManager
addFunction
in interface ExpressionFunctionManager
addFunction
in class AbstractFunctionFactory
java.lang.IllegalArgumentException
- if the provided function name already exists.public void addFunction(java.lang.String name, java.lang.String category, Function f, boolean visible) throws java.lang.IllegalArgumentException
ExpressionFunctionManager
addFunction
in interface ExpressionFunctionManager
addFunction
in class AbstractFunctionFactory
java.lang.IllegalArgumentException