public class ClassUtils extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static Map<Class<?>,SoftReference<com.alibaba.excel.util.ClassUtils.FieldCache>> |
FIELD_CACHE |
| 构造器和说明 |
|---|
ClassUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
declaredFields(Class<?> clazz,
Map<Integer,Field> sortedAllFiledMap,
Boolean needIgnore,
WriteHolder writeHolder) |
static void |
declaredFields(Class<?> clazz,
Map<Integer,Field> sortedAllFiledMap,
Map<Integer,Field> indexFiledMap,
Map<String,Field> ignoreMap,
Boolean needIgnore,
Holder holder)
Parsing filed in the class
|
static List<Class<?>> |
getAllInterfaces(Class<?> cls)
Gets a
List of all interfaces implemented by the given
class and its superclasses. |
public static final Map<Class<?>,SoftReference<com.alibaba.excel.util.ClassUtils.FieldCache>> FIELD_CACHE
public static void declaredFields(Class<?> clazz, Map<Integer,Field> sortedAllFiledMap, Map<Integer,Field> indexFiledMap, Map<String,Field> ignoreMap, Boolean needIgnore, Holder holder)
clazz - Need to parse the classsortedAllFiledMap - Complete the map of sortsindexFiledMap - Use the index to sort fieldsignoreMap - You want to ignore field mapneedIgnore - If you want to ignore fields need to ignoreholder - holderpublic static void declaredFields(Class<?> clazz, Map<Integer,Field> sortedAllFiledMap, Boolean needIgnore, WriteHolder writeHolder)
public static List<Class<?>> getAllInterfaces(Class<?> cls)
Gets a List of all interfaces implemented by the given
class and its superclasses.
The order is determined by looking through each interface in turn as declared in the source file and following its hierarchy up. Then each superclass is considered in the same way. Later duplicates are ignored, so the order is maintained.
cls - the class to look up, may be nullList of interfaces in order,
null if null inputCopyright © 2018–2021 Alibaba Group. All rights reserved.