public class TarsHelper extends Object
| 构造器和说明 |
|---|
TarsHelper() |
| 限定符和类型 | 方法和说明 |
|---|---|
static TarsMethodParameterInfo |
createParameterInfo(Type genericParameterType) |
static String |
getDataType(Class<?> clazz) |
static String |
getHolderName(Annotation[] annotations) |
static Object |
getHolderValue(Object holder) |
static Object |
getJavaBaseArrayType(Object stamp) |
static Object |
getJavaBaseOrArrayOrJavaBeanStamp(Class<?> clazz) |
static TarsMethodInfo |
getMethodInfo(Class<?> api,
Method method,
String objectName) |
static Map<Method,TarsMethodInfo> |
getMethodInfo(Class<?> api,
String objectName) |
static Object |
getNewJavaBaseOrArrayOrJavaBeanStamp(Class<?> clazz) |
static Object |
getNewParameterStamp(Type type) |
static String |
getParameterName(Annotation[] annotations) |
static Object |
getParameterStamp(Type type) |
static Object |
getPropertyDefaultValue(Object value) |
static TarsStructInfo |
getStructInfo(Class<?> clazz) |
static boolean |
isAsync(String methodName) |
static boolean |
isCallback(Annotation[] annotations) |
static boolean |
isCallback(Class<?> apiClass) |
static boolean |
isCollection(Class<?> clazz) |
static boolean |
isContext(Annotation[] annotations) |
static boolean |
isHolder(Annotation[] annotations) |
static boolean |
isHolder(Class<?> clazz) |
static boolean |
isMap(Class<?> clazz) |
static boolean |
isParameter(Annotation[] annotations) |
static boolean |
isPing(String methodName) |
static boolean |
isPromiseFuture(String methodName) |
static boolean |
isRoutekey(Annotation[] annotations) |
static boolean |
isServant(Class<?> apiClass) |
static boolean |
isStruct(Class<?> clazz) |
static boolean |
isVector(Class<?> clazz) |
static void |
setHolderValue(Object holder,
Object value) |
public static final int PACKAGE_MAX_LENGTH
public static final int HEAD_SIZE
public static final short VERSION
public static final short VERSION2
public static final short VERSION3
public static final short VERSIONJSON
public static final byte NORMAL
public static final byte ONEWAY
public static final int SERVERSUCCESS
public static final int SERVERDECODEERR
public static final int SERVERENCODEERR
public static final int SERVERNOFUNCERR
public static final int SERVERNOSERVANTERR
public static final int SERVERRESETGRID
public static final int SERVERQUEUETIMEOUT
public static final int ASYNCCALLTIMEOUT
public static final int INVOKETIMEOUT
public static final int PROXYCONNECTERR
public static final int SERVEROVERLOAD
public static final int ADAPTERNULL
public static final int SERVERUNCATCHEDERR
public static final int SERVERUNKNOWNERR
public static final int MESSAGETYPENULL
public static final int MESSAGETYPEHASH
public static final int MESSAGETYPEGRID
public static final int MESSAGETYPEDYED
public static final int MESSAGETYPESAMPLE
public static final int MESSAGETYPEASYNC
public static final int MESSAGETYPELOADED
public static final Boolean STAMP_BOOLEAN
public static final Byte STAMP_BYTE
public static final Short STAMP_SHORT
public static final Float STAMP_FLOAT
public static final Integer STAMP_INT
public static final Long STAMP_LONG
public static final Double STAMP_DOUBLE
public static final boolean[] STAMP_BOOLEAN_ARRAY
public static final byte[] STAMP_BYTE_ARRAY
public static final short[] STAMP_SHORT_ARRAY
public static final int[] STAMP_INT_ARRAY
public static final long[] STAMP_LONG_ARRAY
public static final float[] STAMP_FLOAT_ARRAY
public static final double[] STAMP_DOUBLE_ARRAY
public static Object getJavaBaseOrArrayOrJavaBeanStamp(Class<?> clazz)
public static String getParameterName(Annotation[] annotations)
public static TarsMethodParameterInfo createParameterInfo(Type genericParameterType)
public static Object getNewJavaBaseOrArrayOrJavaBeanStamp(Class<?> clazz)
public static TarsStructInfo getStructInfo(Class<?> clazz)
public static Map<Method,TarsMethodInfo> getMethodInfo(Class<?> api, String objectName)
public static TarsMethodInfo getMethodInfo(Class<?> api, Method method, String objectName)
public static boolean isAsync(String methodName)
public static boolean isPromiseFuture(String methodName)
public static boolean isPing(String methodName)
public static boolean isHolder(Annotation[] annotations)
public static String getHolderName(Annotation[] annotations)
public static boolean isCallback(Annotation[] annotations)
public static boolean isParameter(Annotation[] annotations)
public static boolean isContext(Annotation[] annotations)
public static boolean isRoutekey(Annotation[] annotations)
public static boolean isStruct(Class<?> clazz)
public static boolean isServant(Class<?> apiClass)
public static boolean isCallback(Class<?> apiClass)
public static boolean isHolder(Class<?> clazz)
public static boolean isMap(Class<?> clazz)
public static boolean isVector(Class<?> clazz)
public static boolean isCollection(Class<?> clazz)
public static void setHolderValue(Object holder, Object value) throws Exception
ExceptionCopyright © 2020. All Rights Reserved.