Class SessionScriptFunctionHelper
java.lang.Object
com.inductiveautomation.perspective.gateway.script.ScriptFunctionHelper
com.inductiveautomation.perspective.gateway.script.SessionScriptFunctionHelper
- Direct Known Subclasses:
ExtensionFunctionImpl
,PropertyChangeScript
,ScriptAction
,SessionScriptRunner
-
Field Summary
Fields inherited from class com.inductiveautomation.perspective.gateway.script.ScriptFunctionHelper
signature
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SessionScriptFunctionHelper
(String signature, String userCode) -
Method Summary
Modifier and TypeMethodDescriptionprotected Optional<org.python.core.PyObject>
execute
(ScriptFunction func, org.python.core.PyObject[] arguments, String[] keywords) protected abstract PerspectiveElement
protected String
Describe the location/context of this script.protected LoggerEx
getLog()
protected ScriptManager
protected com.google.common.collect.ImmutableCollection<SecurityLevelConfig>
protected void
Methods inherited from class com.inductiveautomation.perspective.gateway.script.ScriptFunctionHelper
getTagReferencePath, invoke, invoke, onScriptLibraryChange, py2qualified
-
Constructor Details
-
SessionScriptFunctionHelper
- Parameters:
signature
- The signature, which is the method name and arguments like "runMe(arg1, arg2)"userCode
- The user's portion of the runnable code
-
-
Method Details
-
getComponent
-
getSecurityLevels
- Specified by:
getSecurityLevels
in classScriptFunctionHelper
-
getLog
- Specified by:
getLog
in classScriptFunctionHelper
-
getScriptManager
- Specified by:
getScriptManager
in classScriptFunctionHelper
-
getDescription
Description copied from class:ScriptFunctionHelper
Describe the location/context of this script. Used for error messages- Specified by:
getDescription
in classScriptFunctionHelper
-
logWarn
- Overrides:
logWarn
in classScriptFunctionHelper
-
execute
protected Optional<org.python.core.PyObject> execute(ScriptFunction func, org.python.core.PyObject[] arguments, String[] keywords) - Specified by:
execute
in classScriptFunctionHelper
-