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 StepRuntimeTransformerContributor()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ExtensionList<StepRuntimeTransformerContributor>
all()
Get allStepRuntimeTransformerContributor
s.org.codehaus.groovy.ast.stmt.BlockStatement
handleBranch(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBranch branch)
Construct the newBlockStatement
for the given branch.org.codehaus.groovy.ast.expr.ClosureExpression
handleBuildCondition(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBuildCondition condition, org.codehaus.groovy.ast.expr.ClosureExpression body)
Construct the newClosureExpression
for the given build condition.org.codehaus.groovy.ast.expr.ClosureExpression
handleStage(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStage stage, org.codehaus.groovy.ast.expr.ClosureExpression body)
Construct the newClosureExpression
for the given stage.org.codehaus.groovy.ast.expr.MethodCallExpression
handleStep(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.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 allStepRuntimeTransformerContributor
s.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 allStepRuntimeTransformerContributor
s.abstract org.codehaus.groovy.ast.expr.MethodCallExpression
transformStep(org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep step, org.codehaus.groovy.ast.expr.MethodCallExpression methodCall)
-
-
-
Method Detail
-
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 newClosureExpression
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 newClosureExpression
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 newBlockStatement
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)
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
public static ExtensionList<StepRuntimeTransformerContributor> all()
Get allStepRuntimeTransformerContributor
s.- Returns:
- a list of all
StepRuntimeTransformerContributor
s 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 allStepRuntimeTransformerContributor
s.
-
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 allStepRuntimeTransformerContributor
s.
-
-