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 L2iCommand extends AbstractInstructionCommand {
08:
09: public L2iCommand(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 operand = opStack.getTopOfStack();
21: operand.setOperandValue("(int)" + "("
22: + operand.getOperandValue() + ")");
23: boolean r = false;//checkIFLoadInstIsPartOFTernaryCond(currentForIndex);
24: if (r) {
25: if (opStack.size() > 0) {
26: java.lang.String str = opStack.getTopOfStack()
27: .getOperandValue();
28: str = str + operand.getOperandValue();
29: operand.setOperandValue(str);
30: }
31: }
32:
33: opStack.push(operand);
34: }
35:
36: }
|