Package io.activej.serializer.impl
Class SerializerDefSubclass
java.lang.Object
io.activej.serializer.AbstractSerializerDef
io.activej.serializer.impl.SerializerDefSubclass
- All Implemented Interfaces:
SerializerDefWithNullable,SerializerDef
public final class SerializerDefSubclass
extends AbstractSerializerDef
implements SerializerDefWithNullable
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.activej.serializer.SerializerDef
SerializerDef.StaticDecoders, SerializerDef.StaticEncoders, SerializerDef.Visitor -
Constructor Summary
ConstructorsConstructorDescriptionSerializerDefSubclass(@NotNull Class<?> dataType, LinkedHashMap<Class<?>, SerializerDef> subclassSerializers, int startIndex) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(SerializerDef.Visitor visitor) decoder(SerializerDef.StaticDecoders staticDecoders, Expression in, int version, CompatibilityLevel compatibilityLevel) encoder(SerializerDef.StaticEncoders staticEncoders, Expression buf, Variable pos, Expression value, int version, CompatibilityLevel compatibilityLevel) ensureNullable(CompatibilityLevel compatibilityLevel) Class<?>Returns the raw type of object which will be serializedbooleanisInline(int version, CompatibilityLevel compatibilityLevel) Methods inherited from class io.activej.serializer.AbstractSerializerDef
getDecodeType, getVersionsMethods 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, getDecodeType, getVersions
-
Constructor Details
-
SerializerDefSubclass
public SerializerDefSubclass(@NotNull @NotNull Class<?> dataType, LinkedHashMap<Class<?>, SerializerDef> subclassSerializers, int startIndex)
-
-
Method Details
-
ensureNullable
- Specified by:
ensureNullablein interfaceSerializerDefWithNullable
-
accept
- Specified by:
acceptin interfaceSerializerDef- Overrides:
acceptin classAbstractSerializerDef
-
isInline
- Specified by:
isInlinein interfaceSerializerDef- Overrides:
isInlinein classAbstractSerializerDef
-
getEncodeType
Description copied from interface:SerializerDefReturns the raw type of object which will be serialized- Specified by:
getEncodeTypein interfaceSerializerDef- Returns:
- type of object which will be serialized
-
encoder
public Expression encoder(SerializerDef.StaticEncoders staticEncoders, Expression buf, Variable pos, Expression value, int version, CompatibilityLevel compatibilityLevel) - Specified by:
encoderin interfaceSerializerDef
-
decoder
public Expression decoder(SerializerDef.StaticDecoders staticDecoders, Expression in, int version, CompatibilityLevel compatibilityLevel) - Specified by:
decoderin interfaceSerializerDef
-