org.sonar.api.utils
Class FieldUtils2
java.lang.Object
org.sonar.api.utils.FieldUtils2
public final class FieldUtils2
- extends Object
Add features missing in org.apache.commons.lang.reflect.FieldUtils
- Since:
- 2.14
Method Summary |
static List<Field> |
getFields(Class clazz,
boolean forceAccess)
Get accessible Field breaking scope if requested. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getFields
public static List<Field> getFields(Class clazz,
boolean forceAccess)
- Get accessible
Field
breaking scope if requested. Superclasses/interfaces are considered.
- Parameters:
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-2014 SonarSource. All Rights Reserved.