org.eclipse.jdt.internal.compiler.batch
Class ClasspathDirectory

java.lang.Object
  extended by org.eclipse.jdt.internal.compiler.batch.ClasspathLocation
      extended by org.eclipse.jdt.internal.compiler.batch.ClasspathDirectory
All Implemented Interfaces:
FileSystem.Classpath, SuffixConstants

public class ClasspathDirectory
extends ClasspathLocation


Field Summary
 
Fields inherited from class org.eclipse.jdt.internal.compiler.batch.ClasspathLocation
accessRuleSet, BINARY, destinationPath, SOURCE
 
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
 
Method Summary
 java.util.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, 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 java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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