|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.core.parser.JFlex.PackEmitter
weka.core.parser.JFlex.CountEmitter
public class CountEmitter
An emitter for an array encoded as count/value pairs in a string.
| 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 weka.core.parser.JFlex.PackEmitter |
|---|
breaks, emitInit, emitUC, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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 | |||||||||