public class DefaultMethodGenericType extends Object implements MethodGenericType
| 构造器和说明 |
|---|
DefaultMethodGenericType(Method method) |
| 限定符和类型 | 方法和说明 |
|---|---|
GenericType |
as(Class<?> type)
沿着当前类的继承和实现关系,找到指定的父类或者接口的泛型解析器
|
Method |
getMethod()
泛型解析的防范
|
GenericType |
parameterType(int index)
获取指定参数位置的泛型解析器
|
Optional<Class<?>> |
resolveGenericOptional(int... indices)
解析泛型类
|
Optional<Class<?>> |
resolveOptional()
|
GenericType |
resolveType(int... indices)
解析指定索引位置的泛型
|
GenericType |
returnType()
获取方法的返回值泛型解析器
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitas, asCompletableFuture, asList, asMap, asOptional, asSet, forField, forMethod, forParameter, forType, is, isArray, isAssignableTo, isBasic, isCollection, isCompletableFuture, isOptional, isPage, isWrapped, resolve, resolveGeneric, resolveGenericOptional, resolveOptional, resolveTypepublic DefaultMethodGenericType(Method method)
public Method getMethod()
MethodGenericTypegetMethod 在接口中 MethodGenericTypepublic GenericType returnType()
MethodGenericTypereturnType 在接口中 MethodGenericTypepublic GenericType parameterType(int index)
MethodGenericTypeparameterType 在接口中 MethodGenericTypeindex - 参数索引public GenericType as(Class<?> type)
GenericTypeas 在接口中 GenericTypetype - 继承类或者实现接口public Optional<Class<?>> resolveGenericOptional(int... indices)
GenericTyperesolveGenericOptional 在接口中 GenericTypeindices - 索引public Optional<Class<?>> resolveOptional()
GenericTyperesolveOptional 在接口中 GenericTypepublic GenericType resolveType(int... indices)
GenericTyperesolveType 在接口中 GenericTypeindices - 泛型索引Copyright © 2020. All rights reserved.