static ClasspathJrt forJrtSystem(String jrtPath, AccessRuleSet accessRuleSet, IPath annotationsPath, String release) { return new ClasspathJrt(jrtPath, accessRuleSet, annotationsPath, release); }
static ClasspathLocation forLibrary(String libraryPathname, long lastModified, AccessRuleSet accessRuleSet, IPath annotationsPath, boolean autoModule) { return Util.isJrt(libraryPathname) ? new ClasspathJrt(libraryPathname, annotationsPath) : Util.archiveFormat(libraryPathname) == Util.JMOD_FILE ? new ClasspathJMod(libraryPathname, lastModified, accessRuleSet, annotationsPath) : new ClasspathJar(libraryPathname, lastModified, accessRuleSet, annotationsPath, autoModule); }
ClasspathEntry rawClasspathEntry = (ClasspathEntry) root.getRawClasspathEntry(); cp = JavaModelManager.isJrt(path) ? new ClasspathJrt(path.toOSString(), ClasspathEntry.getExternalAnnotationPath(rawClasspathEntry, ((IJavaProject)root.getParent()).getProject(), true)) : new ClasspathJar(manager.getZipFile(path), rawClasspathEntry.getAccessRuleSet(),
String compliance = project.getOption(JavaCore.COMPILER_COMPLIANCE, true); cp = (root instanceof JrtPackageFragmentRoot) ? new ClasspathJrt(path.toOSString(), rawClasspathEntry.getAccessRuleSet(), ClasspathEntry.getExternalAnnotationPath(rawClasspathEntry, project.getProject(), true), compliance) : ClasspathLocation.forLibrary(manager.getZipFile(path), rawClasspathEntry.getAccessRuleSet(),