Class StepRuntimeTransformerContributor

java.lang.Object
org.jenkinsci.plugins.pipeline.modeldefinition.parser.StepRuntimeTransformerContributor
All Implemented Interfaces:
ExtensionPoint

public abstract class StepRuntimeTransformerContributor extends Object implements ExtensionPoint
  • Nested Class Summary

    Nested classes/interfaces inherited from interface hudson.ExtensionPoint

    ExtensionPoint.LegacyInstancesAreScopedToHudson
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    all()
    final org.codehaus.groovy.ast.stmt.BlockStatement
    handleBranch(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBranch branch)
    Construct the new BlockStatement for the given branch.
    final org.codehaus.groovy.ast.expr.ClosureExpression
    handleBuildCondition(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildCondition condition, org.codehaus.groovy.ast.expr.ClosureExpression body)
    Construct the new ClosureExpression for the given build condition.
    final org.codehaus.groovy.ast.expr.ClosureExpression
    handleStage(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStage stage, org.codehaus.groovy.ast.expr.ClosureExpression body)
    Construct the new ClosureExpression for the given stage.
    final org.codehaus.groovy.ast.expr.MethodCallExpression
    handleStep(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep step, org.codehaus.groovy.ast.expr.MethodCallExpression methodCall)
    Call transformStep(ModelASTStep, MethodCallExpression) if appropriate, after handling any nested steps as well.
    static org.codehaus.groovy.ast.expr.ClosureExpression
    transformBuildCondition(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildCondition condition, org.codehaus.groovy.ast.expr.ClosureExpression body)
    Apply step transformation to the given build condition for all StepRuntimeTransformerContributors.
    static org.codehaus.groovy.ast.expr.ClosureExpression
    transformStage(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStage stage, org.codehaus.groovy.ast.expr.ClosureExpression body)
    Apply step transformation to the given stage for all StepRuntimeTransformerContributors.
    abstract org.codehaus.groovy.ast.expr.MethodCallExpression
    transformStep(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep step, org.codehaus.groovy.ast.expr.MethodCallExpression methodCall)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StepRuntimeTransformerContributor

      public StepRuntimeTransformerContributor()
  • Method Details

    • handleStage

      @NonNull public final org.codehaus.groovy.ast.expr.ClosureExpression handleStage(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStage stage, @NonNull org.codehaus.groovy.ast.expr.ClosureExpression body)
      Construct the new ClosureExpression for the given stage.
    • handleBuildCondition

      @NonNull public final org.codehaus.groovy.ast.expr.ClosureExpression handleBuildCondition(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildCondition condition, @NonNull org.codehaus.groovy.ast.expr.ClosureExpression body)
      Construct the new ClosureExpression for the given build condition.
    • handleBranch

      @NonNull public final org.codehaus.groovy.ast.stmt.BlockStatement handleBranch(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBranch branch)
      Construct the new BlockStatement for the given branch.
    • handleStep

      @NonNull public final org.codehaus.groovy.ast.expr.MethodCallExpression handleStep(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep step, @NonNull org.codehaus.groovy.ast.expr.MethodCallExpression methodCall)
      Call transformStep(ModelASTStep, MethodCallExpression) if appropriate, after handling any nested steps as well.
    • transformStep

      @NonNull public abstract org.codehaus.groovy.ast.expr.MethodCallExpression transformStep(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep step, @NonNull org.codehaus.groovy.ast.expr.MethodCallExpression methodCall)
    • all

      Returns:
      a list of all StepRuntimeTransformerContributors registered.
    • transformStage

      @NonNull public static org.codehaus.groovy.ast.expr.ClosureExpression transformStage(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStage stage, @NonNull org.codehaus.groovy.ast.expr.ClosureExpression body)
      Apply step transformation to the given stage for all StepRuntimeTransformerContributors.
    • transformBuildCondition

      @NonNull public static org.codehaus.groovy.ast.expr.ClosureExpression transformBuildCondition(@NonNull org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildCondition condition, @NonNull org.codehaus.groovy.ast.expr.ClosureExpression body)
      Apply step transformation to the given build condition for all StepRuntimeTransformerContributors.