Package org.biouno.unochoice.model
Class GroovyScript
java.lang.Object
org.biouno.unochoice.model.AbstractScript
org.biouno.unochoice.model.GroovyScript
- All Implemented Interfaces:
Describable<AbstractScript>
,Serializable
,Script
A Groovy script.
- Since:
- 0.23
- Author:
- Bruno P. Kinoshita
- See Also:
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionGroovyScript
(String script, String fallbackScript) Deprecated.GroovyScript
(org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript script, org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript fallbackScript) -
Method Summary
Modifier and TypeMethodDescriptionboolean
eval()
Evaluates the script.Evaluates the script using the given parameters binding parameters.org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript
org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript
int
hashCode()
toString()
Methods inherited from class org.biouno.unochoice.model.AbstractScript
all, getDescriptor
-
Constructor Details
-
GroovyScript
Deprecated. -
GroovyScript
@DataBoundConstructor public GroovyScript(org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript script, org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript fallbackScript)
-
-
Method Details
-
getScript
public org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript getScript()- Returns:
- the script
-
getFallbackScript
public org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript getFallbackScript()- Returns:
- the fallbackScript
-
eval
Description copied from interface:Script
Evaluates the script.- Returns:
- output of the script
-
eval
Description copied from interface:Script
Evaluates the script using the given parameters binding parameters.- Parameters:
parameters
- binding parameters- Returns:
- output of the script
- Throws:
RuntimeException
-
toString
-
hashCode
public int hashCode() -
equals
-