Package io.activej.serializer
Class SimpleSerializerDef<T>
java.lang.Object
io.activej.serializer.AbstractSerializerDef
io.activej.serializer.SimpleSerializerDef<T>
- All Implemented Interfaces:
SerializerDef
- Direct Known Subclasses:
SerializerDefInet4Address,SerializerDefInet6Address
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.activej.serializer.SerializerDef
SerializerDef.StaticDecoders, SerializerDef.StaticEncoders, SerializerDef.Visitor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract BinarySerializer<T>createSerializer(int version, CompatibilityLevel compatibilityLevel) final Expressiondecoder(SerializerDef.StaticDecoders staticDecoders, Expression in, int version, CompatibilityLevel compatibilityLevel) final Expressionencoder(SerializerDef.StaticEncoders staticEncoders, Expression buf, Variable pos, Expression value, int version, CompatibilityLevel compatibilityLevel) Returns the raw type of object which will be serializedMethods inherited from class io.activej.serializer.AbstractSerializerDef
accept, getDecodeType, getVersions, isInlineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.activej.serializer.SerializerDef
defineDecoder, defineEncoder
-
Constructor Details
-
SimpleSerializerDef
protected SimpleSerializerDef()
-
-
Method Details
-
createSerializer
protected abstract BinarySerializer<T> createSerializer(int version, CompatibilityLevel compatibilityLevel) -
getEncodeType
Description copied from interface:SerializerDefReturns the raw type of object which will be serialized- Returns:
- type of object which will be serialized
-
encoder
public final Expression encoder(SerializerDef.StaticEncoders staticEncoders, Expression buf, Variable pos, Expression value, int version, CompatibilityLevel compatibilityLevel) -
decoder
public final Expression decoder(SerializerDef.StaticDecoders staticDecoders, Expression in, int version, CompatibilityLevel compatibilityLevel)
-