public class JavaSearchNameEnvironment extends java.lang.Object implements IModuleAwareNameEnvironment, SuffixConstants
IModuleAwareNameEnvironment.LookupStrategyEXTENSION_aj, EXTENSION_AJ, EXTENSION_class, EXTENSION_CLASS, EXTENSION_java, EXTENSION_JAVA, EXTENSION_jmod, EXTENSION_JMOD, SUFFIX_aj, SUFFIX_AJ, SUFFIX_class, SUFFIX_CLASS, SUFFIX_java, SUFFIX_JAVA, SUFFIX_STRING_aj, SUFFIX_STRING_AJ, SUFFIX_STRING_class, SUFFIX_STRING_CLASS, SUFFIX_STRING_java, SUFFIX_STRING_JAVA| Constructor and Description |
|---|
JavaSearchNameEnvironment(IJavaProject javaProject,
ICompilationUnit[] copies) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
This method cleans the environment.
|
NameEnvironmentAnswer |
findType(char[][] compoundName,
char[] moduleName) |
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) |
static java.util.Map<java.lang.String,ICompilationUnit> |
getWorkingCopyMap(ICompilationUnit[] copies) |
boolean |
hasCompilationUnit(char[][] qualifiedPackageName,
char[] moduleName,
boolean checkCUs)
Answer whether the given package (within the given module) contains any compilation unit.
|
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). |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyModuleUpdates, findType, findType, getUniqueModulesDeclaringPackage, isPackagepublic JavaSearchNameEnvironment(IJavaProject javaProject, ICompilationUnit[] copies)
public static java.util.Map<java.lang.String,ICompilationUnit> getWorkingCopyMap(ICompilationUnit[] copies)
public void cleanup()
INameEnvironmentcleanup in interface INameEnvironmentpublic NameEnvironmentAnswer findType(char[] typeName, char[][] packageName, char[] moduleName)
IModuleAwareNameEnvironmentfindType in interface IModuleAwareNameEnvironmentpublic NameEnvironmentAnswer findType(char[][] compoundName, char[] moduleName)
findType in interface IModuleAwareNameEnvironmentpublic char[][] getModulesDeclaringPackage(char[][] packageName,
char[] moduleName)
getModulesDeclaringPackage in interface IModuleAwareNameEnvironmentpublic char[][] listPackages(char[] moduleName)
IModuleAwareNameEnvironmentIModuleAwareNameEnvironment.LookupStrategy.Named).listPackages in interface IModuleAwareNameEnvironmentpublic boolean hasCompilationUnit(char[][] qualifiedPackageName,
char[] moduleName,
boolean checkCUs)
IModuleAwareNameEnvironmenthasCompilationUnit in interface IModuleAwareNameEnvironmentcheckCUs - - if true, check contained Compilation Units for a matching package declarationpublic IModule getModule(char[] moduleName)
IModuleAwareNameEnvironmentgetModule in interface IModuleAwareNameEnvironmentpublic char[][] getAllAutomaticModules()
getAllAutomaticModules in interface IModuleAwareNameEnvironment