public class ModelASTMethodCall extends ModelASTElement implements ModelASTMethodArg
ModelASTMethodArg
s.
This is used for things like job properties, triggers and parameter definitions, allowing parsing and validation of
the arguments in case they themselves are method calls.Constructor and Description |
---|
ModelASTMethodCall(Object sourceLocation) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<ModelASTMethodArg> |
getArgs() |
static Map<String,String> |
getBlockedSteps() |
String |
getName() |
int |
hashCode() |
void |
removeSourceLocation()
Removes the source location value from this element.
|
void |
setArgs(List<ModelASTMethodArg> args) |
void |
setName(String name) |
String |
toGroovy()
Translates this element and any children it may have into Pipeline Config-formatted Groovy, without any indentations.
|
net.sf.json.JSONObject |
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, setSourceLocation
public ModelASTMethodCall(Object sourceLocation)
public net.sf.json.JSONObject toJSON()
ModelASTElement
toJSON
in interface ModelASTMethodArg
toJSON
in class ModelASTElement
JSONObject
or JSONArray
but for some leaf nodes, may be a String
or
other simple class.public void validate(ModelValidator validator)
ModelASTElement
validate
in interface ModelASTMethodArg
validate
in class ModelASTElement
validator
- A ModelValidator
to use for more complicated validation.public String toGroovy()
ModelASTElement
toGroovy
in interface ModelASTMethodArg
toGroovy
in class ModelASTElement
String
of Groovy code for this element and its children.public void removeSourceLocation()
ModelASTElement
removeSourceLocation
in interface ModelASTMethodArg
removeSourceLocation
in class ModelASTElement
public String getName()
public void setName(String name)
public List<ModelASTMethodArg> getArgs()
public void setArgs(List<ModelASTMethodArg> args)
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.