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 Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetProperty
(String property) invokeMethod
(String name, Object args) void
setBinding
(groovy.lang.Binding binding) void
setDelegate
(Object delegate) void
setProperty
(String property, Object newValue) Methods inherited from class groovy.lang.Script
evaluate, evaluate, getBinding, print, printf, printf, println, println, run, run
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, setMetaClass
-
Constructor Details
-
ClosureScript
public ClosureScript() -
ClosureScript
public ClosureScript(groovy.lang.Binding binding)
-
-
Method Details
-
setDelegate
-
setBinding
public void setBinding(groovy.lang.Binding binding) - Overrides:
setBinding
in classgroovy.lang.Script
-
getProperty
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
getProperty
in classgroovy.lang.Script
-
setProperty
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
setProperty
in classgroovy.lang.Script
-
invokeMethod
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
- Overrides:
invokeMethod
in classgroovy.lang.Script
-