Class CustomFunction
java.lang.Object
com.inductiveautomation.vision.api.client.components.model.CustomFunction
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
buildScriptHeader
(String name, List<String> paramList) static void
clearCache
(JComponent component) boolean
get
(JComponent component) Returns this component's map of function name -> script source.getCache
(JComponent component) Returns a map of the compiled PyMethods associated with this component's custom functions.getName()
static boolean
hasCustomFunctions
(JComponent component) static boolean
hasMethodName
(JComponent component, String functionName) Returns true if the given component contains functionName in its Java class' method names.static String
static String
parseParams
(String script) Given an entire script, parse the params into a list of stringsparseParamsDirect
(String parsedParams) static void
put
(JComponent component, Map<String, String> functions) void
void
void
-
Field Details
-
CLIENT_KEY
- See Also:
-
CACHE_KEY
- See Also:
-
-
Constructor Details
-
CustomFunction
public CustomFunction() -
CustomFunction
-
-
Method Details
-
parseName
-
parseParams
Given an entire script, parse the params into a list of strings -
parseParamsDirect
-
parseBody
-
buildScriptHeader
-
getScript
-
setScript
-
getName
-
setName
-
getParams
-
setParams
-
get
Returns this component's map of function name -> script source.Note that this map is serialized on each component. See DefaultComponentDelegate
-
put
-
getCache
Returns a map of the compiled PyMethods associated with this component's custom functions. If a function hasn't been called yet, in may not be in this cache.See PyComponentWrapper#customFunctionToPyMethod
-
clearCache
-
equals
-
hasMethodName
Returns true if the given component contains functionName in its Java class' method names. -
hasCustomFunctions
-