EDU.purdue.cs.bloat.tree
Class MonitorStmt
java.lang.Object
|
+--EDU.purdue.cs.bloat.tree.Node
|
+--EDU.purdue.cs.bloat.tree.Stmt
|
+--EDU.purdue.cs.bloat.tree.MonitorStmt
- public class MonitorStmt
- extends Stmt
MonitorStmt represents the monitorenter and
monitorexit opcodes, which gain and release ownership of
the monitor associated with a given object.
|
Field Summary |
static int |
ENTER
|
static int |
EXIT
|
| Fields inherited from class EDU.purdue.cs.bloat.tree.Node |
parent |
| Methods inherited from class EDU.purdue.cs.bloat.tree.Node |
block,
cleanup,
copyInto,
hasParent,
key,
parent,
replaceWith,
replaceWith,
setKey,
setParent,
setValueNumber,
toString,
valueNumber,
visitChildren,
visitOnly |
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
ENTER
public static final int ENTER
EXIT
public static final int EXIT
MonitorStmt
public MonitorStmt(int kind,
Expr object)
- Constructor.
- Parameters:
kind - The kind of monitor statement: ENTER or EXIT.object - The expression (object) whose monitor is being entered or
exited.
object
public Expr object()
kind
public int kind()
visitForceChildren
public void visitForceChildren(TreeVisitor visitor)
- Description copied from class: Node
- Visit the children of this node. Not all Nodes will have children to
visit.
- Overrides:
- visitForceChildren in class Node
visit
public void visit(TreeVisitor visitor)
- Overrides:
- visit in class Node
clone
public java.lang.Object clone()
- Overrides:
- clone in class Stmt