Class ClassDef
java.lang.Object
dev.quantumfusion.hyphen.codegen.def.MethodDef
dev.quantumfusion.hyphen.codegen.def.ClassDef
- All Implemented Interfaces:
SerializerDef
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintThis returns the absolute minimum size of the object.booleanIf this is true it will request to generate the Measure method.voidscan(SerializerHandler<?,?> handler, Clazz clazz)protected voidprotected voidwriteMethodMeasure(MethodHandler mh, Runnable valueLoad)protected voidwriteMethodPut(MethodHandler mh, Runnable valueLoad)Methods inherited from class dev.quantumfusion.hyphen.codegen.def.MethodDef
writeGet, writeMeasure, writeMethods, writePut
-
Constructor Details
-
ClassDef
-
-
Method Details
-
scan
-
writeMethodGet
- Specified by:
writeMethodGetin classMethodDef
-
writeMethodPut
- Specified by:
writeMethodPutin classMethodDef
-
getStaticSize
public int getStaticSize()Description copied from interface:SerializerDefThis returns the absolute minimum size of the object.
If the size is dependent on the runtime object itself this value will be appended to the measure methods results.- Returns:
- Object Minimum encoding size
-
hasDynamicSize
public boolean hasDynamicSize()Description copied from interface:SerializerDefIf this is true it will request to generate the Measure method.
If this is false only the static size amount will be used.- Returns:
- if it has a Dynamic Size.
-
writeMethodMeasure
- Specified by:
writeMethodMeasurein classMethodDef
-