public final class ModelASTNamedArgumentList extends ModelASTArgumentList
ModelASTKeys and ModelASTValues.| Constructor and Description |
|---|
ModelASTNamedArgumentList(Object sourceLocation) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,?> |
argListToMap() |
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, nullIfEmpty, removeSourceLocationsFrom, removeSourceLocationsFrom, removeSourceLocationsFrom, removeSourceLocationsFrom, setSourceLocation, toGroovy, toGroovy, toGroovyArgList, toGroovyArgList, toGroovyBlock, toGroovyBlock, toGroovyBlock, toGroovyCheckEmpty, toJSON, toJSONArray, toJSONArray, toJSONCheckEmpty, toJSONObject, validate, validate, validatepublic ModelASTNamedArgumentList(Object sourceLocation)
@NonNull public net.sf.json.JSONArray toJSON()
ModelASTElementtoJSON in interface ModelASTMarkerInterfacetoJSON 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(@NonNull
ModelValidator validator)
ModelASTElementvalidate in interface ModelASTMarkerInterfacevalidate in class ModelASTElementvalidator - A ModelValidator to use for more complicated validation.@NonNull public String toGroovy()
ModelASTElementtoGroovy in interface ModelASTMarkerInterfacetoGroovy in class ModelASTElementString of Groovy code for this element and its children.public void removeSourceLocation()
ModelASTElementremoveSourceLocation in interface ModelASTMarkerInterfaceremoveSourceLocation in class ModelASTElementpublic Map<ModelASTKey,ModelASTValue> getArguments()
public void setArguments(Map<ModelASTKey,ModelASTValue> arguments)
public Map<String,?> argListToMap()
argListToMap in class ModelASTArgumentListpublic String toString()
ModelASTElementtoString in class ModelASTArgumentListpublic boolean equals(Object o)
ModelASTElementequals in class ModelASTArgumentListpublic int hashCode()
ModelASTElementhashCode in class ModelASTElementCopyright © 2016–2021. All rights reserved.