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 TypeMethodDescriptionvoidaddFunction(String name, String category, Function f) Adds the given function to the expression system.voidaddFunction(String name, String category, Function f, boolean visible) Adds the given function, optionally making it invisible to the various configuration helpers.booleanReturns whether the specified function has already been defined.Methods inherited from class com.inductiveautomation.ignition.common.expressions.AbstractFunctionFactory
getCategories, getFunction, getFunctionNames, getFunctionsInCategoryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:ExpressionFunctionManagerReturns whether the specified function has already been defined.- Specified by:
isDefinedin interfaceExpressionFunctionManager
-
addFunction
Description copied from interface:ExpressionFunctionManagerAdds the given function to the expression system.- Specified by:
addFunctionin interfaceExpressionFunctionManager- Overrides:
addFunctionin 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:ExpressionFunctionManagerAdds 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:
addFunctionin interfaceExpressionFunctionManager- Overrides:
addFunctionin classAbstractFunctionFactory- Throws:
IllegalArgumentException
-