| 程序包 | 说明 |
|---|---|
| com.jn.langx.beans |
| 限定符和类型 | 方法和说明 |
|---|---|
static TypeDescriptor |
TypeDescriptor.array(TypeDescriptor elementTypeDescriptor)
Create a new type descriptor as an array of the specified type.
|
static TypeDescriptor |
TypeDescriptor.collection(Class<?> collectionType,
TypeDescriptor elementTypeDescriptor)
Create a new type descriptor from a
Collection type. |
TypeDescriptor |
TypeDescriptor.elementTypeDescriptor(Object element)
If this type is a
Collection or an array, creates a element TypeDescriptor
from the provided collection or array element. |
static TypeDescriptor |
TypeDescriptor.forObject(Object source)
Create a new type descriptor for an object.
|
TypeDescriptor |
TypeDescriptor.getElementTypeDescriptor()
If this type is an array, returns the array's component type.
|
TypeDescriptor |
TypeDescriptor.getMapKeyTypeDescriptor()
If this type is a
Map and its key type is parameterized,
returns the map's key type. |
TypeDescriptor |
TypeDescriptor.getMapKeyTypeDescriptor(Object mapKey)
If this type is a
Map, creates a mapKey TypeDescriptor
from the provided map key. |
TypeDescriptor |
TypeDescriptor.getMapValueTypeDescriptor()
If this type is a
Map and its value type is parameterized,
returns the map's value type. |
TypeDescriptor |
TypeDescriptor.getMapValueTypeDescriptor(Object mapValue)
If this type is a
Map, creates a mapValue TypeDescriptor
from the provided map value. |
static TypeDescriptor |
TypeDescriptor.map(Class<?> mapType,
TypeDescriptor keyTypeDescriptor,
TypeDescriptor valueTypeDescriptor)
Create a new type descriptor from a
Map type. |
TypeDescriptor |
TypeDescriptor.narrow(Object value)
Narrows this
TypeDescriptor by setting its type to the class of the
provided value. |
static TypeDescriptor |
TypeDescriptor.nested(BeanProperty property,
int nestingLevel)
Create a type descriptor for a nested type declared within the property.
|
static TypeDescriptor |
TypeDescriptor.nested(Field field,
int nestingLevel)
Create a type descriptor for a nested type declared within the field.
|
static TypeDescriptor |
TypeDescriptor.nested(SimpleParameter methodParameter,
int nestingLevel)
Create a type descriptor for a nested type declared within the method parameter.
|
TypeDescriptor |
TypeDescriptor.upcast(Class<?> superType)
Cast this
TypeDescriptor to a superclass or implemented interface
preserving annotations and nested type context. |
static TypeDescriptor |
TypeDescriptor.valueOf(Class<?> type)
Create a new type descriptor from the given type.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static TypeDescriptor |
TypeDescriptor.array(TypeDescriptor elementTypeDescriptor)
Create a new type descriptor as an array of the specified type.
|
static TypeDescriptor |
TypeDescriptor.collection(Class<?> collectionType,
TypeDescriptor elementTypeDescriptor)
Create a new type descriptor from a
Collection type. |
boolean |
TypeDescriptor.isAssignableTo(TypeDescriptor typeDescriptor)
Returns true if an object of this type descriptor can be assigned to the location
described by the given type descriptor.
|
static TypeDescriptor |
TypeDescriptor.map(Class<?> mapType,
TypeDescriptor keyTypeDescriptor,
TypeDescriptor valueTypeDescriptor)
Create a new type descriptor from a
Map type. |
Copyright © 2022. All rights reserved.