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

Method url

output/java_guava/1.4.17/ClassPath.java:197–203  ·  view source on GitHub ↗

Returns the url identifying the resource. See ClassLoader#getResource @throws NoSuchElementException if the resource cannot be loaded through the class loader, despite physically existing in the class path.

()

Source from the content-addressed store, hash-verified

195
196
197 public final URL url() {
198 URL url = loader.getResource(resourceName);
199 if (url == null) {
200 throw new NoSuchElementException(resourceName);
201 }
202 return url;
203 }
204
205 /**
206 * Returns a {@link ByteSource} view of the resource from which its bytes can be read.

Callers 2

asByteSourceMethod · 0.95
asCharSourceMethod · 0.95

Calls 1

getResourceMethod · 0.45

Tested by

no test coverage detected