Uses of Interface
spoon.reflect.declaration.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
Modifier and TypeMethodDescription<T extends CtImport>
TCtUnresolvedImport.setReference(CtReference reference)
-
Uses of CtImport in spoon.reflect.declaration
Modifier and TypeMethodDescription<T extends CtImport>
TCtImport.setReference(CtReference reference)
Sets the reference of the import.Modifier and TypeMethodDescriptionCtCompilationUnit.getImports()
Get the imports computed for this CU.Modifier 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
Modifier 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
Modifier and TypeMethodDescriptionImportScanner.getAllImports()
Use computeImports or computeAllImports before getting the different imports.ImportScannerImpl.getAllImports()
ImportCleaner.getImportComparator()
DefaultJavaPrettyPrinter.getImports(CtCompilationUnit compilationUnit)
Modifier 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)
Modifier 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
Modifier and TypeMethodDescriptionDefaultCoreFactory.createImport()
DefaultCoreFactory.createUnresolvedImport()
-
Uses of CtImport in spoon.support.reflect.declaration
Modifier and TypeMethodDescription<T extends CtImport>
TCtImportImpl.setReference(CtReference reference)
Modifier and TypeMethodDescriptionCtCompilationUnitImpl.setImports(Collection<CtImport> imports)
-
Uses of CtImport in spoon.support.sniper
Modifier and TypeMethodDescriptionSniperJavaPrettyPrinter.getImports(CtCompilationUnit compilationUnit)
-
Uses of CtImport in spoon.support.visitor
-
Uses of CtImport in spoon.support.visitor.clone
-
Uses of CtImport in spoon.support.visitor.equals
-
Uses of CtImport in spoon.support.visitor.replace