Klasse ClasspathLocation
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.batch.ClasspathLocation
- Alle implementierten Schnittstellen:
FileSystem.Classpath
,IModulePathEntry
,SuffixConstants
- Bekannte direkte Unterklassen:
ClasspathDirectory
,ClasspathJar
,ClasspathJrt
,ClasspathJsr199
public abstract class ClasspathLocation
extends Object
implements FileSystem.Classpath, SuffixConstants
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final int
static final int
Von Schnittstelle geerbte Felder org.aspectj.org.eclipse.jdt.internal.compiler.util.SuffixConstants
EXTENSION_aj, EXTENSION_AJ, EXTENSION_class, EXTENSION_CLASS, EXTENSION_java, EXTENSION_JAVA, EXTENSION_jmod, EXTENSION_JMOD, SUFFIX_aj, SUFFIX_AJ, SUFFIX_class, SUFFIX_CLASS, SUFFIX_java, SUFFIX_JAVA, SUFFIX_STRING_aj, SUFFIX_STRING_AJ, SUFFIX_STRING_class, SUFFIX_STRING_CLASS, SUFFIX_STRING_java, SUFFIX_STRING_JAVA
-
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotected
ClasspathLocation
(AccessRuleSet accessRuleSet, String destinationPath) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
acceptModule
(IModule mod) Accepts to represent a module location with the given module description.allModules
(Iterable<T> allSystemModules, Function<T, String> getModuleName, Function<T, IModule> getModule) boolean
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()
getModuleNames
(Collection<String> limitModules) getModuleNames
(Collection<String> limitModules, Function<String, IModule> getModule) getPath()
Return the path for file based classpath entries.int
hashCode()
boolean
Specifies whether this entry represents an automatic module.boolean
void
reset()
This method resets the environment.protected Collection<String>
selectModules
(Set<String> modules, Collection<String> limitModules, Function<String, IModule> getModule) protected char[][]
singletonModuleNameIf
(boolean condition) Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.internal.compiler.batch.FileSystem.Classpath
fetchLinkedJars, findClass, findClass, findTypeNames, forbidsExportFrom, hasAnnotationFileFor, hasCUDeclaringPackage, hasModule, initialize, normalizedPath
Von Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.internal.compiler.env.IModulePathEntry
getModule, getModule, getModulesDeclaringPackage, hasCompilationUnit, listPackages, servesModule
-
Felddetails
-
SOURCE
public static final int SOURCE- Siehe auch:
-
BINARY
public static final int BINARY- Siehe auch:
-
accessRuleSet
-
destinationPath
-
-
Konstruktordetails
-
ClasspathLocation
-
-
Methodendetails
-
fetchAccessRestriction
Return the first access rule which is violated when accessing a given type, or null if no 'non accessible' access rule applies.- Parameter:
qualifiedBinaryFileName
- tested type specification, formed as: "org/aspectj/org/eclipse/jdt/core/JavaCore.class"; on systems that use \ as File.separator, the "org\eclipse\jdt\core\JavaCore.class" is accepted as well- Gibt zurück:
- 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() -
equals
-
getPath
Beschreibung aus Schnittstelle kopiert: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.- Angegeben von:
getPath
in SchnittstelleFileSystem.Classpath
- Gibt zurück:
- the path for file based classpath entries
-
getDestinationPath
- Angegeben von:
getDestinationPath
in SchnittstelleFileSystem.Classpath
-
acceptModule
Beschreibung aus Schnittstelle kopiert:FileSystem.Classpath
Accepts to represent a module location with the given module description.- Angegeben von:
acceptModule
in SchnittstelleFileSystem.Classpath
- Parameter:
mod
-
-
isAutomaticModule
public boolean isAutomaticModule()Beschreibung aus Schnittstelle kopiert:IModulePathEntry
Specifies whether this entry represents an automatic module.- Angegeben von:
isAutomaticModule
in SchnittstelleIModulePathEntry
- Gibt zurück:
- true if this is an automatic module, false otherwise
-
getModuleNames
- Angegeben von:
getModuleNames
in SchnittstelleFileSystem.Classpath
-
getModuleNames
public Collection<String> getModuleNames(Collection<String> limitModules, Function<String, IModule> getModule) - Angegeben von:
getModuleNames
in SchnittstelleFileSystem.Classpath
-
selectModules
protected Collection<String> selectModules(Set<String> modules, Collection<String> limitModules, Function<String, IModule> getModule) -
allModules
-
isPackage
- Angegeben von:
isPackage
in SchnittstelleFileSystem.Classpath
-
singletonModuleNameIf
protected char[][] singletonModuleNameIf(boolean condition) -
reset
public void reset()Beschreibung aus Schnittstelle kopiert:FileSystem.Classpath
This method resets the environment. The resulting state is equivalent to a new name environment without creating a new object.- Angegeben von:
reset
in SchnittstelleFileSystem.Classpath
-