In software development, planning and implementation rarely align perfectly. Diagrams created early in the process can quickly become outdated—relationships shift, fields and methods change, and classes are deprecated or removed. UML Generator for Java bridges that gap by creating UML diagrams directly from your source code, ensuring you always have accurate, up-to-date representations that reflect the real structure of your project.
- Generate UML from File or Folder
Right-click on a Java file or folder in the Explorer to instantly generate UML. - Accurate Parsing
Powered by a custom UML parser built with JavaParser AST for precise extraction of:- Classes
- Interfaces
- Attributes (with visibility modifiers)
- Methods (with visibility modifiers)
- Optional relationships
- PlantUML Output
Produces valid.pumlfiles with@startumland@endumltags. - Custom Output Directory
Choose where generated.pumlfiles are saved. (currently produced at the root directory of the project to a folder, "output") - Automatic Preview
Opens the generated file automatically in VS Code. - Integration-Ready
Works seamlessly with PlantUML Preview extensions or external PlantUML renderers.
- Install from the VS Code Marketplace:
UML Generator for Java
- Right-click on a
.javafile in the Explorer. - Select "Generate UML from File".
- The
.pumlfile will be created in the specified output directory.
- Right-click on a folder containing Java files.
- Select "Generate UML from Folder".
- All Java files in that folder will be parsed and included in the diagram.
After generation, open the .puml file in any PlantUML-compatible previewer to view the diagram.
- Downloading the diagrams
- Add stereotypes such as
ConcreteVisitor,Visitor,Element,Invoker,Action, etc. - Derive sequence diagrams from
main(). - Integrate AI assistance for designing according to functional and non-functional requirements.
- Support additional text-based diagramming tools such as Mermaid.
- Add support for other programming languages.
This project uses JavaParser licensed under the Apache 2.0 License and PlantUML licensed under the MIT License.
We gratefully acknowledge these open-source projects for their valuable tools.
