public interface

IJavaMonitor

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

Class Overview

Java AST interface to represent a special "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

[Expand]
Inherited Constants
From interface com.pnfsoftware.jeb.core.units.code.java.IJavaElement
Public Methods
abstract IJavaMonitor duplicate()
Duplicate this element.
abstract IJavaExpression getLock()
Retrieve the lock object.
abstract boolean isEnter()
Determine if the monitor is a __monitor_enter statement.
abstract boolean isExit()
Determine if the monitor is a __monitor_exit statement.
abstract void setEnter(boolean enter)
abstract void setLock(IJavaExpression lock)
[Expand]
Inherited Methods
From interface com.pnfsoftware.jeb.core.units.code.java.IJavaElement
From interface com.pnfsoftware.jeb.core.units.code.java.IJavaExpression
From interface com.pnfsoftware.jeb.core.units.code.java.IJavaStatement

Public Methods

public abstract IJavaMonitor duplicate ()

Duplicate this element.

Returns
  • a (possibly) duplicated object of the same type

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 statement.

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

public abstract boolean isExit ()

Determine if the monitor is a __monitor_exit statement.

public abstract void setEnter (boolean enter)

public abstract void setLock (IJavaExpression lock)