public class InvisibleGlobalWhenCondition extends ModelASTWhenCondition
ModelASTWhenCondition generated for a globally defined when condition.| Constructor and Description |
|---|
InvisibleGlobalWhenCondition()
Used to create invisible when conditions without base stage information, used for the "allOf" conditional
generated when a stage already has when conditions.
|
InvisibleGlobalWhenCondition(String stageName,
ModelASTStageBase stage)
Used to create invisible when conditions with a base stage for comparison and querying.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
ModelASTStageBase |
getStage() |
String |
getStageName() |
int |
hashCode() |
void |
removeSourceLocation()
Removes the source location value from this element.
|
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.
|
void |
validate(ModelValidator validator)
Called to do whatever validation is necessary for this element.
|
getArgs, getChildren, getName, setArgs, setChildren, setName, toStringgetSourceLocation, nullIfEmpty, removeSourceLocationsFrom, removeSourceLocationsFrom, removeSourceLocationsFrom, removeSourceLocationsFrom, setSourceLocation, toGroovy, toGroovy, toGroovyArgList, toGroovyArgList, toGroovyBlock, toGroovyBlock, toGroovyBlock, toGroovyCheckEmpty, toJSON, toJSONArray, toJSONArray, toJSONCheckEmpty, toJSONObject, validate, validate, validatepublic InvisibleGlobalWhenCondition()
public InvisibleGlobalWhenCondition(String stageName, ModelASTStageBase stage)
stageName - The name of the stage this condition belongs to. Explicitly specified due to auto-generated stage
names with matrices.stage - The ModelASTStageBase for the stage this condition belongs to, for inspection.public String getStageName()
public ModelASTStageBase getStage()
@NonNull public net.sf.json.JSONObject toJSON()
ModelASTElementtoJSON in interface ModelASTMarkerInterfacetoJSON in class ModelASTWhenConditionJSONObject or JSONArray but for some leaf nodes, may be a String or
other simple class.@NonNull public String toGroovy()
ModelASTElementtoGroovy in interface ModelASTMarkerInterfacetoGroovy in class ModelASTWhenConditionString of Groovy code for this element and its children.public void validate(@NonNull
ModelValidator validator)
ModelASTElementvalidate in interface ModelASTMarkerInterfacevalidate in class ModelASTWhenConditionvalidator - A ModelValidator to use for more complicated validation.public void removeSourceLocation()
ModelASTElementremoveSourceLocation in interface ModelASTMarkerInterfaceremoveSourceLocation in class ModelASTWhenConditionpublic boolean equals(Object o)
ModelASTElementequals in class ModelASTWhenConditionpublic int hashCode()
ModelASTElementhashCode in class ModelASTWhenConditionCopyright © 2016–2021. All rights reserved.