CodeQL library for Java
Search

Module Clover

Provides classes and predicates for working with Clover reports.

Import path

import external.Clover

Imports

java

Provides all default Java QL imports.

Predicates

cloverInfo

Get the clover metrics associated with the given class, if any.

Classes

CloverClass

A Clover class is nested in a file and contains metric information.

CloverCoverage

The Clover “coverage” tag contains one or more “projects”.

CloverFile

A Clover file is nested in a package and contains several classes.

CloverMetrics

A “metrics” element contains a range of numbers for the current aggregation level.

CloverMetricsContainer

Several elements in the Clover report contain a “metrics” element which contains various numbers, aggregated to the different levels. They are all subclasses of this class, to share code.

CloverPackage

A Clover package is nested in a project and contains several files.

CloverProject

A Clover project has an aggregated “metrics” element and groups together several “package” (or “testpackage”) elements.

CloverReport

A Clover report is characterised by the fact that one of its top-level children (usually, in fact, there is only one) is a tag with the name “coverage”.