Package org.openrewrite.yaml.search
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, and whether this indentation is built with spaces or tabs.
-
-
Constructor Summary
Constructors Constructor Description FindIndentYamlVisitor(int enclosingIndent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMostCommonIndent()intgetTotalLines()booleanisIndentedWithSpaces()YamlpreVisit(Yaml tree, P p)-
Methods inherited from class org.openrewrite.yaml.YamlVisitor
maybeCoalesceProperties, visitDocument, visitDocuments, visitMapping, visitMappingEntry, visitScalar, visitSequence, visitSequenceEntry
-
-