/** * Returns the static field objects that are declared in the given class or * any of it's super types. Calling this method is equivalent to a call to * {@link ReflectionUtils#getMatchingFields(Class, int)} with the modifiers * {@link Modifier#STATIC}. * * @param clazz The class within to look for the fields with the given * modifiers * @return The array of static fields that are within the type hierarchy of * the given class */ public static Field[] getStaticFields(Class<?> clazz) { return getMatchingFields(clazz, Modifier.STATIC); }