public final class FieldUtils2
extends java.lang.Object
org.apache.commons.lang.reflect.FieldUtils.| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.reflect.Field> |
getFields(java.lang.Class clazz,
boolean forceAccess)
Get accessible
Field breaking scope if requested. |
public static java.util.List<java.lang.reflect.Field> getFields(java.lang.Class clazz,
boolean forceAccess)
Field breaking scope if requested. Superclasses/interfaces are considered.clazz - the class to reflect, must not be nullforceAccess - whether to break scope restrictions using the setAccessible method.
False only matches public fields.