Class IvmlMessageAdapter
java.lang.Object
de.uni_hildesheim.sse.vil.expressions.translation.IvmlMessageAdapter
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
FieldsModifier and TypeFieldDescriptionprivate Map<net.ssehub.easy.instantiation.core.model.expressions.VarModelIdentifierExpression, org.eclipse.emf.ecore.EObject> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidnotify(net.ssehub.easy.instantiation.core.model.expressions.VarModelIdentifierExpression vmie, Constant arg) Notifies the receiver about an unknown expression.voidprocessAndClear(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.voidresolve(net.ssehub.easy.instantiation.core.model.expressions.VarModelIdentifierExpression ex) Notifies the receiver about a resolved expression.
-
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 expressionarg- 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
-