Class AbstractApexOperationMetric
- java.lang.Object
-
- net.sourceforge.pmd.lang.metrics.AbstractMetric<N>
-
- net.sourceforge.pmd.lang.apex.metrics.AbstractApexMetric<ASTMethod>
-
- net.sourceforge.pmd.lang.apex.metrics.impl.AbstractApexOperationMetric
-
- All Implemented Interfaces:
ApexOperationMetric
,Metric<ASTMethod>
- Direct Known Subclasses:
CognitiveComplexityMetric
,CycloMetric
public abstract class AbstractApexOperationMetric extends AbstractApexMetric<ASTMethod> implements ApexOperationMetric
Base class for Apex operation metrics.- Author:
- Clément Fournier
-
-
Constructor Summary
Constructors Constructor Description 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
-
-
-
-
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.
-
-