From: Anthony Bargnesi Date: Thu, 22 Sep 2016 17:38:42 +0000 (-0400) Subject: updated README with example links X-Git-Tag: javainspect-1.7~31^2~2 X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=9e50fa4f50ded6a339d822e71c02113be2713545;p=javainspect.git updated README with example links --- diff --git a/README.md b/README.md index 6973374..c3b2bc5 100644 --- a/README.md +++ b/README.md @@ -31,12 +31,17 @@ Minor enhancements: ```bash java \ - -cp .:/path/to/your/classes.jar:./target/javainspect-{VERSION}.jar \ + -cp .:./example/target/myproject-0.0.jar:./target/javainspect-1.6-SNAPSHOT.jar \ eu.svjatoslav.inspector.java.methods.Main \ - /home/user/work/myproject/src/main/java/ com.myproject.* myproject + ./example/src/main/java/ com.myproject.* myproject ``` Here we want to visualize _com.myproject.*_ classes found in -*/home/user/work/myproject/src/main/java/*. The resulting *dot* and *svg* +*./example/src/main/java/*. The resulting *dot* and *svg* file will be prefixed with *myproject*. +### Output example + +![alt text](https://github.com/abargnesi/javainspect/raw/master/myproject.svg "MyProject Example") + +The [dot](https://github.com/abargnesi/javainspect/raw/master/myproject.dot) file is also saved. diff --git a/myproject.dot b/myproject.dot new file mode 100644 index 0000000..068b68c --- /dev/null +++ b/myproject.dot @@ -0,0 +1,34 @@ +digraph Java { +graph [rankdir=LR, overlap = false, concentrate=true]; + +// Class: com.myproject.NumberTranslator + class_com_myproject_NumberTranslator[label=< + + // class descriptor header + + + // methods: + // translate + +
com.myproject
NumberTranslator
Stringtranslate
>, shape="none"]; + + // method references to other classes + + // interfaces implemented by class: com.myproject.NumberTranslator + class_com_myproject_Behavior -> class_com_myproject_NumberTranslator[style="dotted", color="antiquewhite4", penwidth=10, dir="forward"]; + +// Class: com.myproject.Behavior + class_com_myproject_Behavior[label=< + + // class descriptor header + + + // methods: + // serialize + + // translate + +
com.myproject
Behavior
Stringserialize
Stringtranslate
>, shape="none"]; + + // method references to other classes +} diff --git a/myproject.svg b/myproject.svg new file mode 100644 index 0000000..afec2ba --- /dev/null +++ b/myproject.svg @@ -0,0 +1,45 @@ + + + + + + +Java + + +class_com_myproject_NumberTranslator + +com.myproject +NumberTranslator + +String + +translate + + + +class_com_myproject_Behavior + + +com.myproject +Behavior + +String + +serialize + +String + +translate + + + +class_com_myproject_Behavior->class_com_myproject_NumberTranslator + + + + +