Top > Research > Tools > NestLevelMeter |
java -jar [option] NestLevelMeter.jar source_file |
"source_file_name,ANL,MNL"
find dir -name *.java -exec java -jar NestLevelMeter.jar [option] \{\} \; |
NestLevelMeter parser = new NestLevelMeter(new java.io.FileInputStream(fileName)); parser.CompilationUnit(); int max = parser.getMaxNestLevel(); double avg = parser.getAverageNestLevel(); |