Class ClasspathJrtWithReleaseOption
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.builder.ClasspathLocation
org.aspectj.org.eclipse.jdt.internal.core.builder.ClasspathJrt
org.aspectj.org.eclipse.jdt.internal.core.builder.ClasspathJrtWithReleaseOption
- All Implemented Interfaces:
IModulePathEntry, IMultiModuleEntry
-
Field Summary
Fields inherited from class ClasspathJrt
jrtFileSystem, modulesCache, zipFilenameFields inherited from class ClasspathLocation
accessRuleSet, annotationZipFile, externalAnnotationPath, limitModuleNames, module, patchModuleName, updatesModifier and TypeFieldDescriptionprotected AccessRuleSetprotected ZipFileprotected Stringprotected IModuleprotected Stringprotected IUpdatableModule.UpdatesByKind -
Constructor Summary
ConstructorsConstructorDescriptionClasspathJrtWithReleaseOption(String zipFilename, AccessRuleSet accessRuleSet, org.eclipse.core.runtime.IPath externalAnnotationPath, String release) -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()booleanfindClass(String binaryFileName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName, boolean asBinaryOnly, Predicate<String> moduleNameFilter) protected StringgetKey()getModuleNames(Collection<String> limitModules) Get the names of all modules served by this entry.protected StringinthashCode()booleanvoidtoString()Methods inherited from class ClasspathJrt
addRequired, debugPathString, findClass, findClass, getModule, getModule, getModulesDeclaringPackage, getProjectRelativePath, hasCompilationUnit, isPackage, loadModules, resetCaches, selectModulesModifier and TypeMethodDescriptionprotected voidaddRequired(String mod, Set<String> allModules) findClass(char[] typeName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName, boolean asBinaryOnly, Predicate<String> moduleNameFilter) findClass(String typeName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName) getModule(char[] moduleName) Get the module named name that this entry contributes to the module pathchar[][]getModulesDeclaringPackage(String qualifiedPackageName, String moduleName) Answer the relevant modules that declare the given package.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.booleanstatic voidloadModules(ClasspathJrt jrt) static voidTEST ONLYprotected Collection<String> selectModules(Set<String> keySet, Collection<String> limitModules) Methods inherited from class ClasspathLocation
areAllModuleOptionsEqual, connectAllLocationsForEEA, createAnswer, decorateWithExternalAnnotations, externalAnnotationsEquals, forBinaryFolder, forJrtSystem, forLibrary, forLibrary, forLibrary, getModule, isOutputFolder, listPackages, reset, 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 onlystatic 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) booleanchar[][]voidreset()voidchar[][]singletonModuleNameIf(boolean condition) Methods inherited from interface IModulePathEntry
getModule, isAutomaticModule, listPackages, servesModuleModifier and TypeMethodDescriptiondefault IModuleGet the module that this entry contributes.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
-
Constructor Details
-
ClasspathJrtWithReleaseOption
public ClasspathJrtWithReleaseOption(String zipFilename, AccessRuleSet accessRuleSet, org.eclipse.core.runtime.IPath externalAnnotationPath, String release) throws org.eclipse.core.runtime.CoreException - Throws:
org.eclipse.core.runtime.CoreException
-
-
Method Details
-
getReleaseVersion
- Overrides:
getReleaseVersionin classClasspathJrt
-
loadModules
public void loadModules() -
findClass
public NameEnvironmentAnswer findClass(String binaryFileName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName, boolean asBinaryOnly, Predicate<String> moduleNameFilter) - Overrides:
findClassin classClasspathJrt
-
getModuleNames
Description copied from interface:IMultiModuleEntryGet the names of all modules served by this entry.- Specified by:
getModuleNamesin interfaceIMultiModuleEntry- Overrides:
getModuleNamesin classClasspathJrt- Parameters:
limitModules- if non-null, only modules with names in this set and their transitive closure will be reported.
-
cleanup
public void cleanup()- Overrides:
cleanupin classClasspathJrt
-
hasModule
public boolean hasModule()- Overrides:
hasModulein classClasspathJrt
-
getKey
- Overrides:
getKeyin classClasspathJrt
-
equals
- Overrides:
equalsin classClasspathJrt
-
hashCode
public int hashCode()- Overrides:
hashCodein classClasspathJrt
-
toString
- Overrides:
toStringin classClasspathJrt
-