public static < E > E getStaticFieldValue ( Class clazz , String fieldName , Class fieldType ) { Field field = getField ( clazz , fieldName , fieldType ) ; if ( field == null ) { throw new ReflectionException ( format ( "Field %s.%s is not found" , clazz . getName ( ) , fieldName ) ) ; } field . setAccessible ( true ) ; return getFieldValue0 ( null , field , clazz . getName ( ) , fieldName ) ; }
Gets the value for a static field .