JavaOperationMetric
, net.sourceforge.pmd.lang.metrics.Metric<MethodLikeNode>
public static final class LocMetric.LocOperationMetric extends AbstractJavaOperationMetric
Constructor | Description |
---|---|
LocOperationMetric() |
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.
|
supports
equals, hashCode
public boolean supports(MethodLikeNode node)
AbstractJavaOperationMetric
supports
in interface net.sourceforge.pmd.lang.metrics.Metric<MethodLikeNode>
supports
in class AbstractJavaOperationMetric
node
- The operationpublic double computeFor(MethodLikeNode node, net.sourceforge.pmd.lang.metrics.MetricOptions options)
Copyright © 2002–2018 PMD. All rights reserved.