Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "MoDisco/JavaDiscoverer"

(Description)
 
(14 intermediate revisions by 4 users not shown)
Line 1: Line 1:
The goal of Java Discoverer plugin is to allow practical extractions of [[MoDisco/J2SE5|J2SE5 models]] from a Java project.
+
#REDIRECT [[MoDisco/Moved To Help Center]]
The J2SE5 models could also be converted in [[MoDisco/KDM|KDM models]] ([http://www.omg.org/technology/kdm/index.htm|OMG specifications]).
+
 
+
 
+
== Description ==
+
 
+
This plugin aims at analysing Java source code compliant with J2SE 5.0 standard and providing a model describing the information found. As shown in next figure, this model can conform either to the [[MoDisco/J2SE5|J2SE5 metamodel]] or to the [[MoDisco/KDM|KDM metamodel]].
+
 
+
[[Image:JavaDiscovererOverview.jpg|frame|center|Overall approach of the J2SE5 discoverer]]
+
 
+
 
+
The [[MoDisco/J2SE5|J2SE5 model]] is built from the source code by a Java component using the [[JDT|JDT]], while the [[MoDisco/KDM|KDM model]] is built by a model transformation (powered by [[ATL|ATL]]) applied on the [[MoDisco/J2SE5|J2SE5 model]].
+
 
+
The [[MoDisco/J2SE5|J2SE5 model]] contains the full abstract syntax tree of the Java program : each statement such as attribute definition, method invocation or loop is described. In addition, links between elements are resolved (by resolved link we mean for instance a link between a method invocation and the declaration of this method, or the usage of a variable and its declaration). The model can thus be seen as an abstract syntax graph (ASG).
+
+
The [[MoDisco/KDM|KDM model]] represents only the structure of the Java application. The mapping between Java concepts and elements of [[MoDisco/J2SE5|J2SE5]] and [[MoDisco/KDM|KDM]] metamodels is described in the following table.
+
 
+
[[Image:Modisco-J2SE5toKDMmapping.jpg|frame|center|J2SE5 to KDM mapping]]
+
 
+
In this version, the only data flow elements (below the method declaration) described in the [[MoDisco/KDM|KDM model]] are :
+
• The creation of instances (Creates)
+
• The method invocations (Calls)
+
• The return statements returning a variable (UsesType)
+
 
+
The mapping to [[MoDisco/KDM|KDM]] can be changed or completed easily by updating the [[ATL|ATL]] rules.
+
 
+
 
+
== Requirements ==
+
 
+
To use the plugin you need:
+
• JDK 1.5 or above
+
• a version of Eclipse 3.3 or above with the following set of plugins installed
+
o [[EMF|EMF]] 2.3.0 or higher
+
o [[ATL|ATL]] 2.0.0 or higher
+
o [[MoDisco/KDM|KDM metamodel]]
+

Latest revision as of 06:13, 4 April 2012

  1. REDIRECT MoDisco/Moved To Help Center

Back to the top