public interface ClassUtils
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOGGER |
| Modifier and Type | Method and Description |
|---|---|
static CbMethodHandle |
findBestParentCB(Object parent,
Collection<CbMethodHandle> cbs)
finds the CbMethodHandle whose parameter most closely matches the class
of the parent in the inheritance tree.
|
static <T> T |
getField(String name,
Object instance) |
static Field |
getReflectField(Class<?> clazz,
String fieldName) |
static boolean |
isPropertyTransient(PropertyDescriptor property,
Field field) |
static String |
mapPropertyToJavaSource(PropertyDescriptor property,
Field field,
List<Field> nodeFields,
Set<Class<?>> importList) |
static String |
mapToJavaSource(Object primitiveVal,
List<Field> nodeFields,
Set<Class<?>> importList) |
static boolean |
propertySupported(PropertyDescriptor property,
Field field,
List<Field> nodeFields) |
static boolean |
typeSupported(Class<?> type) |
static CbMethodHandle findBestParentCB(Object parent, Collection<CbMethodHandle> cbs)
parent - node to interrogatecbs - collection of callbacksstatic boolean typeSupported(Class<?> type)
static String mapToJavaSource(Object primitiveVal, List<Field> nodeFields, Set<Class<?>> importList)
static String mapPropertyToJavaSource(PropertyDescriptor property, Field field, List<Field> nodeFields, Set<Class<?>> importList)
static boolean propertySupported(PropertyDescriptor property, Field field, List<Field> nodeFields)
static boolean isPropertyTransient(PropertyDescriptor property, Field field) throws SecurityException
SecurityExceptionstatic Field getReflectField(Class<?> clazz, String fieldName) throws NoSuchFieldException
NoSuchFieldExceptionCopyright © 2022. All rights reserved.