asia.redact.bracket.util
Class AccessorMethodGetter

java.lang.Object
  extended by asia.redact.bracket.util.AccessorMethodGetter

public class AccessorMethodGetter
extends Object


Field Summary
(package private)  Class<?> clazz
           
private  Pattern getterPattern
           
(package private)  Object instance
           
 
Constructor Summary
AccessorMethodGetter(Class<?> clazz, Object instance)
           
 
Method Summary
 CustomKeyWrapper invoke(Method m)
           
private  String keyify(String getter)
           
 List<Method> listGetters()
          Return a list of all the "getter" accessors in clazz Does not return "getClass"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clazz

final Class<?> clazz

instance

final Object instance

getterPattern

private final Pattern getterPattern
Constructor Detail

AccessorMethodGetter

public AccessorMethodGetter(Class<?> clazz,
                            Object instance)
Method Detail

listGetters

public List<Method> listGetters()
Return a list of all the "getter" accessors in clazz Does not return "getClass"

Returns:

invoke

public CustomKeyWrapper invoke(Method m)

keyify

private String keyify(String getter)


Copyright © 2011-2013 David R. Smith. All Rights Reserved.