Class RuntimeContainerBase
java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.lang.Script
org.jenkinsci.plugins.pipeline.modeldefinition.RuntimeContainerBase
- All Implemented Interfaces:
groovy.lang.GroovyObject
,Serializable
Base class for classes generated by
RuntimeASTTransformer.Wrapper
when code splitting transform is enabled.
This class is as close a possible to a transparent pass-through to CpsScript.
However, this class does not get the special whitelisting granted to CpsScript instances, so
care should be be taken regarding what code is added to these classes' methods.- Author:
- Liam Newman
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
RuntimeContainerBase
(org.jenkinsci.plugins.workflow.cps.CpsScript workflowScript) -
Method Summary
Modifier and TypeMethodDescriptiongroovy.lang.Binding
getProperty
(String propertyName) void
void
void
println()
void
run()
void
void
setBinding
(groovy.lang.Binding binding) void
setProperty
(String propertyName, Object newValue) sleep
(long arg) Methods inherited from class groovy.lang.Script
invokeMethod, printf
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, setMetaClass
-
Constructor Details
-
RuntimeContainerBase
protected RuntimeContainerBase(@NonNull org.jenkinsci.plugins.workflow.cps.CpsScript workflowScript)
-
-
Method Details
-
run
- Specified by:
run
in classgroovy.lang.Script
-
getBinding
public groovy.lang.Binding getBinding()- Overrides:
getBinding
in classgroovy.lang.Script
-
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
-
evaluate
- Overrides:
evaluate
in classgroovy.lang.Script
- Throws:
org.codehaus.groovy.control.CompilationFailedException
-
evaluate
public Object evaluate(File file) throws org.codehaus.groovy.control.CompilationFailedException, IOException - Overrides:
evaluate
in classgroovy.lang.Script
- Throws:
org.codehaus.groovy.control.CompilationFailedException
IOException
-
run
public void run(File file, String[] arguments) throws org.codehaus.groovy.control.CompilationFailedException, IOException - Overrides:
run
in classgroovy.lang.Script
- Throws:
org.codehaus.groovy.control.CompilationFailedException
IOException
-
sleep
- See Also:
-
CpsScript.sleep(long)
-
println
- Overrides:
println
in classgroovy.lang.Script
-
println
public void println()- Overrides:
println
in classgroovy.lang.Script
-
print
- Overrides:
print
in classgroovy.lang.Script
-
printf
- Overrides:
printf
in classgroovy.lang.Script
-