Class ContextDelegateFunctionFactory
java.lang.Object
com.inductiveautomation.ignition.common.expressions.ContextDelegateFunctionFactory
- All Implemented Interfaces:
FunctionFactory
Many custom function factories get cached, but when delegating to the factory provided by the
context, that shouldn't happen. This class can be used as the parent of those other factories,
and will look up the context factory fresh each time.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FunctionFactoryf()Return a sequence of categories to organize functions.getFunction(String name) Look up the function with the given name.Returns a set of all the registered function names.getFunctionsInCategory(String name) Returns a set of function names that belong to the given category.
-
Constructor Details
-
ContextDelegateFunctionFactory
-
-
Method Details
-
f
-
getFunction
Description copied from interface:FunctionFactoryLook up the function with the given name. This function will be in a state that is ready to use in an expression, meaning that it may be a cloned copy for functions that keep state.- Specified by:
getFunctionin interfaceFunctionFactory- Parameters:
name- the name of the function to look up- Returns:
- the
Function, ornullif no function with the given name exists
-
getFunctionNames
Description copied from interface:FunctionFactoryReturns a set of all the registered function names. Used for syntax highlighting in the designer.- Specified by:
getFunctionNamesin interfaceFunctionFactory- Returns:
- a
Setof all registered function names
-
getCategories
Description 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 interfaceFunctionFactory- Returns:
- a
Setof function categories
-
getFunctionsInCategory
Description copied from interface:FunctionFactoryReturns a set of function names that belong to the given category.- Specified by:
getFunctionsInCategoryin interfaceFunctionFactory- Parameters:
name- the category name- Returns:
- a
Setof function names in the given category
-