org.aspectj.org.eclipse.jdt.internal.compiler.batch
Class ClasspathJar

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.internal.compiler.batch.ClasspathLocation
      extended by org.aspectj.org.eclipse.jdt.internal.compiler.batch.ClasspathJar
All Implemented Interfaces:
FileSystem.Classpath, SuffixConstants
Direct Known Subclasses:
ClasspathSourceJar

public class ClasspathJar
extends ClasspathLocation


Field Summary
protected  boolean closeZipFileAtEnd
           
protected  java.io.File file
           
protected  char[] normalizedPath
           
protected  java.util.Hashtable packageCache
           
protected  java.util.zip.ZipFile zipFile
           
 
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.batch.ClasspathLocation
accessRuleSet, BINARY, destinationPath, SOURCE
 
Fields inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.util.SuffixConstants
EXTENSION_aj, EXTENSION_AJ, EXTENSION_class, EXTENSION_CLASS, EXTENSION_jar, EXTENSION_JAR, EXTENSION_java, EXTENSION_JAVA, EXTENSION_zip, EXTENSION_ZIP, SUFFIX_aj, SUFFIX_AJ, SUFFIX_class, SUFFIX_CLASS, SUFFIX_jar, SUFFIX_JAR, SUFFIX_java, SUFFIX_JAVA, SUFFIX_STRING_aj, SUFFIX_STRING_AJ, SUFFIX_STRING_class, SUFFIX_STRING_CLASS, SUFFIX_STRING_jar, SUFFIX_STRING_JAR, SUFFIX_STRING_java, SUFFIX_STRING_JAVA, SUFFIX_STRING_zip, SUFFIX_STRING_ZIP, SUFFIX_zip, SUFFIX_ZIP
 
Constructor Summary
ClasspathJar(java.io.File file, boolean closeZipFileAtEnd, AccessRuleSet accessRuleSet, java.lang.String destinationPath)
           
 
Method Summary
 void close()
           
 NameEnvironmentAnswer findClass(char[] typeName, java.lang.String qualifiedPackageName, java.lang.String qualifiedBinaryFileName)
           
 NameEnvironmentAnswer findClass(char[] typeName, java.lang.String qualifiedPackageName, java.lang.String qualifiedBinaryFileName, boolean asBinaryOnly)
           
 char[][][] findTypeNames(java.lang.String qualifiedPackageName)
           
 java.lang.String getPath()
          Return the path for file based classpath entries.
 void initialize()
          Initialize the entry
 boolean isPackage(java.lang.String qualifiedPackageName)
           
 char[] normalizedPath()
          Return a normalized path for file based classpath entries.
 void reset()
          This method resets the environment.
 java.lang.String toString()
           
 
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.batch.ClasspathLocation
fetchAccessRestriction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

file

protected java.io.File file

zipFile

protected java.util.zip.ZipFile zipFile

closeZipFileAtEnd

protected boolean closeZipFileAtEnd

packageCache

protected java.util.Hashtable packageCache

normalizedPath

protected char[] normalizedPath
Constructor Detail

ClasspathJar

public ClasspathJar(java.io.File file,
                    boolean closeZipFileAtEnd,
                    AccessRuleSet accessRuleSet,
                    java.lang.String destinationPath)
Method Detail

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 ending with a file separator for directories, an absolute path 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

close

public void close()