org.eclipse.jdt.internal.compiler.batch
Class ClasspathJar
java.lang.Object
org.eclipse.jdt.internal.compiler.batch.ClasspathLocation
org.eclipse.jdt.internal.compiler.batch.ClasspathJar
- All Implemented Interfaces:
- FileSystem.Classpath, SuffixConstants
- Direct Known Subclasses:
- ClasspathSourceJar
public class ClasspathJar
- extends ClasspathLocation
Fields inherited from interface org.eclipse.jdt.internal.compiler.util.SuffixConstants |
EXTENSION_class, EXTENSION_CLASS, EXTENSION_java, EXTENSION_JAVA, SUFFIX_class, SUFFIX_CLASS, SUFFIX_java, SUFFIX_JAVA, SUFFIX_STRING_class, SUFFIX_STRING_CLASS, SUFFIX_STRING_java, SUFFIX_STRING_JAVA |
Constructor Summary |
ClasspathJar(java.io.File file,
boolean closeZipFileAtEnd,
AccessRuleSet accessRuleSet,
java.lang.String destinationPath)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MANIFEST_ANALYZER
public static final ClasspathJar.ManifestAnalyzer MANIFEST_ANALYZER
ClasspathJar
public ClasspathJar(java.io.File file,
boolean closeZipFileAtEnd,
AccessRuleSet accessRuleSet,
java.lang.String destinationPath)
fetchLinkedJars
public java.util.List fetchLinkedJars(FileSystem.ClasspathSectionProblemReporter problemReporter)
- Description copied from interface:
FileSystem.Classpath
- Return a list of the jar file names defined in the Class-Path section
of the jar file manifest if any, null else. Only ClasspathJar (and
extending classes) instances may return a non-null result.
- Parameters:
problemReporter
- problem reporter with which potential
misconfiguration issues are raised
- Returns:
- a list of the jar file names defined in the Class-Path
section of the jar file manifest if any
findClass
public NameEnvironmentAnswer findClass(char[] typeName,
java.lang.String qualifiedPackageName,
java.lang.String qualifiedBinaryFileName)
findClass
public NameEnvironmentAnswer findClass(char[] typeName,
java.lang.String qualifiedPackageName,
java.lang.String qualifiedBinaryFileName,
boolean asBinaryOnly)
findTypeNames
public char[][][] findTypeNames(java.lang.String qualifiedPackageName)
initialize
public void initialize()
throws java.io.IOException
- Description copied from interface:
FileSystem.Classpath
- Initialize the entry
- Throws:
java.io.IOException
isPackage
public boolean isPackage(java.lang.String qualifiedPackageName)
reset
public void reset()
- Description copied from interface:
FileSystem.Classpath
- This method resets the environment. The resulting state is equivalent to
a new name environment without creating a new object.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
normalizedPath
public char[] normalizedPath()
- Description copied from interface:
FileSystem.Classpath
- Return a normalized path for file based classpath entries. This is an
absolute path in which file separators are transformed to the
platform-agnostic '/', ending with a '/' for directories. This is an
absolute path in which file separators are transformed to the
platform-agnostic '/', deprived from the '.jar' (resp. '.zip')
extension for jar (resp. zip) files.
- Returns:
- a normalized path for file based classpath entries
getPath
public java.lang.String getPath()
- Description copied from interface:
FileSystem.Classpath
- Return the path for file based classpath entries. This is an absolute path
ending with a file separator for directories, an absolute path including the '.jar'
(resp. '.zip') extension for jar (resp. zip) files.
- Returns:
- the path for file based classpath entries