Class MethodDef
java.lang.Object
dev.quantumfusion.hyphen.codegen.def.MethodDef
- All Implemented Interfaces:
SerializerDef
- Direct Known Subclasses:
ClassDef,EnumDef,IndexedDef,MapDef,SetDef,SubclassDef
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
ConstructorsConstructorDescriptionMethodDef(SerializerHandler<?,?> handler, Clazz clazz)MethodDef(SerializerHandler<?,?> handler, Clazz clazz, String suffix) -
Method Summary
Modifier and TypeMethodDescriptionabstract voidscan(SerializerHandler<?,?> handler, Clazz clazz)voidwriteGet(MethodHandler mh)Writes code for decoding the Clazz the definition is designed to handle.voidwriteMeasure(MethodHandler mh, Runnable valueLoad)Writes code for measuring the size required to encode the valueprotected abstract voidprotected abstract voidwriteMethodMeasure(MethodHandler mh, Runnable valueLoad)protected abstract voidwriteMethodPut(MethodHandler mh, Runnable valueLoad)voidwriteMethods(CodegenHandler<?,?> handler, CodegenHandler.MethodWriter writer, boolean spark)voidwritePut(MethodHandler mh, Runnable valueLoad)Writes code for encoding the Clazz the definition is designed to handle.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.quantumfusion.hyphen.codegen.def.SerializerDef
getStaticSize, hasDynamicSize
-
Field Details
-
options
-
getInfo
-
putInfo
-
measureInfo
-
clazz
-
-
Constructor Details
-
MethodDef
-
MethodDef
-
-
Method Details
-
scan
-
writeMethodPut
-
writeMethodGet
-
writeMethodMeasure
-
writePut
Description copied from interface:SerializerDefWrites code for encoding the Clazz the definition is designed to handle.- Specified by:
writePutin interfaceSerializerDef- Parameters:
mh- A MethodHandlervalueLoad- A Runnable which pushes the Clazz value onto the stack.
-
writeGet
Description copied from interface:SerializerDefWrites code for decoding the Clazz the definition is designed to handle.- Specified by:
writeGetin interfaceSerializerDef- Parameters:
mh- A MethodHandler
-
writeMeasure
Description copied from interface:SerializerDefWrites code for measuring the size required to encode the value- Specified by:
writeMeasurein interfaceSerializerDef- Parameters:
mh- A MethodHandlervalueLoad- A Runnable which pushes the Clazz value onto the stack.
-
writeMethods
public void writeMethods(CodegenHandler<?,?> handler, CodegenHandler.MethodWriter writer, boolean spark)
-