fr.umlv.tatoo.runtime.lexer
Class DefaultLexerWarningReporter<B extends LexerBuffer>
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultLexerWarningReporter
public DefaultLexerWarningReporter()
formatMessage
public static String formatMessage(Lexer<?> lexer,
String message)
- Format the error message of the lexing exception.
- Parameters:
lexer
- the lexermessage
- 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