Package jflex.generator
Class HiLowEmitter
java.lang.Object
jflex.generator.PackEmitter
jflex.generator.HiLowEmitter
HiLowEmitter
- Version:
- JFlex 1.8.2
-
Field Summary
FieldsFields inherited from class jflex.generator.PackEmitter
chunks, name, out
-
Constructor Summary
ConstructorsConstructorDescriptionHiLowEmitter
(String name) Create new emitter for values in [0, 0xFFFFFFFF] using hi/low encoding. -
Method Summary
Modifier and TypeMethodDescriptionvoid
emit
(int val) Emit one value using two characters.void
Emits hi/low pair unpacking code for the generated array.
-
Field Details
-
numEntries
private int numEntriesnumber of entries in expanded array
-
-
Constructor Details
-
HiLowEmitter
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 classPackEmitter
- See Also:
-
emit
public void emit(int val) Emit one value using two characters.- Parameters:
val
- the value to emit;0 <= val <= 0xFFFFFFFF
-