public class ModelASTKey extends ModelASTElement
ModelASTEnvironment
, ModelASTNamedArgumentList
and elsewhere.Constructor and Description |
---|
ModelASTKey(Object sourceLocation) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getKey() |
int |
hashCode() |
void |
setKey(String key) |
String |
toGroovy()
Translates this element and any children it may have into Pipeline Config-formatted Groovy, without any indentations.
|
Object |
toJSON()
Translates this element and any children it may have into JSON conforming to the schema.
|
String |
toString() |
getSourceLocation, removeSourceLocation, setSourceLocation, validate
public ModelASTKey(Object sourceLocation)
public Object toJSON()
ModelASTElement
toJSON
in class ModelASTElement
JSONObject
or JSONArray
but for some leaf nodes, may be a String
or
other simple class.public String toGroovy()
ModelASTElement
toGroovy
in class ModelASTElement
String
of Groovy code for this element and its children.public String getKey()
public void setKey(String key)
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.