| 程序包 | 说明 |
|---|---|
| com.baidu.bjf.remoting.protobuf | |
| com.baidu.bjf.remoting.protobuf.code | |
| com.baidu.bjf.remoting.protobuf.utils |
| 限定符和类型 | 方法和说明 |
|---|---|
static FieldType |
FieldType.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static FieldType[] |
FieldType.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
AbstractCodeGenerator.checkType(FieldType type,
Field field)
|
static int |
CodedConstant.computeListSize(int order,
Collection<?> list,
FieldType type,
boolean debug,
File path)
Compute list size.
|
static int |
CodedConstant.computeListSize(int order,
Collection list,
FieldType type,
boolean debug,
File path,
boolean packed)
Compute list size.
|
static int |
CodedConstant.computeListSize(int order,
Collection list,
FieldType type,
boolean debug,
File path,
boolean packed,
boolean sizeOnly)
Compute list size.
|
static int |
CodedConstant.computeSize(int order,
Object o,
FieldType type,
boolean list,
boolean debug,
File path)
get object size by
FieldType. |
static int |
CodedConstant.computeSize(int order,
Object o,
FieldType type,
boolean debug,
File path)
get object size by
FieldType. |
static String |
CodedConstant.getFiledType(FieldType type,
boolean isList)
Gets the filed type.
|
static String |
CodedConstant.getMappedTypeDefined(int order,
FieldType type,
String express,
boolean isList,
boolean isMap)
get mapped type defined java expression.
|
static String |
CodedConstant.getMappedTypeSize(FieldInfo field,
int order,
FieldType type,
boolean isList,
boolean isMap,
boolean debug,
File path)
Gets the mapped type size.
|
static String |
CodedConstant.getMappedWriteCode(FieldInfo field,
String prefix,
int order,
FieldType type,
boolean isList,
boolean isMap)
get mapped object byte write java expression.
|
static String |
CodedConstant.getWriteValueToField(FieldType type,
String express,
boolean isList)
Gets the write value to field.
|
static void |
CodedConstant.writeObject(com.google.protobuf.CodedOutputStream out,
int order,
FieldType type,
Object o,
boolean list)
Write object.
|
static void |
CodedConstant.writeObject(com.google.protobuf.CodedOutputStream out,
int order,
FieldType type,
Object o,
boolean list,
boolean withTag)
Write object to byte array by
FieldType. |
static void |
CodedConstant.writeToList(com.google.protobuf.CodedOutputStream out,
int order,
FieldType type,
Collection list)
Write to list.
|
static void |
CodedConstant.writeToList(com.google.protobuf.CodedOutputStream out,
int order,
FieldType type,
Collection list,
boolean packed)
write list to
CodedOutputStream object. |
| 限定符和类型 | 字段和说明 |
|---|---|
static Map<Class<?>,FieldType> |
ProtobufProxyUtils.TYPE_MAPPING
The Constant TYPE_MAPPING.
|
| 限定符和类型 | 方法和说明 |
|---|---|
FieldType |
FieldInfo.getFieldType()
get the fieldType.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
FieldInfo.setFieldType(FieldType fieldType)
set fieldType value to fieldType.
|
Copyright © 2022 Baidu, Inc.. All rights reserved.