public static Method getGetterMethod ( Class < ? > c , String field ) { try { return c . getMethod ( getMethodName ( field , GET_METHOD_PREFIX ) , EMPTY_CLASS ) ; } catch ( NoSuchMethodException e ) { try { return c . getMethod ( getMethodName ( field , IS_METHOD_PREFIX ) , EMPTY_CLASS ) ; } catch ( NoSuchMethodException e1 ) { //log.info("getter method not found : " + field); return null ; } } }
Gets getter method .