Package net.sourceforge.pmd.lang.metrics

Language-independent framework to represent code metrics. If you want to compute code metrics in your rules, then you should find the language-specific enums containing MetricKeys in the relevant language modules.

Metrics are cached by default on the nodes they're computed on. Many APIs here are deprecated, this is because metrics were previously cached in big static maps, which is replaced by caching on nodes.