Class BasicFunctionFactory
java.lang.Object
com.inductiveautomation.ignition.common.expressions.AbstractFunctionFactory
com.inductiveautomation.ignition.common.expressions.BasicFunctionFactory
- All Implemented Interfaces:
ExpressionFunctionManager
,FunctionFactory
public class BasicFunctionFactory
extends AbstractFunctionFactory
implements ExpressionFunctionManager
This basic function factory extends
AbstractFunctionFactory
in order to implement the
ExpressionFunctionManager
interface, making it mutable.-
Field Summary
Fields inherited from class com.inductiveautomation.ignition.common.expressions.AbstractFunctionFactory
categories, functions, parent
-
Constructor Summary
Constructors -
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 class com.inductiveautomation.ignition.common.expressions.AbstractFunctionFactory
getCategories, getFunction, getFunctionNames, getFunctionsInCategory
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.inductiveautomation.ignition.common.expressions.FunctionFactory
getCategories, getFunction, getFunctionNames, getFunctionsInCategory
-
Constructor Details
-
BasicFunctionFactory
public BasicFunctionFactory() -
BasicFunctionFactory
-
-
Method Details
-
isDefined
Description copied from interface:ExpressionFunctionManager
Returns whether the specified function has already been defined.- Specified by:
isDefined
in interfaceExpressionFunctionManager
-
addFunction
Description copied from interface:ExpressionFunctionManager
Adds the given function to the expression system.- Specified by:
addFunction
in interfaceExpressionFunctionManager
- Overrides:
addFunction
in classAbstractFunctionFactory
- Throws:
IllegalArgumentException
- if the provided function name already exists.
-
addFunction
public void addFunction(String name, String category, Function f, boolean visible) throws IllegalArgumentException Description copied from interface:ExpressionFunctionManager
Adds the given function, optionally making it invisible to the various configuration helpers. This is useful for supporting backwards compatibility of "legacy" expression functions.- Specified by:
addFunction
in interfaceExpressionFunctionManager
- Overrides:
addFunction
in classAbstractFunctionFactory
- Throws:
IllegalArgumentException
-