com.ochafik.lang.reflect
Class GettersAndSettersHelper

java.lang.Object
  extended by com.ochafik.lang.reflect.GettersAndSettersHelper

public class GettersAndSettersHelper
extends Object


Nested Class Summary
static interface GettersAndSettersHelper.FieldGetter
           
static class GettersAndSettersHelper.GetterAndSetterInfo
           
 
Field Summary
 Map<String,GettersAndSettersHelper.GetterAndSetterInfo> gettersAndSetters
           
 
Constructor Summary
GettersAndSettersHelper(Class<?> type, GettersAndSettersHelper.FieldGetter fieldGetter)
           
 
Method Summary
 void assertConsistentPair(GettersAndSettersHelper.GetterAndSetterInfo p)
           
 Set<String> getFieldNames()
           
 Type getFieldType(String fieldName)
           
 Method getGetter(String fieldName)
           
protected  GettersAndSettersHelper.GetterAndSetterInfo getOrCreatePair(String fieldName)
           
 Method getSetter(String fieldName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gettersAndSetters

public final Map<String,GettersAndSettersHelper.GetterAndSetterInfo> gettersAndSetters
Constructor Detail

GettersAndSettersHelper

public GettersAndSettersHelper(Class<?> type,
                               GettersAndSettersHelper.FieldGetter fieldGetter)
Method Detail

getFieldNames

public Set<String> getFieldNames()

getGetter

public Method getGetter(String fieldName)

getSetter

public Method getSetter(String fieldName)

getFieldType

public Type getFieldType(String fieldName)

assertConsistentPair

public void assertConsistentPair(GettersAndSettersHelper.GetterAndSetterInfo p)

getOrCreatePair

protected GettersAndSettersHelper.GetterAndSetterInfo getOrCreatePair(String fieldName)


Copyright © 2009. All Rights Reserved.