T - public class ThriftServiceDecorator<T> extends NewSourceInfoAbstract<T> implements ThriftConstants
NewSourceInfo实现interfaceClass, methodsNeedGenerated, paramTable, refClassbaseClass, fullNameInstanceByImportList, importedList, importedListBackupCONFIG_OPTION, CONFIG_OPTION_DESC, CONFIG_OPTION_LONG, CXX_HELPER, DIR_PERSERVICE, DIR_PERSTRUCT, DIR_SCHEMA, LANGUAGE_OPTION, LANGUAGE_OPTION_DESC, LANGUAGE_OPTION_LONG, SCHEMA_INFO, TASK_TYPE_OPTION, TASK_TYPE_OPTION_DESC, TASK_TYPE_OPTION_LONG, THRIFT_CLIENT_PKG_OPTION_DESC, THRIFT_CLIENT_PKG_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() |
java.lang.String |
getClientInterfaceName() |
java.util.Set<CxxTypeMeta> |
getContainerTypes() |
CxxType |
getCxxType() |
java.util.List<ThriftStructDecorator> |
getDecorateTypes() |
DeriveMethod |
getDeriveMethodAnnotation(Method method) |
java.lang.String |
getGeneratePackage() |
java.lang.String |
getPortName(Method method) |
java.util.List<java.lang.Class<?>> |
getReferExceptions() |
ServiceInfo |
getServiceInfo() |
CxxTypeMeta |
getStubCxxTypeMeta() |
java.lang.String |
getThriftClientNamespace() |
CxxTypeMeta |
getThriftCxxTypeMeta(java.lang.reflect.Type type) |
boolean |
isClientThriftType(java.lang.reflect.Type type) |
boolean |
isDecoratorType(java.lang.reflect.Type type) |
boolean |
isTargetType(java.lang.Class<?> type) |
boolean |
isUseExceptionInService() |
boolean |
isUseMapInService() |
boolean |
isUseSetInService() |
boolean |
isUseStringInService() |
boolean |
isUseVectorInService() |
CxxTypeMeta |
makeStubCxxTypeMetaBySuffix(java.lang.String suffix)
以接口名为基础创建不同后缀的
CxxTypeMeta |
java.lang.String |
methodSuffix(Method method)
返回
DeriveMethod 注释指定的方法名后缀,没有则返回null |
boolean |
needCast(java.lang.reflect.Type type)
判断指定的类型是否需要类型转换
|
void |
removeDecorateTypesFromImports() |
void |
removeExceptionsFromImports() |
void |
setGeneratePackage(java.lang.String generatePackage) |
java.lang.String |
toClientThriftType(java.lang.reflect.Type type) |
java.lang.String |
toClientThriftyType(java.lang.reflect.Type type) |
java.lang.String |
toDecoratorType(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, getRefClass, isAssignable, isConvert, isFullImplemented, isImplemented, isImplemented, isImplementedMethodaddImportedClass, addImportedClass, addImportedClassFromMethod, addImportedClassFromMethods, backupImportedList, getBaseClass, getImportedClassNames, getImportedClassNames, getImportedList, getName, getPackage, getRawTypeName, getTypeDefine, getTypeName, removeClassFromImports, removeClassFromImports, removeClassFromImports, restoreImportedListclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBaseClass, getImportedListpublic ThriftServiceDecorator(java.lang.Class<T> interfaceClass, java.lang.Class<? extends T> refClass)
public boolean compile()
compile 在类中 NewSourceInfoAbstract<T>protected void checkClass(java.lang.Class<T> interfaceClass, java.lang.Class<? extends T> refClass, java.lang.Class<? extends T> baseClass)
checkClass 在类中 NewSourceInfoAbstract<T>protected void createMethodsNeedGenerated()
createMethodsNeedGenerated 在类中 NewSourceInfoAbstract<T>public ServiceInfo getServiceInfo()
public boolean isTargetType(java.lang.Class<?> type)
public boolean isDecoratorType(java.lang.reflect.Type type)
public java.util.List<ThriftStructDecorator> getDecorateTypes()
public java.lang.String toThriftType(java.lang.reflect.Type type)
public java.lang.String toClientThriftType(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 toDecoratorType(java.lang.reflect.Type type)
public java.lang.String toThriftyDecoratorType(java.lang.reflect.Type type)
public java.lang.String getClientInterfaceName()
public java.lang.String getPortName(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 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 CxxTypeMeta getThriftCxxTypeMeta(java.lang.reflect.Type type)
public boolean needCast(java.lang.reflect.Type type)
type - public java.lang.String getThriftClientNamespace()
public java.util.Set<CxxTypeMeta> getContainerTypes()
public DeriveMethod getDeriveMethodAnnotation(Method method)
public java.lang.String methodSuffix(Method method)
DeriveMethod 注释指定的方法名后缀,没有则返回nullmethod - Copyright © 2019. All Rights Reserved.