/** * Return the Set of (ModuleEntry) source files found in a module. * * @param M the module * @return the Set of source files in the module */ @SuppressWarnings("unused") private Set<ModuleEntry> getSourceFiles(Module M) throws IOException { if (DEBUG_LEVEL > 0) { System.err.println("Get source files for " + M); } HashSet<ModuleEntry> result = HashSetFactory.make(); for (ModuleEntry entry : Iterator2Iterable.make(M.getEntries())) { if (DEBUG_LEVEL > 0) { System.err.println("consider entry for source information: " + entry); } if (entry.isSourceFile()) { if (DEBUG_LEVEL > 0) { System.err.println("found source file: " + entry); } result.add(entry); } else if (entry.isModuleFile()) { result.addAll(getSourceFiles(entry.asModule())); } } return result; }
/** * Return the Set of (ModuleEntry) source files found in a module. * * @param M the module * @return the Set of source files in the module */ @SuppressWarnings("unused") private Set<ModuleEntry> getSourceFiles(Module M) throws IOException { if (DEBUG_LEVEL > 0) { System.err.println("Get source files for " + M); } HashSet<ModuleEntry> result = HashSetFactory.make(); for (ModuleEntry entry : Iterator2Iterable.make(M.getEntries())) { if (DEBUG_LEVEL > 0) { System.err.println("consider entry for source information: " + entry); } if (entry.isSourceFile()) { if (DEBUG_LEVEL > 0) { System.err.println("found source file: " + entry); } result.add(entry); } else if (entry.isModuleFile()) { result.addAll(getSourceFiles(entry.asModule())); } } return result; }
Set<ModuleEntry> sourceFiles = getSourceFiles(archive); Map<String, Object> allClassAndSourceFileContents = null; if (OPTIMIZE_JAR_FILE_IO) {
Set<ModuleEntry> sourceFiles = getSourceFiles(archive); Map<String, Object> allClassAndSourceFileContents = null; if (OPTIMIZE_JAR_FILE_IO) {