Jalopy 1.0b10

de.hunsicker.jalopy.language
Interface Lexer

All Superinterfaces:
TokenStream
All Known Implementing Classes:
JavadocLexer, JavaLexer

public interface Lexer
extends TokenStream

Common interface for ANTLR lexers.

Version:
$Revision: 1.2 $
Author:
Marco Hunsicker

Method Summary
 int getColumn()
          Returns the current column.
 FileFormat getFileFormat()
          Returns the file format of the input stream.
 String getFilename()
          Returns the name of the file.
 int getLine()
          Returns the current line.
 Parser getParser()
          Returns the corresponding parser for this lexer.
 void reset()
          Resets the lexer state.
 void setColumn(int column)
          Sets the start column of the position where parsing starts.
 void setFilename(String file)
          Sets the filename we parse.
 void setInputBuffer(Reader in)
          Sets the input source to use.
 void setLine(int line)
          Sets the line number of the position where parsing starts.
 
Methods inherited from interface de.hunsicker.antlr.TokenStream
nextToken
 

Method Detail

setColumn

public void setColumn(int column)
Sets the start column of the position where parsing starts.
Parameters:
column - start column.

getColumn

public int getColumn()
Returns the current column.
Returns:
current column offset.

getFileFormat

public FileFormat getFileFormat()
Returns the file format of the input stream.
Returns:
The detected file format of the input stream.

setFilename

public void setFilename(String file)
Sets the filename we parse.
Parameters:
file - filename to parse.

getFilename

public String getFilename()
Returns the name of the file.
Returns:
filename.

setInputBuffer

public void setInputBuffer(Reader in)
Sets the input source to use.
Parameters:
in - input source to use.

setLine

public void setLine(int line)
Sets the line number of the position where parsing starts.
Parameters:
line - line number.

getLine

public int getLine()
Returns the current line.
Returns:
current line number.

getParser

public Parser getParser()
Returns the corresponding parser for this lexer.
Returns:
corresponding parser.

reset

public void reset()
Resets the lexer state.

Jalopy 1.0b10

Submit a bug or feature.

For further information and documentation, visit the official Jalopy website.
This page generated: November 14 2002