|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectJFlex.PackEmitter
JFlex.CountEmitter
public class CountEmitter
An emitter for an array encoded as count/value pairs in a string.
| Field Summary |
|---|
| Fields inherited from class JFlex.PackEmitter |
|---|
chunks, name, out |
| Constructor Summary | |
|---|---|
protected |
CountEmitter(java.lang.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. |
| Methods inherited from class JFlex.PackEmitter |
|---|
breaks, constName, emitInit, emitUC, nl, println, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected CountEmitter(java.lang.String name)
name - name of the generated array| Method Detail |
|---|
public void emitUnpack()
emitUnpack in class PackEmitterJFlex.PackEmitter#emitUnPack()public void setValTranslation(int i)
i - amount the value will be translated by.
Example: i = 1 allows values in [-1, 0xFFFE].
public void emit(int count,
int value)
translate value.
count - value - setValTranslation(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||