de.hunsicker.jalopy.language
Interface Lexer

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

public interface Lexer
extends antlr.TokenStream

Common interface for ANTLR lexers.

Version:
$Revision: 1.2.2.2 $
Author:
Marco Hunsicker

Method Summary
 int getColumn()
          Returns the current column.
 FileFormat getFileFormat()
          Returns the file format of the input stream.
 java.lang.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(java.lang.String file)
          Sets the filename we parse.
 void setInputBuffer(java.io.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 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(java.lang.String file)
Sets the filename we parse.

Parameters:
file - filename to parse.

getFilename

public java.lang.String getFilename()
Returns the name of the file.

Returns:
filename.

setInputBuffer

public void setInputBuffer(java.io.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.



Copyright © 1997-2005 Jalopy. All Rights Reserved.