| 限定符和类型 | 方法和说明 |
|---|---|
String |
getDescription()
get the description.
|
Field |
getField()
get the field.
|
FieldType |
getFieldType()
get the fieldType.
|
Class<?> |
getGenericeValueType()
get the genericeValueType.
|
Class<?> |
getGenericKeyType()
get the genericKeyType.
|
int |
getOrder()
get the order.
|
Class |
getUseAsType()
Gets the use as type.
|
boolean |
hasDescription()
Checks for description.
|
boolean |
isEnumKeyType()
Checks if is enum key type.
|
boolean |
isEnumValueType()
Checks if is enum value type.
|
boolean |
isList()
get the isList.
|
static boolean |
isListType(Field field)
Checks if is list type.
|
boolean |
isMap()
get the isMap.
|
boolean |
isObjectType()
Checks if is object type.
|
boolean |
isPacked()
Checks if is packed.
|
static boolean |
isPrimitiveType(Class c)
Checks if is primitive type.
|
boolean |
isRequired()
get the required.
|
static boolean |
isSetType(Field field)
Checks if is set type.
|
boolean |
isUseType()
Checks if is use type.
|
boolean |
isWildcardType()
Checks if is wildcard type.
|
void |
setDescription(String description)
set description value to description.
|
void |
setFieldType(FieldType fieldType)
set fieldType value to fieldType.
|
void |
setGenericeValueType(Class<?> genericeValueType)
set genericeValueType value to genericeValueType.
|
void |
setGenericKeyType(Class<?> genericKeyType)
set genericKeyType value to genericKeyType.
|
void |
setList(boolean isList)
set isList value to isList.
|
void |
setMap(boolean isMap)
set isMap value to isMap.
|
void |
setOrder(int order)
set order value to order.
|
void |
setPacked(boolean packed)
Sets the packed.
|
void |
setRequired(boolean required)
set required value to required.
|
void |
setUseAsType(Class useAsType)
Sets the use as type.
|
void |
setUseType(boolean useType)
Sets the use type.
|
public FieldInfo(Field field)
field - the fieldpublic void setUseAsType(Class useAsType)
useAsType - the new use as typepublic Class getUseAsType()
public void setUseType(boolean useType)
useType - the new use typepublic boolean isUseType()
public boolean isWildcardType()
public boolean isList()
public void setList(boolean isList)
isList - the isList to setpublic boolean isMap()
public void setMap(boolean isMap)
isMap - the isMap to setpublic Field getField()
public boolean isRequired()
public void setRequired(boolean required)
required - the required to setpublic int getOrder()
public void setOrder(int order)
order - the order to setpublic FieldType getFieldType()
public void setFieldType(FieldType fieldType)
fieldType - the fieldType to setpublic String getDescription()
public void setDescription(String description)
description - the description to setpublic boolean hasDescription()
public Class<?> getGenericKeyType()
public void setGenericKeyType(Class<?> genericKeyType)
genericKeyType - the genericKeyType to setpublic Class<?> getGenericeValueType()
public void setGenericeValueType(Class<?> genericeValueType)
genericeValueType - the genericeValueType to setpublic boolean isPacked()
public void setPacked(boolean packed)
packed - the packed to setpublic boolean isObjectType()
public boolean isEnumValueType()
public boolean isEnumKeyType()
public static boolean isPrimitiveType(Class c)
c - the cpublic static boolean isListType(Field field)
field - the fieldpublic static boolean isSetType(Field field)
field - the fieldCopyright © 2022 Baidu, Inc.. All rights reserved.