Graffiti - jar analyser

Graffiti是一款基于Java的工具,用于分析JAR文件并生成直观的类间关系图及统计信息,如依赖项数量、类与接口详情等。它通过可视化的HTML文件展示JAR文件内部结构。

Graffiti is a core java based tool used to analyse jar files. It generates minimal bootstrap based html files with all the required statistics of the jar file. It is NOT a UML diagram generation tool.


# Introduction

Graffiti is a java library for generating relationships between the classes in a jar file. Graffiti helps you bring the relationships to life using visual representations. It generates bootstrap based html files containing the visual representation of the relationships among the classes. It also generates many other useful statistics about the jar like :

  • Information about maven dependencies
  • Number of classes; interfaces; abstract classes
  • Required java version
  • Attributes and Method level details
Download the latest version here:  0.0.1


# Using Graffiti

There are two versions of graffiti available. The  allows you to upload your jar file and without any hassle it generates the output which will be available for download as a zip package. All you need to do is to browse to the index.htmlof the extracted package and open it in a browser.

The other option is to download the graffiti package. This requires the following pre-requisites to be available on your machine :

After the download please follow the following instructions to build and run graffiti on your machine :

$ cd /path/to/downloaded/graffiti
$ java -jar graffiti-core-0.0.1.jar /path/to/jar/to/analyse /path/to/output/dir /path/to/dot/executable

# Output

The output for both the web based version and stand-alone version is a collection of bootstrap based html files that contains the required information about the jar file. In case of the web based version, the same is packaged as a zip file and is available instantaneously for download. The basic structure of the output directory is as follows :

.
├── index.html and other html files
├── css
├── dot
├── images
└── js
            

# Demo

A demo of commons-lang3-3.5.jar can be downloaded here. It will download a zip file containing a pre-compiled graffiti output of the commons-lang3-3.5.jar analysis. Some of the statistics are :

# Property Value
1 Classes 222
2 Interface 17
3 Abstract Classes 21
4 Maven Group org.apache.commons
5 Dependencies 4
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值