public class ProtobufProxyUtils extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static List<String> |
FIELD_FILTER_STARTS
The Constant FIELD_FILTER_STARTS.
|
static Map<Class<?>,FieldType> |
TYPE_MAPPING
The Constant TYPE_MAPPING.
|
| 构造器和说明 |
|---|
ProtobufProxyUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<FieldInfo> |
fetchFieldInfos(Class cls,
boolean ignoreNoAnnotation)
Fetch field infos.
|
static boolean |
isObjectType(Class<?> cls)
Checks if is object type.
|
static boolean |
isScalarType(Class<?> cls)
Test if target type is from protocol buffer default type.
|
static List<FieldInfo> |
processDefaultValue(List<Field> fields,
boolean ignoreNoAnnotation,
boolean isZipZap)
to process default value of
@Protobuf value on field. |
static String |
processProtobufType(Class<?> cls)
Process protobuf type.
|
public static boolean isScalarType(Class<?> cls)
cls - target typepublic static List<FieldInfo> fetchFieldInfos(Class cls, boolean ignoreNoAnnotation)
public static List<FieldInfo> processDefaultValue(List<Field> fields, boolean ignoreNoAnnotation, boolean isZipZap)
@Protobuf value on field.fields - all field to processignoreNoAnnotation - the ignore no annotationisZipZap - the is zip zappublic static boolean isObjectType(Class<?> cls)
cls - the clsCopyright © 2022 Baidu, Inc.. All rights reserved.