Class RemoveContentVisitor<P>

java.lang.Object
org.openrewrite.TreeVisitor<org.openrewrite.xml.tree.Xml,P>
org.openrewrite.xml.XmlVisitor<P>
org.openrewrite.xml.RemoveContentVisitor<P>

public class RemoveContentVisitor<P> extends org.openrewrite.xml.XmlVisitor<P>
  • Constructor Summary

    Constructors
    Constructor
    Description
    RemoveContentVisitor(Content tag, boolean removeEmptyAncestors, boolean removePrecedingComment)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.openrewrite.xml.tree.Xml
    visitTag(org.openrewrite.xml.tree.Xml.Tag tag, P p)
     

    Methods inherited from class org.openrewrite.xml.XmlVisitor

    autoFormat, autoFormat, autoFormat, getLanguage, isAcceptable, maybeAutoFormat, maybeAutoFormat, maybeAutoFormat, visitAttribute, visitAttributeValue, visitCharData, visitComment, visitDocTypeDecl, visitDocTypeDeclExternalSubsets, visitDocument, visitElement, visitIdent, visitJspComment, visitJspDeclaration, visitJspDirective, visitJspExpression, visitJspScriptlet, visitProcessingInstruction, visitProlog, visitTagClosing, visitXmlDecl

    Methods inherited from class org.openrewrite.TreeVisitor

    adapt, collect, collect, defaultValue, doAfterVisit, getAfterVisit, getCursor, isAdaptableTo, noop, postVisit, preVisit, reduce, reduce, reduce, setCursor, stopAfterPreVisit, updateCursor, visit, visit, visit, visitAndCast, visitAndCast, visitMarker, visitMarkers, visitNonNull, visitNonNull, visitorTreeType

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RemoveContentVisitor

      public RemoveContentVisitor(Content tag, boolean removeEmptyAncestors, boolean removePrecedingComment)
  • Method Details

    • visitTag

      public org.openrewrite.xml.tree.Xml visitTag(org.openrewrite.xml.tree.Xml.Tag tag, P p)
      Overrides:
      visitTag in class org.openrewrite.xml.XmlVisitor<P>