public class ModelASTTreeStep extends ModelASTStep
Constructor and Description |
---|
ModelASTTreeStep(Object sourceLocation) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<ModelASTStep> |
getChildren() |
int |
hashCode() |
void |
removeSourceLocation()
Removes the source location value from this element.
|
void |
setChildren(List<ModelASTStep> children) |
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.
|
blockedStepsBase, getArgs, getBlockedSteps, getName, setArgs, setName
getSourceLocation, setSourceLocation
public ModelASTTreeStep(Object sourceLocation)
public net.sf.json.JSONObject toJSON()
ModelASTElement
toJSON
in class ModelASTStep
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 ModelASTStep
validator
- A ModelValidator
to use for more complicated validation.public String toGroovy()
ModelASTElement
toGroovy
in class ModelASTStep
String
of Groovy code for this element and its children.public void removeSourceLocation()
ModelASTElement
removeSourceLocation
in class ModelASTStep
public List<ModelASTStep> getChildren()
public void setChildren(List<ModelASTStep> children)
public String toString()
ModelASTElement
toString
in class ModelASTStep
public boolean equals(Object o)
ModelASTElement
equals
in class ModelASTStep
public int hashCode()
ModelASTElement
hashCode
in class ModelASTStep
Copyright © 2016–2017. All rights reserved.