CodeQL library for Java/Kotlin
codeql/java-all 7.8.5-dev (changelog, source)
Search

Class Monitors::Monitor

A monitor is any object that is used to synchronize access to a shared resource. This includes locks as well as variables used in synchronized blocks (including this).

Import path

import semmle.code.java.Concurrency

Direct supertypes

Known direct subtypes

Predicates

getLocation

Gets the location of this monitor.

toString

Gets a textual representation of this element.