Class StringIODef

java.lang.Object
dev.quantumfusion.hyphen.codegen.def.StringIODef
All Implemented Interfaces:
SerializerDef

public class StringIODef extends Object implements SerializerDef
  • Constructor Details

    • StringIODef

      public StringIODef()
  • Method Details

    • writePut

      public void writePut(MethodHandler mh, Runnable valueLoad)
      Description copied from interface: SerializerDef
      Writes code for encoding the Clazz the definition is designed to handle.
      Specified by:
      writePut in interface SerializerDef
      Parameters:
      mh - A MethodHandler
      valueLoad - A Runnable which pushes the Clazz value onto the stack.
    • writeGet

      public void writeGet(MethodHandler mh)
      Description copied from interface: SerializerDef
      Writes code for decoding the Clazz the definition is designed to handle.
      Specified by:
      writeGet in interface SerializerDef
      Parameters:
      mh - A MethodHandler
    • writeMeasure

      public void writeMeasure(MethodHandler mh, Runnable valueLoad)
      Description copied from interface: SerializerDef
      Writes code for measuring the size required to encode the value
      Specified by:
      writeMeasure in interface SerializerDef
      Parameters:
      mh - A MethodHandler
      valueLoad - A Runnable which pushes the Clazz value onto the stack.