Class XmlVisitor<P>

java.lang.Object
org.openrewrite.TreeVisitor<Xml,P>
org.openrewrite.xml.XmlVisitor<P>
Direct Known Subclasses:
AddOrUpdateChild, AddToTagVisitor, AutodetectGeneralFormatStyle, AutoFormatVisitor, ChangeTagContentVisitor, ChangeTagValueVisitor, CountLinesVisitor, FilterTagChildrenVisitor, MapTagChildrenVisitor, RemoveContentVisitor, XmlIsoVisitor, XmlPrinter

public class XmlVisitor<P> extends org.openrewrite.TreeVisitor<Xml,P>
  • Constructor Details

    • XmlVisitor

      public XmlVisitor()
  • Method Details

    • isAcceptable

      public boolean isAcceptable(org.openrewrite.SourceFile sourceFile, P p)
      Overrides:
      isAcceptable in class org.openrewrite.TreeVisitor<Xml,P>
    • getLanguage

      public String getLanguage()
      Overrides:
      getLanguage in class org.openrewrite.TreeVisitor<Xml,P>
    • maybeAutoFormat

      public <X extends Xml> X maybeAutoFormat(X before, X after, P p)
    • maybeAutoFormat

      public <X extends Xml> X maybeAutoFormat(X before, X after, P p, org.openrewrite.Cursor cursor)
    • maybeAutoFormat

      public <X extends Xml> X maybeAutoFormat(X before, X after, @Nullable @Nullable Xml stopAfter, P p, org.openrewrite.Cursor cursor)
    • autoFormat

      public <X extends Xml> X autoFormat(X j, P p)
    • autoFormat

      public <X extends Xml> X autoFormat(X j, P p, org.openrewrite.Cursor cursor)
    • autoFormat

      public <X extends Xml> X autoFormat(X j, @Nullable @Nullable Xml stopAfter, P p, org.openrewrite.Cursor cursor)
    • visitDocument

      public Xml visitDocument(Xml.Document document, P p)
    • visitXmlDecl

      public Xml visitXmlDecl(Xml.XmlDecl xmlDecl, P p)
    • visitProcessingInstruction

      public Xml visitProcessingInstruction(Xml.ProcessingInstruction processingInstruction, P p)
    • visitTag

      public Xml visitTag(Xml.Tag tag, P p)
    • visitAttribute

      public Xml visitAttribute(Xml.Attribute attribute, P p)
    • visitCharData

      public Xml visitCharData(Xml.CharData charData, P p)
    • visitComment

      public Xml visitComment(Xml.Comment comment, P p)
    • visitDocTypeDecl

      public Xml visitDocTypeDecl(Xml.DocTypeDecl docTypeDecl, P p)
    • visitProlog

      public Xml visitProlog(Xml.Prolog prolog, P p)
    • visitIdent

      public Xml visitIdent(Xml.Ident ident, P p)
    • visitElement

      public Xml visitElement(Xml.Element element, P p)