Package jflex.generator
Class HiLowEmitter
- java.lang.Object
-
- jflex.generator.PackEmitter
-
- jflex.generator.HiLowEmitter
-
public class HiLowEmitter extends PackEmitter
HiLowEmitter- Version:
- JFlex 1.8.1
- Author:
- Gerwin Klein
-
-
Field Summary
-
Fields inherited from class jflex.generator.PackEmitter
chunks, name, out
-
-
Constructor Summary
Constructors Constructor Description HiLowEmitter(String name)
Create new emitter for values in [0, 0xFFFFFFFF] using hi/low encoding.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
emit(int val)
Emit one value using two characters.void
emitUnpack()
Emits hi/low pair unpacking code for the generated array.
-
-
-
Constructor Detail
-
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 Detail
-
emitUnpack
public void emitUnpack()
Emits hi/low pair unpacking code for the generated array.- Specified by:
emitUnpack
in classPackEmitter
- See Also:
PackEmitter.emitUnpack()
-
emit
public void emit(int val)
Emit one value using two characters.- Parameters:
val
- the value to emit;0 <= val <= 0xFFFFFFFF
-
-