- All Known Implementing Classes:
public interface ImportScanner
Used to compute the imports required to write readable code with no fully qualified names. The import scanner API might still change in future release, that's why it is marked as experimental.
computeImportsvoid computeImports(CtElement element)
getAllImportsUse computeImports or computeAllImports before getting the different imports.
- the list of computed imports or an empty collection if not imports has been computed.
isImportedboolean isImported(CtReference ref)Checks if the type is already imported.
initWithImportsSpecify the original imports to use before computing new imports.