public class NutType extends Object implements ParameterizedType
Constructor and Description |
---|
NutType() |
NutType(Type rawType,
Type... actualTypeArguments) |
Modifier and Type | Method and Description |
---|---|
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 list(Type clazz)
clazz
- 泛型的具体类public static Type map(Type key, Type value)
key
- key的泛型value
- value的泛型public static Type mapStr(Type value)
value
- value的泛型public Type[] getActualTypeArguments()
getActualTypeArguments
in interface ParameterizedType
public Type getRawType()
getRawType
in interface ParameterizedType
public Type getOwnerType()
getOwnerType
in interface ParameterizedType
public void setActualTypeArguments(Type... actualTypeArguments)
public void setOwnerType(Type ownerType)
public void setRawType(Type rawType)
Copyright © 2017. All rights reserved.