Class GroovyScript

java.lang.Object
org.biouno.unochoice.model.AbstractScript
org.biouno.unochoice.model.GroovyScript
All Implemented Interfaces:
Describable<AbstractScript>, Serializable, Script

public class GroovyScript extends AbstractScript
A Groovy script.
Since:
0.23
Author:
Bruno P. Kinoshita
See Also:
  • Constructor Details

    • GroovyScript

      @Deprecated public GroovyScript(String script, String fallbackScript)
      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

      public Object eval()
      Description copied from interface: Script
      Evaluates the script.
      Returns:
      output of the script
    • eval

      public Object eval(Map<String,String> parameters) throws RuntimeException
      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

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object