Klasse JavaSearchNameEnvironment
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.search.matching.JavaSearchNameEnvironment
- Alle implementierten Schnittstellen:
IModuleAwareNameEnvironment,INameEnvironment,SuffixConstants
public class JavaSearchNameEnvironment
extends Object
implements IModuleAwareNameEnvironment, SuffixConstants
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.aspectj.org.eclipse.jdt.internal.compiler.env.IModuleAwareNameEnvironment
IModuleAwareNameEnvironment.LookupStrategy -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected LinkedHashSet<ClasspathLocation>protected Map<String,LinkedHashSet<ClasspathLocation>> an index of qualified package names (separated by / not .) to classpath locationsVon Schnittstelle geerbte Felder org.aspectj.org.eclipse.jdt.internal.compiler.util.SuffixConstants
EXTENSION_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 -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungJavaSearchNameEnvironment(IJavaProject javaProject, ICompilationUnit[] copies) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected voidaddProjectClassPath(JavaProject javaProject) voidcleanup()This method cleans the environment.findType(char[][] compoundName, char[] moduleName) findType(char[] typeName, char[][] packageName, char[] moduleName) Answer a type identified by the given names. moduleName may be one of the special names from ModuleBinding (ANY, ANY_NAMED, UNNAMED).char[][]protected Iterable<ClasspathLocation>getLocationsFor(String moduleName, String qualifiedPackageName) getModule(char[] moduleName) Get the module with the given name, which must denote a named module.char[][]getModulesDeclaringPackage(char[][] packageName, char[] moduleName) static Map<String,ICompilationUnit> getWorkingCopyMap(ICompilationUnit[] copies) booleanhasCompilationUnit(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 forIModuleAwareNameEnvironment.LookupStrategy.Named).Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.internal.compiler.env.IModuleAwareNameEnvironment
applyModuleUpdates, findType, findType, getUniqueModulesDeclaringPackage, isPackage
-
Felddetails
-
locationSet
-
packageNameToClassPathLocations
an index of qualified package names (separated by / not .) to classpath locations
-
-
Konstruktordetails
-
JavaSearchNameEnvironment
-
-
Methodendetails
-
getWorkingCopyMap
-
cleanup
public void cleanup()Beschreibung aus Schnittstelle kopiert:INameEnvironmentThis method cleans the environment. It is responsible for releasing the memory and freeing resources. Passed that point, the name environment is no longer usable. A name environment can have a long life cycle, therefore it is the responsibility of the code which created it to decide when it is a good time to clean it up.- Angegeben von:
cleanupin SchnittstelleINameEnvironment
-
addProjectClassPath
-
getLocationsFor
protected Iterable<ClasspathLocation> getLocationsFor(String moduleName, String qualifiedPackageName) -
findType
Beschreibung aus Schnittstelle kopiert:IModuleAwareNameEnvironmentAnswer a type identified by the given names. moduleName may be one of the special names from ModuleBinding (ANY, ANY_NAMED, UNNAMED).- Angegeben von:
findTypein SchnittstelleIModuleAwareNameEnvironment
-
findType
- Angegeben von:
findTypein SchnittstelleIModuleAwareNameEnvironment
-
getModulesDeclaringPackage
public char[][] getModulesDeclaringPackage(char[][] packageName, char[] moduleName) - Angegeben von:
getModulesDeclaringPackagein SchnittstelleIModuleAwareNameEnvironment
-
listPackages
public char[][] listPackages(char[] moduleName) Beschreibung aus Schnittstelle kopiert:IModuleAwareNameEnvironmentLists all packages in the module identified by the given, real module name (i.e., this method is implemented only forIModuleAwareNameEnvironment.LookupStrategy.Named).- Angegeben von:
listPackagesin SchnittstelleIModuleAwareNameEnvironment- Gibt zurück:
- array of flat, dot-separated package names
-
hasCompilationUnit
public boolean hasCompilationUnit(char[][] qualifiedPackageName, char[] moduleName, boolean checkCUs) Beschreibung aus Schnittstelle kopiert:IModuleAwareNameEnvironmentAnswer whether the given package (within the given module) contains any compilation unit.- Angegeben von:
hasCompilationUnitin SchnittstelleIModuleAwareNameEnvironment- Parameter:
checkCUs- - if true, check contained Compilation Units for a matching package declaration- Gibt zurück:
- true iff the package contains at least one compilation unit.
-
getModule
Beschreibung aus Schnittstelle kopiert:IModuleAwareNameEnvironmentGet the module with the given name, which must denote a named module.- Angegeben von:
getModulein SchnittstelleIModuleAwareNameEnvironment
-
getAllAutomaticModules
public char[][] getAllAutomaticModules()- Angegeben von:
getAllAutomaticModulesin SchnittstelleIModuleAwareNameEnvironment
-