public final class ModelASTPipelineDef extends ModelASTElement
Root.| Constructor and Description |
|---|
ModelASTPipelineDef(Object sourceLocation) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
ModelASTAgent |
getAgent() |
ModelASTEnvironment |
getEnvironment() |
ModelASTLibraries |
getLibraries() |
ModelASTOptions |
getOptions() |
ModelASTBuildParameters |
getParameters() |
ModelASTPostBuild |
getPostBuild() |
ModelASTStages |
getStages() |
ModelASTTools |
getTools() |
ModelASTTriggers |
getTriggers() |
int |
hashCode() |
void |
removeSourceLocation()
Removes the source location value from this element.
|
void |
setAgent(ModelASTAgent agent) |
void |
setEnvironment(ModelASTEnvironment environment) |
void |
setLibraries(ModelASTLibraries libraries) |
void |
setOptions(ModelASTOptions options) |
void |
setParameters(ModelASTBuildParameters parameters) |
void |
setPostBuild(ModelASTPostBuild postBuild) |
void |
setStages(ModelASTStages stages) |
void |
setTools(ModelASTTools tools) |
void |
setTriggers(ModelASTTriggers triggers) |
String |
toGroovy()
Translates this element and any children it may have into Pipeline Config-formatted Groovy, without any indentations.
|
static String |
toIndentedGroovy(String orig) |
net.sf.json.JSONObject |
toJSON()
Translates this element and any children it may have into JSON conforming to the schema.
|
String |
toPrettyGroovy()
Helper method to pretty-print the generated Groovy from this and its children.
|
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, validatepublic ModelASTPipelineDef(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 String toPrettyGroovy()
public void removeSourceLocation()
ModelASTElementremoveSourceLocation in interface ModelASTMarkerInterfaceremoveSourceLocation in class ModelASTElementpublic ModelASTStages getStages()
public void setStages(ModelASTStages stages)
public ModelASTLibraries getLibraries()
public void setLibraries(ModelASTLibraries libraries)
public ModelASTPostBuild getPostBuild()
public void setPostBuild(ModelASTPostBuild postBuild)
public ModelASTEnvironment getEnvironment()
public void setEnvironment(ModelASTEnvironment environment)
public ModelASTAgent getAgent()
public void setAgent(ModelASTAgent agent)
public ModelASTTools getTools()
public void setTools(ModelASTTools tools)
public ModelASTOptions getOptions()
public void setOptions(ModelASTOptions options)
public ModelASTBuildParameters getParameters()
public void setParameters(ModelASTBuildParameters parameters)
public ModelASTTriggers getTriggers()
public void setTriggers(ModelASTTriggers triggers)
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.