Skip to content

sweetStreet/smethods

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

smethods

Method level dependency graph.

Requirements

Java 8

Usage

mvn test-compile
mvn exec:java -Dexec.mainClass=org.smethods.MethodLevelStaticDepsBuilder -Dexec.args="path to test classes"

Background

  1. ASM
  2. Visitor pattern

Example

public class A {
    public static int i = 0;

    public static void inc() {
        i++;
    }

    public static void main(String[] args) {
        B b = new C();
        b.foo();

        inc();
    }
}

class B {
    public void foo() {
        System.out.println("B foo");
    }
}

class C extends B{
    public void foo() {
        System.out.println("C foo");
    }
}
A#<clinit>() A#i
B#foo() 
A#main([Ljava/lang/String;) A#inc(),B#foo(),C#<init>(),C#foo()
A#inc() A#i
B#<init>() 
A#i A#<clinit>()
C#<init>() B#<init>()
C#foo() 
A#<init>() 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages