public class ClasspathJar extends ClasspathLocation
| Modifier and Type | Field and Description |
|---|---|
protected static SimpleLookupTable |
ModuleCache |
protected static SimpleLookupTable |
PackageCache |
limitModuleNames, module, patchModuleName, updates| Constructor and Description |
|---|
ClasspathJar(java.lang.String fileName,
AccessRuleSet accessRuleSet,
IPath externalAnnotationPath,
boolean isOnModulePath) |
ClasspathJar(java.util.zip.ZipFile zipFile,
AccessRuleSet accessRuleSet,
IPath externalAnnotationPath,
boolean isOnModulePath) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
addToPackageSet(SimpleSet packageSet,
java.lang.String fileName,
boolean endsWithSep) |
void |
cleanup() |
java.lang.String |
debugPathString() |
boolean |
equals(java.lang.Object o) |
NameEnvironmentAnswer |
findClass(java.lang.String typeName,
java.lang.String qualifiedPackageName,
java.lang.String moduleName,
java.lang.String qualifiedBinaryFileName) |
NameEnvironmentAnswer |
findClass(java.lang.String binaryFileName,
java.lang.String qualifiedPackageName,
java.lang.String moduleName,
java.lang.String qualifiedBinaryFileName,
boolean asBinaryOnly,
java.util.function.Predicate<java.lang.String> moduleNameFilter) |
protected SimpleSet |
findPackageSet()
Calculate and cache the package list available in the zipFile.
|
java.util.jar.Manifest |
getManifest() |
IModule |
getModule() |
IPath |
getProjectRelativePath() |
boolean |
hasCompilationUnit(java.lang.String pkgName,
java.lang.String moduleName) |
int |
hashCode() |
boolean |
isPackage(java.lang.String qualifiedPackageName,
java.lang.String moduleName) |
long |
lastModified() |
char[][] |
listPackages() |
protected java.lang.String |
readJarContent(SimpleSet packageSet) |
java.lang.String |
toString() |
areAllModuleOptionsEqual, findClass, forBinaryFolder, forJrtSystem, forLibrary, forLibrary, getModulesDeclaringPackage, hasModule, isOutputFolder, reset, setModule, singletonModuleNameIfprotected static SimpleLookupTable PackageCache
protected static SimpleLookupTable ModuleCache
public ClasspathJar(java.util.zip.ZipFile zipFile,
AccessRuleSet accessRuleSet,
IPath externalAnnotationPath,
boolean isOnModulePath)
public ClasspathJar(java.lang.String fileName,
AccessRuleSet accessRuleSet,
IPath externalAnnotationPath,
boolean isOnModulePath)
protected static void addToPackageSet(SimpleSet packageSet, java.lang.String fileName, boolean endsWithSep)
protected SimpleSet findPackageSet()
protected java.lang.String readJarContent(SimpleSet packageSet)
public void cleanup()
cleanup in class ClasspathLocationpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic NameEnvironmentAnswer findClass(java.lang.String binaryFileName, java.lang.String qualifiedPackageName, java.lang.String moduleName, java.lang.String qualifiedBinaryFileName, boolean asBinaryOnly, java.util.function.Predicate<java.lang.String> moduleNameFilter)
findClass in class ClasspathLocationpublic IPath getProjectRelativePath()
getProjectRelativePath in class ClasspathLocationpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isPackage(java.lang.String qualifiedPackageName,
java.lang.String moduleName)
isPackage in class ClasspathLocationpublic boolean hasCompilationUnit(java.lang.String pkgName,
java.lang.String moduleName)
hasCompilationUnit in class ClasspathLocationpublic long lastModified()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String debugPathString()
debugPathString in class ClasspathLocationpublic IModule getModule()
getModule in class ClasspathLocationpublic NameEnvironmentAnswer findClass(java.lang.String typeName, java.lang.String qualifiedPackageName, java.lang.String moduleName, java.lang.String qualifiedBinaryFileName)
findClass in class ClasspathLocationpublic java.util.jar.Manifest getManifest()
public char[][] listPackages()
listPackages in class ClasspathLocation