ix.util
Class FieldWalker.FieldInfo

java.lang.Object
  |
  +--ix.util.FieldWalker.FieldInfo
Enclosing class:
FieldWalker

public static class FieldWalker.FieldInfo
extends java.lang.Object


Field Summary
 java.lang.reflect.Method getter
           
 java.lang.String name
           
 java.lang.reflect.Method setter
           
 java.lang.Class type
           
 
Constructor Summary
FieldWalker.FieldInfo(java.lang.String name)
           
 
Method Summary
protected  void determineType()
          Tries to determine a field's type by looking at the get and set methods.
 java.lang.Object getValue(java.lang.Object obj)
           
protected  java.lang.reflect.Method moreSpecificMethod(java.lang.reflect.Method m1, java.lang.reflect.Method m2)
           
protected  void processGetMethod(java.lang.reflect.Method meth)
           
protected  void processSetMethod(java.lang.reflect.Method meth)
           
 void setValue(java.lang.Object obj, java.lang.Object newVal)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name

type

public java.lang.Class type

getter

public java.lang.reflect.Method getter

setter

public java.lang.reflect.Method setter
Constructor Detail

FieldWalker.FieldInfo

public FieldWalker.FieldInfo(java.lang.String name)
Method Detail

getValue

public java.lang.Object getValue(java.lang.Object obj)
                          throws java.lang.IllegalAccessException,
                                 java.lang.IllegalArgumentException,
                                 java.lang.reflect.InvocationTargetException

setValue

public void setValue(java.lang.Object obj,
                     java.lang.Object newVal)
              throws java.lang.IllegalAccessException,
                     java.lang.IllegalArgumentException,
                     java.lang.reflect.InvocationTargetException

processGetMethod

protected void processGetMethod(java.lang.reflect.Method meth)

processSetMethod

protected void processSetMethod(java.lang.reflect.Method meth)

moreSpecificMethod

protected java.lang.reflect.Method moreSpecificMethod(java.lang.reflect.Method m1,
                                                      java.lang.reflect.Method m2)

determineType

protected void determineType()
Tries to determine a field's type by looking at the get and set methods.
Throws:
java.lang.RuntimeException - if the methods do not agree.