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 extendsAbstractFunctionFactoryin order to implement theExpressionFunctionManagerinterface, making it mutable.
-
-
Field Summary
-
Fields inherited from class com.inductiveautomation.ignition.common.expressions.AbstractFunctionFactory
categories, functions, parent
-
-
Constructor Summary
Constructors Constructor Description BasicFunctionFactory()BasicFunctionFactory(FunctionFactory parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFunction(java.lang.String name, java.lang.String category, Function f)Adds the given function to the expression system.voidaddFunction(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.booleanisDefined(java.lang.String functionName)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 Detail
-
BasicFunctionFactory
public BasicFunctionFactory()
-
BasicFunctionFactory
public BasicFunctionFactory(FunctionFactory parent)
-
-
Method Detail
-
isDefined
public boolean isDefined(java.lang.String functionName)
Description copied from interface:ExpressionFunctionManagerReturns whether the specified function has already been defined.- Specified by:
isDefinedin interfaceExpressionFunctionManager
-
addFunction
public void addFunction(java.lang.String name, java.lang.String category, Function f) throws java.lang.IllegalArgumentExceptionDescription copied from interface:ExpressionFunctionManagerAdds the given function to the expression system.- Specified by:
addFunctionin interfaceExpressionFunctionManager- Overrides:
addFunctionin classAbstractFunctionFactory- Throws:
java.lang.IllegalArgumentException- if the provided function name already exists.
-
addFunction
public void addFunction(java.lang.String name, java.lang.String category, Function f, boolean visible) throws java.lang.IllegalArgumentExceptionDescription 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:
java.lang.IllegalArgumentException
-
-