public class ModelASTStages extends ModelASTElement
Stages to be executed in the build. Corresponds to Stages.| Constructor and Description |
|---|
ModelASTStages(Object sourceLocation) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
List<ModelASTStage> |
getStages() |
UUID |
getUuid() |
int |
hashCode() |
void |
removeSourceLocation()
Removes the source location value from this element.
|
void |
setStages(List<ModelASTStage> stages) |
String |
toGroovy()
Translates this element and any children it may have into Pipeline Config-formatted Groovy, without any indentations.
|
net.sf.json.JSONArray |
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.
|
void |
validate(ModelValidator validator,
boolean isWithinParallel) |
getSourceLocation, setSourceLocationpublic ModelASTStages(Object sourceLocation)
public net.sf.json.JSONArray toJSON()
ModelASTElementtoJSON in class ModelASTElementJSONObject or JSONArray but for some leaf nodes, may be a String or
other simple class.public void validate(@Nonnull ModelValidator validator)
ModelASTElementvalidate in class ModelASTElementvalidator - A ModelValidator to use for more complicated validation.public void validate(ModelValidator validator, boolean isWithinParallel)
public String toGroovy()
ModelASTElementtoGroovy in class ModelASTElementString of Groovy code for this element and its children.public void removeSourceLocation()
ModelASTElementremoveSourceLocation in class ModelASTElementpublic UUID getUuid()
public List<ModelASTStage> getStages()
public void setStages(List<ModelASTStage> stages)
public String toString()
ModelASTElementtoString in class ModelASTElementpublic boolean equals(Object o)
ModelASTElementequals in class ModelASTElementpublic int hashCode()
ModelASTElementhashCode in class ModelASTElementCopyright © 2016–2019. All rights reserved.