Class ScriptFunctionHelper
java.lang.Object
com.inductiveautomation.perspective.gateway.script.ScriptFunctionHelper
- Direct Known Subclasses:
GatewayScriptFunctionHelper, SessionScriptFunctionHelper
Helper to consolidate the logic of an extension-function style script that must be compiled the
first time before it runs.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Optional<org.python.core.PyObject> execute(ScriptFunction func, org.python.core.PyObject[] arguments, String[] keywords) protected abstract StringDescribe the location/context of this script.protected abstract LoggerExgetLog()protected abstract ScriptManagerprotected abstract com.google.common.collect.ImmutableCollection<SecurityLevelConfig> protected abstract PerspectiveTagReferenceLocationOptional<org.python.core.PyObject> invoke(org.python.core.PyObject... arguments) Optional<org.python.core.PyObject> protected voidvoidstatic QualifiedValuepy2qualified(org.python.core.PyObject object)
-
Field Details
-
signature
-
-
Constructor Details
-
ScriptFunctionHelper
-
-
Method Details
-
onScriptLibraryChange
-
invoke
- Returns:
- the return value, if the method was invoked successfully, or empty if a problem was found.
-
invoke
-
logWarn
-
py2qualified
-
getLog
-
getSecurityLevels
protected abstract com.google.common.collect.ImmutableCollection<SecurityLevelConfig> getSecurityLevels() -
getScriptManager
-
getDescription
Describe the location/context of this script. Used for error messages -
getTagReferencePath
-
execute
protected abstract Optional<org.python.core.PyObject> execute(ScriptFunction func, org.python.core.PyObject[] arguments, String[] keywords)
-