public final class ModelASTStage extends ModelASTElement
ModelASTBranch
s it may contain.ModelASTPipelineDef
Constructor and Description |
---|
ModelASTStage(Object sourceLocation) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ModelASTAgent |
getAgent() |
List<ModelASTBranch> |
getBranches() |
ModelASTEnvironment |
getEnvironment() |
Boolean |
getFailFast() |
String |
getName() |
ModelASTPostStage |
getPost() |
ModelASTTools |
getTools() |
ModelASTWhen |
getWhen() |
int |
hashCode() |
void |
removeSourceLocation()
Removes the source location value from this element.
|
void |
setAgent(ModelASTAgent agent) |
void |
setBranches(List<ModelASTBranch> branches) |
void |
setEnvironment(ModelASTEnvironment environment) |
void |
setFailFast(Boolean f) |
void |
setName(String name) |
void |
setPost(ModelASTPostStage post) |
void |
setTools(ModelASTTools tools) |
void |
setWhen(ModelASTWhen when) |
String |
toGroovy()
Translates this element and any children it may have into Pipeline Config-formatted Groovy, without any indentations.
|
net.sf.json.JSONObject |
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.
|
getSourceLocation, setSourceLocation
public ModelASTStage(Object sourceLocation)
public net.sf.json.JSONObject toJSON()
ModelASTElement
toJSON
in class ModelASTElement
JSONObject
or JSONArray
but for some leaf nodes, may be a String
or
other simple class.public void validate(ModelValidator validator)
ModelASTElement
validate
in class ModelASTElement
validator
- A ModelValidator
to use for more complicated validation.public String toGroovy()
ModelASTElement
toGroovy
in class ModelASTElement
String
of Groovy code for this element and its children.public void removeSourceLocation()
ModelASTElement
removeSourceLocation
in class ModelASTElement
public String getName()
public void setName(String name)
public ModelASTAgent getAgent()
public void setAgent(ModelASTAgent agent)
public List<ModelASTBranch> getBranches()
public void setBranches(List<ModelASTBranch> branches)
public ModelASTPostStage getPost()
public void setPost(ModelASTPostStage post)
public ModelASTWhen getWhen()
public void setWhen(ModelASTWhen when)
public ModelASTTools getTools()
public void setTools(ModelASTTools tools)
public ModelASTEnvironment getEnvironment()
public void setEnvironment(ModelASTEnvironment environment)
public Boolean getFailFast()
public void setFailFast(Boolean f)
public String toString()
ModelASTElement
toString
in class ModelASTElement
public boolean equals(Object o)
ModelASTElement
equals
in class ModelASTElement
public int hashCode()
ModelASTElement
hashCode
in class ModelASTElement
Copyright © 2016–2017. All rights reserved.