/** * This method return all the fields (including private) from the given class and its super * classes. * * @param fieldClass Class * @return List<Field> * @should return all fields include private and super classes */ public static List<Field> getAllFields(Class<?> fieldClass) { List<Field> fields = ClassDataCacher.getInstance().getClassData(fieldClass).getFields(); return new ArrayList<>(fields); }
constructors = getClassDataCacher().getClassData(type).getConstructors(); } catch (IllegalArgumentException e) { try {
constructors = getClassDataCacher().getClassData(type).getConstructors(); } catch (IllegalArgumentException e) { try {
if ( ConstructorUtils.isClassBean(type) ) { constructors = getClassDataCacher().getClassData(type).getConstructors(); } else {
if ( ConstructorUtils.isClassBean(type) ) { constructors = getClassDataCacher().getClassData(type).getConstructors(); } else {
} else { ClassData<?> cd = ClassDataCacher.getInstance().getClassData(annotation); List<Method> methods = cd.getMethods(); for (Method method : methods) { } else { ClassData<?> cd = ClassDataCacher.getInstance().getClassData(annotation); List<Method> methods = cd.getMethods(); for (Method method : methods) {
} else { ClassData<?> cd = ClassDataCacher.getInstance().getClassData(annotation); List<Method> methods = cd.getMethods(); for (Method method : methods) { } else { ClassData<?> cd = ClassDataCacher.getInstance().getClassData(annotation); List<Method> methods = cd.getMethods(); for (Method method : methods) {