public void visitLookUpSwitchInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, LookUpSwitchInstruction lookUpSwitchInstruction) { // Update the default jump offset, relative to the precise new offset. lookUpSwitchInstruction.defaultOffset = newBranchOffset(offset, lookUpSwitchInstruction.defaultOffset, newOffset); // Update the jump offsets, relative to the precise new offset. newJumpOffsets(offset, lookUpSwitchInstruction.jumpOffsets, newOffset); // Write out the instruction. instructionWriter.visitLookUpSwitchInstruction(clazz, method, codeAttribute, newOffset, lookUpSwitchInstruction); newOffset += lookUpSwitchInstruction.length(newOffset); }
public void visitLookUpSwitchInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, LookUpSwitchInstruction lookUpSwitchInstruction) { // Adjust the default jump offset. lookUpSwitchInstruction.defaultOffset = remapBranchOffset(offset, lookUpSwitchInstruction.defaultOffset); // Adjust the jump offsets. remapJumpOffsets(offset, lookUpSwitchInstruction.jumpOffsets); // Write out the instruction. instructionWriter.visitLookUpSwitchInstruction(clazz, method, codeAttribute, newOffset, lookUpSwitchInstruction); newOffset += lookUpSwitchInstruction.length(newOffset); }
public void visitLookUpSwitchInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, LookUpSwitchInstruction lookUpSwitchInstruction) { // Update the default jump offset, relative to the precise new offset. lookUpSwitchInstruction.defaultOffset = newBranchOffset(offset, lookUpSwitchInstruction.defaultOffset, newOffset); // Update the jump offsets, relative to the precise new offset. newJumpOffsets(offset, lookUpSwitchInstruction.jumpOffsets, newOffset); // Write out the instruction. instructionWriter.visitLookUpSwitchInstruction(clazz, method, codeAttribute, newOffset, lookUpSwitchInstruction); newOffset += lookUpSwitchInstruction.length(newOffset); }
public void visitLookUpSwitchInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, LookUpSwitchInstruction lookUpSwitchInstruction) { // Update the default jump offset, relative to the precise new offset. lookUpSwitchInstruction.defaultOffset = newBranchOffset(offset, lookUpSwitchInstruction.defaultOffset, newOffset); // Update the jump offsets, relative to the precise new offset. newJumpOffsets(offset, lookUpSwitchInstruction.jumpOffsets, newOffset); // Write out the instruction. instructionWriter.visitLookUpSwitchInstruction(clazz, method, codeAttribute, newOffset, lookUpSwitchInstruction); newOffset += lookUpSwitchInstruction.length(newOffset); }