01: package net.sf.jdec.jvminstructions.commands;
02:
03: import net.sf.jdec.core.JvmOpCodes;
04: import net.sf.jdec.reflection.Behaviour;
05:
06: public class MonitorExitCommand extends AbstractInstructionCommand {
07:
08: public MonitorExitCommand(Behaviour context) {
09: super (context);
10:
11: }
12:
13: public int getSkipBytes() {
14: return 0;
15: }
16:
17: public void execute() {
18: byte[] info = getCode();
19: int i = getCurrentInstPosInCode();
20: if (info[i + 1] != JvmOpCodes.ATHROW)
21: getStack().getTopOfStack();
22: }
23:
24: }
|