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

Method getPackageName

output/java_guava/1.4.17/ClassPath.java:284–286  ·  view source on GitHub ↗

Returns the package name of the class, without attempting to load the class. Behaves identically to Package#getName() but does not require the class (or package) to be loaded.

()

Source from the content-addressed store, hash-verified

282
283
284 public String getPackageName() {
285 return Reflection.getPackageName(className);
286 }
287
288 /**
289 * Returns the simple name of the underlying class as given in the source code.

Callers 2

getSimpleNameMethod · 0.95
getTopLevelClassesMethod · 0.45

Calls 1

getPackageNameMethod · 0.95

Tested by

no test coverage detected