类 ProtobufProxyUtils
java.lang.Object
com.baidu.bjf.remoting.protobuf.utils.ProtobufProxyUtils
Utility class for probuf proxy.
- 从以下版本开始:
- 1.0.7
- 作者:
- xiemalin
-
字段概要
字段修饰符和类型字段说明The Constant FIELD_FILTER_STARTS.The Constant TYPE_MAPPING. -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明fetchFieldInfos(Class cls, boolean ignoreNoAnnotation) Fetch field infos.static booleanisObjectType(Class<?> cls) Checks if is object type.static booleanisScalarType(Class<?> cls) Test if target type is from protocol buffer default type.processDefaultValue(List<Field> fields, boolean ignoreNoAnnotation, boolean isZipZap) to process default value of@Protobufvalue on field.static StringprocessProtobufType(Class<?> cls) Process protobuf type.
-
字段详细资料
-
TYPE_MAPPING
The Constant TYPE_MAPPING. -
FIELD_FILTER_STARTS
The Constant FIELD_FILTER_STARTS.
-
-
构造器详细资料
-
ProtobufProxyUtils
public ProtobufProxyUtils()
-
-
方法详细资料
-
isScalarType
Test if target type is from protocol buffer default type.- 参数:
cls- target type- 返回:
- true if is from protocol buffer default type
-
fetchFieldInfos
Fetch field infos.- 返回:
- the list
-
processDefaultValue
public static List<FieldInfo> processDefaultValue(List<Field> fields, boolean ignoreNoAnnotation, boolean isZipZap) to process default value of@Protobufvalue on field.- 参数:
fields- all field to processignoreNoAnnotation- the ignore no annotationisZipZap- the is zip zap- 返回:
- list of fields
-
isObjectType
Checks if is object type.- 参数:
cls- the cls- 返回:
- true, if is object type
-
processProtobufType
Process protobuf type.- 参数:
cls- the cls- 返回:
- the string
-