Class StepRuntimeTransformerContributor
java.lang.Object
org.jenkinsci.plugins.pipeline.modeldefinition.parser.StepRuntimeTransformerContributor
- All Implemented Interfaces:
ExtensionPoint
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionall()Get allStepRuntimeTransformerContributors.final org.codehaus.groovy.ast.stmt.BlockStatementhandleBranch(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBranch branch) Construct the newBlockStatementfor the given branch.final org.codehaus.groovy.ast.expr.ClosureExpressionhandleBuildCondition(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildCondition condition, org.codehaus.groovy.ast.expr.ClosureExpression body) Construct the newClosureExpressionfor the given build condition.final org.codehaus.groovy.ast.expr.ClosureExpressionhandleStage(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStage stage, org.codehaus.groovy.ast.expr.ClosureExpression body) Construct the newClosureExpressionfor the given stage.final org.codehaus.groovy.ast.expr.MethodCallExpressionhandleStep(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep step, org.codehaus.groovy.ast.expr.MethodCallExpression methodCall) CalltransformStep(ModelASTStep, MethodCallExpression)if appropriate, after handling any nested steps as well.static org.codehaus.groovy.ast.expr.ClosureExpressiontransformBuildCondition(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildCondition condition, org.codehaus.groovy.ast.expr.ClosureExpression body) Apply step transformation to the given build condition for allStepRuntimeTransformerContributors.static org.codehaus.groovy.ast.expr.ClosureExpressiontransformStage(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStage stage, org.codehaus.groovy.ast.expr.ClosureExpression body) Apply step transformation to the given stage for allStepRuntimeTransformerContributors.abstract org.codehaus.groovy.ast.expr.MethodCallExpressiontransformStep(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep step, org.codehaus.groovy.ast.expr.MethodCallExpression methodCall)
-
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 newClosureExpressionfor 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 newClosureExpressionfor 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 newBlockStatementfor 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) CalltransformStep(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
Get allStepRuntimeTransformerContributors.- 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 allStepRuntimeTransformerContributors. -
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 allStepRuntimeTransformerContributors.
-