public final class ModelASTClosureMap extends ModelASTElement implements ModelASTMethodArg
| Constructor and Description |
|---|
ModelASTClosureMap(Object sourceLocation) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(String k) |
boolean |
equals(Object o) |
Map<ModelASTKey,ModelASTMethodArg> |
getVariables() |
int |
hashCode() |
void |
removeSourceLocation()
Removes the source location value from this element.
|
void |
setVariables(Map<ModelASTKey,ModelASTMethodArg> variables) |
String |
toGroovy()
Translates this element and any children it may have into Pipeline Config-formatted Groovy, without any indentations.
|
net.sf.json.JSONArray |
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, setSourceLocationpublic ModelASTClosureMap(Object sourceLocation)
public net.sf.json.JSONArray toJSON()
ModelASTElementtoJSON in interface ModelASTMethodArgtoJSON in class ModelASTElementJSONObject or JSONArray but for some leaf nodes, may be a String or
other simple class.public void validate(ModelValidator validator)
ModelASTElementvalidate in interface ModelASTMethodArgvalidate in class ModelASTElementvalidator - A ModelValidator to use for more complicated validation.public String toGroovy()
ModelASTElementtoGroovy in interface ModelASTMethodArgtoGroovy in class ModelASTElementString of Groovy code for this element and its children.public void removeSourceLocation()
ModelASTElementremoveSourceLocation in interface ModelASTMethodArgremoveSourceLocation in class ModelASTElementpublic Map<ModelASTKey,ModelASTMethodArg> getVariables()
public void setVariables(Map<ModelASTKey,ModelASTMethodArg> variables)
public boolean containsKey(String k)
public String toString()
ModelASTElementtoString in class ModelASTElementpublic boolean equals(Object o)
ModelASTElementequals in class ModelASTElementpublic int hashCode()
ModelASTElementhashCode in class ModelASTElementCopyright © 2016–2017. All rights reserved.