public final class SafeReflection
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.List<SafeField> |
getFieldsOfTypeWithModifiers(java.lang.Class<?> clazz,
java.lang.Class<?> type,
int... modifiers)
Gets a list of safe fields that match the provided type and modifiers.
|
static boolean |
hasModifiers(java.lang.reflect.Field field,
int... modifiers)
Returns whether the field has the provided modifiers.
|
public static java.util.List<SafeField> getFieldsOfTypeWithModifiers(java.lang.Class<?> clazz, java.lang.Class<?> type, int... modifiers)
clazz
- the class to searchtype
- the field typemodifiers
- the field modifierspublic static boolean hasModifiers(java.lang.reflect.Field field, int... modifiers)
field
- the fieldmodifiers
- the modifiers