Klasse ClasspathJrt
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.batch.ClasspathLocation
org.aspectj.org.eclipse.jdt.internal.compiler.batch.ClasspathJrt
- Alle implementierten Schnittstellen:
FileSystem.Classpath,IModulePathEntry,IMultiModuleEntry,SuffixConstants
- Bekannte direkte Unterklassen:
ClasspathJep247
-
Feldübersicht
FelderVon Klasse geerbte Felder org.aspectj.org.eclipse.jdt.internal.compiler.batch.ClasspathLocation
accessRuleSet, BINARY, destinationPath, SOURCEVon 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
KonstruktorenKonstruktorBeschreibungClasspathJrt(File file, boolean closeZipFileAtEnd, AccessRuleSet accessRuleSet, String destinationPath) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected voidaddTypeName(ArrayList answers, String fileName, int last, char[] packageName) allModules(Iterable<T> allSystemModules, Function<T, String> getModuleName, Function<T, IModule> getModule) 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 qualifiedBinaryFileName, boolean asBinaryOnly) char[][][]findTypeNames(String qualifiedPackageName, String moduleName) intgetMode()getModule(char[] moduleName) Get the module named name that this entry contributes to the module pathgetModuleNames(Collection<String> limitModule, Function<String, IModule> getModule) char[][]getModulesDeclaringPackage(String qualifiedPackageName, String moduleName) Answer the relevant modules that declare the given package.getPath()Return the path for file based classpath entries.booleanhasAnnotationFileFor(String qualifiedTypeName) Can the current location provide an external annotation file for the given type?booleanhasCompilationUnit(String qualifiedPackageName, String moduleName) Answer whether the given package has any compilation unit (.java or .class) in the given module.booleanvoidInitialize the entryvoidprotected IBinaryTypemaybeDecorateForExternalAnnotations(String qualifiedBinaryFileName, IBinaryType reader) char[]Return a normalized path for file based classpath entries.voidreset()This method resets the environment.booleanservesModule(char[] moduleName) Indicates whether this entry knows the module named name and can answer queries regarding the moduletoString()Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.compiler.batch.ClasspathLocation
acceptModule, equals, fetchAccessRestriction, getDestinationPath, getModuleNames, hashCode, isAutomaticModule, isPackage, selectModules, singletonModuleNameIfVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.internal.compiler.batch.FileSystem.Classpath
forbidsExportFrom, hasCUDeclaringPackageVon Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.internal.compiler.env.IModulePathEntry
getModule, isAutomaticModule, listPackagesVon Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.internal.compiler.env.IMultiModuleEntry
getModuleNames
-
Felddetails
-
file
-
annotationZipFile
-
closeZipFileAtEnd
protected boolean closeZipFileAtEnd -
ModulesCache
-
moduleNamesCache
-
annotationPaths
-
-
Konstruktordetails
-
ClasspathJrt
public ClasspathJrt(File file, boolean closeZipFileAtEnd, AccessRuleSet accessRuleSet, String destinationPath)
-
-
Methodendetails
-
fetchLinkedJars
Beschreibung aus Schnittstelle kopiert:FileSystem.ClasspathReturn 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.- Angegeben von:
fetchLinkedJarsin SchnittstelleFileSystem.Classpath- 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
-
getModulesDeclaringPackage
Beschreibung aus Schnittstelle kopiert:IModulePathEntryAnswer 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.- Angegeben von:
getModulesDeclaringPackagein SchnittstelleIModulePathEntry
-
hasCompilationUnit
Beschreibung aus Schnittstelle kopiert:IModulePathEntryAnswer 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.- Angegeben von:
hasCompilationUnitin SchnittstelleIModulePathEntry- 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.
-
findClass
public NameEnvironmentAnswer findClass(char[] typeName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName) - Angegeben von:
findClassin SchnittstelleFileSystem.Classpath
-
findClass
public NameEnvironmentAnswer findClass(char[] typeName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName, boolean asBinaryOnly) - Angegeben von:
findClassin SchnittstelleFileSystem.Classpath
-
maybeDecorateForExternalAnnotations
protected IBinaryType maybeDecorateForExternalAnnotations(String qualifiedBinaryFileName, IBinaryType reader) -
hasAnnotationFileFor
Beschreibung aus Schnittstelle kopiert:FileSystem.ClasspathCan the current location provide an external annotation file for the given type?- Angegeben von:
hasAnnotationFileForin SchnittstelleFileSystem.Classpath- Parameter:
qualifiedTypeName- type name in qualified /-separated notation.
-
findTypeNames
- Angegeben von:
findTypeNamesin SchnittstelleFileSystem.Classpath
-
addTypeName
-
initialize
Beschreibung aus Schnittstelle kopiert:FileSystem.ClasspathInitialize the entry- Angegeben von:
initializein SchnittstelleFileSystem.Classpath- Löst aus:
IOException
-
loadModules
public void loadModules() -
getModuleNames
public Collection<String> getModuleNames(Collection<String> limitModule, Function<String, IModule> getModule) - Angegeben von:
getModuleNamesin SchnittstelleFileSystem.Classpath- Setzt außer Kraft:
getModuleNamesin KlasseClasspathLocation
-
allModules
protected <T> List<String> allModules(Iterable<T> allSystemModules, Function<T, String> getModuleName, Function<T, IModule> getModule) - Setzt außer Kraft:
allModulesin KlasseClasspathLocation
-
reset
public void reset()Beschreibung aus Schnittstelle kopiert:FileSystem.ClasspathThis method resets the environment. The resulting state is equivalent to a new name environment without creating a new object.- Angegeben von:
resetin SchnittstelleFileSystem.Classpath- Setzt außer Kraft:
resetin KlasseClasspathLocation
-
toString
-
normalizedPath
public char[] normalizedPath()Beschreibung aus Schnittstelle kopiert:FileSystem.ClasspathReturn 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.- Angegeben von:
normalizedPathin SchnittstelleFileSystem.Classpath- Gibt zurück:
- a normalized path for file based classpath entries
-
getPath
Beschreibung aus Schnittstelle kopiert:FileSystem.ClasspathReturn 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:
getPathin SchnittstelleFileSystem.Classpath- Setzt außer Kraft:
getPathin KlasseClasspathLocation- Gibt zurück:
- the path for file based classpath entries
-
getMode
public int getMode()- Setzt außer Kraft:
getModein KlasseClasspathLocation
-
hasModule
public boolean hasModule()- Angegeben von:
hasModulein SchnittstelleFileSystem.Classpath
-
getModule
Beschreibung aus Schnittstelle kopiert:IMultiModuleEntryGet the module named name that this entry contributes to the module path- Angegeben von:
getModulein SchnittstelleIModulePathEntry- Angegeben von:
getModulein SchnittstelleIMultiModuleEntry- Parameter:
moduleName- - The name of the module to look up- Gibt zurück:
- The module named name or null
-
servesModule
public boolean servesModule(char[] moduleName) Beschreibung aus Schnittstelle kopiert:IModulePathEntryIndicates whether this entry knows the module named name and can answer queries regarding the module- Angegeben von:
servesModulein SchnittstelleIModulePathEntry- Parameter:
moduleName- The name of the module- Gibt zurück:
- True if this entry knows the module, false otherwise
-