pos
. Branch offsets and the exception table in the method body are also updated. The inserted gap is filled with NOP. The gap length may be extended to a multiple of 4. Suppose that the instruction at the given index is at the beginning of a block statement. If the gap is inclusive, then it is included within that block. If the gap is exclusive, then it is excluded from that block.
The index at which the gap is actually inserted might be different from pos since some other bytes might be inserted at other positions (e.g. to change GOTO
to GOTO_W
). The index is available from the Gap
object returned by this method.
Suppose that the gap is inserted at the position of the next instruction that would be returned by next()
(not the last instruction returned by the last call to next()
). The next instruction returned by next()
after the gap is inserted is still the same instruction. It is not NOP
at the first byte of the inserted gap.
@param pos the index at which a gap is inserted.
@param length gap length.
@param exclusive true if exclusive, otherwise false.
@return the position and the length of the inserted gap.
@since 3.11
|
|
|
|