// what now?
}
}
Method[] methods = bclass.getMethods();
Method method = null;
// Get the BCEL Method corresponding to the
// ava.lang.reflect.Method
for (int i = 0; i < methods.length; i++) {
if (m.getName().equals(methods[i].getName()) &&
getSignature(m).equals(methods[i].getSignature())) {
method = methods[i];
break;
}
}
// Obtain the exact method we're interested in.
if (method == null)
return null;
// Get the Code object, which contains the local variable table.
Code code = method.getCode();
if (code == null)
return null;
LocalVariableTable attr = method.getLocalVariableTable();
if (attr == null)
return null;
// OK, found it. Now scan through the local variables and record
// the names in the right indices.