void read(Instruction orig) { super.read(orig); SwitchInstruction ins = (SwitchInstruction) orig; _cases.clear(); InstructionPtrStrategy incoming; for (Iterator itr = ins._cases.iterator(); itr.hasNext();) { incoming = (InstructionPtrStrategy) itr.next(); InstructionPtrStrategy next = new InstructionPtrStrategy(this); next.setByteIndex(incoming.getByteIndex()); _cases.add(next); } }
void read(Instruction orig) { super.read(orig); SwitchInstruction ins = (SwitchInstruction) orig; _cases.clear(); InstructionPtrStrategy incoming; for (Iterator itr = ins._cases.iterator(); itr.hasNext();) { incoming = (InstructionPtrStrategy) itr.next(); InstructionPtrStrategy next = new InstructionPtrStrategy(this); next.setByteIndex(incoming.getByteIndex()); _cases.add(next); } }
void read(Instruction orig) { super.read(orig); LookupSwitchInstruction ins = (LookupSwitchInstruction) orig; _matches = new LinkedList(ins._matches); _cases.clear(); for (Iterator itr = ins._cases.iterator(); itr.hasNext();) { InstructionPtrStrategy origPtr = (InstructionPtrStrategy)itr.next(); InstructionPtrStrategy newPtr = new InstructionPtrStrategy(this); newPtr.setByteIndex(origPtr.getByteIndex()); _cases.add(newPtr); } invalidateByteIndexes(); }
void read(Instruction orig) { super.read(orig); LookupSwitchInstruction ins = (LookupSwitchInstruction) orig; _matches = new LinkedList(ins._matches); _cases.clear(); for (Iterator itr = ins._cases.iterator(); itr.hasNext();) { InstructionPtrStrategy origPtr = (InstructionPtrStrategy)itr.next(); InstructionPtrStrategy newPtr = new InstructionPtrStrategy(this); newPtr.setByteIndex(origPtr.getByteIndex()); _cases.add(newPtr); } invalidateByteIndexes(); }
void read(Instruction orig) { super.read(orig); TableSwitchInstruction ins = (TableSwitchInstruction) orig; setLow(ins.getLow()); setHigh(ins.getHigh()); InstructionPtrStrategy incoming; for (Iterator itr = ins._cases.iterator(); itr.hasNext();) { incoming = (InstructionPtrStrategy) itr.next(); InstructionPtrStrategy next = new InstructionPtrStrategy(this); next.setByteIndex(incoming.getByteIndex()); _cases.add(next); } invalidateByteIndexes(); }
void read(Instruction orig) { super.read(orig); TableSwitchInstruction ins = (TableSwitchInstruction) orig; setLow(ins.getLow()); setHigh(ins.getHigh()); InstructionPtrStrategy incoming; for (Iterator itr = ins._cases.iterator(); itr.hasNext();) { incoming = (InstructionPtrStrategy) itr.next(); InstructionPtrStrategy next = new InstructionPtrStrategy(this); next.setByteIndex(incoming.getByteIndex()); _cases.add(next); } invalidateByteIndexes(); }