01: package net.sf.jdec.jvminstructions.commands;
02:
03: import net.sf.jdec.core.Operand;
04: import net.sf.jdec.core.OperandStack;
05: import net.sf.jdec.reflection.Behaviour;
06:
07: public class I2DCommand extends AbstractInstructionCommand {
08:
09: public I2DCommand(Behaviour context) {
10: super (context);
11:
12: }
13:
14: public int getSkipBytes() {
15: return 0;
16: }
17:
18: public void execute() {
19: OperandStack opStack = getStack();
20: Operand op = (Operand) opStack.pop();
21: op.setOperandValue(op.getOperandValue());
22: boolean r = false;// checkIFLoadInstIsPartOFTernaryCond(currentForIndex);
23: if (r) {
24: if (opStack.size() > 0) {
25: java.lang.String str = opStack.getTopOfStack()
26: .getOperandValue();
27: str = str + op.getOperandValue();
28: op.setOperandValue(str);
29: }
30: }
31: opStack.push(op);
32: }
33:
34: }
|