com.mockrunner.util.common
Class FieldUtil

java.lang.Object
  extended by com.mockrunner.util.common.FieldUtil

public class FieldUtil
extends java.lang.Object


Constructor Summary
FieldUtil()
           
 
Method Summary
static java.lang.reflect.Field[][] getFieldsSortedByInheritanceHierarchy(java.lang.Class theClass)
          Returns all non-static fields declared by the specified class and its superclasses.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldUtil

public FieldUtil()
Method Detail

getFieldsSortedByInheritanceHierarchy

public static java.lang.reflect.Field[][] getFieldsSortedByInheritanceHierarchy(java.lang.Class theClass)
Returns all non-static fields declared by the specified class and its superclasses. The returned array contains the methods of all classes in the inheritance hierarchy, starting with the methods of the most general superclass, which is java.lang.Object.

Parameters:
theClass - the class whose methods are examined
Returns:
the array of field arrays