Package 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.
-
-
Constructor Summary
Constructors Constructor Description MonitorStmt(int kind, Expr object)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()intkind()Exprobject()voidvisit(TreeVisitor visitor)voidvisitForceChildren(TreeVisitor visitor)Visit the children of this node.-
Methods inherited from class EDU.purdue.cs.bloat.tree.Stmt
cleanupOnly
-
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
-
-
-
-
Field Detail
-
ENTER
public static final int ENTER
- See Also:
- Constant Field Values
-
EXIT
public static final int EXIT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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.
-
-
Method Detail
-
object
public Expr object()
-
kind
public int kind()
-
visitForceChildren
public void visitForceChildren(TreeVisitor visitor)
Description copied from class:NodeVisit the children of this node. Not all Nodes will have children to visit.- Specified by:
visitForceChildrenin classNode
-
visit
public void visit(TreeVisitor visitor)
-
-