private Field findField ( Class < ? > pClazz , String pField ) { Class c = pClazz ; do { try { return c . getDeclaredField ( pField ) ; } catch ( NoSuchFieldException e ) { c = pClazz . getSuperclass ( ) ; } } while ( c != null ) ; return null ; }
Find a field in an inheritance hierarchy