private void resolve(List<JavaFileObject> files, Node node, String binaryName, boolean recurse) throws IOException, URISyntaxException { for (Node child : driver.children(node)) { Iterator<Resource> i = child.iterator(); if (i.hasNext()) { if (child.name.endsWith(".class")) { Resource r = i.next(); URI uri = r.url.toURI(); files.add(new NodeJavaFileObject( binaryName + "." + child.name.substring(0, child.name.length() - ".class".length()), uri, r.streamFactory, r.lastModified)); } } else { if (recurse) { resolve(files, child, binaryName + "." + child.name, recurse); } } } }
private void resolve(List<JavaFileObject> files, Node node, String binaryName, boolean recurse) throws IOException, URISyntaxException { for (Node child : driver.children(node)) { Iterator<Resource> i = child.iterator(); if (i.hasNext()) { if (child.name.endsWith(".class")) { Resource r = i.next(); URI uri = r.url.toURI(); files.add(new NodeJavaFileObject( binaryName + "." + child.name.substring(0, child.name.length() - ".class".length()), uri, r.streamFactory, r.lastModified)); } } else { if (recurse) { resolve(files, child, binaryName + "." + child.name, recurse); } } } }
private void resolve(List<JavaFileObject> files, Node node, String binaryName, boolean recurse) throws IOException, URISyntaxException { for (Node child : driver.children(node)) { Iterator<Resource> i = child.iterator(); if (i.hasNext()) { if (child.name.endsWith(".class")) { Resource r = i.next(); URI uri = r.url.toURI(); files.add(new NodeJavaFileObject( binaryName + "." + child.name.substring(0, child.name.length() - ".class".length()), uri, r.streamFactory, r.lastModified)); } } else { if (recurse) { resolve(files, child, binaryName + "." + child.name, recurse); } } } }