public class ModelASTWhen extends ModelASTElement
ModelASTStage will be executed or not.| Constructor and Description |
|---|
ModelASTWhen(Object sourceLocation) |
| Modifier and Type | Method and Description |
|---|---|
List<ModelASTStep> |
getConditions() |
void |
removeSourceLocation()
Removes the source location value from this element.
|
void |
setConditions(List<ModelASTStep> 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, setSourceLocationpublic ModelASTWhen(Object sourceLocation)
public List<ModelASTStep> getConditions()
public void setConditions(List<ModelASTStep> conditions)
public Object toJSON()
ModelASTElementtoJSON in class ModelASTElementJSONObject or JSONArray but for some leaf nodes, may be a String or
other simple class.public String toGroovy()
ModelASTElementtoGroovy in class ModelASTElementString of Groovy code for this element and its children.public void removeSourceLocation()
ModelASTElementremoveSourceLocation in class ModelASTElementpublic String toString()
ModelASTElementtoString in class ModelASTElementpublic void validate(ModelValidator validator)
ModelASTElementvalidate in class ModelASTElementvalidator - A ModelValidator to use for more complicated validation.Copyright © 2016–2017. All rights reserved.