Uses of Interface
spoon.reflect.declaration.CtImport
Packages that use CtImport
Package
Description
this is unstable code, subject to potential complete redesign, not only in snapshots but also in releases.
This package contains the meta-model part that models the declarations (program's structures such as classes, fields, etc).
This package defines all the sub-factories for the Spoon meta-model.
This package defines visitor, scanner, and scanner-based query API for Java programs reified in the meta-model.
This package contains some default implementations for commonly used processing tasks.
This package provides support for the sniper mode: only the transformed part of classes is rewritten to disk.
-
Uses of CtImport in spoon.experimental
Classes in spoon.experimental that implement CtImportMethods in spoon.experimental with type parameters of type CtImportModifier and TypeMethodDescription<T extends CtImport>
TCtUnresolvedImport.setReference(CtReference reference)
-
Uses of CtImport in spoon.reflect.declaration
Methods in spoon.reflect.declaration with type parameters of type CtImportModifier and TypeMethodDescription<T extends CtImport>
TCtImport.setReference(CtReference reference)
Sets the reference of the import.Methods in spoon.reflect.declaration that return CtImportMethods in spoon.reflect.declaration that return types with arguments of type CtImportModifier and TypeMethodDescriptionCtCompilationUnit.getImports()
Get the imports computed for this CU.Method parameters in spoon.reflect.declaration with type arguments of type CtImportModifier and TypeMethodDescriptionCtCompilationUnit.setImports(Collection<CtImport> imports)
Set the imports of this CU WARNING: This method is tagged as experimental, as its signature and/or usage might change in future release. -
Uses of CtImport in spoon.reflect.factory
Methods in spoon.reflect.factory that return CtImportModifier and TypeMethodDescriptionCoreFactory.createImport()
Creates an import.Factory.createImport(CtReference reference)
FactoryImpl.createImport(CtReference reference)
TypeFactory.createImport(CtReference reference)
Creates an import declaration.CoreFactory.createUnresolvedImport()
Creates an unresolved import.Factory.createUnresolvedImport(String reference, boolean isStatic)
FactoryImpl.createUnresolvedImport(String reference, boolean isStatic)
TypeFactory.createUnresolvedImport(String reference, boolean isStatic)
-
Uses of CtImport in spoon.reflect.visitor
Methods in spoon.reflect.visitor that return types with arguments of type CtImportModifier and TypeMethodDescriptionImportScanner.getAllImports()
Use computeImports or computeAllImports before getting the different imports.ImportScannerImpl.getAllImports()
ImportCleaner.getImportComparator()
DefaultJavaPrettyPrinter.getImports(CtCompilationUnit compilationUnit)
Methods in spoon.reflect.visitor with parameters of type CtImportModifier and TypeMethodDescriptionint
void
CtAbstractVisitor.visitCtImport(CtImport ctImport)
void
CtBiScannerDefault.visitCtImport(CtImport ctImport)
void
CtInheritanceScanner.visitCtImport(CtImport ctImport)
void
CtScanner.visitCtImport(CtImport ctImport)
void
CtVisitor.visitCtImport(CtImport ctImport)
Visits an import declarationvoid
DefaultJavaPrettyPrinter.visitCtImport(CtImport ctImport)
Method parameters in spoon.reflect.visitor with type arguments of type CtImportModifier and TypeMethodDescriptionvoid
ImportScanner.initWithImports(Iterable<CtImport> importCollection)
Specify the original imports to use before computing new imports.void
ImportScannerImpl.initWithImports(Iterable<CtImport> importCollection)
ImportCleaner.setImportComparator(Comparator<CtImport> importComparator)
void
ElementPrinterHelper.writeImports(Collection<CtImport> imports)
writes the imports in a specific order (eg all static imports together -
Uses of CtImport in spoon.support
Methods in spoon.support that return CtImportModifier and TypeMethodDescriptionDefaultCoreFactory.createImport()
DefaultCoreFactory.createUnresolvedImport()
-
Uses of CtImport in spoon.support.reflect.declaration
Classes in spoon.support.reflect.declaration that implement CtImportMethods in spoon.support.reflect.declaration with type parameters of type CtImportModifier and TypeMethodDescription<T extends CtImport>
TCtImportImpl.setReference(CtReference reference)
Methods in spoon.support.reflect.declaration that return types with arguments of type CtImportMethod parameters in spoon.support.reflect.declaration with type arguments of type CtImportModifier and TypeMethodDescriptionCtCompilationUnitImpl.setImports(Collection<CtImport> imports)
-
Uses of CtImport in spoon.support.sniper
Methods in spoon.support.sniper that return types with arguments of type CtImportModifier and TypeMethodDescriptionSniperJavaPrettyPrinter.getImports(CtCompilationUnit compilationUnit)
-
Uses of CtImport in spoon.support.visitor
Methods in spoon.support.visitor with parameters of type CtImport -
Uses of CtImport in spoon.support.visitor.clone
Methods in spoon.support.visitor.clone with parameters of type CtImport -
Uses of CtImport in spoon.support.visitor.equals
Methods in spoon.support.visitor.equals with parameters of type CtImport -
Uses of CtImport in spoon.support.visitor.replace
Methods in spoon.support.visitor.replace with parameters of type CtImport