Class ChangeDependencyScope

  • All Implemented Interfaces:
    MavenSourceVisitor<org.openrewrite.xml.tree.Xml>, org.openrewrite.RefactorVisitor<org.openrewrite.xml.tree.Xml>, org.openrewrite.SourceVisitor<org.openrewrite.xml.tree.Xml>, org.openrewrite.xml.XmlSourceVisitor<org.openrewrite.xml.tree.Xml>

    public class ChangeDependencyScope
    extends MavenRefactorVisitor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setArtifactId​(java.lang.String artifactId)  
      void setGroupId​(java.lang.String groupId)  
      void setToScope​(java.lang.String toScope)  
      org.openrewrite.Validated validate()  
      org.openrewrite.xml.tree.Xml visitTag​(org.openrewrite.xml.tree.Xml.Tag tag)  
      • Methods inherited from class org.openrewrite.xml.XmlRefactorVisitor

        enclosingRootTag, enclosingTag, visitAttribute, visitCharData, visitComment, visitDocTypeDecl, visitElement, visitIdent, visitProcessingInstruction, visitProlog
      • Methods inherited from class org.openrewrite.AbstractRefactorVisitor

        andThen, andThen, next, refactor, refactor, refactor
      • Methods inherited from class org.openrewrite.AbstractSourceVisitor

        getCursor, setCursoringOn, visit, visitAfter, visitAfter
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.openrewrite.RefactorVisitor

        defaultTo, generate, isIdempotent, nextCycle
      • Methods inherited from interface org.openrewrite.SourceVisitor

        getCursor, getName, getTags, reduce, visit, visit, visitTree
      • Methods inherited from interface org.openrewrite.xml.XmlSourceVisitor

        enclosingTag, visitAttribute, visitCharData, visitComment, visitDocTypeDecl, visitElement, visitIdent, visitProcessingInstruction, visitProlog
    • Constructor Detail

      • ChangeDependencyScope

        public ChangeDependencyScope()
    • Method Detail

      • setGroupId

        public void setGroupId​(java.lang.String groupId)
      • setArtifactId

        public void setArtifactId​(java.lang.String artifactId)
      • setToScope

        public void setToScope​(@Nullable
                               java.lang.String toScope)
      • validate

        public org.openrewrite.Validated validate()
      • visitTag

        public org.openrewrite.xml.tree.Xml visitTag​(org.openrewrite.xml.tree.Xml.Tag tag)
        Specified by:
        visitTag in interface org.openrewrite.xml.XmlSourceVisitor<org.openrewrite.xml.tree.Xml>
        Overrides:
        visitTag in class org.openrewrite.xml.XmlRefactorVisitor