Package org.openrewrite.xml.format
Class AutodetectGeneralFormatStyle
java.lang.Object
org.openrewrite.TreeVisitor<Xml,P>
org.openrewrite.xml.XmlVisitor<org.openrewrite.xml.format.LineEndingsCount>
org.openrewrite.xml.format.AutodetectGeneralFormatStyle
public class AutodetectGeneralFormatStyle
extends XmlVisitor<org.openrewrite.xml.format.LineEndingsCount>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.openrewrite.style.GeneralFormatStyleMakes a best-effort attempt to determine whether windows-style (CRLF) line endings or unix-style (LF) are more common in the supplied AST.@Nullable Xmlvisit(@Nullable org.openrewrite.Tree tree, org.openrewrite.xml.format.LineEndingsCount count) Methods inherited from class org.openrewrite.xml.XmlVisitor
autoFormat, autoFormat, autoFormat, getLanguage, isAcceptable, maybeAutoFormat, maybeAutoFormat, maybeAutoFormat, visitAttribute, visitCharData, visitComment, visitDocTypeDecl, visitDocument, visitElement, visitIdent, visitProcessingInstruction, visitProlog, visitTag, visitXmlDeclMethods inherited from class org.openrewrite.TreeVisitor
adapt, collect, collect, defaultValue, describeLocation, doAfterVisit, doAfterVisit, getAfterVisit, getCursor, isAdaptableTo, noop, postVisit, preVisit, reduce, reduce, reduce, setCursor, visit, visit, visitAndCast, visitAndCast, visitMarker, visitMarkers, visitNonNull, visitNonNull, visitSourceFile
-
Constructor Details
-
AutodetectGeneralFormatStyle
public AutodetectGeneralFormatStyle()
-
-
Method Details
-
autodetectGeneralFormatStyle
Makes a best-effort attempt to determine whether windows-style (CRLF) line endings or unix-style (LF) are more common in the supplied AST. -
visit
@Nullable public @Nullable Xml visit(@Nullable @Nullable org.openrewrite.Tree tree, org.openrewrite.xml.format.LineEndingsCount count) - Overrides:
visitin classorg.openrewrite.TreeVisitor<Xml,org.openrewrite.xml.format.LineEndingsCount>
-