UTJML

edu.utep.cs.utjml.canica.jmleditor.lexer
Interface Lexer

All Known Implementing Classes:
JavaLexer

public interface Lexer

A lexer should implement this interface.


Method Summary
 Token getNextToken()
          Returns the next token.
 void reset(Reader reader, int yyline, int yychar, int yycolumn)
          Closes the current input stream, and resets the scanner to read from a new input stream.
 

Method Detail

getNextToken

Token getNextToken()
                   throws IOException
Returns the next token.

Returns:
the next token
Throws:
IOException

reset

void reset(Reader reader,
           int yyline,
           int yychar,
           int yycolumn)
           throws IOException
Closes the current input stream, and resets the scanner to read from a new input stream. All internal variables are reset, the old input stream cannot be reused (content of the internal buffer is discarded and lost). The lexical state is set to the initial state. Subsequent tokens read from the lexer will start with the line, char, and column values given here.

Parameters:
reader - The new input.
yyline - The line number of the first token.
yychar - The position (relative to the start of the stream) of the first token.
yycolumn - The position (relative to the line) of the first token.
Throws:
IOException - if an IOExecption occurs while switching readers.

UTJML

UTJML is Copyright (C) 2004-2006 by University of Texas at El Paso and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the JML project.