Class AbstractFunctionFactory
java.lang.Object
com.inductiveautomation.ignition.common.expressions.AbstractFunctionFactory
- All Implemented Interfaces:
- FunctionFactory
- Direct Known Subclasses:
- BasicFunctionFactory,- ClientFunctionFactory,- DefaultFunctionFactory,- FSQLFunctionFactory,- PropertyBasedFunctionFactory,- TagFunctionFactory
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddFunction(String name, String category, Function f) protected voidaddFunction(String name, String category, Function f, boolean visible) Return a sequence of categories to organize functions.getFunction(String name) Retrieves the function with the given name.Returns a set of all function names.getFunctionsInCategory(String name) Returns a Set of function names for all of the functions in the given category.
- 
Field Details- 
parent
- 
functions
- 
categories
 
- 
- 
Constructor Details- 
AbstractFunctionFactory
 
- 
- 
Method Details- 
addFunction- Throws:
- IllegalArgumentException
 
- 
addFunctionprotected void addFunction(String name, String category, Function f, boolean visible) throws IllegalArgumentException - Throws:
- IllegalArgumentException
 
- 
getFunctionRetrieves the function with the given name. Returns a copy of that function, so that each FunctionExpression can have its own version of the function. NB - some functions may opt to not create a true copy, it depends on the serialization requirements of the function.- Specified by:
- getFunctionin interface- FunctionFactory
- Returns:
- The function, or null
 
- 
getCategoriesDescription copied from interface:FunctionFactoryReturn a sequence of categories to organize functions. Used to generate the popup menu in the designer. Will automatically organize into submenus based on forward-slash in path.- Specified by:
- getCategoriesin interface- FunctionFactory
 
- 
getFunctionsInCategoryReturns a Set of function names for all of the functions in the given category. If there are no functions in the given category, or the category doesn't exist, an empty set is returned.- Specified by:
- getFunctionsInCategoryin interface- FunctionFactory
 
- 
getFunctionNamesReturns a set of all function names.- Specified by:
- getFunctionNamesin interface- FunctionFactory
 
 
-