Class ClasspathJep247
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
- All Implemented Interfaces:
FileSystem.Classpath, IModulePathEntry, IMultiModuleEntry, SuffixConstants
- Direct Known Subclasses:
ClasspathJep247Jdk12
-
Nested Class Summary
Nested classes/interfaces inherited from interface FileSystem.Classpath
FileSystem.Classpath.PathKind -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected FileSystemprotected final Fileprotected final longprotected Stringprotected Stringprotected Pathprotected String[]Fields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddToPackageCache(String packageName, boolean endsWithSep) 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) booleanforbidsExportFrom(String modName) intgetMode()char[][]getModulesDeclaringPackage(String qualifiedPackageName, String moduleName) Answer the relevant modules that declare the given package.getPath()Return the path for file based classpath entries.voidInitialize the entryvoidchar[]Return a normalized path for file based classpath entries.toString()Methods inherited from class ClasspathJrt
addTypeName, allModules, clearCache, findTypeNames, getModule, getModuleNames, 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) getModule(char[] moduleName) Get the module named name from this entry.getModuleNames(Collection<String> limitModule, Function<String, IModule> getModule) 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.
-
Field Details
-
fs
-
compliance
-
jdklevel
protected final long jdklevel -
releaseInHex
-
subReleases
-
releasePath
-
packageCache
-
jdkHome
-
modulePath
-
-
Constructor Details
-
ClasspathJep247
-
-
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 classClasspathJrt- 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 classClasspathJrt
-
findClass
public NameEnvironmentAnswer findClass(char[] typeName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName, boolean asBinaryOnly) - Specified by:
findClassin interfaceFileSystem.Classpath- Overrides:
findClassin classClasspathJrt
-
initialize
Description copied from interface:FileSystem.ClasspathInitialize the entry- Specified by:
initializein interfaceFileSystem.Classpath- Overrides:
initializein classClasspathJrt- Throws:
IOException
-
loadModules
public void loadModules()- Overrides:
loadModulesin classClasspathJrt
-
addToPackageCache
-
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 classClasspathJrt
-
toString
- Overrides:
toStringin classClasspathJrt
-
normalizedPath
public char[] normalizedPath()Description copied from interface: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.- Specified by:
normalizedPathin interfaceFileSystem.Classpath- Overrides:
normalizedPathin classClasspathJrt- Returns:
- a normalized path for file based classpath entries
-
getPath
Description copied from interface: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.- Specified by:
getPathin interfaceFileSystem.Classpath- Overrides:
getPathin classClasspathJrt- Returns:
- the path for file based classpath entries
-
getMode
public int getMode()- Overrides:
getModein classClasspathJrt
-
forbidsExportFrom
-