@ToString(includeSuper=true,
includeSuperProperties=true)
@EqualsAndHashCode(callSuper=true)
public final class ModelASTNamedArgumentList
extends ModelASTArgumentList
ModelASTKeys and ModelASTValues.| 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, setSourceLocationpublic ModelASTNamedArgumentList(Object sourceLocation)
public net.sf.json.JSONArray toJSON()
ModelASTElementtoJSON in class ModelASTElementJSONObject 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)
ModelASTElementvalidate in class ModelASTElementvalidator - A ModelValidator to use for more complicated validation.public String toGroovy()
ModelASTElementtoGroovy in class ModelASTElementString of Groovy code for this element and its children.public void removeSourceLocation()
ModelASTElementremoveSourceLocation in class ModelASTElementpublic Map<ModelASTKey,ModelASTValue> getArguments()
public void setArguments(Map<ModelASTKey,ModelASTValue> arguments)
public String toString()
ModelASTElementtoString in class ModelASTArgumentListpublic boolean equals(Object o)
ModelASTElementequals in class ModelASTArgumentListpublic int hashCode()
ModelASTElementhashCode in class ModelASTArgumentListCopyright © 2016–2017. All rights reserved.