public class ScriptCallSignature
extends java.lang.Object
SignatureInterface) and a filename for the script to execute. The inner signature is handled as usual.| Constructor and Description |
|---|
ScriptCallSignature(java.lang.String filename,
ScriptSystemInterface<?,?> scriptSystem)
Creates a new instance without initializing it.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
callToString(java.util.Vector<java.lang.String> args)
Creates a statement in the syntax of the script system to call the script.
|
ExecutionError |
create(java.lang.String signatureString)
Initializes the signature.
|
java.lang.String |
getFilename()
Returns the filename of the script file.
|
SignatureInterface |
getSignature()
Returns the inner signature.
|
void |
prepareScriptVariables(java.util.Vector<ExecutionReturn> args,
VariableSystem<java.lang.String> variableSystem)
Prepares a variable system for a call of the script.
|
public ScriptCallSignature(java.lang.String filename,
ScriptSystemInterface<?,?> scriptSystem)
filename - the filename of the script.scriptSystem - a script system to evaluate the default arguments.public ExecutionError create(java.lang.String signatureString)
signatureString - a string containing the signature. See the Graphana manual for syntax information.public SignatureInterface getSignature()
public void prepareScriptVariables(java.util.Vector<ExecutionReturn> args, VariableSystem<java.lang.String> variableSystem)
args - the arguments for the script call.variableSystem - the variable system in which to assign the respective variables.public java.lang.String callToString(java.util.Vector<java.lang.String> args)
args - the arguments as string representations.public java.lang.String getFilename()