Class CustomFunction
java.lang.Object
com.inductiveautomation.vision.api.client.components.model.CustomFunction
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
CustomFunctionpublic CustomFunction()
- 
CustomFunction
 
- 
- 
Method Details- 
parseName
- 
parseParamsGiven an entire script, parse the params into a list of strings
- 
parseParamsDirect
- 
parseBody
- 
buildScriptHeader
- 
getScript
- 
setScript
- 
getName
- 
setName
- 
getParams
- 
setParams
- 
getReturns this component's map of function name -> script source.Note that this map is serialized on each component. See DefaultComponentDelegate 
- 
put
- 
getCacheReturns 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
- 
hasMethodNameReturns true if the given component contains functionName in its Java class' method names.
- 
hasCustomFunctions
 
-