@ToString(includeSuper=true, includeSuperProperties=true) @EqualsAndHashCode(callSuper=true) public final class ModelASTNamedArgumentList extends ModelASTArgumentList
ModelASTKey
s and ModelASTValue
s.Constructor and Description |
---|
ModelASTNamedArgumentList(Object sourceLocation) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKeyName(String keyName)
Checks if a given key name is present.
|
boolean |
equals(Object o) |
Map<ModelASTKey,ModelASTValue> |
getArguments() |
int |
hashCode() |
ModelASTKey |
keyForName(String keyName) |
void |
removeSourceLocation()
Removes the source location value from this element.
|
void |
setArguments(Map<ModelASTKey,ModelASTValue> arguments) |
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.
|
ModelASTValue |
valueForName(String keyName) |
getSourceLocation, setSourceLocation
public ModelASTNamedArgumentList(Object sourceLocation)
public net.sf.json.JSONArray toJSON()
ModelASTElement
toJSON
in class ModelASTElement
JSONObject
or JSONArray
but for some leaf nodes, may be a String
or
other simple class.public boolean containsKeyName(@Nonnull String keyName)
keyName
- The name of a key to check for.ModelASTKey
with that name is present in the map.public ModelASTKey keyForName(@Nonnull String keyName)
public ModelASTValue valueForName(@Nonnull String keyName)
public void validate(ModelValidator validator)
ModelASTElement
validate
in class ModelASTElement
validator
- A ModelValidator
to use for more complicated validation.public String toGroovy()
ModelASTElement
toGroovy
in class ModelASTElement
String
of Groovy code for this element and its children.public void removeSourceLocation()
ModelASTElement
removeSourceLocation
in class ModelASTElement
public Map<ModelASTKey,ModelASTValue> getArguments()
public void setArguments(Map<ModelASTKey,ModelASTValue> arguments)
public String toString()
ModelASTElement
toString
in class ModelASTArgumentList
public boolean equals(Object o)
ModelASTElement
equals
in class ModelASTArgumentList
public int hashCode()
ModelASTElement
hashCode
in class ModelASTArgumentList
Copyright © 2016–2017. All rights reserved.