public final class FieldUtils2 extends Object
org.apache.commons.lang.reflect.FieldUtils
.Modifier and Type | Method and Description |
---|---|
static List<Field> |
getFields(Class clazz,
boolean forceAccess)
Get accessible
Field breaking scope if requested. |
public static List<Field> getFields(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.Copyright © 2009–2018 SonarSource. All rights reserved.