org.sadun.util
Class FieldResolver

java.lang.Object
  extended byorg.sadun.util.FieldResolver

public class FieldResolver
extends java.lang.Object

Finds a field thru the inheritance hierarchy of the class

Author:
Cristiano Sadun

Constructor Summary
FieldResolver()
           
 
Method Summary
static java.lang.reflect.Field findField(java.lang.Class cls, java.lang.String name)
          First, the inheritance hierachy of the class is traversed to look for the field
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldResolver

public FieldResolver()
Method Detail

findField

public static java.lang.reflect.Field findField(java.lang.Class cls,
                                                java.lang.String name)
                                         throws java.lang.NoSuchFieldException
First, the inheritance hierachy of the class is traversed to look for the field

Returns:
Throws:
java.lang.NoSuchFieldException
java.lang.NoSuchFieldException

main

public static void main(java.lang.String[] args)
                 throws java.lang.NoSuchFieldException
Throws:
java.lang.NoSuchFieldException