MCPcopy Create free account
hub / github.com/ReadyTalk/avian / getPackage

Method getPackage

classpath/java/lang/Class.java:621–633  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

619 }
620
621 public Package getPackage() {
622 if ((vmClass.vmFlags & PrimitiveFlag) != 0 || isArray()) {
623 return null;
624 } else {
625 String name = getCanonicalName();
626 int index = name.lastIndexOf('.');
627 if (index >= 0) {
628 return getClassLoader().getPackage(name.substring(0, index));
629 } else {
630 return null;
631 }
632 }
633 }
634
635 public boolean isAnnotationPresent
636 (Class<? extends Annotation> class_)

Callers 1

mainMethod · 0.45

Calls 5

isArrayMethod · 0.95
getCanonicalNameMethod · 0.95
lastIndexOfMethod · 0.95
getClassLoaderMethod · 0.95
substringMethod · 0.95

Tested by 1

mainMethod · 0.36