Package org.openrewrite.xml.search
Class FindIndentXmlVisitor<P>
- java.lang.Object
-
- org.openrewrite.TreeVisitor<Xml,P>
-
- org.openrewrite.xml.XmlVisitor<P>
-
- org.openrewrite.xml.search.FindIndentXmlVisitor<P>
-
public class FindIndentXmlVisitor<P> extends XmlVisitor<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 FindIndentXmlVisitor(int enclosingIndent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMostCommonIndent()intgetTotalLines()booleanisIndentedWithSpaces()XmlpreVisit(Xml tree, P p)-
Methods inherited from class org.openrewrite.xml.XmlVisitor
getLanguage, isAcceptable, visitAttribute, visitCharData, visitComment, visitDocTypeDecl, visitDocument, visitElement, visitIdent, visitProcessingInstruction, visitProlog, visitTag, visitXmlDecl
-
-