T - public class ThriftServiceDecorator<T> extends net.gdface.codegen.NewSourceInfoAbstract<T> implements ThriftConstants
NewSourceInfo实现interfaceClass, methodsNeedGenerated, paramTable, properties, refClassbaseClass, 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| 构造器和说明 |
|---|
ThriftServiceDecorator(java.lang.Class<T> interfaceClass,
java.lang.Class<? extends T> refClass) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
checkClass(java.lang.Class<T> interfaceClass,
java.lang.Class<? extends T> refClass,
java.lang.Class<? extends T> baseClass) |
boolean |
compile() |
protected void |
createMethodsNeedGenerated() |
ThriftServiceDecorator<T> |
erpcProxyInit() |
java.lang.String |
getClientInterfaceName() |
java.util.List<com.facebook.swift.codec.metadata.ErpcType> |
getCollectionTypes() |
java.util.Set<CxxTypeMeta> |
getContainerTypes() |
CxxType |
getCxxType() |
java.util.List<ThriftStructDecorator> |
getDecorateTypes() |
net.gdface.annotation.DeriveMethod |
getDeriveMethodAnnotation(net.gdface.codegen.Method method) |
java.lang.String |
getGeneratePackage() |
java.util.List<com.facebook.swift.codec.metadata.ThriftFieldMetadata> |
getParameterMetadata(net.gdface.codegen.Method method) |
java.lang.String |
getPortName(net.gdface.codegen.Method method) |
java.util.List<java.lang.Class<?>> |
getReferExceptions() |
net.gdface.codegen.ServiceInfo |
getServiceInfo() |
CxxTypeMeta |
getStubCxxTypeMeta() |
java.lang.String |
getThriftClientNamespace() |
com.facebook.swift.service.metadata.ThriftMethodMetadata |
getThriftMethodMetadata(net.gdface.codegen.Method method) |
java.lang.Class<?> |
getThriftServiceClass() |
com.facebook.swift.codec.metadata.DecoratorThriftServiceMetadata |
getThriftServiceMetadata() |
java.util.List<ThriftStructDecorator> |
getThriftTypes() |
boolean |
isClientThriftType(java.lang.reflect.Type type) |
boolean |
isNeedTransformer() |
boolean |
isTargetType(java.lang.Class<?> type) |
boolean |
isUseBinaryInService() |
boolean |
isUseExceptionInService() |
boolean |
isUseMapInService() |
boolean |
isUseSetInService() |
boolean |
isUseStringInService() |
boolean |
isUseVectorInService() |
CxxTypeMeta |
makeStubCxxTypeMetaBySuffix(java.lang.String suffix)
以接口名为基础创建不同后缀的
CxxTypeMeta |
java.lang.String |
methodSuffix(net.gdface.codegen.Method method)
返回
DeriveMethod 注释指定的方法名后缀,没有则返回空 |
void |
removeDecorateTypesFromImports() |
void |
removeExceptionsFromImports() |
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) |
void |
setGeneratePackage(java.lang.String generatePackage) |
ThriftServiceDecorator<T> |
setThriftServiceClass(java.lang.Class<?> thriftServiceClass) |
java.lang.String |
toClientThriftType(java.lang.reflect.Type type) |
java.lang.String |
toClientThriftyType(java.lang.reflect.Type type) |
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) |
addImportedClassFromMethods, getDeclaredMethods, getGenericMethod, getImplementedMethod, getInterfaceClass, getMatchedGenericMethod, getMatchedGenericMethod, getMethod, getMethodsNeedGenerated, getMethodsNeedGenerated, getProperties, getRefClass, isAssignable, isConvert, isFullImplemented, isImplemented, isImplemented, isImplementedMethod, isIs, isReadable, isWritable, propertyDescriptorOf, readPropertiesaddImportedClass, addImportedClass, addImportedClass, addImportedClassFromMethod, addImportedClassFromMethods, backupImportedList, defineTypeVariables, defineTypeVariables, getBaseClass, getFullTypeName, getImportedClassNames, getImportedClassNames, getImportedList, getName, getPackage, getRawTypeName, getTypeDefine, getTypeName, paramsDefine, rebuildImportedList, removeClassFromImports, removeClassFromImports, removeClassFromImports, restoreImportedList, setOutPackagepublic boolean compile()
compile 在类中 net.gdface.codegen.NewSourceInfoAbstract<T>protected void checkClass(java.lang.Class<T> interfaceClass, java.lang.Class<? extends T> refClass, java.lang.Class<? extends T> baseClass)
checkClass 在类中 net.gdface.codegen.NewSourceInfoAbstract<T>protected void createMethodsNeedGenerated()
createMethodsNeedGenerated 在类中 net.gdface.codegen.NewSourceInfoAbstract<T>public net.gdface.codegen.ServiceInfo getServiceInfo()
public boolean isTargetType(java.lang.Class<?> type)
public java.util.List<ThriftStructDecorator> getDecorateTypes()
public java.util.List<ThriftStructDecorator> getThriftTypes()
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 boolean isClientThriftType(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 java.lang.String getClientInterfaceName()
public java.lang.String getPortName(net.gdface.codegen.Method method)
public java.lang.String getGeneratePackage()
public void setGeneratePackage(java.lang.String generatePackage)
public void removeDecorateTypesFromImports()
public void removeExceptionsFromImports()
public java.util.List<java.lang.Class<?>> getReferExceptions()
public boolean isUseStringInService()
public boolean isUseBinaryInService()
public boolean isUseMapInService()
public boolean isUseSetInService()
public boolean isUseVectorInService()
public boolean isUseExceptionInService()
public CxxTypeMeta makeStubCxxTypeMetaBySuffix(java.lang.String suffix)
CxxTypeMetasuffix - public CxxType getCxxType()
public CxxTypeMeta getStubCxxTypeMeta()
public java.lang.String getThriftClientNamespace()
public java.util.Set<CxxTypeMeta> getContainerTypes()
public net.gdface.annotation.DeriveMethod getDeriveMethodAnnotation(net.gdface.codegen.Method method)
public java.lang.String methodSuffix(net.gdface.codegen.Method method)
DeriveMethod 注释指定的方法名后缀,没有则返回空method - public com.facebook.swift.codec.metadata.DecoratorThriftServiceMetadata getThriftServiceMetadata()
public com.facebook.swift.service.metadata.ThriftMethodMetadata getThriftMethodMetadata(net.gdface.codegen.Method method)
public java.util.List<com.facebook.swift.codec.metadata.ThriftFieldMetadata> getParameterMetadata(net.gdface.codegen.Method method)
public java.lang.Class<?> getThriftServiceClass()
public ThriftServiceDecorator<T> setThriftServiceClass(java.lang.Class<?> thriftServiceClass)
thriftServiceClass - 要设置的 thriftServiceClasspublic ThriftServiceDecorator<T> erpcProxyInit()
public java.util.List<com.facebook.swift.codec.metadata.ErpcType> getCollectionTypes()
public boolean isNeedTransformer()
Copyright © 2022. All Rights Reserved.