weka.core.parser.JFlex
Class HiLowEmitter

java.lang.Object
  extended by weka.core.parser.JFlex.PackEmitter
      extended by weka.core.parser.JFlex.HiLowEmitter

public class HiLowEmitter
extends PackEmitter

HiLowEmitter

Version:
$Revision: 1.1 $, $Date: 2008-05-09 09:14:10 $
Author:
Gerwin Klein

Constructor Summary
HiLowEmitter(java.lang.String name)
          Create new emitter for values in [0, 0xFFFFFFFF] using hi/low encoding.
 
Method Summary
 void emit(int val)
          Emit one value using two characters.
 void emitUnpack()
          Emits hi/low pair unpacking code for the generated array.
 
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
 

Constructor Detail

HiLowEmitter

public HiLowEmitter(java.lang.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 class PackEmitter
See Also:
JFlex.PackEmitter#emitUnPack()

emit

public void emit(int val)
Emit one value using two characters.

Parameters:
val - the value to emit