Class ModelASTWhenExpression
- java.lang.Object
-
- org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTElement
-
- org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep
-
- org.jenkinsci.plugins.pipeline.modeldefinition.ast.AbstractModelASTCodeBlock
-
- org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTWhenExpression
-
- All Implemented Interfaces:
ModelASTMarkerInterface,ModelASTWhenContent
public class ModelASTWhenExpression extends AbstractModelASTCodeBlock implements ModelASTWhenContent
Code expressionModelASTStagewill be executed or not.
-
-
Constructor Summary
Constructors Constructor Description ModelASTWhenExpression(Object sourceLocation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate(ModelValidator validator)Called to do whatever validation is necessary for this element.-
Methods inherited from class org.jenkinsci.plugins.pipeline.modeldefinition.ast.AbstractModelASTCodeBlock
codeBlockAsString, equals, getSingleValue, isLiteralSingleArg, toGroovy, toString
-
Methods inherited from class org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep
blockedStepsBase, getArgs, getBlockedSteps, getName, hashCode, removeSourceLocation, setArgs, setName, toJSON
-
Methods inherited from class org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTElement
getSourceLocation, nullIfEmpty, removeSourceLocationsFrom, removeSourceLocationsFrom, removeSourceLocationsFrom, removeSourceLocationsFrom, setSourceLocation, toGroovy, toGroovy, toGroovyArgList, toGroovyArgList, toGroovyBlock, toGroovyBlock, toGroovyBlock, toGroovyCheckEmpty, toJSON, toJSONArray, toJSONArray, toJSONCheckEmpty, toJSONObject, validate, validate, validate
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTMarkerInterface
removeSourceLocation, toGroovy, toJSON
-
Methods inherited from interface org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTWhenContent
getName
-
-
-
-
Constructor Detail
-
ModelASTWhenExpression
public ModelASTWhenExpression(Object sourceLocation)
-
-
Method Detail
-
validate
public void validate(@NonNull ModelValidator validator)Description copied from class:ModelASTElementCalled to do whatever validation is necessary for this element. Overridden in most cases.- Specified by:
validatein interfaceModelASTMarkerInterface- Overrides:
validatein classModelASTStep- Parameters:
validator- AModelValidatorto use for more complicated validation.
-
-