public class ClasspathJar extends ClasspathLocation
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<java.lang.String> |
annotationPaths |
protected java.util.zip.ZipFile |
annotationZipFile |
protected boolean |
closeZipFileAtEnd |
protected java.io.File |
file |
protected java.util.Set<java.lang.String> |
packageCache |
protected java.util.zip.ZipFile |
zipFile |
accessRuleSet, BINARY, destinationPath, SOURCEEXTENSION_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| Constructor and Description |
|---|
ClasspathJar(java.io.File file,
boolean closeZipFileAtEnd,
AccessRuleSet accessRuleSet,
java.lang.String destinationPath) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToPackageCache(java.lang.String fileName,
boolean endsWithSep) |
void |
close() |
java.util.List<FileSystem.Classpath> |
fetchLinkedJars(FileSystem.ClasspathSectionProblemReporter problemReporter)
Return a list of the jar file names defined in the Class-Path section
of the jar file manifest if any, null else.
|
NameEnvironmentAnswer |
findClass(char[] typeName,
java.lang.String qualifiedPackageName,
java.lang.String moduleName,
java.lang.String qualifiedBinaryFileName) |
NameEnvironmentAnswer |
findClass(char[] typeName,
java.lang.String qualifiedPackageName,
java.lang.String moduleName,
java.lang.String qualifiedBinaryFileName,
boolean asBinaryOnly) |
char[][][] |
findTypeNames(java.lang.String qualifiedPackageName,
java.lang.String moduleName) |
int |
getMode() |
IModule |
getModule()
Get the module that this entry contributes.
|
char[][] |
getModulesDeclaringPackage(java.lang.String qualifiedPackageName,
java.lang.String moduleName)
Answer the relevant modules that declare the given package.
|
java.lang.String |
getPath()
Return the path for file based classpath entries.
|
boolean |
hasAnnotationFileFor(java.lang.String qualifiedTypeName)
Can the current location provide an external annotation file for the given type?
|
boolean |
hasCompilationUnit(java.lang.String qualifiedPackageName,
java.lang.String moduleName)
Answer whether the given package has any compilation unit (.java or .class) in the given module.
|
void |
initialize()
Initialize the entry
|
char[][] |
listPackages()
Lists all packages in this modulepath entry.
|
char[] |
normalizedPath()
Return a normalized path for file based classpath entries.
|
void |
reset()
This method resets the environment.
|
java.lang.String |
toString() |
acceptModule, allModules, equals, fetchAccessRestriction, getDestinationPath, getModuleNames, getModuleNames, hashCode, isAutomaticModule, isPackage, selectModules, singletonModuleNameIfclone, finalize, getClass, notify, notifyAll, wait, wait, waithasCUDeclaringPackage, hasModulegetModule, servesModuleprotected java.io.File file
protected java.util.zip.ZipFile zipFile
protected java.util.zip.ZipFile annotationZipFile
protected boolean closeZipFileAtEnd
protected java.util.Set<java.lang.String> packageCache
protected java.util.List<java.lang.String> annotationPaths
public ClasspathJar(java.io.File file,
boolean closeZipFileAtEnd,
AccessRuleSet accessRuleSet,
java.lang.String destinationPath)
public java.util.List<FileSystem.Classpath> fetchLinkedJars(FileSystem.ClasspathSectionProblemReporter problemReporter)
FileSystem.ClasspathproblemReporter - problem reporter with which potential
misconfiguration issues are raisedpublic NameEnvironmentAnswer findClass(char[] typeName, java.lang.String qualifiedPackageName, java.lang.String moduleName, java.lang.String qualifiedBinaryFileName)
public NameEnvironmentAnswer findClass(char[] typeName, java.lang.String qualifiedPackageName, java.lang.String moduleName, java.lang.String qualifiedBinaryFileName, boolean asBinaryOnly)
public boolean hasAnnotationFileFor(java.lang.String qualifiedTypeName)
FileSystem.ClasspathqualifiedTypeName - type name in qualified /-separated notation.public char[][][] findTypeNames(java.lang.String qualifiedPackageName,
java.lang.String moduleName)
public void initialize()
throws java.io.IOException
FileSystem.Classpathjava.io.IOExceptionprotected void addToPackageCache(java.lang.String fileName,
boolean endsWithSep)
public char[][] getModulesDeclaringPackage(java.lang.String qualifiedPackageName,
java.lang.String moduleName)
IModulePathEntrypublic boolean hasCompilationUnit(java.lang.String qualifiedPackageName,
java.lang.String moduleName)
IModulePathEntryqualifiedPackageName - '/'-separated package namemoduleName - if non-null only CUs attached to the given module should be consideredpublic char[][] listPackages()
IModulePathEntrypublic void reset()
FileSystem.Classpathreset in interface FileSystem.Classpathreset in class ClasspathLocationpublic java.lang.String toString()
toString in class java.lang.Objectpublic char[] normalizedPath()
FileSystem.Classpathpublic java.lang.String getPath()
FileSystem.ClasspathgetPath in interface FileSystem.ClasspathgetPath in class ClasspathLocationpublic int getMode()
getMode in class ClasspathLocationpublic IModule getModule()
IModulePathEntrypublic void close()