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

public class AppendToSequenceVisitor extends YamlIsoVisitor<org.openrewrite.ExecutionContext>
  • Constructor Details

    • AppendToSequenceVisitor

      public AppendToSequenceVisitor(JsonPathMatcher matcher, String value, @Nullable @Nullable List<String> existingSequenceValues, boolean matchExistingSequenceValuesInAnyOrder)
  • Method Details

    • visitSequence

      public Yaml.Sequence visitSequence(Yaml.Sequence existingSeq, org.openrewrite.ExecutionContext executionContext)
      Overrides:
      visitSequence in class YamlIsoVisitor<org.openrewrite.ExecutionContext>
    • checkExistingSequenceValues

      protected boolean checkExistingSequenceValues(Yaml.Sequence seq, org.openrewrite.Cursor cursor)