- java.lang.Object
-
- org.redkale.convert.ConvertFactory<ProtobufReader,ProtobufWriter>
-
- org.redkale.convert.pb.ProtobufFactory
-
public class ProtobufFactory extends ConvertFactory<ProtobufReader,ProtobufWriter>
- 作者:
- zhangjx
-
-
字段概要
字段 修饰符和类型 字段 说明 protected boolean
enumtostring
protected boolean
reversible
-
从类继承的字段 org.redkale.convert.ConvertFactory
convert, features
-
-
方法概要
-
从类继承的方法 org.redkale.convert.ConvertFactory
checkNullableFeature, checkTinyFeature, createDecoder, createDecoder, createEncoder, createEncoder, createGenericListType, createMultiImplDecoder, findConvert, findCreator, findDecoder, findEncoder, findFieldCoder, findFieldFunc, findRef, formatObjectType, getAnyEncoder, getCollectionComponentType, getFeatures, getStreamionComponentType, getSystemPropertyInt, isCollectionType, isConvertDisabled, isSimpleMemberType, isStreamType, loadCreator, loadDecoder, loadEncoder, parent, readConvertFieldName, readGetSetFieldName, register, register, register, register, register, register, register, register, register, register, register, register, registerFieldFuncConsumer, registerIgnoreAll, registerIgnoreAll, registerSkipAllIgnore, registerSkipIgnore, reloadCoder, reloadCoder, skipAllIgnore, sortFieldIndex
-
-
-
-
方法详细资料
-
rootFactory
protected ConvertFactory rootFactory()
- 指定者:
rootFactory
在类中ConvertFactory<ProtobufReader,ProtobufWriter>
-
root
public static ProtobufFactory root()
-
withFeatures
public ProtobufFactory withFeatures(int features)
-
addFeature
public ProtobufFactory addFeature(int feature)
- 覆盖:
addFeature
在类中ConvertFactory<ProtobufReader,ProtobufWriter>
-
removeFeature
public ProtobufFactory removeFeature(int feature)
-
withTinyFeature
public ProtobufFactory withTinyFeature(boolean tiny)
-
withNullableFeature
public ProtobufFactory withNullableFeature(boolean nullable)
-
create
public static ProtobufFactory create()
-
createDyncEncoder
protected <E> Encodeable<ProtobufWriter,E> createDyncEncoder(Type type)
-
createEnumSimpledCoder
protected SimpledCoder createEnumSimpledCoder(Class enumClass)
-
createObjectDecoder
protected ObjectDecoder createObjectDecoder(Type type)
-
createObjectEncoder
protected ObjectEncoder createObjectEncoder(Type type)
-
createMapDecoder
protected <E> Decodeable<ProtobufReader,E> createMapDecoder(Type type)
-
createMapEncoder
protected <E> Encodeable<ProtobufWriter,E> createMapEncoder(Type type)
-
createArrayDecoder
protected <E> Decodeable<ProtobufReader,E> createArrayDecoder(Type type)
-
createArrayEncoder
protected <E> Encodeable<ProtobufWriter,E> createArrayEncoder(Type type)
-
createCollectionDecoder
protected <E> Decodeable<ProtobufReader,E> createCollectionDecoder(Type type)
-
createCollectionEncoder
protected <E> Encodeable<ProtobufWriter,E> createCollectionEncoder(Type type)
-
createStreamDecoder
protected <E> Decodeable<ProtobufReader,E> createStreamDecoder(Type type)
-
createStreamEncoder
protected <E> Encodeable<ProtobufWriter,E> createStreamEncoder(Type type)
-
getConvert
public final ProtobufConvert getConvert()
- 覆盖:
getConvert
在类中ConvertFactory<ProtobufReader,ProtobufWriter>
-
createChild
public ProtobufFactory createChild()
- 指定者:
createChild
在类中ConvertFactory<ProtobufReader,ProtobufWriter>
-
createChild
public ProtobufFactory createChild(int features)
- 指定者:
createChild
在类中ConvertFactory<ProtobufReader,ProtobufWriter>
-
getConvertType
public ConvertType getConvertType()
- 指定者:
getConvertType
在类中ConvertFactory<ProtobufReader,ProtobufWriter>
-
reversible
public ProtobufFactory reversible(boolean reversible)
-
isReversible
public boolean isReversible()
- 指定者:
isReversible
在类中ConvertFactory<ProtobufReader,ProtobufWriter>
-
isFieldSort
public boolean isFieldSort()
- 指定者:
isFieldSort
在类中ConvertFactory<ProtobufReader,ProtobufWriter>
-
isSimpleType
protected static boolean isSimpleType(Class fieldClass)
-
supportSimpleCollectionType
protected boolean supportSimpleCollectionType(Type type)
-
computeRawVarint32Size
protected static int computeRawVarint32Size(int value)
-
computeRawVarint64Size
protected static int computeRawVarint64Size(long value)
-
computeInt32SizeNoTag
protected static int computeInt32SizeNoTag(int value)
-
computeUInt64SizeNoTag
protected static int computeUInt64SizeNoTag(long value)
-
computeSInt32SizeNoTag
protected static int computeSInt32SizeNoTag(int value)
-
computeSInt64SizeNoTag
protected static int computeSInt64SizeNoTag(long value)
-
computeUInt32SizeNoTag
protected static int computeUInt32SizeNoTag(int value)
-
encodeZigZag32
protected static int encodeZigZag32(int n)
-
encodeZigZag64
protected static long encodeZigZag64(long n)
-
getTag
public static int getTag(String fieldName, Type fieldType, int fieldPos, boolean enumtostring)
-
getTag
public static int getTag(int index, ProtobufTypeEnum typeEnum)
-
getTag
public static int getTag(DeMember member, boolean enumtostring)
-
-