Klasse ClasspathJsr199
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.batch.ClasspathLocation
org.aspectj.org.eclipse.jdt.internal.compiler.batch.ClasspathJsr199
- Alle implementierten Schnittstellen:
FileSystem.Classpath
,IModulePathEntry
,SuffixConstants
-
Feldübersicht
Von Klasse geerbte Felder org.aspectj.org.eclipse.jdt.internal.compiler.batch.ClasspathLocation
accessRuleSet, BINARY, destinationPath, SOURCE
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
KonstruktorBeschreibungClasspathJsr199
(JavaFileManager file, JavaFileManager.Location location) ClasspathJsr199
(ClasspathJep247 older, JavaFileManager file, JavaFileManager.Location location) ClasspathJsr199
(FileSystem.Classpath jrt, JavaFileManager file, JavaFileManager.Location location) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
acceptModule
(IModule mod) Accepts to represent a module location with the given module description.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.findClass
(char[] typeName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName) findClass
(char[] typeName, String qualifiedPackageName, String moduleName, String aQualifiedBinaryFileName, boolean asBinaryOnly) char[][][]
findTypeNames
(String aQualifiedPackageName, String moduleName) int
getMode()
getModule
(char[] name) Get the module named name from this entry.getModuleNames
(Collection<String> limitModules) char[][]
getModulesDeclaringPackage
(String aQualifiedPackageName, String moduleName) Answer the relevant modules that declare the given package.getPath()
Return the path for file based classpath entries.boolean
hasAnnotationFileFor
(String qualifiedTypeName) Can the current location provide an external annotation file for the given type?boolean
hasCompilationUnit
(String qualifiedPackageName, String moduleName) Answer whether the given package has any compilation unit (.java or .class) in the given module.boolean
void
Initialize the entrychar[]
Return a normalized path for file based classpath entries.void
reset()
This method resets the environment.toString()
Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.compiler.batch.ClasspathLocation
allModules, equals, fetchAccessRestriction, getDestinationPath, getModuleNames, hashCode, isAutomaticModule, isPackage, selectModules, singletonModuleNameIf
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.internal.compiler.batch.FileSystem.Classpath
forbidsExportFrom, hasCUDeclaringPackage
Von Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.internal.compiler.env.IModulePathEntry
getModule, listPackages, servesModule
-
Konstruktordetails
-
ClasspathJsr199
-
ClasspathJsr199
public ClasspathJsr199(FileSystem.Classpath jrt, JavaFileManager file, JavaFileManager.Location location) -
ClasspathJsr199
public ClasspathJsr199(ClasspathJep247 older, JavaFileManager file, JavaFileManager.Location location)
-
-
Methodendetails
-
fetchLinkedJars
Beschreibung aus Schnittstelle kopiert: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.- Parameter:
problemReporter
- problem reporter with which potential misconfiguration issues are raised- Gibt zurück:
- 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 moduleName, String aQualifiedBinaryFileName, boolean asBinaryOnly) -
findTypeNames
-
initialize
Beschreibung aus Schnittstelle kopiert:FileSystem.Classpath
Initialize the entry- Löst aus:
IOException
-
acceptModule
Beschreibung aus Schnittstelle kopiert:FileSystem.Classpath
Accepts to represent a module location with the given module description.- Angegeben von:
acceptModule
in SchnittstelleFileSystem.Classpath
- Setzt außer Kraft:
acceptModule
in KlasseClasspathLocation
- Parameter:
mod
-
-
getModulesDeclaringPackage
Beschreibung aus Schnittstelle kopiert:IModulePathEntry
Answer the relevant modules that declare the given package. If moduleName is ModuleBinding.ANY then all packages are relevant, if moduleName is ModuleBinding.UNNAMED, then only packages in the unnamed module are relevant, otherwise consider only packages in the module identified by moduleName. -
hasCompilationUnit
Beschreibung aus Schnittstelle kopiert:IModulePathEntry
Answer whether the given package has any compilation unit (.java or .class) in the given module. For entries representing a single module, the module name should be checked before invoking this method.- Parameter:
qualifiedPackageName
- '/'-separated package namemoduleName
- if non-null only CUs attached to the given module should be considered- Gibt zurück:
- true iff a .java or .class file could be found in the given module / package.
-
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
- Setzt außer Kraft:
reset
in KlasseClasspathLocation
-
toString
-
normalizedPath
public char[] normalizedPath()Beschreibung aus Schnittstelle kopiert: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.- Gibt zurück:
- a normalized path for file based classpath entries
-
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
- Setzt außer Kraft:
getPath
in KlasseClasspathLocation
- Gibt zurück:
- the path for file based classpath entries
-
getMode
public int getMode()- Setzt außer Kraft:
getMode
in KlasseClasspathLocation
-
hasAnnotationFileFor
Beschreibung aus Schnittstelle kopiert:FileSystem.Classpath
Can the current location provide an external annotation file for the given type?- Parameter:
qualifiedTypeName
- type name in qualified /-separated notation.
-
getModuleNames
- Angegeben von:
getModuleNames
in SchnittstelleFileSystem.Classpath
- Setzt außer Kraft:
getModuleNames
in KlasseClasspathLocation
-
hasModule
public boolean hasModule() -
getModule
Beschreibung aus Schnittstelle kopiert:IModulePathEntry
Get the module named name from this entry. May be null- Parameter:
name
- - The name of the module to look up- Gibt zurück:
- The module named name or null
-
findClass
public NameEnvironmentAnswer findClass(char[] typeName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName)
-