public class StubMethodDescriptor extends Object implements MethodDescriptor, PackableMethod
MethodDescriptor.RpcTypePackableMethod.Pack, PackableMethod.UnPack| 构造器和说明 |
|---|
StubMethodDescriptor(String methodName,
Class<?> requestClass,
Class<?> responseClass,
StubServiceDescriptor serviceDescriptor,
MethodDescriptor.RpcType rpcType,
PackableMethod.Pack requestPack,
PackableMethod.Pack responsePack,
PackableMethod.UnPack requestUnpack,
PackableMethod.UnPack responseUnpack) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addAttribute(String key,
Object value) |
Object |
getAttribute(String key) |
String[] |
getCompatibleParamSignatures()
duplicate filed as paramDesc, but with different format.
|
Method |
getMethod()
Only available for ReflectionMethod
|
String |
getMethodName() |
String |
getParamDesc() |
Class<?>[] |
getParameterClasses() |
PackableMethod.Pack |
getRequestPack() |
PackableMethod.UnPack |
getRequestUnpack() |
PackableMethod.Pack |
getResponsePack() |
PackableMethod.UnPack |
getResponseUnpack() |
Class<?> |
getReturnClass() |
Type[] |
getReturnTypes() |
MethodDescriptor.RpcType |
getRpcType() |
boolean |
isGeneric() |
packRequest, packResponse, parseRequest, parseResponsepublic StubMethodDescriptor(String methodName, Class<?> requestClass, Class<?> responseClass, StubServiceDescriptor serviceDescriptor, MethodDescriptor.RpcType rpcType, PackableMethod.Pack requestPack, PackableMethod.Pack responsePack, PackableMethod.UnPack requestUnpack, PackableMethod.UnPack responseUnpack)
public String getMethodName()
getMethodName 在接口中 MethodDescriptorpublic String getParamDesc()
getParamDesc 在接口中 MethodDescriptorpublic String[] getCompatibleParamSignatures()
MethodDescriptorgetCompatibleParamSignatures 在接口中 MethodDescriptorpublic Class<?>[] getParameterClasses()
getParameterClasses 在接口中 MethodDescriptorpublic Class<?> getReturnClass()
getReturnClass 在接口中 MethodDescriptorpublic Type[] getReturnTypes()
getReturnTypes 在接口中 MethodDescriptorpublic MethodDescriptor.RpcType getRpcType()
getRpcType 在接口中 MethodDescriptorpublic boolean isGeneric()
isGeneric 在接口中 MethodDescriptorpublic Method getMethod()
MethodDescriptorgetMethod 在接口中 MethodDescriptorpublic void addAttribute(String key, Object value)
addAttribute 在接口中 MethodDescriptorpublic Object getAttribute(String key)
getAttribute 在接口中 MethodDescriptorpublic PackableMethod.Pack getRequestPack()
getRequestPack 在接口中 PackableMethodpublic PackableMethod.Pack getResponsePack()
getResponsePack 在接口中 PackableMethodpublic PackableMethod.UnPack getResponseUnpack()
getResponseUnpack 在接口中 PackableMethodpublic PackableMethod.UnPack getRequestUnpack()
getRequestUnpack 在接口中 PackableMethodCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.