Class LocMetric.LocOperationMetric
- 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.LocMetric.LocOperationMetric
-
- All Implemented Interfaces:
JavaOperationMetric,net.sourceforge.pmd.lang.metrics.Metric<MethodLikeNode>
- Enclosing class:
- LocMetric
public static final class LocMetric.LocOperationMetric extends AbstractJavaOperationMetric
-
-
Constructor Summary
Constructors Constructor Description LocOperationMetric()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecomputeFor(MethodLikeNode node, net.sourceforge.pmd.lang.metrics.MetricOptions options)booleansupports(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:AbstractJavaOperationMetricReturns true if the metric can be computed on this operation. By default, abstract operations are filtered out.- Specified by:
supportsin interfacenet.sourceforge.pmd.lang.metrics.Metric<MethodLikeNode>- Overrides:
supportsin 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)
-
-