Class NcssMetric.NcssOperationMetric

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double computeFor​(MethodLikeNode node, net.sourceforge.pmd.lang.metrics.MetricOptions options)  
      boolean supports​(MethodLikeNode node)
      Returns true if the metric can be computed on this operation.
      • Methods inherited from class net.sourceforge.pmd.lang.metrics.AbstractMetric

        equals, hashCode
      • Methods inherited from class java.lang.Object

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

      • NcssOperationMetric

        public NcssOperationMetric()
    • Method Detail

      • supports

        public boolean supports​(MethodLikeNode node)
        Description copied from class: AbstractJavaOperationMetric
        Returns true if the metric can be computed on this operation. By default, abstract operations are filtered out.
        Specified by:
        supports in interface net.sourceforge.pmd.lang.metrics.Metric<MethodLikeNode>
        Overrides:
        supports in class AbstractJavaOperationMetric
        Parameters:
        node - The operation
        Returns:
        True if the metric can be computed on this operation
      • computeFor

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