Package org.biouno.unochoice.model
Class ScriptlerScript
- java.lang.Object
-
- org.biouno.unochoice.model.AbstractScript
-
- org.biouno.unochoice.model.ScriptlerScript
-
- All Implemented Interfaces:
Describable<AbstractScript>
,Serializable
,Script
public class ScriptlerScript extends AbstractScript
A scriptler script.- Since:
- 0.1
- Author:
- Bruno P. Kinoshita
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScriptlerScript.DescriptorImpl
-
Constructor Summary
Constructors Constructor Description ScriptlerScript(String scriptlerScriptId, List<ScriptlerScriptParameter> parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
eval()
Evaluates the script.Object
eval(Map<String,String> parameters)
Evaluates the script using the given parameters binding parameters.Map<String,String>
getParameters()
String
getScriptlerScriptId()
GroovyScript
toGroovyScript()
Converts this scriptler script to a GroovyScript.-
Methods inherited from class org.biouno.unochoice.model.AbstractScript
all, getDescriptor
-
-
-
-
Constructor Detail
-
ScriptlerScript
@DataBoundConstructor public ScriptlerScript(String scriptlerScriptId, List<ScriptlerScriptParameter> parameters)
-
-
Method Detail
-
getScriptlerScriptId
public String getScriptlerScriptId()
- Returns:
- the scriptlerScriptId
-
eval
public Object eval()
Description copied from interface:Script
Evaluates the script.- Returns:
- output of the script
-
eval
public Object eval(Map<String,String> parameters)
Description copied from interface:Script
Evaluates the script using the given parameters binding parameters.- Parameters:
parameters
- binding parameters- Returns:
- output of the script
-
toGroovyScript
public GroovyScript toGroovyScript()
Converts this scriptler script to a GroovyScript.- Returns:
- a GroovyScript
-
-