Class AbstractApexOperationMetric

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean supports​(ASTMethod node)
      Checks if the metric can be computed on the node.
      • 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
      • Methods inherited from interface net.sourceforge.pmd.lang.metrics.Metric

        computeFor
    • Constructor Detail

      • AbstractApexOperationMetric

        public AbstractApexOperationMetric()
    • Method Detail

      • supports

        public boolean supports​(ASTMethod node)
        Checks if the metric can be computed on the node. For now, we filter out <clinit>, <init> and clone, which are present in all apex class nodes even if they're not implemented, which may yield unexpected results.
        Specified by:
        supports in interface net.sourceforge.pmd.lang.metrics.Metric<ASTMethod>
        Parameters:
        node - The node to check
        Returns:
        True if the metric can be computed