Package jflex.generator
Class HiCountEmitter
- java.lang.Object
-
- jflex.generator.PackEmitter
-
- jflex.generator.CountEmitter
-
- jflex.generator.HiCountEmitter
-
public class HiCountEmitter extends CountEmitter
An emitter for an array encoded as count/value pairs in a string where values can be in [0, 0xFFFF_FFFF].- Version:
- JFlex 1.9.1
-
-
Field Summary
-
Fields inherited from class jflex.generator.CountEmitter
numEntries, translate
-
Fields inherited from class jflex.generator.PackEmitter
chunks, name, out
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HiCountEmitter(java.lang.String name, int translate)
Create a count/value emitter for a specific field.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
emitUnpackChunk()
Emits count/value unpacking code for the generated array.protected void
emitValue(int val)
Emits a single value to the current string chunk.-
Methods inherited from class jflex.generator.CountEmitter
emit, emitCountValueString, emitter, emitUnpack
-
-
-
-
Method Detail
-
emitUnpackChunk
public void emitUnpackChunk()
Emits count/value unpacking code for the generated array.- Overrides:
emitUnpackChunk
in classCountEmitter
- See Also:
PackEmitter.emitUnpack()
-
emitValue
protected void emitValue(int val)
Emits a single value to the current string chunk. Accepted range is [0, 0xFFFF_FFFF]- Overrides:
emitValue
in classCountEmitter
- Parameters:
val
- the integer value to emit
-
-