View Javadoc

1   package serp.bytecode;
2   
3   import java.io.*;
4   
5   import serp.bytecode.visitor.*;
6   
7   /***
8    * The <code>monitorenter</code> instruction.
9    *
10   * @author Abe White
11   */
12  public class MonitorEnterInstruction extends MonitorInstruction {
13      MonitorEnterInstruction(Code owner) {
14          super(owner, Constants.MONITORENTER);
15      }
16  
17      public void acceptVisit(BCVisitor visit) {
18          visit.enterMonitorEnterInstruction(this);
19          visit.exitMonitorEnterInstruction(this);
20      }
21  }