01: package net.sf.jdec.jvminstructions.commands;
02:
03: import net.sf.jdec.core.OperandStack;
04: import net.sf.jdec.reflection.Behaviour;
05:
06: public class Pop2Command extends AbstractInstructionCommand {
07:
08: public Pop2Command(Behaviour context) {
09: super (context);
10:
11: }
12:
13: public int getSkipBytes() {
14: return 0;
15: }
16:
17: public void execute() {
18: OperandStack opStack = getStack();
19: if (opStack.size() >= 3) {
20: opStack.getTopOfStack();
21: opStack.getTopOfStack();
22: opStack.getTopOfStack();
23: }
24: }
25:
26: }
|