Class ClasspathJar
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.builder.ClasspathLocation
org.aspectj.org.eclipse.jdt.internal.core.builder.ClasspathJar
- Direct Known Subclasses:
ClasspathJMod
,ClasspathMultiReleaseJar
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static SimpleLookupTable
protected static SimpleLookupTable
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.builder.ClasspathLocation
accessRuleSet, annotationZipFile, externalAnnotationPath, limitModuleNames, module, patchModuleName, updates
-
Constructor Summary
ConstructorsConstructorDescriptionClasspathJar(String fileName, AccessRuleSet accessRuleSet, org.eclipse.core.runtime.IPath externalAnnotationPath, boolean isOnModulePath)
ClasspathJar(ZipFile zipFile, AccessRuleSet accessRuleSet, org.eclipse.core.runtime.IPath externalAnnotationPath, boolean isOnModulePath)
-
Method Summary
Modifier and TypeMethodDescriptionprotected static void
addToPackageSet(SimpleSet packageSet, String fileName, boolean endsWithSep)
void
cleanup()
protected IBinaryType
decorateWithExternalAnnotations(IBinaryType reader, String fileNameWithoutExtension)
Search within this classpath location for an .eea file describing the given binary type.boolean
findClass(String typeName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName)
findClass(String binaryFileName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName, boolean asBinaryOnly, Predicate<String> moduleNameFilter)
protected SimpleSet
Calculate and cache the package list available in the zipFile.org.eclipse.core.runtime.IPath
boolean
hasCompilationUnit(String pkgName, String moduleName)
int
hashCode()
boolean
long
char[][]
protected String
readJarContent(SimpleSet packageSet)
toString()
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.builder.ClasspathLocation
areAllModuleOptionsEqual, connectAllLocationsForEEA, createAnswer, externalAnnotationsEquals, findClass, forBinaryFolder, forJrtSystem, forLibrary, forLibrary, forLibrary, getModulesDeclaringPackage, hasModule, isOutputFolder, reset, setModule, singletonModuleNameIf
-
Field Details
-
PackageCache
-
ModuleCache
-
-
Constructor Details
-
ClasspathJar
public ClasspathJar(ZipFile zipFile, AccessRuleSet accessRuleSet, org.eclipse.core.runtime.IPath externalAnnotationPath, boolean isOnModulePath) -
ClasspathJar
public ClasspathJar(String fileName, AccessRuleSet accessRuleSet, org.eclipse.core.runtime.IPath externalAnnotationPath, boolean isOnModulePath)
-
-
Method Details
-
addToPackageSet
-
findPackageSet
Calculate and cache the package list available in the zipFile.- Returns:
- A SimpleSet with the all the package names in the zipFile.
-
readJarContent
-
cleanup
public void cleanup()- Overrides:
cleanup
in classClasspathLocation
-
equals
-
findClass
public NameEnvironmentAnswer findClass(String binaryFileName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName, boolean asBinaryOnly, Predicate<String> moduleNameFilter)- Specified by:
findClass
in classClasspathLocation
-
getProjectRelativePath
public org.eclipse.core.runtime.IPath getProjectRelativePath()- Specified by:
getProjectRelativePath
in classClasspathLocation
-
hashCode
public int hashCode() -
isPackage
- Specified by:
isPackage
in classClasspathLocation
-
hasCompilationUnit
- Specified by:
hasCompilationUnit
in classClasspathLocation
-
lastModified
public long lastModified() -
toString
-
debugPathString
- Specified by:
debugPathString
in classClasspathLocation
-
getModule
- Overrides:
getModule
in classClasspathLocation
-
findClass
public NameEnvironmentAnswer findClass(String typeName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName)- Specified by:
findClass
in classClasspathLocation
-
getManifest
-
listPackages
public char[][] listPackages()- Overrides:
listPackages
in classClasspathLocation
-
decorateWithExternalAnnotations
protected IBinaryType decorateWithExternalAnnotations(IBinaryType reader, String fileNameWithoutExtension)Description copied from class:ClasspathLocation
Search within this classpath location for an .eea file describing the given binary type. If .eea is found return a eea-decorated binary type (of type ExternalAnnotationDecorator), else return the original type unchanged. This method is used only when the project is configured to search all locations for .eea.- Overrides:
decorateWithExternalAnnotations
in classClasspathLocation
-