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.IErrorContext

The error context provides some information about the internal state of the parser when a syntax error occurred.

This interface is not intended to be implemented by clients.
This interface is not intended to be implemented by clients.

Method Summary
 org.eclipse.emf.ecore.EObject getCurrentContext()
          Returns the last produced instance or null if the parser did not yet create something.
 INode getCurrentNode()
          Returns the recently produced node or null if the parser did not yet create something.
 java.lang.String getDefaultMessage()
          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 or null if the parser did not yet create something.

Returns:
the current context object or null.

getCurrentNode

INode getCurrentNode()
Returns the recently produced node or null if the parser did not yet create something.

Returns:
the current node or null.