public interface

IJavaMonitor

implements IStatement
com.pnfsoftware.jeb.core.units.code.java.IJavaMonitor

Class Overview

Java AST interface to represent a "monitor" statement. It can be one of two types:

  • __monitor_enter(lock)
  • __monitor_exit(lock)

Such statements are not legal Java constructs. Combined with try-finally blocks, they are used to represent very high-level constructs known as synchronized blocks.

Summary

Public Methods
abstract IJavaExpression getLock()
Retrieve the lock object.
abstract boolean isEnter()
Determine if the monitor is a __monitor_enter or __monitor_exit statement.
[Expand]
Inherited Methods
From interface com.pnfsoftware.jeb.core.units.code.java.IJavaElement

Public Methods

public abstract IJavaExpression getLock ()

Retrieve the lock object.

Returns
  • the lock object, never null

public abstract boolean isEnter ()

Determine if the monitor is a __monitor_enter or __monitor_exit statement.

Returns
  • true if "enter", false if "exit"