Capsyl visualizes encapsulation hierarchies in Java, simplifying the comprehension of object-oriented programs.
Rule fizzBuzz = new Priority(
new Concatenation(
new Fizz(),
new Buzz()
),
new Echo()
);
Pull the latest image from Docker Hub.
docker pull jesperolssonse/capsyl:latest
Then, run the container.
docker run -v $(pwd)/IO:/IO capsyl
That's it! You'll find the result in IO/output
. If you want to change the
input, simply replace IO/input
or choose a different locatation as volume.
Capsyl assumes the encapsulations are on the form of, e.g.,
Foo foo = new Apa(new Apa(new Bepa(3), 2), 1);
or
Foo foo;
foo = new Cepa(new Depa(), new Epa());
Capsyl can visualize encapsulations either as a
DOT
graph (-e FORMAT=dot
) or a simple hierarchy (-e FORMAT=tree
).