Authors:
Pedro Janeiro Coimbra
1
and
Fernando Brito e Abreu
2
Affiliations:
1
ADETTI-IUL, Portugal
;
2
DCTI, ISCTE-IUL, CITI and FCT/UNL, Portugal
Keyword(s):
Model-Driven Engineering, Metamodeling Techniques, Eclipse IDE, Java Projects, Software Metrics.
Related
Ontology
Subjects/Areas/Topics:
Constraint Modeling and Languages
;
Languages, Tools and Architectures
;
MetaModeling
;
Model-Driven Software Development
;
Models
;
Paradigm Trends
;
Software Engineering
Abstract:
Java on the Eclipse IDE is a frequent choice for software development nowadays. Software Engineering researchers have built program analysis tools in that environment for several purposes. However, that requires a deep understanding of Eclipse internals, such as the Java AST. This paper discusses the feasibility of a metamodel-driven approach to scaffold the construction of such tools. Its core is the Eclipse Java Metamodel (EJMM), obtained through reverse engineering. The latter is instantiated with meta-objects representing the constructs of a given Java program. We then use OCL to traverse programs very easily. To validate the feasibility of our metamodel-driven approach to program analysis, we developed
an Eclipse plug-in based on it, to support the metamodel-driven measurement (M2DM) approach.