|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.core.parser.JFlex.PackEmitter
public abstract class PackEmitter
Encodes int
arrays as strings.
Also splits up strings when longer than 64K in UTF8 encoding.
Subclasses emit unpacking code.
Usage protocol:
p.emitInit();
for each data: p.emitData(data);
p.emitUnpack();
Constructor Summary | |
---|---|
PackEmitter(java.lang.String name)
Create new emitter for an array. |
Method Summary | |
---|---|
void |
breaks()
Execute line/chunk break if necessary. |
void |
emitInit()
Emit declaration of decoded member and open first chunk. |
void |
emitUC(int i)
Emit single unicode character. |
abstract void |
emitUnpack()
Emit the unpacking code. |
java.lang.String |
toString()
Return current output buffer. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PackEmitter(java.lang.String name)
name
- the name of the generated arrayMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public void emitInit()
public void emitUC(int i)
i
- the character to emit.public void breaks()
public abstract void emitUnpack()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |