/** * Get all static fields for a particular type. * * @param type * The class whose static fields to get. * @return All static fields in {@code type}. All fields are set to * accessible. */ public static Set<Field> getAllStaticFields(Class<?> type) { return WhiteboxImpl.getAllStaticFields(type); }
/** * Get all static fields for a particular type. * * @param type * The class whose static fields to get. * @return All static fields in <code>type</code>. All fields are set to * accessible. */ public static Set<Field> getAllStaticFields(Class<?> type) { return WhiteboxImpl.getAllStaticFields(type); }
Set<Field> allFields = isClass(context) ? getAllStaticFields(getType(context)) : getAllInstanceFields(context); for (Field field : allFields) { try {
Set<Field> allFields = isClass(context) ? getAllStaticFields(getType(context)) : getAllInstanceFields(context); for (Field field : allFields) { try {