Class MonitorStmt
java.lang.Object
EDU.purdue.cs.bloat.tree.Node
EDU.purdue.cs.bloat.tree.Stmt
EDU.purdue.cs.bloat.tree.MonitorStmt
MonitorStmt represents the monitorenter and monitorexit
opcodes, which gain and release ownership of the monitor associated with a
given object.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()intkind()object()voidvisit(TreeVisitor visitor) voidvisitForceChildren(TreeVisitor visitor) Visit the children of this node.Methods inherited from class Stmt
cleanupOnlyMethods inherited from class Node
block, cleanup, copyInto, hasParent, key, parent, replaceWith, replaceWith, setKey, setParent, setValueNumber, toString, valueNumber, visitChildren, visitOnly
-
Field Details
-
ENTER
public static final int ENTER- See Also:
-
EXIT
public static final int EXIT- See Also:
-
-
Constructor Details
-
MonitorStmt
Constructor.- Parameters:
kind- The kind of monitor statement: ENTER or EXIT.object- The expression (object) whose monitor is being entered or exited.
-
-
Method Details
-
object
-
kind
public int kind() -
visitForceChildren
Description copied from class:NodeVisit the children of this node. Not all Nodes will have children to visit.- Specified by:
visitForceChildrenin classNode
-
visit
-
clone
-