public class CxxType extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
static CxxType |
BINARY |
static CxxType |
BOOL |
static CxxType |
BYTE |
static CxxType |
DOUBLE |
static CxxType |
I16 |
static CxxType |
I32 |
static CxxType |
I64 |
static CxxType |
STRING |
static com.google.common.collect.ImmutableMap<java.lang.Class<?>,CxxType> |
THRIFT_BUILTIN_CXX_TYPES |
static com.google.common.collect.ImmutableMap<java.lang.Class<?>,CxxType> |
THRIFT_CAST_CXX_TYPES |
static CxxType |
VOID |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
addThriftType(CxxType thriftType) |
static CxxType |
array(CxxType valueType) |
static CxxType |
container(java.lang.reflect.ParameterizedType type) |
static CxxType |
enumType(java.lang.reflect.Type javaType) |
boolean |
equals(java.lang.Object obj) |
static CxxType |
exception(java.lang.reflect.Type javaType) |
java.lang.reflect.Type |
getJavaType() |
net.gdface.codegen.thrift.CxxTypeMeta.ThriftProtocolType |
getProtocolType() |
CxxTypeMeta |
getStubType() |
static CxxType |
getThriftType(java.lang.reflect.Type javaType)
Gets the CxxType for the specified Java type.
|
CxxTypeMeta |
getUiType() |
int |
hashCode() |
boolean |
isException() |
boolean |
isPrimitive() |
static <E> CxxType |
list(CxxType valueType) |
static <K,V> CxxType |
map(CxxType keyType,
CxxType valueType) |
static <E> CxxType |
set(CxxType valueType) |
static CxxType |
struct(java.lang.reflect.Type javaType) |
java.lang.String |
toString() |
public static final com.google.common.collect.ImmutableMap<java.lang.Class<?>,CxxType> THRIFT_BUILTIN_CXX_TYPES
public static final com.google.common.collect.ImmutableMap<java.lang.Class<?>,CxxType> THRIFT_CAST_CXX_TYPES
public static CxxType getThriftType(java.lang.reflect.Type javaType) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - if the Java Type can not be coerced to a CxxTypepublic static void addThriftType(CxxType thriftType)
public CxxTypeMeta getUiType()
public CxxTypeMeta getStubType()
public net.gdface.codegen.thrift.CxxTypeMeta.ThriftProtocolType getProtocolType()
public java.lang.reflect.Type getJavaType()
public boolean isException()
public boolean isPrimitive()
public java.lang.String toString()
toString 在类中 java.lang.Objectpublic int hashCode()
hashCode 在类中 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals 在类中 java.lang.ObjectCopyright © 2020. All Rights Reserved.