Package org.eclipse.xtext.parser.antlr
Interface ISyntaxErrorMessageProvider
-
- All Known Implementing Classes:
CardinalityAwareSyntaxErrorMessageProvider,SyntaxErrorMessageProvider
public interface ISyntaxErrorMessageProviderAISyntaxErrorMessageProvidercan be used to customize the error messages that the parser attaches to syntax errors. Implementors should extends theSyntaxErrorMessageProviderrather than implementing the interface directly.- Noimplement:
- This interface is not intended to be implemented by clients.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceISyntaxErrorMessageProvider.IErrorContextThe error context provides some information about the internal state of the parser when a syntax error occurred.static interfaceISyntaxErrorMessageProvider.IParserErrorContextThe error context for parser and lexer errors.static interfaceISyntaxErrorMessageProvider.IUnorderedGroupErrorContextIn case of failed unordered group constraints, anISyntaxErrorMessageProvider.IUnorderedGroupErrorContextis used.static interfaceISyntaxErrorMessageProvider.IValueConverterErrorContextThe error context for a particular value conversion issue.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SyntaxErrorMessagegetSyntaxErrorMessage(ISyntaxErrorMessageProvider.IParserErrorContext context)Provide the error message for a syntax error.SyntaxErrorMessagegetSyntaxErrorMessage(ISyntaxErrorMessageProvider.IValueConverterErrorContext context)Provide the error message for a value conversion error.
-
-
-
Method Detail
-
getSyntaxErrorMessage
SyntaxErrorMessage getSyntaxErrorMessage(ISyntaxErrorMessageProvider.IParserErrorContext context)
Provide the error message for a syntax error.
-
getSyntaxErrorMessage
SyntaxErrorMessage getSyntaxErrorMessage(ISyntaxErrorMessageProvider.IValueConverterErrorContext context)
Provide the error message for a value conversion error.- Returns:
- a
SyntaxErrorMessage. - See Also:
ISyntaxErrorMessageProvider.IValueConverterErrorContext
-
-