|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectme.grison.jtoml.Util.Reflection
public static class Util.Reflection
Utilities around Reflection.
| Constructor Summary | |
|---|---|
Util.Reflection()
|
|
| Method Summary | |
|---|---|
static Object |
getFieldValue(Field field,
Object object)
Get the value of the given field on given object. |
static boolean |
isTomlSupportedType(Class<?> clazz)
Returns whether the given type is a built-in toml supported type. |
static boolean |
isTomlSupportedTypeExceptMap(Class<?> clazz)
|
static Util.TomlFieldComparator |
newTomlFieldComparator(List<Field> fields)
Returns a Util.TomlFieldComparator instantiated with the given list of Fields. |
static void |
setFieldValue(Field field,
Object object,
Object value)
Set the value of the given field on given object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Util.Reflection()
| Method Detail |
|---|
public static boolean isTomlSupportedType(Class<?> clazz)
clazz - a class object.
public static boolean isTomlSupportedTypeExceptMap(Class<?> clazz)
public static void setFieldValue(Field field,
Object object,
Object value)
throws IllegalAccessException
field - the fieldobject - the objectvalue - the value
IllegalAccessException
public static Object getFieldValue(Field field,
Object object)
throws IllegalAccessException
field - the fieldobject - the object
IllegalAccessExceptionpublic static Util.TomlFieldComparator newTomlFieldComparator(List<Field> fields)
Util.TomlFieldComparator instantiated with the given list of Fields.
fields - the list of fields of an object.
Util.TomlFieldComparator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||