Package org.eclipse.xtext.parser.antlr
Interface ISyntaxErrorMessageProvider.IErrorContext
-
- All Known Subinterfaces:
ISyntaxErrorMessageProvider.IParserErrorContext,ISyntaxErrorMessageProvider.IUnorderedGroupErrorContext,ISyntaxErrorMessageProvider.IValueConverterErrorContext
- All Known Implementing Classes:
AbstractInternalAntlrParser.LexerErrorContext,AbstractInternalAntlrParser.ParserErrorContext,AbstractInternalAntlrParser.UnorderedGroupErrorContext,AbstractInternalAntlrParser.ValueConverterErrorContext
- Enclosing interface:
- ISyntaxErrorMessageProvider
public static interface ISyntaxErrorMessageProvider.IErrorContextThe error context provides some information about the internal state of the parser when a syntax error occurred.- Noimplement:
- This interface is not intended to be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.emf.ecore.EObjectgetCurrentContext()Returns the last produced instance ornullif the parser did not yet create something.INodegetCurrentNode()Returns the recently produced node ornullif the parser did not yet create something.java.lang.StringgetDefaultMessage()Provides the default error message as it is produced by the parser.
-
-
-
Method Detail
-
getDefaultMessage
java.lang.String getDefaultMessage()
Provides the default error message as it is produced by the parser.- Returns:
- the default message.
-
getCurrentContext
org.eclipse.emf.ecore.EObject getCurrentContext()
Returns the last produced instance ornullif the parser did not yet create something.- Returns:
- the current context object or
null.
-
getCurrentNode
INode getCurrentNode()
Returns the recently produced node ornullif the parser did not yet create something.- Returns:
- the current node or
null.
-
-