JFlex
public class CountEmitter extends PackEmitter
Constructor Summary | |
---|---|
protected | CountEmitter(String name)
Create a count/value emitter for a specific field.
|
Method Summary | |
---|---|
void | emit(int count, int value)
Emit one count/value pair.
|
void | emitUnpack()
Emits count/value unpacking code for the generated array.
|
void | setValTranslation(int i)
Translate all values by given amount.
|
Parameters: name name of the generated array
translate
value.
Parameters: count value
See Also: CountEmitter
See Also: PackEmitter
Parameters: i amount the value will be translated by.
Example: i = 1
allows values in [-1, 0xFFFE].