Package org.openrewrite.yaml
Class AppendToSequenceVisitor
java.lang.Object
org.openrewrite.TreeVisitor<Yaml,P>
org.openrewrite.yaml.YamlVisitor<P>
org.openrewrite.yaml.YamlIsoVisitor<org.openrewrite.ExecutionContext>
org.openrewrite.yaml.AppendToSequenceVisitor
-
Constructor Summary
ConstructorsConstructorDescriptionAppendToSequenceVisitor(JsonPathMatcher matcher, String value, @Nullable List<String> existingSequenceValues, boolean matchExistingSequenceValuesInAnyOrder) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckExistingSequenceValues(Yaml.Sequence seq, org.openrewrite.Cursor cursor) visitSequence(Yaml.Sequence existingSeq, org.openrewrite.ExecutionContext ctx) Methods inherited from class org.openrewrite.yaml.YamlIsoVisitor
visitDocument, visitDocumentEnd, visitDocuments, visitMapping, visitMappingEntry, visitScalar, visitSequenceEntryMethods inherited from class org.openrewrite.yaml.YamlVisitor
autoFormat, autoFormat, autoFormat, getLanguage, isAcceptable, maybeAutoFormat, maybeAutoFormat, maybeAutoFormat, maybeCoalesceProperties, removeUnused, visitAlias, visitAnchorMethods 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
-
AppendToSequenceVisitor
public AppendToSequenceVisitor(JsonPathMatcher matcher, String value, @Nullable List<String> existingSequenceValues, boolean matchExistingSequenceValuesInAnyOrder)
-
-
Method Details
-
visitSequence
- Overrides:
visitSequencein classYamlIsoVisitor<org.openrewrite.ExecutionContext>
-
checkExistingSequenceValues
-