Class RuntimeContainerBase

java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.lang.Script
org.jenkinsci.plugins.pipeline.modeldefinition.RuntimeContainerBase
All Implemented Interfaces:
groovy.lang.GroovyObject, Serializable

public class RuntimeContainerBase extends groovy.lang.Script implements 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 Details

    • RuntimeContainerBase

      protected RuntimeContainerBase(@NonNull org.jenkinsci.plugins.workflow.cps.CpsScript workflowScript)
  • Method Details

    • run

      public Object run()
      Specified by:
      run in class groovy.lang.Script
    • getBinding

      public groovy.lang.Binding getBinding()
      Overrides:
      getBinding in class groovy.lang.Script
    • setBinding

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

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

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

      public Object evaluate(String script) throws org.codehaus.groovy.control.CompilationFailedException
      Overrides:
      evaluate in class groovy.lang.Script
      Throws:
      org.codehaus.groovy.control.CompilationFailedException
    • evaluate

      public Object evaluate(File file) throws org.codehaus.groovy.control.CompilationFailedException, IOException
      Overrides:
      evaluate in class groovy.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 class groovy.lang.Script
      Throws:
      org.codehaus.groovy.control.CompilationFailedException
      IOException
    • sleep

      public Object sleep(long arg)
      See Also:
      • CpsScript.sleep(long)
    • println

      public void println(Object arg)
      Overrides:
      println in class groovy.lang.Script
    • println

      public void println()
      Overrides:
      println in class groovy.lang.Script
    • print

      public void print(Object arg)
      Overrides:
      print in class groovy.lang.Script
    • printf

      public void printf(String format, Object value)
      Overrides:
      printf in class groovy.lang.Script