protected DexWriter(Opcodes opcodes) { this.opcodes = opcodes; SectionProvider sectionProvider = getSectionProvider(); this.stringSection = sectionProvider.getStringSection(); this.typeSection = sectionProvider.getTypeSection(); this.protoSection = sectionProvider.getProtoSection(); this.fieldSection = sectionProvider.getFieldSection(); this.methodSection = sectionProvider.getMethodSection(); this.classSection = sectionProvider.getClassSection(); this.callSiteSection = sectionProvider.getCallSiteSection(); this.methodHandleSection = sectionProvider.getMethodHandleSection(); this.typeListSection = sectionProvider.getTypeListSection(); this.annotationSection = sectionProvider.getAnnotationSection(); this.annotationSetSection = sectionProvider.getAnnotationSetSection(); this.encodedArraySection = sectionProvider.getEncodedArraySection(); overflowableSections = new IndexSection<?>[] { //stringSection, // supports jumbo indexes typeSection, protoSection, fieldSection, methodSection, //classSection, // redundant check: cannot be larger than typeSection callSiteSection, methodHandleSection, }; }
protected DexWriter(Opcodes opcodes) { this.opcodes = opcodes; SectionProvider sectionProvider = getSectionProvider(); this.stringSection = sectionProvider.getStringSection(); this.typeSection = sectionProvider.getTypeSection(); this.protoSection = sectionProvider.getProtoSection(); this.fieldSection = sectionProvider.getFieldSection(); this.methodSection = sectionProvider.getMethodSection(); this.classSection = sectionProvider.getClassSection(); this.callSiteSection = sectionProvider.getCallSiteSection(); this.methodHandleSection = sectionProvider.getMethodHandleSection(); this.typeListSection = sectionProvider.getTypeListSection(); this.annotationSection = sectionProvider.getAnnotationSection(); this.annotationSetSection = sectionProvider.getAnnotationSetSection(); this.encodedArraySection = sectionProvider.getEncodedArraySection(); overflowableSections = new IndexSection<?>[] { //stringSection, // supports jumbo indexes typeSection, protoSection, fieldSection, methodSection, //classSection, // redundant check: cannot be larger than typeSection callSiteSection, methodHandleSection, }; }