public class InvisibleWhen extends ModelASTWhen
when container generated when adding invisible global when conditions to a stage, containing the new
invisible conditions and any explicitly defined ones. When created with existing conditions, the existing when
container is stored for use as well. This is used as a marker to avoid validation, JSON/Groovy generation, etc for
the generated container.| Constructor and Description |
|---|
InvisibleWhen() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getBeforeAgent() |
Boolean |
getBeforeInput() |
Boolean |
getBeforeOptions() |
Object |
getSourceLocation() |
void |
removeSourceLocation()
Removes the source location value from this element.
|
void |
setOriginalWhen(ModelASTWhen originalWhen) |
String |
toGroovy()
Translates this element and any children it may have into Pipeline Config-formatted Groovy, without any indentations.
|
Object |
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.
|
getConditions, setBeforeAgent, setBeforeInput, setBeforeOptions, setConditionsequals, hashCode, nullIfEmpty, removeSourceLocationsFrom, removeSourceLocationsFrom, removeSourceLocationsFrom, removeSourceLocationsFrom, setSourceLocation, toGroovy, toGroovy, toGroovyArgList, toGroovyArgList, toGroovyBlock, toGroovyBlock, toGroovyBlock, toGroovyCheckEmpty, toJSON, toJSONArray, toJSONArray, toJSONCheckEmpty, toJSONObject, validate, validate, validatepublic void setOriginalWhen(ModelASTWhen originalWhen)
public Object getSourceLocation()
getSourceLocation in class ModelASTElementpublic Boolean getBeforeAgent()
getBeforeAgent in class ModelASTWhenpublic Boolean getBeforeInput()
getBeforeInput in class ModelASTWhenpublic Boolean getBeforeOptions()
getBeforeOptions in class ModelASTWhen@NonNull public Object toJSON()
ModelASTElementtoJSON in interface ModelASTMarkerInterfacetoJSON in class ModelASTWhenJSONObject 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 ModelASTWhenString of Groovy code for this element and its children.public void removeSourceLocation()
ModelASTElementremoveSourceLocation in interface ModelASTMarkerInterfaceremoveSourceLocation in class ModelASTWhenpublic String toString()
ModelASTElementtoString in class ModelASTWhenpublic void validate(@NonNull
ModelValidator validator)
ModelASTElementvalidate in interface ModelASTMarkerInterfacevalidate in class ModelASTWhenvalidator - A ModelValidator to use for more complicated validation.Copyright © 2016–2021. All rights reserved.