159160161162163164165
VMMethod[] methods = getAllClassMethods(klass); int len = methods.length; for (int i = 0; i < len; i++) if (methods[i].getId() == id) return methods[i]; throw new InvalidMethodException(id); }