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.String
getDefaultMessage()
Provides the default error message as it is produced by the parser.org.antlr.runtime.RecognitionException
getRecognitionException()
Returns the recognition exception ornull
in 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.IErrorContext
Provides the default error message as it is produced by the parser.- Specified by:
getDefaultMessage
in interfaceISyntaxErrorMessageProvider.IErrorContext
- Returns:
- the default message.
-
getRecognitionException
public org.antlr.runtime.RecognitionException getRecognitionException()
Description copied from interface:ISyntaxErrorMessageProvider.IParserErrorContext
Returns the recognition exception ornull
in case of lexer errors.- Specified by:
getRecognitionException
in interfaceISyntaxErrorMessageProvider.IParserErrorContext
- Returns:
- the recognition exception in the parser. May be
null
in case of lexer errors.
-
getTokenNames
public java.lang.String[] getTokenNames()
Description copied from interface:ISyntaxErrorMessageProvider.IParserErrorContext
Returns the names of the tokens in as they are used by the parser.- Specified by:
getTokenNames
in interfaceISyntaxErrorMessageProvider.IParserErrorContext
- Returns:
- the token names.
-
-