N
- Type of nodes the metric can be computed onAbstractMetric
public interface Metric<N extends Node>
Modifier and Type | Method | Description |
---|---|---|
double |
computeFor(N node,
MetricOptions options) |
Actually computes the value of a metric for an AST node.
|
boolean |
supports(N node) |
Checks if the metric can be computed on the node.
|
boolean supports(N node)
node
- The node to checkdouble computeFor(N node, MetricOptions options)
node
- The nodeoptions
- The options of the metricDouble.NaN
if it could not be computed.Copyright © 2002–2018 PMD. All rights reserved.