Class IvmlMessageAdapter

java.lang.Object
de.uni_hildesheim.sse.vil.expressions.translation.IvmlMessageAdapter

public class IvmlMessageAdapter extends 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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private Map<net.ssehub.easy.instantiation.core.model.expressions.VarModelIdentifierExpression,org.eclipse.emf.ecore.EObject>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    notify(net.ssehub.easy.instantiation.core.model.expressions.VarModelIdentifierExpression vmie, Constant arg)
    Notifies the receiver about an unknown expression.
    void
    processAndClear(Consumer<Map.Entry<net.ssehub.easy.instantiation.core.model.expressions.VarModelIdentifierExpression,org.eclipse.emf.ecore.EObject>> warningConsumer)
    Processes the IVML warnings not resolved by "function pointers" so far.
    void
    resolve(net.ssehub.easy.instantiation.core.model.expressions.VarModelIdentifierExpression ex)
    Notifies the receiver about a resolved expression.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ivmlWarnings

      private Map<net.ssehub.easy.instantiation.core.model.expressions.VarModelIdentifierExpression,org.eclipse.emf.ecore.EObject> ivmlWarnings
  • Constructor Details

    • IvmlMessageAdapter

      public IvmlMessageAdapter()
  • Method Details

    • notify

      public void notify(net.ssehub.easy.instantiation.core.model.expressions.VarModelIdentifierExpression vmie, Constant arg)
      Notifies the receiver about an unknown expression.
      Parameters:
      vmie - the expression
      arg - the language element causing the expression
    • resolve

      public void resolve(net.ssehub.easy.instantiation.core.model.expressions.VarModelIdentifierExpression ex)
      Notifies the receiver about a resolved expression.
      Parameters:
      ex - the resolved expression
    • processAndClear

      public void processAndClear(Consumer<Map.Entry<net.ssehub.easy.instantiation.core.model.expressions.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