Class ClosureScript

java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.lang.Script
org.jenkinsci.test.acceptance.utils.groovy.ClosureScript
All Implemented Interfaces:
groovy.lang.GroovyObject

public abstract class ClosureScript extends groovy.lang.Script
Script that delegates access like Closure does.
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • ClosureScript

      public ClosureScript()
    • ClosureScript

      public ClosureScript(groovy.lang.Binding binding)
  • Method Details

    • setDelegate

      public void setDelegate(Object delegate)
    • setBinding

      public void setBinding(groovy.lang.Binding binding)
      Overrides:
      setBinding in class groovy.lang.Script
    • getProperty

      public Object getProperty(String property)
      Specified by:
      getProperty in interface groovy.lang.GroovyObject
      Overrides:
      getProperty in class groovy.lang.Script
    • setProperty

      public void setProperty(String property, Object newValue)
      Specified by:
      setProperty in interface groovy.lang.GroovyObject
      Overrides:
      setProperty in class groovy.lang.Script
    • invokeMethod

      public Object invokeMethod(String name, Object args)
      Specified by:
      invokeMethod in interface groovy.lang.GroovyObject
      Overrides:
      invokeMethod in class groovy.lang.Script