Class AtfdMetric.AtfdOperationMetric
- java.lang.Object
-
- net.sourceforge.pmd.lang.metrics.AbstractMetric<N>
-
- net.sourceforge.pmd.lang.java.metrics.AbstractJavaMetric<MethodLikeNode>
-
- net.sourceforge.pmd.lang.java.metrics.impl.AbstractJavaOperationMetric
-
- net.sourceforge.pmd.lang.java.metrics.impl.AtfdMetric.AtfdOperationMetric
-
- All Implemented Interfaces:
JavaOperationMetric
,net.sourceforge.pmd.lang.metrics.Metric<MethodLikeNode>
- Enclosing class:
- AtfdMetric
public static final class AtfdMetric.AtfdOperationMetric extends AbstractJavaOperationMetric
-
-
Constructor Summary
Constructors Constructor Description AtfdOperationMetric()
-
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.java.metrics.impl.AbstractJavaOperationMetric
supports
-
-
-
-
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 interfacenet.sourceforge.pmd.lang.metrics.Metric<MethodLikeNode>
- Overrides:
supports
in classAbstractJavaOperationMetric
- 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)
-
-