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 |
isDate() |
boolean |
isEnum() |
boolean |
isException() |
boolean |
isNeedCast()
判断类型是否需要类型转换
|
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 CxxType BOOL
public static final CxxType BYTE
public static final CxxType DOUBLE
public static final CxxType I16
public static final CxxType I32
public static final CxxType I64
public static final CxxType STRING
public static final CxxType BINARY
public static final CxxType VOID
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 struct(java.lang.reflect.Type javaType)
public static CxxType exception(java.lang.reflect.Type javaType)
public static CxxType enumType(java.lang.reflect.Type javaType)
public static CxxType container(java.lang.reflect.ParameterizedType type)
public static CxxType getThriftType(java.lang.reflect.Type javaType) throws java.lang.IllegalArgumentException
javaType - 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 boolean isEnum()
public boolean isDate()
public boolean isNeedCast()
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 © 2022. All Rights Reserved.