Class HiLowEmitter

java.lang.Object
jflex.generator.PackEmitter
jflex.generator.HiLowEmitter

public class HiLowEmitter extends PackEmitter
HiLowEmitter
Version:
JFlex 1.8.2
  • Field Details

    • numEntries

      private int numEntries
      number of entries in expanded array
  • Constructor Details

    • HiLowEmitter

      public HiLowEmitter(String name)
      Create new emitter for values in [0, 0xFFFFFFFF] using hi/low encoding.
      Parameters:
      name - the name of the generated array
  • Method Details

    • emitUnpack

      public void emitUnpack()
      Emits hi/low pair unpacking code for the generated array.
      Specified by:
      emitUnpack in class PackEmitter
      See Also:
    • emit

      public void emit(int val)
      Emit one value using two characters.
      Parameters:
      val - the value to emit; 0 <= val <= 0xFFFFFFFF