MCPcopy Create free account
hub / github.com/antlr/codebuff / from

Method from

output/java_guava/1.4.17/ClassPath.java:97–101  ·  view source on GitHub ↗

Returns a ClassPath representing all classes and resources loadable from classloader and its parent class loaders. Warning: Currently only URLClassLoader and only file:// urls are supported. @throws IOException if the attempt to read class path resources (

(ClassLoader classloader)

Source from the content-addressed store, hash-verified

95
96
97 public static ClassPath from(ClassLoader classloader) throws IOException {
98 DefaultScanner scanner = new DefaultScanner();
99 scanner.scan(classloader);
100 return new ClassPath(scanner.getResources());
101 }
102
103 /**
104 * Returns all resources loadable from the current class path, including the class files of all

Callers

nothing calls this directly

Calls 2

getResourcesMethod · 0.95
scanMethod · 0.45

Tested by

no test coverage detected