<commit_before># Java Reference Diagramm Plugin

This plugin for IntelliJ IDEA provides a diagram showing a reference graph for methods in java classes.

A future version shall show orphaned groups of methods, thus visiualize [lack of cohesion of methods](http://sonar-jenkins.blogspot.ch/2012/12/what-is-lcom4.html) 
which is probably slighty different from a graph of dependencies.

This plugin is in a early state.

## Example

![](https://raw.githubusercontent.com/stefku/intellij-reference-diagram/master/test/ExampleDiagram_ch.docksnet.app.MainClass.png)

```java
public final class MainClass {

    {
        // class initializer
        method1();
    }

    static {
        // static class initializer
        staticMethod();
        staticField2 = "";
    }<commit_msg>show example in readme<commit_after># Java Reference Diagramm Plugin

This plugin for IntelliJ IDEA provides a diagram showing a reference graph for methods in java classes.

A future version shall show orphaned groups of methods, thus visiualize [lack of cohesion of methods](http://sonar-jenkins.blogspot.ch/2012/12/what-is-lcom4.html) 
which is probably slighty different from a graph of dependencies.

This plugin is in a early state.

## Example

![](https://raw.githubusercontent.com/stefku/intellij-reference-diagram/master/test/ExampleDiagram_ch.docksnet.app.MainClass.png)

A blue line indicates a method call, where a green line means that a field is coupled to a method in terms of cohesion.

```java
public final class MainClass {

    {
        // class initializer
        method1();
    }

    static {
        // static class initializer
        staticMethod();
        staticField2 = "";
    }
{'fraction_non_alphanumeric': 0.08284023668639054, 'fraction_numerical': 0.010650887573964497, 'mean_word_length': 3.3808290155440415, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7261356', 'n_tokens_mistral': 503, 'n_tokens_neox': 472, 'n_words': 169}