316317318319320321322323324325326
max = 0; for (int i = 0; i < cnt; i++) { VmMethod vmMethod = vmClass.getDeclaredMethod(i); if (!vmMethod.isConstructor() && (!publicOnly || vmMethod.isPublic())) { list[max++] = (Method) vmMethod.asMember(); } } return list; }
340341342343344345346347348349350
Constructor<?>[] list = new Constructor[max]; max = 0; for (int i = 0; i < cnt; i++) { VmMethod vmMethod = vmClass.getDeclaredMethod(i); if (vmMethod.isConstructor()) { list[max++] = (Constructor<?>) vmMethod.asMember(); } } return list; }