Commit 76aa6705 authored by Yannick Deuster's avatar Yannick Deuster
Browse files

EMA: "ElementInstance" Abstraktion

parent 420d1f60
......@@ -38,7 +38,7 @@ import java.util.Optional;
*
* @author Arne Haber, Michael von Wenckstern
*/
public class ConnectorSymbol extends TaggingSymbol {
public class ConnectorSymbol extends TaggingSymbol implements ElementInstance {
/* generated by template symboltable.symbols.KindConstantDeclaration*/
......
package de.monticore.lang.embeddedmontiarc.embeddedmontiarc._symboltable;
import de.monticore.lang.montiarc.tagging._symboltable.TagKind;
import de.monticore.lang.montiarc.tagging._symboltable.TagSymbol;
import java.util.Collection;
/**
* Created by kt on 27.02.2017.
*/
public interface ElementInstance {
public Collection<TagSymbol> getTags();
public <T extends TagSymbol> Collection<T> getTags(final TagKind tagKind);
public String getName();
}
......@@ -22,6 +22,7 @@ package de.monticore.lang.embeddedmontiarc.embeddedmontiarc._symboltable;
import de.monticore.lang.embeddedmontiarc.embeddedmontiarc.types.EMAVariable;
import de.monticore.lang.embeddedmontiarc.helper.SymbolPrinter;
import de.monticore.lang.embeddedmontiarc.embeddedmontiarc._symboltable.ElementInstance;
import de.monticore.lang.montiarc.tagging._symboltable.TaggingScopeSpanningSymbol;
import de.monticore.lang.monticar.mcexpressions._ast.ASTExpression;
import de.monticore.lang.monticar.si._symboltable.ResolutionDeclarationSymbol;
......@@ -88,7 +89,7 @@ import java.util.stream.Collectors;
* standard symbol table mechanism
*/
public class ExpandedComponentInstanceSymbol
extends TaggingScopeSpanningSymbol {
extends TaggingScopeSpanningSymbol implements ElementInstance {
public static final EMAExpandedComponentInstanceKind KIND = new EMAExpandedComponentInstanceKind();
......
......@@ -37,7 +37,7 @@ import java.util.stream.Collectors;
/**
* Symboltable entry for ports.
*/
public class PortSymbol extends TaggingSymbol {
public class PortSymbol extends TaggingSymbol implements ElementInstance {
public static final EmbeddedPortKind KIND = EmbeddedPortKind.INSTANCE;
private final Map<String, Optional<String>> stereotype = new HashMap<>();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment