private void getFields ( ArrayList < JField > fieldList ) { for ( JField field : getDeclaredFields ( ) ) { if ( ! fieldList . contains ( field ) ) fieldList . add ( field ) ; } if ( getSuperClass ( ) != null ) { for ( JField field : getSuperClass ( ) . getFields ( ) ) { if ( ! fieldList . contains ( field ) ) fieldList . add ( field ) ; } } }
Returns all the fields