Class CycloMetric

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  CycloMetric.CycloOption
      Options for CYCLO.
    • Constructor Summary

      Constructors 
      Constructor Description
      CycloMetric()  
    • Constructor Detail

      • CycloMetric

        public CycloMetric()
    • Method Detail

      • computeFor

        public double computeFor​(MethodLikeNode node,
                                 net.sourceforge.pmd.lang.metrics.MetricOptions options)
      • booleanExpressionComplexity

        public static int booleanExpressionComplexity​(net.sourceforge.pmd.lang.ast.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.
        Parameters:
        expr - Expression to analyse
        Returns:
        The number of paths through the expression