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
,net.sourceforge.pmd.lang.metrics.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.
-
-
-
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 interfacenet.sourceforge.pmd.lang.metrics.Metric<ASTMethod>
- Parameters:
node
- The node to check- Returns:
- True if the metric can be computed
-
-