public class ClassConverter extends AbstractConverter<Class<?>>
Constructor and Description |
---|
ClassConverter()
构造
|
ClassConverter(boolean isInitialized)
构造
|
Modifier and Type | Method and Description |
---|---|
protected Class<?> |
convertInternal(Object value)
内部转换器,被
AbstractConverter.convert(Object, Object) 调用,实现基本转换逻辑内部转换器转换后如果转换失败可以做如下操作,处理结果都为返回默认值: |
convert, convertQuietly, convertToStr, getTargetType
public ClassConverter()
public ClassConverter(boolean isInitialized)
isInitialized
- 是否初始化类(调用static模块内容和初始化static属性)protected Class<?> convertInternal(Object value)
AbstractConverter
AbstractConverter.convert(Object, Object)
调用,实现基本转换逻辑1、返回null
2、抛出一个RuntimeException
异常
convertInternal
in class AbstractConverter<Class<?>>
value
- 值Copyright © 2021. All rights reserved.