Interface ExpressionFunctionManager
- All Superinterfaces:
FunctionFactory
- All Known Implementing Classes:
BasicFunctionFactory
,ClientFunctionFactory.DynamicDispatchCreatorManager
This interface is used in conjunction with the
FunctionFactory
, but provides the functions to add new
expressions.-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFunction
(String name, String category, Function f) Adds the given function to the expression system.void
addFunction
(String name, String category, Function f, boolean visible) Adds the given function, optionally making it invisible to the various configuration helpers.boolean
Returns whether the specified function has already been defined.Methods inherited from interface com.inductiveautomation.ignition.common.expressions.FunctionFactory
getCategories, getFunction, getFunctionNames, getFunctionsInCategory
-
Method Details
-
addFunction
Adds the given function to the expression system.- Throws:
IllegalArgumentException
- if the provided function name already exists.
-
addFunction
void addFunction(String name, String category, Function f, boolean visible) throws IllegalArgumentException Adds the given function, optionally making it invisible to the various configuration helpers. This is useful for supporting backwards compatibility of "legacy" expression functions.- Throws:
IllegalArgumentException
-
isDefined
Returns whether the specified function has already been defined.
-