Class ClasspathMultiReleaseJar
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.batch.ClasspathLocation
org.aspectj.org.eclipse.jdt.internal.compiler.batch.ClasspathJar
org.aspectj.org.eclipse.jdt.internal.compiler.batch.ClasspathMultiReleaseJar
- All Implemented Interfaces:
FileSystem.Classpath, IModulePathEntry, SuffixConstants
-
Nested Class Summary
Nested classes/interfaces inherited from interface FileSystem.Classpath
FileSystem.Classpath.PathKind -
Field Summary
Fields inherited from class ClasspathJar
annotationPaths, annotationZipFile, closeZipFileAtEnd, file, packageCache, zipFileFields inherited from class ClasspathLocation
accessRuleSet, BINARY, destinationPath, SOURCEModifier and TypeFieldDescriptionfinal AccessRuleSetstatic final intfinal Stringstatic final intFields inherited from interface 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_JAVAModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final char[]static final char[]static final char[]static final char[]static final char[]static final char[]static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionClasspathMultiReleaseJar(File file, boolean closeZipFileAtEnd, AccessRuleSet accessRuleSet, String destinationPath, String compliance) -
Method Summary
Modifier and TypeMethodDescriptionfindClass(char[] binaryFileName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName, boolean asBinaryOnly) char[][]getModulesDeclaringPackage(String qualifiedPackageName, String moduleName) Answer the relevant modules that declare the given package.voidreset()This method resets the environment.Methods inherited from class ClasspathJar
addToPackageCache, close, ensureOpen, fetchLinkedJars, findClass, findTypeNames, getMode, getModule, getPath, hasAnnotationFileFor, hasCompilationUnit, initialize, listPackages, normalizedPath, toStringModifier and TypeMethodDescriptionprotected voidaddToPackageCache(String fileName, boolean endsWithSep) voidclose()protected voidfetchLinkedJars(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) char[][][]findTypeNames(String qualifiedPackageName, String moduleName) intgetMode()Get the module that this entry contributes.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.voidInitialize the entrychar[][]Lists all packages in this modulepath entry.char[]Return a normalized path for file based classpath entries.toString()Methods inherited from class ClasspathLocation
acceptModule, allModules, equals, fetchAccessRestriction, getDestinationPath, getModuleNames, getModuleNames, getPathKind, hashCode, isAutomaticModule, isPackage, selectModules, setPathKind, singletonModuleNameIfModifier and TypeMethodDescriptionvoidacceptModule(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) booleanprotected AccessRestrictionfetchAccessRestriction(String qualifiedBinaryFileName) Return the first access rule which is violated when accessing a given type, or null if no 'non accessible' access rule applies.getModuleNames(Collection<String> limitModules) getModuleNames(Collection<String> limitModules, Function<String, IModule> getModule) inthashCode()booleanSpecifies whether this entry represents an automatic module.booleanprotected Collection<String> selectModules(Set<String> modules, Collection<String> limitModules, Function<String, IModule> getModule) voidprotected char[][]singletonModuleNameIf(boolean condition) Methods inherited from interface FileSystem.Classpath
forbidsExportFrom, hasCUDeclaringPackage, hasModuleModifier and TypeMethodDescriptiondefault booleanforbidsExportFrom(String modName) default booleanhasCUDeclaringPackage(String qualifiedPackageName, Function<CompilationUnit, String> pkgNameExtractor) default booleanMethods inherited from interface IModulePathEntry
getModule, servesModuleModifier and TypeMethodDescriptiondefault IModulegetModule(char[] name) Get the module named name from this entry.default booleanservesModule(char[] name) Indicates whether this entry knows the module named name and can answer queries regarding the module
-
Constructor Details
-
ClasspathMultiReleaseJar
public ClasspathMultiReleaseJar(File file, boolean closeZipFileAtEnd, AccessRuleSet accessRuleSet, String destinationPath, String compliance)
-
-
Method Details
-
getModulesDeclaringPackage
Description copied from interface: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.- Specified by:
getModulesDeclaringPackagein interfaceIModulePathEntry- Overrides:
getModulesDeclaringPackagein classClasspathJar
-
findClass
public NameEnvironmentAnswer findClass(char[] binaryFileName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName, boolean asBinaryOnly) - Specified by:
findClassin interfaceFileSystem.Classpath- Overrides:
findClassin classClasspathJar
-
reset
public void reset()Description copied from interface:FileSystem.ClasspathThis method resets the environment. The resulting state is equivalent to a new name environment without creating a new object.- Specified by:
resetin interfaceFileSystem.Classpath- Overrides:
resetin classClasspathJar
-