eu.bandm.tools.ulex
Class ULex.State

java.lang.Object
  extended by eu.bandm.tools.ulex.ULex.State
All Implemented Interfaces:
Cloneable
Enclosing class:
ULex<T>

public static class ULex.State
extends Object
implements Cloneable

Encapsulates the input data, output channels and the current state of the parsing process; indeed, only the "current read index" position is dynamic.


Field Summary
protected  String data
           
protected  int position
           
 
Constructor Summary
ULex.State(String data, int position)
           
 
Method Summary
 int get_position()
           
 String get_restData()
           
 boolean isAtEnd()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

data

protected String data

position

protected int position
Constructor Detail

ULex.State

public ULex.State(String data,
                  int position)
Method Detail

get_position

public int get_position()

get_restData

public String get_restData()

isAtEnd

public boolean isAtEnd()

toString

public String toString()
Overrides:
toString in class Object