Skip to content

Analyze your own project

You now know how to analyze a model in Moose. This page explains how to do the same with your own project.

The tool to use depends on the language of your project.

Use VerveineJ, the Java parser of Moose. It is available as a release or as a docker image.

Terminal window
./verveinej.sh -format json -o MyProject.json -autocp ../MyProjectDependenciesOrLib/ ../MyProjectSrcFolder/

On Windows, use verveinej.bat instead of verveinej.sh.

Meta-model to select when importing: FamixJavaModel.

  1. Open the Models browser from the Moose menu.
  2. Click on the JSON button and select your model file. You can also drag and drop the file into Moose.
  3. Select the meta-model corresponding to your language.
  4. (Optional) Right-click on the model, choose Utilities >> Set root folder, and select the folder of your project to browse its source code.