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.3 $
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

void setColumn(int column)
Sets the start column of the position where parsing starts.

Parameters:
column - start column.

getColumn

int getColumn()
Returns the current column.

Returns:
current column offset.

getFileFormat

FileFormat getFileFormat()
Returns the file format of the input stream.

Returns:
The detected file format of the input stream.

setFilename

void setFilename(java.lang.String file)
Sets the filename we parse.

Parameters:
file - filename to parse.

getFilename

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

Returns:
filename.

setInputBuffer

void setInputBuffer(java.io.Reader in)
Sets the input source to use.

Parameters:
in - input source to use.

setLine

void setLine(int line)
Sets the line number of the position where parsing starts.

Parameters:
line - line number.

getLine

int getLine()
Returns the current line.

Returns:
current line number.

getParser

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

Returns:
corresponding parser.

reset

void reset()
Resets the lexer state.



Copyright © 1997-2012 Jalopy. All Rights Reserved.