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 |
file
protected File file
zipFile
protected ZipFile zipFile
closeZipFileAtEnd
protected boolean closeZipFileAtEnd
packageCache
protected Hashtable packageCache
ClasspathJar
public ClasspathJar(File file,
boolean closeZipFileAtEnd,
AccessRuleSet accessRuleSet,
String destinationPath)
fetchLinkedJars
public 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,
String qualifiedPackageName,
String qualifiedBinaryFileName)
findClass
public NameEnvironmentAnswer findClass(char[] typeName,
String qualifiedPackageName,
String qualifiedBinaryFileName,
boolean asBinaryOnly)
findTypeNames
public char[][][] findTypeNames(String qualifiedPackageName)
initialize
public void initialize()
throws IOException
- Description copied from interface:
FileSystem.Classpath
- Initialize the entry
- Throws:
IOException
isPackage
public boolean isPackage(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 String toString()
- Overrides:
toString
in class 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 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.
- Specified by:
getPath
in interface FileSystem.Classpath
- Overrides:
getPath
in class ClasspathLocation
- Returns:
- the path for file based classpath entries
getMode
public int getMode()
- Overrides:
getMode
in class ClasspathLocation
Copyright © 2012. All Rights Reserved.