|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--librarian.LeaTranslator
Field Summary | |
java.lang.Object |
currentFind
|
int |
currentLineType
The type of the last line can be found here |
moves.EuMove |
currentMove
The last successfully read move can be found here |
static int |
EMPTY
A constant indicating that an empty line has been read |
static int |
EOF
A constant indicating that the end of the file has been reached |
static int |
MOVE
A constant indicating that a move has been successfully read |
static int |
REMARK
|
Constructor Summary | |
LeaTranslator(java.util.Hashtable keywords,
int numberOfBeacons)
Readies the translator for use by reading the keywords from a file found at a URL supplied as a string. |
Method Summary | |
int |
nextItem()
Reads the next token, establishes and returns its type and wraps it into an object which is stored at @see currentFind. the type is also stored at @see currentType for internal use |
int |
nextLine()
Reads the next line and tries to convert it to a @see EuMove. |
void |
setStream(java.io.Reader inputs)
Initialization for reading a LEA program from a given stream of characters |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.lang.Object currentFind
public moves.EuMove currentMove
public int currentLineType
public static final int EMPTY
public static final int MOVE
public static final int EOF
public static final int REMARK
Constructor Detail |
public LeaTranslator(java.util.Hashtable keywords, int numberOfBeacons)
Method Detail |
public void setStream(java.io.Reader inputs)
inputs
- the character streampublic int nextItem() throws InternalException, DesignException, java.io.IOException
LibrarianException,
- DesignException
InternalException
DesignException
java.io.IOException
public int nextLine() throws DesignException, InternalException, java.io.IOException
LibrarianException,
- DesignException, InternalException
DesignException
InternalException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |