+/EE379K
programming paradigms
git clone https://git.julia.blue/+/EE379K
5a7dde3
master
files
| META-INF/ | |
| libs/ | |
| Agent.java | 1.9 KiB |
| CoverageVisitor.java | 2.2 KiB |
| Input.java | 364 B |
| README.md | 665 B |
| build.sh | 119 B |
| clean.sh | 52 B |
| dynamic.txt | 998 B |
| run.sh | 230 B |
Instructions
build.sh compiles the java agent and run.sh compiles and runs a single java source file with the agent. It takes that file as an argument, but if none is passed it will use Input.java by default
Usage:
./build.sh && ./run.sh
Assumptions
- We don't count constructors as "methods" so we don't include them in the count.
- We're allowed to do a tiny bit of static analysis before hand. This is necessary to figure out the names of the classes in the input file. I tried to figure out which file each class was loaded from in the class loader, but if
Input.javahad 3 classes for example they'd compile to separate classes.