Class ClasspathJep247Jdk12
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.batch.ClasspathLocation
org.aspectj.org.eclipse.jdt.internal.compiler.batch.ClasspathJrt
org.aspectj.org.eclipse.jdt.internal.compiler.batch.ClasspathJep247
org.aspectj.org.eclipse.jdt.internal.compiler.batch.ClasspathJep247Jdk12
- All Implemented Interfaces:
FileSystem.Classpath, IModulePathEntry, IMultiModuleEntry, SuffixConstants
-
Nested Class Summary
Nested classes/interfaces inherited from interface FileSystem.Classpath
FileSystem.Classpath.PathKind -
Field Summary
Fields inherited from class ClasspathJep247
compliance, fs, jdkHome, jdklevel, modulePath, packageCache, releaseInHex, releasePath, subReleasesFields inherited from class ClasspathJrt
annotationPaths, annotationZipFile, closeZipFileAtEnd, file, jrtFileSystem, moduleNamesCache, ModulesCacheModifier and TypeFieldDescriptionprotected ZipFileprotected final booleanfinal Fileprotected final JrtFileSystemFields 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
ConstructorsConstructorDescriptionClasspathJep247Jdk12(File jdkHome, String release, AccessRuleSet accessRuleSet) -
Method Summary
Modifier and TypeMethodDescriptionfetchLinkedJars(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) getModule(char[] moduleName) Get the module named name from this entry.getModuleNames(Collection<String> limitModule, Function<String, IModule> getModule) char[][]getModulesDeclaringPackage(String qualifiedPackageName, String moduleName) Answer the relevant modules that declare the given package.voidInitialize the entryvoidMethods inherited from class ClasspathJep247
addToPackageCache, forbidsExportFrom, getMode, getPath, normalizedPath, toStringModifier and TypeMethodDescriptionprotected voidaddToPackageCache(String packageName, boolean endsWithSep) booleanforbidsExportFrom(String modName) intgetMode()getPath()Return the path for file based classpath entries.char[]Return a normalized path for file based classpath entries.toString()Methods inherited from class ClasspathJrt
addTypeName, allModules, clearCache, findTypeNames, hasAnnotationFileFor, hasCompilationUnit, hasModule, maybeDecorateForExternalAnnotations, reset, servesModuleModifier and TypeMethodDescriptionprotected voidaddTypeName(ArrayList answers, String fileName, int last, char[] packageName) allModules(Iterable<T> allSystemModules, Function<T, String> getModuleName, Function<T, IModule> getModule) static voidclearCache(String path, String releaseVersion) char[][][]findTypeNames(String qualifiedPackageName, String moduleName) 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.booleanprotected IBinaryTypemaybeDecorateForExternalAnnotations(String qualifiedBinaryFileName, IBinaryType reader) voidreset()This method resets the environment.booleanservesModule(char[] moduleName) Indicates whether this entry knows the module named name and can answer queries regarding the moduleMethods inherited from class ClasspathLocation
acceptModule, equals, fetchAccessRestriction, getDestinationPath, getModuleNames, getPathKind, hashCode, isAutomaticModule, isPackage, selectModules, setPathKind, singletonModuleNameIfModifier and TypeMethodDescriptionvoidacceptModule(IModule mod) Accepts to represent a module location with the given module description.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) 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
hasCUDeclaringPackageModifier and TypeMethodDescriptiondefault booleanhasCUDeclaringPackage(String qualifiedPackageName, Function<CompilationUnit, String> pkgNameExtractor) Methods inherited from interface IModulePathEntry
getModule, listPackagesModifier and TypeMethodDescriptiondefault IModuleGet the module that this entry contributes.default char[][]Lists all packages in this modulepath entry.Methods inherited from interface IMultiModuleEntry
getModuleNamesModifier and TypeMethodDescriptiongetModuleNames(Collection<String> limitModules) Get the names of all modules served by this entry.
-
Constructor Details
-
ClasspathJep247Jdk12
-
-
Method Details
-
fetchLinkedJars
public List<FileSystem.Classpath> fetchLinkedJars(FileSystem.ClasspathSectionProblemReporter problemReporter) Description copied from interface: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.- Specified by:
fetchLinkedJarsin interfaceFileSystem.Classpath- Overrides:
fetchLinkedJarsin classClasspathJep247- Parameters:
problemReporter- problem reporter with which potential misconfiguration issues are raised- Returns:
- 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 qualifiedBinaryFileName) - Specified by:
findClassin interfaceFileSystem.Classpath- Overrides:
findClassin classClasspathJep247
-
findClass
public NameEnvironmentAnswer findClass(char[] typeName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName, boolean asBinaryOnly) - Specified by:
findClassin interfaceFileSystem.Classpath- Overrides:
findClassin classClasspathJep247
-
initialize
Description copied from interface:FileSystem.ClasspathInitialize the entry- Specified by:
initializein interfaceFileSystem.Classpath- Overrides:
initializein classClasspathJep247- Throws:
IOException
-
loadModules
public void loadModules()- Overrides:
loadModulesin classClasspathJep247
-
getModuleNames
public Collection<String> getModuleNames(Collection<String> limitModule, Function<String, IModule> getModule) - Specified by:
getModuleNamesin interfaceFileSystem.Classpath- Overrides:
getModuleNamesin classClasspathJrt
-
getModule
Description copied from interface:IModulePathEntryGet the module named name from this entry. May be null- Specified by:
getModulein interfaceIModulePathEntry- Specified by:
getModulein interfaceIMultiModuleEntry- Overrides:
getModulein classClasspathJrt- Parameters:
moduleName- - The name of the module to look up- Returns:
- The module named name or null
-
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 classClasspathJep247
-