Class BeanUtil
- java.lang.Object
-
- com.fasterxml.jackson.module.mrbean.BeanUtil
-
public class BeanUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description BeanUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static void_addSuperTypes(com.fasterxml.jackson.databind.JavaType type, java.lang.Class<?> endBefore, java.util.List<com.fasterxml.jackson.databind.JavaType> result, boolean addClassItself)static java.util.List<com.fasterxml.jackson.databind.JavaType>findSuperTypes(com.fasterxml.jackson.databind.JavaType type, java.lang.Class<?> endBefore)Method that will find all sub-classes and implemented interfaces of a given class or interface.static java.util.List<com.fasterxml.jackson.databind.JavaType>findSuperTypes(com.fasterxml.jackson.databind.JavaType type, java.lang.Class<?> endBefore, java.util.List<com.fasterxml.jackson.databind.JavaType> result)protected static booleanisConcrete(java.lang.reflect.Member member)
-
-
-
Method Detail
-
isConcrete
protected static boolean isConcrete(java.lang.reflect.Member member)
-
findSuperTypes
public static java.util.List<com.fasterxml.jackson.databind.JavaType> findSuperTypes(com.fasterxml.jackson.databind.JavaType type, java.lang.Class<?> endBefore)Method that will find all sub-classes and implemented interfaces of a given class or interface. Classes are listed in order of precedence, starting with the immediate super-class, followed by interfaces class directly declares to implemented, and then recursively followed by parent of super-class and so forth. Note thatObject.classis not included in the list regardless of whetherendBeforeargument is defined or not.- Parameters:
endBefore- Super-type to NOT include in results, if any; when encountered, will be ignored (and no super types are checked).
-
findSuperTypes
public static java.util.List<com.fasterxml.jackson.databind.JavaType> findSuperTypes(com.fasterxml.jackson.databind.JavaType type, java.lang.Class<?> endBefore, java.util.List<com.fasterxml.jackson.databind.JavaType> result)
-
_addSuperTypes
private static void _addSuperTypes(com.fasterxml.jackson.databind.JavaType type, java.lang.Class<?> endBefore, java.util.List<com.fasterxml.jackson.databind.JavaType> result, boolean addClassItself)
-
-