| Package | Description |
|---|---|
| org.jeesy.classinfo | |
| org.jeesy.classinfo.converter | |
| org.jeesy.classinfo.converter.api | |
| org.jeesy.classinfo.converter.impl |
| Modifier and Type | Method and Description |
|---|---|
static <T> TypeInfo<T> |
TypeInfo.forClass(Class<T> type)
Create new type info for given
Type |
static <T> TypeInfo<T> |
TypeInfo.forClass(Class<T> type,
AnnotatedNode annotatedNode)
Create new type info for given
Type |
static TypeInfo<?> |
TypeInfo.forType(Type type)
Create new type info for given
Type |
static TypeInfo<?> |
TypeInfo.forType(Type type,
AnnotatedNode annotatedNode)
Create new type info for given
Type |
TypeInfo<?> |
TypeInfo.getComponentType() |
TypeInfo<?> |
TypeInfo.getFieldType(Field field)
Returns the resolved generic type of
field. |
TypeInfo[] |
TypeInfo.getInterfaces() |
TypeInfo<?> |
TypeInfo.getReturnType(Method method)
Returns the resolved generic return type of
method. |
TypeInfo<?> |
TypeInfo.getSuperType() |
TypeInfo<?> |
TypeInfo.getSupertype(Class<?> supertype)
Returns the generic form of
supertype. |
TypeInfo<PropertyType> |
PropertyInfo.getTypeInfo()
Returns type info for this property embedding actual property location to resolve type variables
|
protected TypeInfo |
TypeInfo.resolveForClass(Class _type) |
TypeInfo |
TypeInfo.resolveParameter(int index) |
| Modifier and Type | Method and Description |
|---|---|
List<TypeInfo<?>> |
TypeInfo.getExceptionTypes(Member methodOrConstructor)
Returns the resolved generic exception types thrown by
constructor. |
List<TypeInfo<?>> |
TypeInfo.getParameterTypes(Member methodOrConstructor)
Returns the resolved generic parameter types of
methodOrConstructor. |
| Modifier and Type | Method and Description |
|---|---|
Object |
ConverterManager.convert(Object src,
TypeInfo<Object> srcType,
TypeInfo<Object> dstType) |
Object |
ConverterManager.convert(Object src,
TypeInfo<Object> srcType,
TypeInfo<Object> dstType) |
<I,O> O |
ConverterManager.convertType(I src,
TypeInfo<I> srcType,
TypeInfo<O> dstType) |
<I,O> O |
ConverterManager.convertType(I src,
TypeInfo<I> srcType,
TypeInfo<O> dstType) |
<T> T |
ConverterManager.fromString(TypeInfo<T> type,
String value) |
<T> String |
ConverterManager.toString(TypeInfo<T> type,
T value) |
| Modifier and Type | Method and Description |
|---|---|
DstType |
Converter.convert(SrcType src,
TypeInfo<SrcType> srcType,
TypeInfo<DstType> dstType)
Converter from SrcType to DstType.
|
DstType |
Converter.convert(SrcType src,
TypeInfo<SrcType> srcType,
TypeInfo<DstType> dstType)
Converter from SrcType to DstType.
|
<I,O> O |
ConversionService.convertType(I src,
TypeInfo<I> srcType,
TypeInfo<O> dstType)
Convert source value of specified type to value of destination type
|
<I,O> O |
ConversionService.convertType(I src,
TypeInfo<I> srcType,
TypeInfo<O> dstType)
Convert source value of specified type to value of destination type
|
<T> T |
StringConverter.fromString(TypeInfo<T> type,
String value)
Create new instance of expected type from string value
|
<T> String |
StringConverter.toString(TypeInfo<T> type,
T value)
Convert object to string.
|
| Constructor and Description |
|---|
ConversionException(Object src,
TypeInfo<?> srcType,
TypeInfo<?> dstType,
String message) |
ConversionException(Object src,
TypeInfo<?> srcType,
TypeInfo<?> dstType,
String message) |
ConversionException(Object src,
TypeInfo<?> srcType,
TypeInfo<?> dstType,
String message,
Throwable cause) |
ConversionException(Object src,
TypeInfo<?> srcType,
TypeInfo<?> dstType,
String message,
Throwable cause) |
ConversionException(Object src,
TypeInfo<?> srcType,
TypeInfo<?> dstType,
Throwable cause) |
ConversionException(Object src,
TypeInfo<?> srcType,
TypeInfo<?> dstType,
Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
Object |
BeanConverter.convert(Object src,
TypeInfo<Object> srcType,
TypeInfo<Object> dstType) |
Object |
BeanConverter.convert(Object src,
TypeInfo<Object> srcType,
TypeInfo<Object> dstType) |
Object |
DefaultFallback.convert(Object src,
TypeInfo<Object> srcType,
TypeInfo<Object> dstType) |
Object |
DefaultFallback.convert(Object src,
TypeInfo<Object> srcType,
TypeInfo<Object> dstType) |
Boolean |
StandardConverters.BooleanConverter.convert(String src,
TypeInfo<String> srcType,
TypeInfo<Boolean> dstType) |
Boolean |
StandardConverters.BooleanConverter.convert(String src,
TypeInfo<String> srcType,
TypeInfo<Boolean> dstType) |
T |
StandardConverters.StringToNumberConverter.convert(String src,
TypeInfo<String> srcType,
TypeInfo<T> dstType) |
T |
StandardConverters.StringToNumberConverter.convert(String src,
TypeInfo<String> srcType,
TypeInfo<T> dstType) |
String |
StandardConverters.SimpleToStringConverter.convert(T src,
TypeInfo<T> srcType,
TypeInfo<String> dstType) |
String |
StandardConverters.SimpleToStringConverter.convert(T src,
TypeInfo<T> srcType,
TypeInfo<String> dstType) |
String |
StandardConverters.NumberToStringConverter.convert(T src,
TypeInfo<T> srcType,
TypeInfo<String> dstType) |
String |
StandardConverters.NumberToStringConverter.convert(T src,
TypeInfo<T> srcType,
TypeInfo<String> dstType) |
<I,O> O |
DefaultFallback.convertType(I src,
TypeInfo<I> srcType,
TypeInfo<O> dstType) |
<I,O> O |
DefaultFallback.convertType(I src,
TypeInfo<I> srcType,
TypeInfo<O> dstType) |
protected BigDecimal |
StandardConverters.BigDecimalConverter.fromString(String value,
TypeInfo<BigDecimal> type) |
protected BigInteger |
StandardConverters.BigIntegerConverter.fromString(String value,
TypeInfo<BigInteger> type) |
protected Byte |
StandardConverters.ByteConverter.fromString(String value,
TypeInfo<Byte> type) |
protected Double |
StandardConverters.DoubleConverter.fromString(String value,
TypeInfo<Double> type) |
protected Float |
StandardConverters.FloatConverter.fromString(String value,
TypeInfo<Float> type) |
protected Integer |
StandardConverters.IntConverter.fromString(String value,
TypeInfo<Integer> type) |
protected Long |
StandardConverters.LongConverter.fromString(String value,
TypeInfo<Long> type) |
protected Short |
StandardConverters.ShortConverter.fromString(String value,
TypeInfo<Short> type) |
protected abstract T |
StandardConverters.StringToNumberConverter.fromString(String value,
TypeInfo<T> type) |
Copyright © 2016. All rights reserved.