Such a metamodel allows to link java nodes to their physical position in the source files (''JavaNodeSourceRegion'' metaclass owning ''startLine'' ''endLine'' properties).

+

−

+

−

As proposed in [http://wiki.eclipse.org/MoDisco/Components/KDMSourceExtension/Documentation/0.9 kdm.source extension framework], the reference ''JavaASTNodeSourceRegion.javaNode'' derived from ''ASTNodeSourceRegion.node''. So as the ''Java2File.javaUnit'' from ''CodeUnit2File.unit''.

Note : the references ''java2DirectoryChildren'' and ''java2FileChildren'' are expected to be containment references. For some technical reasons (memory usage tuning via lazy loading), they are not containment to make sure that the ''Java2Directory'', ''Java2File'' and ''JavaNodeSourceRegion'' instances are managed in their own graph compared with ''JavaApplication'' instances (See [http://wiki.eclipse.org/MoDisco/Components/Java/Composition/Architecture#Benchmark benchmark]).

+

−

+

−

==Java Composition Discoverer==

+

−

+

−

=== Description ===

+

−

+

−

MoDisco provides a discoverer associated to the metamodel definition described here.

+

−

The discovery takes as an entry one workspace Java project.

+

−

The first step of the discovery creates one Java and one Kdm inventory model, using the associated discoverers.

+

−

The second step creates the links, in a third resource, as ''JavaApplication'' metamodel instances, between the two models.