void read(DataInput in) throws IOException { super.read(in); setFieldIndex(in.readUnsignedShort()); }
void read(DataInput in) throws IOException { super.read(in); setFieldIndex(in.readUnsignedShort()); }
void read(DataInput in) throws IOException { super.read(in); _index = in.readUnsignedShort(); if (getOpcode() == Constants.INVOKEINTERFACE || getOpcode() == Constants.INVOKEDYNAMIC) { in.readByte(); in.readByte(); } }
void read(DataInput in) throws IOException { super.read(in); _index = in.readUnsignedShort(); if (getOpcode() == Constants.INVOKEINTERFACE || getOpcode() == Constants.INVOKEDYNAMIC) { in.readByte(); in.readByte(); } }
void read(Instruction orig) { super.read(orig); _target.setByteIndex(((JumpInstruction) orig)._target.getByteIndex()); }
void read(Instruction orig) { super.read(orig); _target.setByteIndex(((JumpInstruction) orig)._target.getByteIndex()); }
/** * Adds a copy of the given instruction. * * @return the newly added instruction */ public Instruction add(Instruction ins) { Instruction newIns = createInstruction(ins.getOpcode()); newIns.read(ins); _ci.add(newIns); return newIns; }
/** * Adds a copy of the given instruction. * * @return the newly added instruction */ public Instruction add(Instruction ins) { Instruction newIns = createInstruction(ins.getOpcode()); newIns.read(ins); _ci.add(newIns); return newIns; }
/** * Replaces the last iterated instruction with a copy of the given one. * This method will also make sure that all jump points * that referenced the old opcode are updated correctly. * * @return the newly added instruction * @see ListIterator#set */ public Instruction set(Instruction ins) { Instruction newIns = createInstruction(ins.getOpcode()); newIns.read(ins); _ci.set(newIns); return newIns; }
void read(DataInput in) throws IOException { super.read(in); switch (getOpcode()) { case Constants.GOTOW: case Constants.JSRW: _target.setByteIndex(getByteIndex() + in.readInt()); break; default: _target.setByteIndex(getByteIndex() + in.readShort()); } }
void read(DataInput in) throws IOException { super.read(in); switch (getOpcode()) { case Constants.GOTOW: case Constants.JSRW: _target.setByteIndex(getByteIndex() + in.readInt()); break; default: _target.setByteIndex(getByteIndex() + in.readShort()); } }
/** * Replaces the last iterated instruction with a copy of the given one. * This method will also make sure that all jump points * that referenced the old opcode are updated correctly. * * @return the newly added instruction * @see ListIterator#set */ public Instruction set(Instruction ins) { Instruction newIns = createInstruction(ins.getOpcode()); newIns.read(ins); _ci.set(newIns); return newIns; }
private void readCode(DataInput in, int len) throws IOException { _head.next = _tail; _tail.prev = _head; _size = 0; _byteIndexesValid = true; beforeFirst(); Instruction ins; for (int byteIndex = 0; byteIndex < len;) { ins = createInstruction(in.readUnsignedByte()); _ci.addInternal(ins); ins.byteIndex = byteIndex; ins.read(in); byteIndex += ins.getLength(); } updateInstructionPointers(); beforeFirst(); // sanity check if (!_byteIndexesValid) throw new IllegalStateException(); }
void read(Instruction orig) { super.read(orig); FieldInstruction ins = (FieldInstruction) orig; setField(ins.getFieldDeclarerName(), ins.getFieldName(), ins.getFieldTypeName()); }
private void readCode(DataInput in, int len) throws IOException { _head.next = _tail; _tail.prev = _head; _size = 0; _byteIndexesValid = true; beforeFirst(); Instruction ins; for (int byteIndex = 0; byteIndex < len;) { ins = createInstruction(in.readUnsignedByte()); _ci.addInternal(ins); ins.byteIndex = byteIndex; ins.read(in); byteIndex += ins.getLength(); } updateInstructionPointers(); beforeFirst(); // sanity check if (!_byteIndexesValid) throw new IllegalStateException(); }
void read(Instruction orig) { super.read(orig); FieldInstruction ins = (FieldInstruction) orig; setField(ins.getFieldDeclarerName(), ins.getFieldName(), ins.getFieldTypeName()); }
void read(Instruction orig) { super.read(orig); MethodInstruction ins = (MethodInstruction) orig; setMethod(ins.getMethodDeclarerName(), ins.getMethodName(), ins.getMethodReturnName(), ins.getMethodParamNames()); }
void read(Instruction orig) { super.read(orig); MethodInstruction ins = (MethodInstruction) orig; setMethod(ins.getMethodDeclarerName(), ins.getMethodName(), ins.getMethodReturnName(), ins.getMethodParamNames()); }
_ci.addInternal(ins); if (!(ins instanceof ConstantInstruction)) ins.read(origIns);
_ci.addInternal(ins); if (!(ins instanceof ConstantInstruction)) ins.read(origIns);