Package org.openrewrite.yaml
Class MergeYamlVisitor<P>
java.lang.Object
org.openrewrite.TreeVisitor<Yaml,P>
org.openrewrite.yaml.YamlVisitor<P>
org.openrewrite.yaml.MergeYamlVisitor<P>
- Type Parameters:
P- An input object that is passed to every visit method.
Visitor class to merge two yaml files.
-
Constructor Summary
ConstructorsConstructorDescriptionMergeYamlVisitor(Yaml.Block block, Yaml incoming, boolean acceptTheirs, @Nullable String objectIdentifyingProperty, boolean shouldAutoFormat, @Nullable MergeYaml.InsertMode insertMode, @Nullable String insertProperty) -
Method Summary
Modifier and TypeMethodDescriptionvisitMapping(Yaml.Mapping existingMapping, P p) visitScalar(Yaml.Scalar existingScalar, P p) visitSequence(Yaml.Sequence existingSeq, P p) Methods inherited from class org.openrewrite.yaml.YamlVisitor
autoFormat, autoFormat, autoFormat, getLanguage, isAcceptable, maybeAutoFormat, maybeAutoFormat, maybeAutoFormat, maybeCoalesceProperties, removeUnused, visitAlias, visitAnchor, visitDocument, visitDocumentEnd, visitDocuments, visitMappingEntry, visitSequenceEntry, visitTagMethods inherited from class org.openrewrite.TreeVisitor
adapt, collect, collect, defaultValue, doAfterVisit, getAfterVisit, getCursor, isAdaptableTo, noop, postVisit, preVisit, reduce, reduce, reduce, setCursor, stopAfterPreVisit, updateCursor, visit, visit, visit, visitAndCast, visitAndCast, visitMarker, visitMarkers, visitNonNull, visitNonNull, visitorTreeType
-
Constructor Details
-
MergeYamlVisitor
public MergeYamlVisitor(Yaml.Block block, Yaml incoming, boolean acceptTheirs, @Nullable String objectIdentifyingProperty, boolean shouldAutoFormat, @Nullable MergeYaml.InsertMode insertMode, @Nullable String insertProperty)
-
-
Method Details
-
visitScalar
- Overrides:
visitScalarin classYamlVisitor<P>
-
visitSequence
- Overrides:
visitSequencein classYamlVisitor<P>
-
visitMapping
- Overrides:
visitMappingin classYamlVisitor<P>
-