public class ReflectionHelper extends Object
Modifier and Type | Method and Description |
---|---|
static void |
setFinalStatic(Class<?> clazz,
String fieldName,
Object newValue)
Convenience version of
setFinalStatic(Field, Object) . |
static void |
setFinalStatic(Field field,
Object newValue)
Set a static final field.
|
public static void setFinalStatic(Class<?> clazz, String fieldName, Object newValue) throws NoSuchFieldException, IllegalAccessException
setFinalStatic(Field, Object)
.NoSuchFieldException
IllegalAccessException
setFinalStatic(Field, Object)
public static void setFinalStatic(Field field, Object newValue) throws NoSuchFieldException, IllegalAccessException