Constructor<?>[] directConstructors;
try{
directMethods = klass.getDeclaredMethods();
directConstructors = klass.getDeclaredConstructors();
}catch(NoClassDefFoundError x){
throw new ModelResolutionException("Failed to load methods in "+getQualifiedName(), x);
}
methods = new ArrayList<MethodMirror>(directMethods.length + directConstructors.length);
for(Method directMethod : directMethods){
// Note: unlike JavacClass and JDTClass we return private members, because the runtime manager
// depends on them