public class ModelASTWhen extends ModelASTElement
ModelASTStage will be executed or not.| Constructor and Description |
|---|
ModelASTWhen(Object sourceLocation) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getBeforeAgent() |
Boolean |
getBeforeInput() |
Boolean |
getBeforeOptions() |
List<ModelASTWhenContent> |
getConditions() |
void |
removeSourceLocation()
Removes the source location value from this element.
|
void |
setBeforeAgent(Boolean beforeAgent) |
void |
setBeforeInput(Boolean beforeInput) |
void |
setBeforeOptions(Boolean beforeOptions) |
void |
setConditions(List<ModelASTWhenContent> conditions) |
String |
toGroovy()
Translates this element and any children it may have into Pipeline Config-formatted Groovy, without any indentations.
|
Object |
toJSON()
Translates this element and any children it may have into JSON conforming to the schema.
|
String |
toString() |
void |
validate(ModelValidator validator)
Called to do whatever validation is necessary for this element.
|
equals, getSourceLocation, hashCode, nullIfEmpty, removeSourceLocationsFrom, removeSourceLocationsFrom, removeSourceLocationsFrom, removeSourceLocationsFrom, setSourceLocation, toGroovy, toGroovy, toGroovyArgList, toGroovyArgList, toGroovyBlock, toGroovyBlock, toGroovyBlock, toGroovyCheckEmpty, toJSON, toJSONArray, toJSONArray, toJSONCheckEmpty, toJSONObject, validate, validate, validatepublic ModelASTWhen(Object sourceLocation)
public List<ModelASTWhenContent> getConditions()
public void setConditions(List<ModelASTWhenContent> conditions)
public Boolean getBeforeAgent()
public void setBeforeAgent(Boolean beforeAgent)
public Boolean getBeforeInput()
public void setBeforeInput(Boolean beforeInput)
public Boolean getBeforeOptions()
public void setBeforeOptions(Boolean beforeOptions)
@NonNull public Object toJSON()
ModelASTElementtoJSON in interface ModelASTMarkerInterfacetoJSON in class ModelASTElementJSONObject or JSONArray but for some leaf nodes, may be a String or
other simple class.@NonNull public String toGroovy()
ModelASTElementtoGroovy in interface ModelASTMarkerInterfacetoGroovy in class ModelASTElementString of Groovy code for this element and its children.public void removeSourceLocation()
ModelASTElementremoveSourceLocation in interface ModelASTMarkerInterfaceremoveSourceLocation in class ModelASTElementpublic String toString()
ModelASTElementtoString in class ModelASTElementpublic void validate(@NonNull
ModelValidator validator)
ModelASTElementvalidate in interface ModelASTMarkerInterfacevalidate in class ModelASTElementvalidator - A ModelValidator to use for more complicated validation.Copyright © 2016–2021. All rights reserved.