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

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

public abstract class ClasspathLocation
extends Object
implements FileSystem.Classpath, SuffixConstants


Field Summary
 AccessRuleSet accessRuleSet
           
static int BINARY
           
 String destinationPath
           
static int 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
 
Constructor Summary
protected ClasspathLocation(AccessRuleSet accessRuleSet, String destinationPath)
           
 
Method Summary
 boolean equals(Object obj)
           
protected  AccessRestriction fetchAccessRestriction(String qualifiedBinaryFileName)
          Return the first access rule which is violated when accessing a given type, or null if no 'non accessible' access rule applies.
 int getMode()
           
 String getPath()
          Return the path for file based classpath entries.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jdt.internal.compiler.batch.FileSystem.Classpath
fetchLinkedJars, findClass, findClass, findTypeNames, initialize, isPackage, normalizedPath, reset
 

Field Detail

SOURCE

public static final int SOURCE
See Also:
Constant Field Values

BINARY

public static final int BINARY
See Also:
Constant Field Values

accessRuleSet

public AccessRuleSet accessRuleSet

destinationPath

public String destinationPath
Constructor Detail

ClasspathLocation

protected ClasspathLocation(AccessRuleSet accessRuleSet,
                            String destinationPath)
Method Detail

fetchAccessRestriction

protected AccessRestriction fetchAccessRestriction(String qualifiedBinaryFileName)
Return the first access rule which is violated when accessing a given type, or null if no 'non accessible' access rule applies.

Parameters:
qualifiedBinaryFileName - tested type specification, formed as: "org/eclipse/jdt/core/JavaCore.class"; on systems that use \ as File.separator, the "org\eclipse\jdt\core\JavaCore.class" is accepted as well
Returns:
the first access rule which is violated when accessing a given type, or null if none applies

getMode

public int getMode()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

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
Returns:
the path for file based classpath entries


Copyright © 2012. All Rights Reserved.