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

Class Monitors::InstanceMonitor

An instance reference used as a monitor. Either via synchronized (this) { ... } or by marking a non-static method as synchronized.

Import path

import semmle.code.java.Concurrency

Direct supertypes

Indirect supertypes

Predicates

getLocation

Gets the location of this monitor.

getThisType

Gets the instance reference being used as a monitor.

toString

Gets a textual representation of this element.