public Object [ ] getPublicFields ( ) { Field [ ] fields = getClassUnderInspection ( ) . getFields ( ) ; Object [ ] result = new Object [ fields . length ] ; for ( int i = 0 ; i < fields . length ; i ++ ) { Field field = fields [ i ] ; result [ i ] = fieldInfo ( field ) ; } return result ; }
Get info about usual Java public fields incl . constants .