Analyzing Java code across Eclipse projects -
we want use rascal find unused public methods in collection of java projects in eclipse workspace. have learned how create model of java project in eclipse using createm3fromeclipseproject
, navigate that. takes 1 project account. how perform analysis across java projects in workspace?
excellent question. extract models each project, given right eclipse compiler settings , everything, can merge models overarching model:
import lang::java::m3::core; m3 composejavam3(loc id, set[m3] models) // function call
this allow cross project analysis on resulting m3 model.
there caveats, namely if same qualified class name exists in both projects in fact different classes compose function map them onto each other. fix such issues first have preprocessing (see link
function), have yet experience in that.
Comments
Post a Comment