public abstract class MessageReceiver extends java.lang.Object implements IMessageReceiver
| Constructor and Description |
|---|
MessageReceiver() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
error(org.eclipse.emf.ecore.resource.Resource.Diagnostic diagnostic)
Adds a diagnostic error, typically from a standalone parser
configuration.
|
void |
error(TranslatorException exception)
Receives an error message in terms of a
TranslatorException. |
abstract int |
getErrorCount()
Returns the number of errors.
|
abstract Message |
getMessage(int index)
Returns the specified message.
|
abstract int |
getMessageCount()
Returns the number of messages.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcollect, error, warningpublic void error(TranslatorException exception)
TranslatorException.exception - the exception to be used to derive the error cause and
location frompublic abstract int getMessageCount()
public abstract int getErrorCount()
public abstract Message getMessage(int index)
index - the position of the message to be returnedjava.lang.IndexOutOfBoundsException - if
index<0 || index>=getMessageCount()public abstract void error(org.eclipse.emf.ecore.resource.Resource.Diagnostic diagnostic)
diagnostic - the diagnostic to be addedCopyright © 2009 - 2018 SSE. All Rights Reserved.