public abstract class ModelASTStageBase extends ModelASTElement
ModelASTBranchs it may contain.ModelASTPipelineDef| Modifier | Constructor and Description |
|---|---|
protected |
ModelASTStageBase(Object sourceLocation) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
ModelASTAgent |
getAgent() |
ModelASTEnvironment |
getEnvironment() |
ModelASTStageInput |
getInput() |
ModelASTOptions |
getOptions() |
ModelASTPostStage |
getPost() |
ModelASTTools |
getTools() |
ModelASTWhen |
getWhen() |
int |
hashCode() |
void |
removeSourceLocation()
Removes the source location value from this element.
|
void |
setAgent(ModelASTAgent agent) |
void |
setEnvironment(ModelASTEnvironment environment) |
void |
setInput(ModelASTStageInput input) |
void |
setOptions(ModelASTOptions options) |
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, nullIfEmpty, removeSourceLocationsFrom, removeSourceLocationsFrom, removeSourceLocationsFrom, removeSourceLocationsFrom, setSourceLocation, toGroovy, toGroovy, toGroovyArgList, toGroovyArgList, toGroovyBlock, toGroovyBlock, toGroovyBlock, toGroovyCheckEmpty, toJSON, toJSONArray, toJSONArray, toJSONCheckEmpty, toJSONObject, validate, validate, validateprotected ModelASTStageBase(Object sourceLocation)
@NonNull public net.sf.json.JSONObject toJSON()
ModelASTElementtoJSON in interface ModelASTMarkerInterfacetoJSON 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 interface ModelASTMarkerInterfacevalidate in class ModelASTElementvalidator - A ModelValidator to use for more complicated validation.@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 ModelASTAgent getAgent()
public void setAgent(ModelASTAgent agent)
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 ModelASTOptions getOptions()
public void setOptions(ModelASTOptions options)
public ModelASTStageInput getInput()
public void setInput(ModelASTStageInput input)
public String toString()
ModelASTElementtoString in class ModelASTElementpublic boolean equals(Object o)
ModelASTElementequals in class ModelASTElementpublic int hashCode()
ModelASTElementhashCode in class ModelASTElementCopyright © 2016–2021. All rights reserved.