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