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.
  • Field Details

  • Constructor Details

    • 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 Details

    • 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
    • visit

      public void visit(TreeVisitor visitor)
      Specified by:
      visit in class Node
    • clone

      public Object clone()
      Specified by:
      clone in class Stmt