@Override public void visit(MonitorExitInstruction insn) { MonitorExitStatement stmt = new MonitorExitStatement(); stmt.setLocation(currentLocation); stmt.setObjectRef(Expr.var(insn.getObjectRef().getIndex())); statements.add(stmt); }
@Override public void visit(MonitorExitStatement statement) { statement.getObjectRef().acceptVisitor(this); statement.setObjectRef(resultExpr); resultStmt = statement; }