Class CyclomaticComplexity


  • public class CyclomaticComplexity
    extends java.lang.Object
    This sample application illustrates how to use visitors to iterate over specific instructions and exception handlers. In this example, it prints out an approximation of the cyclomatic complexity of all methods, as introduced by T.J. McCabe in "IEEE Transactions on Software Engineering", p308-320 (Dec 1976)

    Usage: java proguard.examples.CyclomaticComplexity input

    where the input can be a jar file or a directory containing jar files.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CyclomaticComplexity

        public CyclomaticComplexity()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)