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, translateFields inherited from class jflex.generator.PackEmitter
chunks, name, out -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHiCountEmitter(String name, int translate) Create a count/value emitter for a specific field. -
Method Summary
Modifier and TypeMethodDescriptionvoidEmits count/value unpacking code for the generated array.protected voidemitValue(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:
emitUnpackChunkin 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:
emitValuein classCountEmitter- Parameters:
val- the integer value to emit
-