Class FindIndentYamlVisitor<P>

java.lang.Object
org.openrewrite.TreeVisitor<Yaml,P>
org.openrewrite.yaml.YamlVisitor<P>
org.openrewrite.yaml.search.FindIndentYamlVisitor<P>

public class FindIndentYamlVisitor<P> extends YamlVisitor<P>
Discover the most common indentation level of a tree.
  • Constructor Details

    • FindIndentYamlVisitor

      public FindIndentYamlVisitor()
  • Method Details

    • preVisit

      public @Nullable Yaml preVisit(Yaml tree, P p)
      Overrides:
      preVisit in class org.openrewrite.TreeVisitor<Yaml,P>
    • getMostCommonIndent

      public int getMostCommonIndent()
    • nonZeroIndents

      public long nonZeroIndents()