public class NutType extends Object implements ParameterizedType
限定符和类型 | 方法和说明 |
---|---|
static Type |
array(Class<?> clazz)
生成Abc[]形式的泛型信息
|
Type[] |
getActualTypeArguments() |
Type |
getOwnerType() |
Type |
getRawType() |
static Type |
list(Type clazz)
生成List
|
static Type |
map(Type key,
Type value)
生成Map
|
static Type |
mapStr(Type value)
生成Map
|
void |
setActualTypeArguments(Type... actualTypeArguments) |
void |
setOwnerType(Type ownerType) |
void |
setRawType(Type rawType) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTypeName
public static Type map(Type key, Type value)
key
- key的泛型value
- value的泛型public Type[] getActualTypeArguments()
getActualTypeArguments
在接口中 ParameterizedType
public Type getRawType()
getRawType
在接口中 ParameterizedType
public Type getOwnerType()
getOwnerType
在接口中 ParameterizedType
public void setActualTypeArguments(Type... actualTypeArguments)
public void setOwnerType(Type ownerType)
public void setRawType(Type rawType)
Copyright © 2017. All rights reserved.