| 程序包 | 说明 |
|---|---|
| net.hasor.cobble.reflect.resolvable |
| 限定符和类型 | 字段和说明 |
|---|---|
static ResolvableType |
ResolvableType.NONE
ResolvableType returned when no value is available. |
| 限定符和类型 | 方法和说明 |
|---|---|
ResolvableType |
ResolvableType.as(Class<?> type)
Return this type as a
ResolvableType of the specified class. |
ResolvableType |
ResolvableType.asCollection()
Convenience method to return this type as a resolvable
Collection type. |
ResolvableType |
ResolvableType.asMap()
Convenience method to return this type as a resolvable
Map type. |
static ResolvableType |
ResolvableType.forArrayComponent(ResolvableType componentType)
Return a
ResolvableType as a array of the specified componentType. |
static ResolvableType |
ResolvableType.forClass(Class<?> clazz)
Return a
ResolvableType for the specified Class,
using the full generic type information for assignability checks. |
static ResolvableType |
ResolvableType.forClass(Class<?> baseType,
Class<?> implementationClass)
Return a
ResolvableType for the specified base type
(interface or base class) with a given implementation class. |
static ResolvableType |
ResolvableType.forClassWithGenerics(Class<?> clazz,
Class<?>... generics)
Return a
ResolvableType for the specified Class with pre-declared generics. |
static ResolvableType |
ResolvableType.forClassWithGenerics(Class<?> clazz,
ResolvableType... generics)
Return a
ResolvableType for the specified Class with pre-declared generics. |
static ResolvableType |
ResolvableType.forConstructorParameter(Constructor<?> constructor,
int parameterIndex)
Return a
ResolvableType for the specified Constructor parameter. |
static ResolvableType |
ResolvableType.forConstructorParameter(Constructor<?> constructor,
int parameterIndex,
Class<?> implementationClass)
Return a
ResolvableType for the specified Constructor parameter
with a given implementation. |
static ResolvableType |
ResolvableType.forField(Field field)
Return a
ResolvableType for the specified Field. |
static ResolvableType |
ResolvableType.forField(Field field,
Class<?> implementationClass)
Return a
ResolvableType for the specified Field with a given
implementation. |
static ResolvableType |
ResolvableType.forField(Field field,
int nestingLevel)
Return a
ResolvableType for the specified Field with the
given nesting level. |
static ResolvableType |
ResolvableType.forField(Field field,
int nestingLevel,
Class<?> implementationClass)
Return a
ResolvableType for the specified Field with a given
implementation and the given nesting level. |
static ResolvableType |
ResolvableType.forField(Field field,
ResolvableType implementationType)
Return a
ResolvableType for the specified Field with a given
implementation. |
static ResolvableType |
ResolvableType.forMethodParameter(Method method,
int parameterIndex)
Return a
ResolvableType for the specified Method parameter. |
static ResolvableType |
ResolvableType.forMethodParameter(Method method,
int parameterIndex,
Class<?> implementationClass)
Return a
ResolvableType for the specified Method parameter with a
given implementation. |
static ResolvableType |
ResolvableType.forMethodParameter(net.hasor.cobble.reflect.resolvable.MethodParameter methodParameter)
Return a
ResolvableType for the specified MethodParameter. |
static ResolvableType |
ResolvableType.forMethodParameter(net.hasor.cobble.reflect.resolvable.MethodParameter methodParameter,
ResolvableType implementationType)
Return a
ResolvableType for the specified MethodParameter with a
given implementation type. |
static ResolvableType |
ResolvableType.forMethodParameter(net.hasor.cobble.reflect.resolvable.MethodParameter methodParameter,
Type targetType)
Return a
ResolvableType for the specified MethodParameter,
overriding the target type to resolve with a specific given type. |
static ResolvableType |
ResolvableType.forMethodReturnType(Method method)
Return a
ResolvableType for the specified Method return type. |
static ResolvableType |
ResolvableType.forMethodReturnType(Method method,
Class<?> implementationClass)
Return a
ResolvableType for the specified Method return type. |
static ResolvableType |
ResolvableType.forRawClass(Class<?> clazz)
Return a
ResolvableType for the specified Class,
doing assignability checks against the raw class only (analogous to
Class.isAssignableFrom(java.lang.Class<?>), which this serves as a wrapper for. |
static ResolvableType |
ResolvableType.forType(Type type)
Return a
ResolvableType for the specified Type. |
static ResolvableType |
ResolvableType.forType(Type type,
ResolvableType owner)
Return a
ResolvableType for the specified Type backed by the given
owner type. |
ResolvableType |
ResolvableType.getComponentType()
Return the ResolvableType representing the component type of the array or
NONE if this type does not represent an array. |
ResolvableType |
ResolvableType.getGeneric(int... indexes)
Return a
ResolvableType representing the generic parameter for the
given indexes. |
ResolvableType[] |
ResolvableType.getGenerics()
Return an array of
ResolvableTypes representing the generic parameters of
this type. |
ResolvableType[] |
ResolvableType.getInterfaces()
Return a
ResolvableType array representing the direct interfaces
implemented by this type. |
ResolvableType |
ResolvableType.getNested(int nestingLevel)
Return a
ResolvableType for the specified nesting level. |
ResolvableType |
ResolvableType.getNested(int nestingLevel,
Map<Integer,Integer> typeIndexesPerLevel)
Return a
ResolvableType for the specified nesting level. |
ResolvableType |
ResolvableType.getSuperType()
Return a
ResolvableType representing the direct supertype of this type. |
| 限定符和类型 | 方法和说明 |
|---|---|
static ResolvableType |
ResolvableType.forArrayComponent(ResolvableType componentType)
Return a
ResolvableType as a array of the specified componentType. |
static ResolvableType |
ResolvableType.forClassWithGenerics(Class<?> clazz,
ResolvableType... generics)
Return a
ResolvableType for the specified Class with pre-declared generics. |
static ResolvableType |
ResolvableType.forField(Field field,
ResolvableType implementationType)
Return a
ResolvableType for the specified Field with a given
implementation. |
static ResolvableType |
ResolvableType.forMethodParameter(net.hasor.cobble.reflect.resolvable.MethodParameter methodParameter,
ResolvableType implementationType)
Return a
ResolvableType for the specified MethodParameter with a
given implementation type. |
static ResolvableType |
ResolvableType.forType(Type type,
ResolvableType owner)
Return a
ResolvableType for the specified Type backed by the given
owner type. |
boolean |
ResolvableType.isAssignableFrom(ResolvableType other)
Determine whether this
ResolvableType is assignable from the specified other type. |
Copyright © 2021–2022. All rights reserved.