public Field [ ] getFields ( Class clazz , String fieldname ) { Struct fieldMap ; Object o ; synchronized ( map ) { o = map . get ( clazz ) ; if ( o == null ) { fieldMap = store ( clazz ) ; } else fieldMap = ( Struct ) o ; } o = fieldMap . get ( fieldname , null ) ; if ( o == null ) return null ; return ( Field [ ] ) o ; }
returns all fields matching given criteria or null if field does exist