org.eclipse.jdt.internal.compiler.batch
类 ClasspathJar

java.lang.Object
  继承者 org.eclipse.jdt.internal.compiler.batch.ClasspathLocation
      继承者 org.eclipse.jdt.internal.compiler.batch.ClasspathJar
所有已实现的接口:
FileSystem.Classpath, SuffixConstants
直接已知子类:
ClasspathSourceJar

public class ClasspathJar
extends ClasspathLocation


字段摘要
protected  boolean closeZipFileAtEnd
           
protected  File file
           
protected  Hashtable packageCache
           
protected  ZipFile zipFile
           
 
从类 org.eclipse.jdt.internal.compiler.batch.ClasspathLocation 继承的字段
accessRuleSet, BINARY, destinationPath, SOURCE
 
从接口 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
 
构造方法摘要
ClasspathJar(File file, boolean closeZipFileAtEnd, AccessRuleSet accessRuleSet, String destinationPath)
           
 
方法摘要
 List 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, String qualifiedPackageName, String qualifiedBinaryFileName)
           
 NameEnvironmentAnswer findClass(char[] typeName, String qualifiedPackageName, String qualifiedBinaryFileName, boolean asBinaryOnly)
           
 char[][][] findTypeNames(String qualifiedPackageName)
           
 int getMode()
           
 String getPath()
          Return the path for file based classpath entries.
 void initialize()
          Initialize the entry
 boolean isPackage(String qualifiedPackageName)
           
 char[] normalizedPath()
          Return a normalized path for file based classpath entries.
 void reset()
          This method resets the environment.
 String toString()
           
 
从类 org.eclipse.jdt.internal.compiler.batch.ClasspathLocation 继承的方法
equals, fetchAccessRestriction, hashCode
 
从类 java.lang.Object 继承的方法
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

字段详细信息

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)
从接口 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.

参数:
problemReporter - problem reporter with which potential misconfiguration issues are raised
返回:
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
从接口 FileSystem.Classpath 复制的描述
Initialize the entry

抛出:
IOException

isPackage

public boolean isPackage(String qualifiedPackageName)

reset

public void reset()
从接口 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()
覆盖:
Object 中的 toString

normalizedPath

public char[] normalizedPath()
从接口 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.

返回:
a normalized path for file based classpath entries

getPath

public String getPath()
从接口 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.

指定者:
接口 FileSystem.Classpath 中的 getPath
覆盖:
ClasspathLocation 中的 getPath
返回:
the path for file based classpath entries

getMode

public int getMode()
覆盖:
ClasspathLocation 中的 getMode


Copyright © 2013. All Rights Reserved.