public interface IModuleAwareNameEnvironment extends INameEnvironment
| Modifier and Type | Interface and Description |
|---|---|
static class |
IModuleAwareNameEnvironment.LookupStrategy
Strategies for searching types & packages in classpath locations & modules.
|
| Modifier and Type | Method and Description |
|---|---|
default void |
applyModuleUpdates(IUpdatableModule module,
IUpdatableModule.UpdateKind kind)
Ask the name environment to perform any updates (add-exports or add-reads) to the given module.
|
default NameEnvironmentAnswer |
findType(char[][] compoundTypeName)
Find a type with the given compound name.
|
NameEnvironmentAnswer |
findType(char[][] compoundName,
char[] moduleName) |
default NameEnvironmentAnswer |
findType(char[] typeName,
char[][] packageName)
Find a type named
|
NameEnvironmentAnswer |
findType(char[] typeName,
char[][] packageName,
char[] moduleName)
Answer a type identified by the given names.
|
char[][] |
getAllAutomaticModules() |
IModule |
getModule(char[] moduleName)
Get the module with the given name, which must denote a named module.
|
char[][] |
getModulesDeclaringPackage(char[][] packageName,
char[] moduleName) |
default char[][] |
getUniqueModulesDeclaringPackage(char[][] packageName,
char[] moduleName) |
boolean |
hasCompilationUnit(char[][] qualifiedPackageName,
char[] moduleName,
boolean checkCUs)
Answer whether the given package (within the given module) contains any compilation unit.
|
default boolean |
isPackage(char[][] parentPackageName,
char[] packageName)
Answer whether packageName is the name of a known subpackage inside
the package parentPackageName.
|
char[][] |
listPackages(char[] moduleName)
Lists all packages in the module identified by the given, real module name
(i.e., this method is implemented only for
IModuleAwareNameEnvironment.LookupStrategy.Named). |
cleanupdefault NameEnvironmentAnswer findType(char[][] compoundTypeName)
INameEnvironmentfindType in interface INameEnvironmentdefault NameEnvironmentAnswer findType(char[] typeName, char[][] packageName)
INameEnvironmentfindType in interface INameEnvironmentdefault boolean isPackage(char[][] parentPackageName,
char[] packageName)
INameEnvironmentisPackage in interface INameEnvironmentNameEnvironmentAnswer findType(char[][] compoundName, char[] moduleName)
NameEnvironmentAnswer findType(char[] typeName, char[][] packageName, char[] moduleName)
char[][] getModulesDeclaringPackage(char[][] packageName,
char[] moduleName)
default char[][] getUniqueModulesDeclaringPackage(char[][] packageName,
char[] moduleName)
boolean hasCompilationUnit(char[][] qualifiedPackageName,
char[] moduleName,
boolean checkCUs)
qualifiedPackageName - checkCUs - - if true, check contained Compilation Units for a matching package declarationIModule getModule(char[] moduleName)
char[][] getAllAutomaticModules()
default void applyModuleUpdates(IUpdatableModule module, IUpdatableModule.UpdateKind kind)
module - the compiler representation of the module to updateskind - selects what kind of updates should be performedchar[][] listPackages(char[] moduleName)
IModuleAwareNameEnvironment.LookupStrategy.Named).moduleName -