Skip to content

MDSD-Tools/TheExtendedJavaModelParserAndPrinter

Repository files navigation

The Extended Java Model Parser and Printer (JaMoPP)

JaMoPP can parse Java source code into EMF-based models and vice versa. It can be used for code analysis and refactoring.

Compared to the original version, the following extensions were made:

  • Support for Java 7-15
  • Parsing based on the Eclipse Java Development Tools (JDT)
  • Printing directly based on the meta model
  • Three variants for the reference resolution (based on the Java syntax and/or JDT bindings)
  • Trivial recovery for unresolved references

The current documentation of the extended JaMoPP is available online at the KIT library.

The extended version is developed by the Institute of Information Security and Dependability (KASTEL) at the Karlsruher Institute of Technology (KIT). This repository is not endorsed by or affiliated with DevBoost GmbH or Software Technology Group, Dresden University of Technology.

Download / Installation

Currently, JaMoPP can be installed from its update site, or the plugins can be directly imported into Eclipse:

  1. Use the Eclipse Modeling Tools 2022-09 with Java 11 and UTF-8 encoding, and (optionally) install Xtext from the Marketplace.
  2. Clone this repository.
  3. Import all existing plugins of this repository.
  4. Set releng/org.palladiosimulator.jdt.targetplatform/org.palladiosimulator.jdt.targetplatform.target as the active target platform.
  5. In releng/org.palladiosimulator.jdt.workflow/workflow/, execute the generate.mwe2 file (if Xtext is installed). Alternatively, execute a build in which the model code is also generated.
  6. Now, JaMoPP should be usable. Please, note: the file encoding needs to be set to UTF-8. Otherwise, there can be compilation errors.

Building

To build JaMoPP, execute mvnw clean verify within the repository to start the Maven build via its wrapper.

Re-generating the Model Code

If the model code needs to be re-generated, there are the following possibilities:

  1. Use the genmodel editor in Eclipse. Please, use only the generation for the model, edit, and editor code (not the test code).
  2. Execute the clean.mwe2 and generate.mwe2 files in releng/org.palladiosimulator.jdt.workflow/wokflow/ if Xtext is installed.
  3. Perform a build.

Sources on GitHub

https://github.com/MDSD-Tools/TheExtendedJavaModelParserAndPrinter

Former repository: https://github.com/PalladioSimulator/Palladio-Supporting-EclipseJavaDevelopmentTools

Original repository: https://github.com/DevBoost/JaMoPP

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages