public class AccessibleObjectUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getFieldName(AccessibleObject o)
Return field name or extract property name from getter method name if needed
|
static Type |
getGenericType(AccessibleObject accessibleObject)
Get the genericproperty type (assuming it's either a field or a getter method)
|
static Class<?> |
getType(AccessibleObject accessibleObject)
Get the property type (assuming it's either a field or a getter method)
|
static <T> T |
processDualFunction(AccessibleObject o,
Function<Method,T> methodFunction,
Function<Field,T> fieldFunction) |
public static <T> T processDualFunction(AccessibleObject o, Function<Method,T> methodFunction, Function<Field,T> fieldFunction)
public static Class<?> getType(AccessibleObject accessibleObject)
accessibleObject - public static Type getGenericType(AccessibleObject accessibleObject)
accessibleObject - public static String getFieldName(AccessibleObject o)
o - Field or MethodCopyright © 2013–2020 Adobe. All rights reserved.