diff --git a/jode/jode/bytecode/ClassInfo.java b/jode/jode/bytecode/ClassInfo.java index 19a9c70..b3d3522 100644 --- a/jode/jode/bytecode/ClassInfo.java +++ b/jode/jode/bytecode/ClassInfo.java @@ -188,6 +188,54 @@ public class ClassInfo extends BinaryInfo { } } + public void loadInfoReflection(int howMuch) { + + try { + Class clazz = Class.forName(name); + modifiers = clazz.getModifiers(); + if ((howMuch & HIERARCHY) != 0) { + if (clazz.getSuperclass() == null) + superclass = null; + else + superclass = ClassInfo.forName + (clazz.getSuperclass().getName()); + Class[] ifaces = clazz.getInterfaces(); + interfaces = new ClassInfo[ifaces.length]; + for (int i=0; i