Package org.eclipse.xtext.parser.antlr
Class AbstractInternalAntlrParser.LexerErrorContext
- java.lang.Object
-
- org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser.ErrorContext
-
- org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser.LexerErrorContext
-
- All Implemented Interfaces:
ISyntaxErrorMessageProvider.IErrorContext,ISyntaxErrorMessageProvider.IParserErrorContext
- Enclosing class:
- AbstractInternalAntlrParser
protected class AbstractInternalAntlrParser.LexerErrorContext extends AbstractInternalAntlrParser.ErrorContext implements ISyntaxErrorMessageProvider.IParserErrorContext
-
-
Constructor Summary
Constructors Constructor Description LexerErrorContext(java.lang.String message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDefaultMessage()Provides the default error message as it is produced by the parser.org.antlr.runtime.RecognitionExceptiongetRecognitionException()Returns the recognition exception ornullin case of lexer errors.java.lang.String[]getTokenNames()Returns the names of the tokens in as they are used by the parser.-
Methods inherited from class org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser.ErrorContext
getCurrentContext, getCurrentNode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.xtext.parser.antlr.ISyntaxErrorMessageProvider.IErrorContext
getCurrentContext, getCurrentNode
-
-
-
-
Method Detail
-
getDefaultMessage
public java.lang.String getDefaultMessage()
Description copied from interface:ISyntaxErrorMessageProvider.IErrorContextProvides the default error message as it is produced by the parser.- Specified by:
getDefaultMessagein interfaceISyntaxErrorMessageProvider.IErrorContext- Returns:
- the default message.
-
getRecognitionException
public org.antlr.runtime.RecognitionException getRecognitionException()
Description copied from interface:ISyntaxErrorMessageProvider.IParserErrorContextReturns the recognition exception ornullin case of lexer errors.- Specified by:
getRecognitionExceptionin interfaceISyntaxErrorMessageProvider.IParserErrorContext- Returns:
- the recognition exception in the parser. May be
nullin case of lexer errors.
-
getTokenNames
public java.lang.String[] getTokenNames()
Description copied from interface:ISyntaxErrorMessageProvider.IParserErrorContextReturns the names of the tokens in as they are used by the parser.- Specified by:
getTokenNamesin interfaceISyntaxErrorMessageProvider.IParserErrorContext- Returns:
- the token names.
-
-