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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected FileSystemprotected final Fileprotected final longprotected Stringprotected Stringprotected Pathprotected String[]Fields inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.batch.ClasspathJrt
annotationPaths, annotationZipFile, closeZipFileAtEnd, file, jrtFileSystem, moduleNamesCache, ModulesCacheFields inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.batch.ClasspathLocation
accessRuleSet, BINARY, destinationPath, SOURCEFields inherited from interface 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 -
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 org.aspectj.org.eclipse.jdt.internal.compiler.batch.ClasspathJrt
addTypeName, allModules, clearCache, findTypeNames, getModule, getModuleNames, hasAnnotationFileFor, hasCompilationUnit, hasModule, maybeDecorateForExternalAnnotations, reset, servesModuleMethods inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.batch.ClasspathLocation
acceptModule, equals, fetchAccessRestriction, getDestinationPath, getModuleNames, hashCode, isAutomaticModule, isPackage, selectModules, singletonModuleNameIfMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.batch.FileSystem.Classpath
hasCUDeclaringPackageMethods inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.env.IModulePathEntry
getModule, isAutomaticModule, listPackagesMethods inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.env.IMultiModuleEntry
getModuleNames
-
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
-