public class ThriftStructDecorator extends net.gdface.codegen.AbstractSchema implements ThriftConstants, java.util.Comparator<ThriftStructDecorator>, java.lang.Comparable<ThriftStructDecorator>
baseClass, fullNameInstanceByImportList, importedList, importedListBackupCOMMON_TYPES_OPTION_DESC, COMMON_TYPES_OPTION_LONG, CONFIG_OPTION, CONFIG_OPTION_DESC, CONFIG_OPTION_LONG, CXX_HELPER, DIR_PERSERVICE, DIR_PERSTRUCT, DIR_SCHEMA, ERPC_BINARY_OUTPUT_SIZE_OPTION_DESC, ERPC_BINARY_OUTPUT_SIZE_OPTION_LONG, ERPC_DEFAULT_MAX_LENGTH_OPTION_DESC, ERPC_DEFAULT_MAX_LENGTH_OPTION_LONG, ERPC_ERRMSG_MAX_LENGTH_OPTION_DESC, ERPC_ERRMSG_MAX_LENGTH_OPTION_LONG, ERPC_FORWARD_PORT_OPTION_DESC, ERPC_FORWARD_PORT_OPTION_LONG, ERPC_PORT_PREFIX_OPTION_DESC, ERPC_PORT_PREFIX_OPTION_LONG, ERPC_PROGRAM_OPTION_DESC, ERPC_PROGRAM_OPTION_LONG, ERPC_PROXY_PORT_OPTION_DESC, ERPC_PROXY_PORT_OPTION_LONG, EXTENSIVE_STRUCT_OPTION_DESC, EXTENSIVE_STRUCT_OPTION_LONG, LANGUAGE_OPTION, LANGUAGE_OPTION_DESC, LANGUAGE_OPTION_LONG, SCHEMA_INFO, TAGS_OPTION_DESC, TAGS_OPTION_LONG, TASK_TYPE_OPTION, TASK_TYPE_OPTION_DESC, TASK_TYPE_OPTION_LONG, THRIFT_CLIENT_PKG_OPTION_DESC, THRIFT_CLIENT_PKG_OPTION_LONG, THRIFT_SERVICE_CLASS_OPTION_DESC, THRIFT_SERVICE_CLASS_OPTION_LONGBASE_CLASS_OPTION, BASE_CLASS_OPTION_DESC, BASE_CLASS_OPTION_LONG, CLASS_PATH_OPTION, CLASS_PATH_OPTION_DESC, CLASS_PATH_OPTION_LONG, EXCLUDE_FIELDS_OPTION_DESC, EXCLUDE_FIELDS_OPTION_LONG, EXCLUDE_METHODS_OPTION_DESC, EXCLUDE_METHODS_OPTION_LONG, EXCLUDE_VMS_OPTION, EXCLUDE_VMS_OPTION_DESC, EXCLUDE_VMS_OPTION_LONG, INCLUDE_FIELDS_OPTION_DESC, INCLUDE_FIELDS_OPTION_LONG, INCLUDE_METHODS_OPTION_DESC, INCLUDE_METHODS_OPTION_LONG, INCLUDE_VMS_OPTION, INCLUDE_VMS_OPTION_DESC, INCLUDE_VMS_OPTION_LONG, INDEPENDENT_SEHEMA_OPTION, INDEPENDENT_SEHEMA_OPTION_DESC, INDEPENDENT_SEHEMA_OPTION_LONG, INTERFACE_CLASS_OPTION, INTERFACE_CLASS_OPTION_DESC, INTERFACE_CLASS_OPTION_LONG, REFERENCE_CLASS_OPTION, REFERENCE_CLASS_OPTION_DESC, REFERENCE_CLASS_OPTION_LONG, SHELL_INTERFACE_OPTION, SHELL_INTERFACE_OPTION_DESC, SHELL_INTERFACE_OPTION_LONG, SOURCE_PREFIX_OPTION, SOURCE_PREFIX_OPTION_DESC, SOURCE_PREFIX_OPTION_LONG, TEMPLATE_FOLDER_OPTION, TEMPLATE_FOLDER_OPTION_DESC, TEMPLATE_FOLDER_OPTION_LONG, TEMPLATE_INCLUDE_OPTION, TEMPLATE_INCLUDE_OPTION_DESC, TEMPLATE_INCLUDE_OPTION_LONG, TEMPLATE_ROOT_OPTION, TEMPLATE_ROOT_OPTION_DESC, TEMPLATE_ROOT_OPTION_LONG, USE_COMMON_RESPONSE_OPTION_DESC, USE_COMMON_RESPONSE_OPTION_LONG| 构造器和说明 |
|---|
ThriftStructDecorator(java.lang.Class<?> baseClass)
对
baseClass生成装饰类 |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compare(ThriftStructDecorator o1,
ThriftStructDecorator o2) |
int |
compareTo(ThriftStructDecorator o) |
boolean |
compile() |
java.lang.String |
defaultValueOf(java.beans.PropertyDescriptor input) |
boolean |
equals(java.lang.Object obj) |
CxxType |
getCxxField(java.lang.String name) |
com.google.common.collect.ImmutableMap<java.lang.String,CxxType> |
getCxxFieldsAsMap() |
CxxType |
getCxxType() |
java.util.List<ThriftStructDecorator> |
getDecorateTypes() |
java.lang.String |
getDecoratorClassName() |
java.lang.String |
getDecoratorPackage() |
java.lang.Object |
getEnums() |
java.beans.PropertyDescriptor |
getField(java.lang.String field) |
java.util.List<java.beans.PropertyDescriptor> |
getFieldDescriptors() |
java.util.List<java.lang.String> |
getFields()
返回数据结构的所有字段名,如果是sql2java生成的Thrift Struct 对象,则忽略'new','initialized','modified'字段
|
java.lang.reflect.Type |
getFieldType(java.lang.String field) |
java.lang.reflect.Method |
getGetMethod(java.lang.String field) |
java.util.List<java.lang.String> |
getRefFields()
返回数据结构的非primitive类型所有字段名
|
java.lang.reflect.Method |
getSetMethod(java.lang.String field) |
java.lang.Class<?> |
getThriftClass() |
java.util.List<ThriftStructDecorator> |
getThriftTypes() |
int |
hashCode() |
boolean |
hasStringConstructor() |
java.lang.String |
initValueOf(java.beans.PropertyDescriptor input) |
java.lang.String |
invalidValueOf(java.beans.PropertyDescriptor input) |
boolean |
isBean() |
boolean |
isEnum() |
boolean |
isException() |
boolean |
isExtThriftStruct() |
boolean |
isHasCanMoveField()
是否有需要移动的字段
|
boolean |
isHasOptionalField()
是否有optional字段
|
boolean |
isNeedTransformer() |
boolean |
isRequired(java.beans.PropertyDescriptor input) |
boolean |
isRequired(java.lang.String name) |
boolean |
isSql2javaBean() |
boolean |
isThriftStruct() |
boolean |
isUseBinary() |
boolean |
isUseCodegenDefaultvalue() |
boolean |
isUseCodegenInvalidValue() |
boolean |
isUseCodegenLength() |
boolean |
isUseCodegenRequired() |
boolean |
isUseMap() |
boolean |
isUseSet() |
boolean |
isUseString() |
boolean |
isUseVector() |
java.lang.Integer |
lengthLimitOf(java.beans.PropertyDescriptor input) |
boolean |
needRenderCodegen(java.beans.PropertyDescriptor input) |
void |
removeDecorateTypesFromImports() |
java.lang.String |
renderCodegenDefaultValue(java.beans.PropertyDescriptor input) |
java.lang.String |
renderCodegenInvalidValue(java.beans.PropertyDescriptor input) |
java.lang.String |
renderCodegenLength(java.beans.PropertyDescriptor input) |
java.lang.String |
renderCodegenRequired(java.beans.PropertyDescriptor input) |
boolean |
sameWithClientThriftType(java.lang.reflect.Type type) |
boolean |
sameWithClientThriftyType(java.lang.reflect.Type type) |
boolean |
sameWithThriftDecoratorType(java.lang.reflect.Type type) |
boolean |
sameWithThriftyDecoratorType(java.lang.reflect.Type type) |
java.lang.String |
toClientThriftType(java.lang.reflect.Type type) |
java.lang.String |
toClientThriftyType(java.lang.reflect.Type type) |
java.lang.String |
toString() |
java.lang.String |
toThriftDecoratorType(java.lang.reflect.Type type) |
java.lang.String |
toThriftType(java.lang.reflect.Type type) |
java.lang.String |
toThriftyDecoratorType(java.lang.reflect.Type type) |
addImportedClass, addImportedClass, addImportedClass, addImportedClassFromMethod, addImportedClassFromMethods, backupImportedList, defineTypeVariables, defineTypeVariables, getBaseClass, getFullTypeName, getImportedClassNames, getImportedClassNames, getImportedList, getName, getPackage, getRawTypeName, getTypeDefine, getTypeName, paramsDefine, rebuildImportedList, removeClassFromImports, removeClassFromImports, removeClassFromImports, restoreImportedList, setOutPackagepublic ThriftStructDecorator(java.lang.Class<?> baseClass)
baseClass生成装饰类baseClass - public boolean compile()
compile 在类中 net.gdface.codegen.AbstractSchemapublic java.lang.reflect.Method getGetMethod(java.lang.String field)
public java.lang.reflect.Method getSetMethod(java.lang.String field)
public java.lang.reflect.Type getFieldType(java.lang.String field)
public java.beans.PropertyDescriptor getField(java.lang.String field)
public java.util.List<java.lang.String> getFields()
public java.util.List<java.lang.String> getRefFields()
public java.lang.Object getEnums()
public java.util.List<java.beans.PropertyDescriptor> getFieldDescriptors()
public java.lang.String getDecoratorPackage()
public java.lang.String getDecoratorClassName()
public java.util.List<ThriftStructDecorator> getDecorateTypes()
public java.util.List<ThriftStructDecorator> getThriftTypes()
public boolean isException()
public boolean isThriftStruct()
public boolean isExtThriftStruct()
public java.lang.Class<?> getThriftClass()
public boolean isEnum()
public boolean isBean()
public boolean isSql2javaBean()
public boolean hasStringConstructor()
public java.lang.String toThriftType(java.lang.reflect.Type type)
public java.lang.String toClientThriftType(java.lang.reflect.Type type)
public java.lang.String toThriftDecoratorType(java.lang.reflect.Type type)
public java.lang.String toClientThriftyType(java.lang.reflect.Type type)
public java.lang.String toThriftyDecoratorType(java.lang.reflect.Type type)
public boolean sameWithClientThriftType(java.lang.reflect.Type type)
public boolean sameWithClientThriftyType(java.lang.reflect.Type type)
public boolean sameWithThriftDecoratorType(java.lang.reflect.Type type)
public boolean sameWithThriftyDecoratorType(java.lang.reflect.Type type)
public int hashCode()
hashCode 在类中 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals 在接口中 java.util.Comparator<ThriftStructDecorator>equals 在类中 java.lang.Objectpublic java.lang.String toString()
toString 在类中 java.lang.Objectpublic void removeDecorateTypesFromImports()
public int compare(ThriftStructDecorator o1, ThriftStructDecorator o2)
compare 在接口中 java.util.Comparator<ThriftStructDecorator>public int compareTo(ThriftStructDecorator o)
compareTo 在接口中 java.lang.Comparable<ThriftStructDecorator>public com.google.common.collect.ImmutableMap<java.lang.String,CxxType> getCxxFieldsAsMap()
public CxxType getCxxField(java.lang.String name)
public boolean isHasOptionalField()
public boolean isHasCanMoveField()
public CxxType getCxxType()
public boolean isUseString()
public boolean isUseBinary()
public boolean isUseMap()
public boolean isUseSet()
public boolean isUseVector()
public boolean isUseCodegenInvalidValue()
public boolean isUseCodegenDefaultvalue()
public boolean isUseCodegenLength()
public boolean isUseCodegenRequired()
public boolean needRenderCodegen(java.beans.PropertyDescriptor input)
public java.lang.String renderCodegenInvalidValue(java.beans.PropertyDescriptor input)
public java.lang.String renderCodegenDefaultValue(java.beans.PropertyDescriptor input)
public java.lang.String renderCodegenLength(java.beans.PropertyDescriptor input)
public java.lang.String renderCodegenRequired(java.beans.PropertyDescriptor input)
public java.lang.Integer lengthLimitOf(java.beans.PropertyDescriptor input)
public java.lang.String defaultValueOf(java.beans.PropertyDescriptor input)
public java.lang.String invalidValueOf(java.beans.PropertyDescriptor input)
public java.lang.String initValueOf(java.beans.PropertyDescriptor input)
public boolean isRequired(java.beans.PropertyDescriptor input)
public boolean isRequired(java.lang.String name)
public boolean isNeedTransformer()
Copyright © 2022. All Rights Reserved.