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
 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()
           
 
Methods inherited from class org.eclipse.jdt.internal.compiler.batch.ClasspathLocation
equals, fetchAccessRestriction, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

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.