Interface IMessageReceiver
-
- All Known Implementing Classes:
AbstractModelTranslator,ExpressionTranslator,ExpressionTranslator,ExpressionTranslator,ExpressionTranslator,ExpressionTranslator,LogMessageReceiver,MessageReceiver,ModelTranslator,ModelTranslator,ModelTranslator,ModelTranslator,ModelTranslator,StringResolver
public interface IMessageReceiverThe fundamental interface of a message receiver based on EObjects and EStructuralFeatures for xText grammars.- Author:
- Holger Eichelberger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcollect(IMessage message, org.eclipse.emf.ecore.EObject cause, org.eclipse.emf.ecore.EStructuralFeature causeFeature, int code)Receives an EASy message.voiderror(java.lang.String message, org.eclipse.emf.ecore.EObject cause, org.eclipse.emf.ecore.EStructuralFeature causeFeature, int code)Receives an error message.voidwarning(java.lang.String message, org.eclipse.emf.ecore.EObject cause, org.eclipse.emf.ecore.EStructuralFeature causeFeature, int code)Receives a warning message.
-
-
-
Method Detail
-
error
void error(java.lang.String message, org.eclipse.emf.ecore.EObject cause, org.eclipse.emf.ecore.EStructuralFeature causeFeature, int code)Receives an error message.- Parameters:
message- the messagecause- the cause (as instance of the EMF grammar model)causeFeature- the cause of the feature as an appropriate constant fromIvmlPackage.Literalscode- a numerical identification of the error
-
warning
void warning(java.lang.String message, org.eclipse.emf.ecore.EObject cause, org.eclipse.emf.ecore.EStructuralFeature causeFeature, int code)Receives a warning message.- Parameters:
message- the messagecause- the cause (as instance of the EMF grammar model)causeFeature- the cause of the feature as an appropriate constant fromIvmlPackage.Literalscode- a numerical identification of the warning
-
collect
void collect(IMessage message, org.eclipse.emf.ecore.EObject cause, org.eclipse.emf.ecore.EStructuralFeature causeFeature, int code)
Receives an EASy message. This allows re-directing the message while keeping the relation to the original one, e.g., for cleaning up messages.- Parameters:
message- the messagecause- the cause (as instance of the EMF grammar model)causeFeature- the cause of the feature as an appropriate constant fromIvmlPackage.Literalscode- a numerical identification of the error
-
-