org.sonar.api.utils
Class FieldUtils2

java.lang.Object
  extended by 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
 

Method Detail

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 null
forceAccess - whether to break scope restrictions using the setAccessible method. False only matches public fields.


Copyright © 2009–2015 SonarSource. All rights reserved.