public class Monitor extends Statement
This AST element represents 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.
Currently, monitors statements are read-only elements and cannot be user-created.
TryStm
Modifier and Type | Method and Description |
---|---|
IExpression |
getLock()
Retrieve the lock object.
|
boolean |
isEnter()
Determine if the monitor is a
__monitor_enter
or __monitor_exit statement. |
attachTag, getSubElements, isCompound, replaceSubElement, retrieveTag
public boolean isEnter()
Determine if the monitor is a __monitor_enter
or __monitor_exit
statement.
public IExpression getLock()
Retrieve the lock object.