Commit baceb797 authored by Marco Konersmann's avatar Marco Konersmann

MarkerInterfaceTransformation is now configurable

parent fd8bd8ad
......@@ -61,8 +61,19 @@ abstract class MarkerInterfaceTransformation<ELEMENTECLASS extends EObject> exte
// Set name attribute value
val String name = codeElement.elementName;
setNameAttributeValue(modelElement, name);
return modelElement;
}
def getExpectedInterfaceName() {
eClass.name.toFirstUpper
}
def boolean hasExpectedInterface(IType type) {
return type.superInterfaceNames.contains(expectedInterfaceName);
}
protected def String getNewAnnotationName() {
return '''org.codeling.lang.«getLanguageName».mm.«eClass.name.toFirstUpper»''';
}
}
Markdown is supported
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