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

Class Monitors::VariableMonitor

A variable used as a monitor. The variable is either a lock or is used in a synchronized block. E.g synchronized (m) { ... } or m.lock();

Import path

import semmle.code.java.Concurrency

Direct supertypes

Indirect supertypes

Predicates

getLocation

Gets the location of this monitor.

getVariable

Gets the variable being used as a monitor.

toString

Gets a textual representation of this element.