Class CycloMetric

    • Constructor Detail

      • CycloMetric

        public CycloMetric()
    • Method Detail

      • booleanExpressionComplexity

        public static int booleanExpressionComplexity​(Node expr)
        Evaluates the number of paths through a boolean expression. This is the total number of && and || operators appearing in the expression. This is used in the calculation of cyclomatic and n-path complexity.
        expr - Expression to analyse
        The number of paths through the expression