Weftmap
JAVA

Java call graph generator

Paste a Java class and get a diagram of how its methods call one another. Built for the moment you open an unfamiliar service and want the outline before the detail.

Open the editor

Example

example.java
class InvoiceService {
    int totalFor(String customer) {
        return sum(load(customer));
    }

    int[] load(String customer) {
        return new int[] { 1000, 2500, 400 };
    }

    int sum(int[] amounts) {
        int total = 0;
        for (int amount : amounts) {
            total += amount;
        }
        return total;
    }
}

What the graph shows

Methods become nodes and classes group them, so the diagram reflects the structure you already see in the file. Calls to the JDK and to libraries are dropped, leaving only the paths that belong to the code you pasted.

Now try it with your own code

Paste a file, pick the language, hit Analyze. Nothing is stored.

Open the editor