Class 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 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: Node
        Visit the children of this node. Not all Nodes will have children to visit.
        Specified by:
        visitForceChildren in class Node
      • clone

        public java.lang.Object clone()
        Specified by:
        clone in class Stmt