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

Method getGenericInterfaces

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

Source from the content-addressed store, hash-verified

758 }
759
760 public Type[] getGenericInterfaces() {
761 if (vmClass.addendum == null || vmClass.addendum.signature == null) {
762 return getInterfaces();
763 }
764
765 String[] typeSigns = getGenericTypeSignatures();
766 if (typeSigns.length < 1) {
767 throw new RuntimeException("Class signature doesn't contain any type");
768 }
769
770 // Parsing types
771 Type[] res = new Type[typeSigns.length - 1];
772 for (int i = 0; i < typeSigns.length - 1; i++) {
773 res[i] = SignatureParser.parse(vmClass.loader, typeSigns[i + 1], this);
774 }
775
776 return res;
777 }
778
779 public Type getGenericSuperclass() {
780 if (vmClass.addendum == null || vmClass.addendum.signature == null) {

Callers

nothing calls this directly

Calls 3

getInterfacesMethod · 0.95
parseMethod · 0.95

Tested by

no test coverage detected