Class ClasspathSourceDirectory
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.builder.ClasspathLocation
org.aspectj.org.eclipse.jdt.internal.core.search.matching.ClasspathSourceDirectory
- All Implemented Interfaces:
IModulePathEntry
-
Field Summary
Fields inherited from class ClasspathLocation
accessRuleSet, annotationZipFile, externalAnnotationPath, limitModuleNames, module, patchModuleName, updatesModifier and TypeFieldDescriptionprotected AccessRuleSetprotected ZipFileprotected Stringprotected IModuleprotected Stringprotected IUpdatableModule.UpdatesByKind -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()booleanfindClass(String sourceFileWithoutExtension, String qualifiedPackageName, String moduleName, String qualifiedSourceFileWithoutExtension) findClass(String typeName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName, boolean asBinaryOnly, Predicate<String> moduleNameFilter) org.eclipse.core.runtime.IPathbooleanhasCompilationUnit(String qualifiedPackageName, String moduleName) Answer whether the given package has any compilation unit (.java or .class) in the given module.inthashCode()booleanvoidreset()toString()Methods inherited from class ClasspathLocation
areAllModuleOptionsEqual, connectAllLocationsForEEA, createAnswer, decorateWithExternalAnnotations, externalAnnotationsEquals, findClass, forBinaryFolder, forJrtSystem, forLibrary, forLibrary, forLibrary, getModule, getModulesDeclaringPackage, hasModule, isOutputFolder, listPackages, setModule, singletonModuleNameIfModifier and TypeMethodDescriptionprotected booleanvoidconnectAllLocationsForEEA(Collection<ClasspathLocation> allLocations, boolean add) protected NameEnvironmentAnswercreateAnswer(String fileNameWithoutExtension, IBinaryType reader, char[] moduleName) protected IBinaryTypedecorateWithExternalAnnotations(IBinaryType reader, String fileNameWithoutExtension) Search within this classpath location for an .eea file describing the given binary type.booleanNOTE: this method is intended for TESTS onlyfindClass(char[] typeName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName, boolean asBinaryOnly, Predicate<String> moduleNameFilter) static ClasspathLocationforBinaryFolder(org.eclipse.core.resources.IContainer binaryFolder, boolean isOutputFolder, AccessRuleSet accessRuleSet, org.eclipse.core.runtime.IPath externalAnnotationPath, boolean autoModule) static ClasspathJrtforJrtSystem(String jrtPath, AccessRuleSet accessRuleSet, org.eclipse.core.runtime.IPath annotationsPath, String release) static ClasspathLocationforLibrary(String libraryPathname, AccessRuleSet accessRuleSet, org.eclipse.core.runtime.IPath annotationsPath, boolean isOnModulePath, String compliance) static ClasspathLocationforLibrary(ZipFile zipFile, AccessRuleSet accessRuleSet, boolean isOnModulePath, String compliance) static ClasspathLocationforLibrary(org.eclipse.core.resources.IFile library, AccessRuleSet accessRuleSet, org.eclipse.core.runtime.IPath annotationsPath, boolean isOnModulePath, String compliance) char[][]getModulesDeclaringPackage(String qualifiedPackageName, String moduleName) booleanbooleanchar[][]voidchar[][]singletonModuleNameIf(boolean condition) Methods inherited from interface IModulePathEntry
getModule, getModule, getModulesDeclaringPackage, isAutomaticModule, listPackages, servesModuleModifier and TypeMethodDescriptiondefault IModuleGet the module that this entry contributes.default IModulegetModule(char[] name) Get the module named name from this entry.char[][]getModulesDeclaringPackage(String qualifiedPackageName, String moduleName) Answer the relevant modules that declare the given package.default booleanSpecifies whether this entry represents an automatic module.default char[][]Lists all packages in this modulepath entry.default booleanservesModule(char[] name) Indicates whether this entry knows the module named name and can answer queries regarding the module
-
Method Details
-
cleanup
public void cleanup()- Overrides:
cleanupin classClasspathLocation
-
equals
-
findClass
public NameEnvironmentAnswer findClass(String typeName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName, boolean asBinaryOnly, Predicate<String> moduleNameFilter) - Specified by:
findClassin classClasspathLocation
-
findClass
public NameEnvironmentAnswer findClass(String sourceFileWithoutExtension, String qualifiedPackageName, String moduleName, String qualifiedSourceFileWithoutExtension) - Specified by:
findClassin classClasspathLocation
-
getProjectRelativePath
public org.eclipse.core.runtime.IPath getProjectRelativePath()- Specified by:
getProjectRelativePathin classClasspathLocation
-
hashCode
-
isPackage
- Specified by:
isPackagein classClasspathLocation
-
hasCompilationUnit
Description copied from interface:IModulePathEntryAnswer whether the given package has any compilation unit (.java or .class) in the given module. For entries representing a single module, the module name should be checked before invoking this method.- Specified by:
hasCompilationUnitin interfaceIModulePathEntry- Specified by:
hasCompilationUnitin classClasspathLocation- Parameters:
qualifiedPackageName- '/'-separated package namemoduleName- if non-null only CUs attached to the given module should be considered- Returns:
- true iff a .java or .class file could be found in the given module / package.
-
reset
public void reset()- Overrides:
resetin classClasspathLocation
-
toString
-
debugPathString
- Specified by:
debugPathStringin classClasspathLocation
-