| Modifier and Type | Field and Description |
|---|---|
static int |
BASIC_TYPE |
static ThriftType |
BOOL |
static ThriftType |
BYTE |
static int |
COLLECTION_TYPE |
static ThriftType |
DOUBLE |
static ThriftType |
ENUM |
static int |
ENUM_TYPE |
static ThriftType |
I16 |
static ThriftType |
I32 |
static ThriftType |
I64 |
static ThriftType |
LIST |
static ThriftType |
MAP |
static ThriftType |
SET |
static ThriftType |
STRING |
static ThriftType |
STRUCT |
static int |
STRUCT_TYPE |
static ThriftType |
VOID |
static int |
VOID_TYPE |
| Constructor and Description |
|---|
ThriftType() |
| Modifier and Type | Method and Description |
|---|---|
ThriftType |
clone() |
static ThriftType |
fromJavaType(Class<?> clazz) |
static ThriftType |
fromJavaType(Type type) |
Class<?> |
getJavaClass() |
String |
getJavaTypeName() |
byte |
getSerializeTtype() |
byte |
gettType() |
int |
getType() |
String |
getTypeName() |
String |
getValue() |
String |
getWarpperClassName() |
boolean |
isBasicType() |
boolean |
isCollection() |
boolean |
isEnum() |
boolean |
isStruct() |
void |
setJavaClass(Class<?> javaClass) |
void |
setJavaTypeName(String javaTypeName) |
void |
settType(byte tType) |
void |
setType(int type) |
void |
setValue(String value) |
void |
setWarpperClassName(String warpperClassName) |
public static final int BASIC_TYPE
public static final int COLLECTION_TYPE
public static final int STRUCT_TYPE
public static final int VOID_TYPE
public static final int ENUM_TYPE
public static final ThriftType BOOL
public static final ThriftType BYTE
public static final ThriftType I16
public static final ThriftType I32
public static final ThriftType I64
public static final ThriftType DOUBLE
public static final ThriftType STRING
public static final ThriftType LIST
public static final ThriftType SET
public static final ThriftType MAP
public static final ThriftType ENUM
public static final ThriftType VOID
public static final ThriftType STRUCT
public byte getSerializeTtype()
public byte gettType()
public void settType(byte tType)
public ThriftType clone()
public static ThriftType fromJavaType(Type type)
public static ThriftType fromJavaType(Class<?> clazz)
public String getTypeName()
public boolean isBasicType()
public boolean isCollection()
public boolean isStruct()
public boolean isEnum()
public String getValue()
public void setValue(String value)
value - the value to setpublic String getJavaTypeName()
public void setJavaTypeName(String javaTypeName)
javaTypeName - the javaTypeName to setpublic String getWarpperClassName()
public void setWarpperClassName(String warpperClassName)
warpperClassName - the warpperClassName to setpublic Class<?> getJavaClass()
public void setJavaClass(Class<?> javaClass)
javaClass - the javaClass to setpublic int getType()
public void setType(int type)
type - the type to setCopyright © 2017. All rights reserved.