Example usage for Java org.springframework.core ResolvableType fields, constructors, methods, implement or subclass
The text is from its open source code.
ResolvableType | NONE ResolvableType returned when no value is available. |
ResolvableType | as(Class> type) Return this type as a ResolvableType of the specified class. |
void | clearCache() Clear the internal ResolvableType / SerializableTypeWrapper cache. |
ResolvableType | forClass(@Nullable Class> clazz) Return a ResolvableType for the specified Class , using the full generic type information for assignability checks. |
ResolvableType | forClass(Class> baseType, Class> implementationClass) Return a ResolvableType for the specified base type (interface or base class) with a given implementation class. |
ResolvableType | forClassWithGenerics(Class> clazz, Class>... generics) Return a ResolvableType for the specified Class with pre-declared generics. |
ResolvableType | forClassWithGenerics(Class> clazz, ResolvableType... generics) Return a ResolvableType for the specified Class with pre-declared generics. |
ResolvableType | forField(Field field, Class> implementationClass) Return a ResolvableType for the specified Field with a given implementation. |
ResolvableType | forField(Field field, @Nullable ResolvableType implementationType) Return a ResolvableType for the specified Field with a given implementation. |
ResolvableType | forField(Field field, int nestingLevel) Return a ResolvableType for the specified Field with the given nesting level. |
ResolvableType | forField(Field field) Return a ResolvableType for the specified Field . |
ResolvableType | forInstance(Object instance) Return a ResolvableType for the specified instance. |
ResolvableType | forMethodParameter(Method method, int parameterIndex, Class> implementationClass) Return a ResolvableType for the specified Method parameter with a given implementation. |
ResolvableType | forMethodParameter(MethodParameter methodParameter, @Nullable Type targetType, int nestingLevel) Return a ResolvableType for the specified MethodParameter at a specific nesting level, overriding the target type to resolve with a specific given type. |
ResolvableType | forMethodParameter(MethodParameter methodParameter) Return a ResolvableType for the specified MethodParameter . |
ResolvableType | forMethodParameter(Method method, int parameterIndex) Return a ResolvableType for the specified Method parameter. |
ResolvableType | forMethodParameter(MethodParameter methodParameter, @Nullable ResolvableType implementationType) Return a ResolvableType for the specified MethodParameter with a given implementation type. |
ResolvableType | forMethodParameter(MethodParameter methodParameter, @Nullable Type targetType) Return a ResolvableType for the specified MethodParameter , overriding the target type to resolve with a specific given type. |
ResolvableType | forMethodReturnType(Method method, Class> implementationClass) Return a ResolvableType for the specified Method return type. |
ResolvableType | forMethodReturnType(Method method) Return a ResolvableType for the specified Method return type. |
ResolvableType | forType(@Nullable Type type) Return a ResolvableType for the specified Type . |
ResolvableType | forType(ParameterizedTypeReference> typeReference) Return a ResolvableType for the specified ParameterizedTypeReference . |
ResolvableType | forType(@Nullable Type type, @Nullable ResolvableType owner) Return a ResolvableType for the specified Type backed by the given owner type. |
ResolvableType | forType(@Nullable Type type, @Nullable VariableResolver variableResolver) Return a ResolvableType for the specified Type backed by a given VariableResolver . |
Class> | getClass() Returns the runtime class of this Object . |
ResolvableType | getGeneric(@Nullable int... indexes) Return a ResolvableType representing the generic parameter for the given indexes. |
ResolvableType[] | getGenerics() Return an array of ResolvableType ResolvableTypes representing the generic parameters of this type. |
Class> | getRawClass() Return the underlying Java Class being managed, if available; otherwise null . |
Object | getSource() Return the underlying source of the resolvable type. |
ResolvableType | getSuperType() Return a ResolvableType representing the direct supertype of this type. |
boolean | hasGenerics() Return true if this type contains generic parameters. |
boolean | hasUnresolvableGenerics() Determine whether the underlying type has any unresolvable generics: either through an unresolvable type variable on the type itself or through implementing a generic interface in a raw fashion, i.e. |
boolean | isAssignableFrom(Class> other) Determine whether this ResolvableType is assignable from the specified other type. |
boolean | isAssignableFrom(ResolvableType other) Determine whether this ResolvableType is assignable from the specified other type. |
Class> | resolve() Resolve this type to a java.lang.Class , returning null if the type cannot be resolved. |
Class> | resolve(Class> fallback) Resolve this type to a java.lang.Class , returning the specified fallback if the type cannot be resolved. |
Class> | toClass() Return this type as a resolved Class , falling back to java.lang.Object if no specific class can be resolved. |