Package jflex.generator
Class HiCountEmitter
java.lang.Object
jflex.generator.PackEmitter
jflex.generator.CountEmitter
jflex.generator.HiCountEmitter
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
ConstructorsModifierConstructorDescriptionprotected
HiCountEmitter
(String name, int translate) Create a count/value emitter for a specific field. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
-
Constructor Details
-
HiCountEmitter
Create a count/value emitter for a specific field.- Parameters:
name
- name of the generated array
-
-
Method Details
-
emitUnpackChunk
public void emitUnpackChunk()Emits count/value unpacking code for the generated array.- Overrides:
emitUnpackChunk
in classCountEmitter
- See Also:
-
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
-