/** * Applies the given stack map frame visitor to all stack map frames. */ public void stackMapFramesAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, StackMapFrameVisitor stackMapFrameVisitor) { int offset = 0; for (int index = 0; index < u2stackMapFramesCount; index++) { StackMapFrame stackMapFrame = stackMapFrames[index]; // Note that the byte code offset is computed differently for the // first stack map frame. offset += stackMapFrame.getOffsetDelta() + (index == 0 ? 0 : 1); stackMapFrame.accept(clazz, method, codeAttribute, offset, stackMapFrameVisitor); } } }
/** * Applies the given stack map frame visitor to all stack map frames. */ public void stackMapFramesAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, StackMapFrameVisitor stackMapFrameVisitor) { int offset = 0; for (int index = 0; index < u2stackMapFramesCount; index++) { StackMapFrame stackMapFrame = stackMapFrames[index]; // Note that the byte code offset is computed differently for the // first stack map frame. offset += stackMapFrame.getOffsetDelta() + (index == 0 ? 0 : 1); stackMapFrame.accept(clazz, method, codeAttribute, offset, stackMapFrameVisitor); } } }
/** * Applies the given stack map frame visitor to all stack map frames. */ public void stackMapFramesAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, StackMapFrameVisitor stackMapFrameVisitor) { int offset = 0; for (int index = 0; index < u2stackMapFramesCount; index++) { StackMapFrame stackMapFrame = stackMapFrames[index]; // Note that the byte code offset is computed differently for the // first stack map frame. offset += stackMapFrame.getOffsetDelta() + (index == 0 ? 0 : 1); stackMapFrame.accept(clazz, method, codeAttribute, offset, stackMapFrameVisitor); } } }
/** * Applies the given stack map frame visitor to all stack map frames. */ public void stackMapFramesAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, StackMapFrameVisitor stackMapFrameVisitor) { int offset = 0; for (int index = 0; index < u2stackMapFramesCount; index++) { StackMapFrame stackMapFrame = stackMapFrames[index]; // Note that the byte code offset is computed differently for the // first stack map frame. offset += stackMapFrame.getOffsetDelta() + (index == 0 ? 0 : 1); stackMapFrame.accept(clazz, method, codeAttribute, offset, stackMapFrameVisitor); } } }