Class CustomFunction
java.lang.Object
com.inductiveautomation.vision.api.client.components.model.CustomFunction
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbuildScriptHeader(String name, List<String> paramList) static voidclearCache(JComponent component) booleanget(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 booleanhasCustomFunctions(JComponent component) static booleanhasMethodName(JComponent component, String functionName) Returns true if the given component contains functionName in its Java class' method names.static Stringstatic StringparseParams(String script) Given an entire script, parse the params into a list of stringsparseParamsDirect(String parsedParams) static voidput(JComponent component, Map<String, String> functions) voidvoidvoid
-
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
-