Class IvmlMessageAdapter


  • public class IvmlMessageAdapter
    extends java.lang.Object
    Adapts messages, in particular warnings that may be resolved later. Individual class as temporary instances may be used, e.g., for VTL contents expression resolution.
    Author:
    Holger Eichelberger
    • Constructor Detail

      • IvmlMessageAdapter

        public IvmlMessageAdapter()
    • Method Detail

      • notify

        public void notify​(VarModelIdentifierExpression vmie,
                           de.uni_hildesheim.sse.vil.expressions.expressionDsl.Constant arg)
        Notifies the receiver about an unknown expression.
        Parameters:
        vmie - the expression
        arg - the language element causing the expression
      • resolve

        public void resolve​(VarModelIdentifierExpression ex)
        Notifies the receiver about a resolved expression.
        Parameters:
        ex - the resolved expression
      • processAndClear

        public void processAndClear​(java.util.function.Consumer<java.util.Map.Entry<VarModelIdentifierExpression,​org.eclipse.emf.ecore.EObject>> warningConsumer)
        Processes the IVML warnings not resolved by "function pointers" so far. Clears all collected warnings.
        Parameters:
        warningConsumer - consumes the warnings, e.g., to emit warnings