Class ImportService

java.lang.Object
org.openrewrite.java.service.ImportService

@Incubating(since="8.2.0") public class ImportService extends Object
  • Constructor Details

    • ImportService

      public ImportService()
  • Method Details

    • addImportVisitor

      public <P> JavaVisitor<P> addImportVisitor(@Nullable String packageName, String typeName, @Nullable String member, @Nullable String alias, boolean onlyIfReferenced)
    • shortenAllFullyQualifiedTypeReferences

      public <J2 extends org.openrewrite.java.tree.J> JavaVisitor<org.openrewrite.ExecutionContext> shortenAllFullyQualifiedTypeReferences()
    • shortenFullyQualifiedTypeReferencesIn

      public <J2 extends org.openrewrite.java.tree.J> JavaVisitor<org.openrewrite.ExecutionContext> shortenFullyQualifiedTypeReferencesIn(J2 subtree)