Use of AST for Translating Executable UML Models to Java Code in Eclipse and Testing Strategy for UML Models
Anand Mohanrao Magar1, Nilesh J Uke2

1Mr. A.M.Magar, Department of Information Technology, Sinhgad College of Engineering, Pune (Maharashtra), India.
2Prof. Nilesh J Uke, Department of Information Technology, Sinhgad College of Engineering, Pune (Maharashtra), India.
Manuscript received on 8 December 2013 | Revised Manuscript received on 18 December 2013 | Manuscript Published on 30 December 2013 | PP: 157-160 | Volume-3 Issue-7, December 2013 | Retrieval Number: G1407123713/13©BEIESP
Open Access | Editorial and Publishing Policies | Cite | Mendeley | Indexing and Abstracting
© The Authors. Blue Eyes Intelligence Engineering and Sciences Publication (BEIESP). This is an open access article under the CC-BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/)

Abstract: Executable UML, coupled with Model-Driven Architecture is the foundation for a new software development methodology in which domain (business) experts would be involved in the crafting of high-level models and technologists would be concerned with translating the models to 3rd or 4th generation code. Editors like Eclipse provides modeling framework and code generation facility for building tools and other applications based on a structured data model. Eclipse Modeling Framework (EMF) is a framework to create meta-models with code-generation capabilities. Eclipse Modeling Framework is not an Model Driven Architecture framework but is the building block on top of which other tools may build. The Graphical Editing Framework (GEF) provides technology to create rich graphical editors and views for the Eclipse Workbench UI bundled with draw2d. Our work specifies translatable approach for executing UML models in Eclipse editor. The Abstract Syntax Tree (AST) maps plain Java source code in a tree form. This tree is more convenient and reliable to analyze and modify programmatically than text-based source. Eclipse plug-in Editor have Java Perspective and UML perspective merged together. Our plug-in contains UML editor which makes use of EMF and GEF based implementation. Class diagram which can be easily translated to Java code. These models are further modified to have action semantics and by modifying AST final Java source code which is directly executable in Eclipse Editor is generated. For testing xUML models, best strategy is to use model based testing.
Keywords: Abstract Syntax Tree, xUML, Model Based Testing.

Scope of the Article: Artificial Intelligent Methods, Models, Techniques