fr.umlv.tatoo.runtime.lexer
Class DefaultLexerWarningReporter<B extends LexerBuffer>

java.lang.Object
  extended by fr.umlv.tatoo.runtime.lexer.DefaultLexerWarningReporter<B>
Type Parameters:
B - type of the buffer.
All Implemented Interfaces:
LexerWarningReporter<B>

public class DefaultLexerWarningReporter<B extends LexerBuffer>
extends Object
implements LexerWarningReporter<B>

Version:
$Revision$
Author:
Gilles Roussel

Constructor Summary
DefaultLexerWarningReporter()
           
 
Method Summary
static String formatMessage(Lexer<?> lexer, String message)
          Format the error message of the lexing exception.
 void handleWarning(Lexer<? extends B> lexer, String message)
          Log error recovery message info to user
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLexerWarningReporter

public DefaultLexerWarningReporter()
Method Detail

formatMessage

public static String formatMessage(Lexer<?> lexer,
                                   String message)
Format the error message of the lexing exception.

Parameters:
lexer - the lexer
message - the message indicating the cause of the lexing exception
Returns:
an error message with all the informations.

handleWarning

public void handleWarning(Lexer<? extends B> lexer,
                          String message)
Description copied from interface: LexerWarningReporter
Log error recovery message info to user

Specified by:
handleWarning in interface LexerWarningReporter<B extends LexerBuffer>
message - the message to display