< prev index next >

src/jdk.jdeps/share/classes/com/sun/tools/classfile/ClassWriter.java

Print this page




 625             out.writeShort(attr.resolution_flags);
 626             return null;
 627         }
 628 
 629         @Override
 630         public Void visitModuleTarget(ModuleTarget_attribute attr, ClassOutputStream out) {
 631             out.writeShort(attr.target_platform_index);
 632             return null;
 633         }
 634 
 635         @Override
 636         public Void visitNestMembers(NestMembers_attribute attr, ClassOutputStream out) {
 637             out.writeShort(attr.members_indexes.length);
 638             for (int i : attr.members_indexes) {
 639                 out.writeShort(i);
 640             }
 641             return null;
 642         }
 643 
 644         @Override








 645         public Void visitRuntimeInvisibleAnnotations(RuntimeInvisibleAnnotations_attribute attr, ClassOutputStream out) {
 646             annotationWriter.write(attr.annotations, out);
 647             return null;
 648         }
 649 
 650         @Override
 651         public Void visitRuntimeInvisibleParameterAnnotations(RuntimeInvisibleParameterAnnotations_attribute attr, ClassOutputStream out) {
 652             out.writeByte(attr.parameter_annotations.length);
 653             for (Annotation[] annos: attr.parameter_annotations)
 654                 annotationWriter.write(annos, out);
 655             return null;
 656         }
 657 
 658         @Override
 659         public Void visitRuntimeInvisibleTypeAnnotations(RuntimeInvisibleTypeAnnotations_attribute attr, ClassOutputStream out) {
 660             annotationWriter.write(attr.annotations, out);
 661             return null;
 662         }
 663 
 664         @Override
 665         public Void visitRuntimeVisibleAnnotations(RuntimeVisibleAnnotations_attribute attr, ClassOutputStream out) {
 666             annotationWriter.write(attr.annotations, out);
 667             return null;
 668         }
 669 
 670         @Override
 671         public Void visitRuntimeVisibleParameterAnnotations(RuntimeVisibleParameterAnnotations_attribute attr, ClassOutputStream out) {
 672             out.writeByte(attr.parameter_annotations.length);
 673             for (Annotation[] annos: attr.parameter_annotations)
 674                 annotationWriter.write(annos, out);
 675             return null;
 676         }
 677 
 678         @Override
 679         public Void visitRuntimeVisibleTypeAnnotations(RuntimeVisibleTypeAnnotations_attribute attr, ClassOutputStream out) {
 680             annotationWriter.write(attr.annotations, out);










 681             return null;
 682         }
 683 
 684         @Override
 685         public Void visitSignature(Signature_attribute attr, ClassOutputStream out) {
 686             out.writeShort(attr.signature_index);
 687             return null;
 688         }
 689 
 690         @Override
 691         public Void visitSourceDebugExtension(SourceDebugExtension_attribute attr, ClassOutputStream out) {
 692             out.write(attr.debug_extension, 0, attr.debug_extension.length);
 693             return null;
 694         }
 695 
 696         @Override
 697         public Void visitSourceFile(SourceFile_attribute attr, ClassOutputStream out) {
 698             out.writeShort(attr.sourcefile_index);
 699             return null;
 700         }




 625             out.writeShort(attr.resolution_flags);
 626             return null;
 627         }
 628 
 629         @Override
 630         public Void visitModuleTarget(ModuleTarget_attribute attr, ClassOutputStream out) {
 631             out.writeShort(attr.target_platform_index);
 632             return null;
 633         }
 634 
 635         @Override
 636         public Void visitNestMembers(NestMembers_attribute attr, ClassOutputStream out) {
 637             out.writeShort(attr.members_indexes.length);
 638             for (int i : attr.members_indexes) {
 639                 out.writeShort(i);
 640             }
 641             return null;
 642         }
 643 
 644         @Override
 645         public Void visitRecord(Record_attribute attr, ClassOutputStream out) {
 646             out.writeShort(attr.num_params);
 647             for (int e: attr.accessors)
 648                 out.writeShort(e);
 649             return null;
 650         }
 651 
 652         @Override
 653         public Void visitRuntimeInvisibleAnnotations(RuntimeInvisibleAnnotations_attribute attr, ClassOutputStream out) {
 654             annotationWriter.write(attr.annotations, out);
 655             return null;
 656         }
 657 
 658         @Override
 659         public Void visitRuntimeInvisibleParameterAnnotations(RuntimeInvisibleParameterAnnotations_attribute attr, ClassOutputStream out) {
 660             out.writeByte(attr.parameter_annotations.length);
 661             for (Annotation[] annos: attr.parameter_annotations)
 662                 annotationWriter.write(annos, out);
 663             return null;
 664         }
 665 
 666         @Override
 667         public Void visitRuntimeInvisibleTypeAnnotations(RuntimeInvisibleTypeAnnotations_attribute attr, ClassOutputStream out) {
 668             annotationWriter.write(attr.annotations, out);
 669             return null;
 670         }
 671 
 672         @Override
 673         public Void visitRuntimeVisibleAnnotations(RuntimeVisibleAnnotations_attribute attr, ClassOutputStream out) {
 674             annotationWriter.write(attr.annotations, out);
 675             return null;
 676         }
 677 
 678         @Override
 679         public Void visitRuntimeVisibleParameterAnnotations(RuntimeVisibleParameterAnnotations_attribute attr, ClassOutputStream out) {
 680             out.writeByte(attr.parameter_annotations.length);
 681             for (Annotation[] annos: attr.parameter_annotations)
 682                 annotationWriter.write(annos, out);
 683             return null;
 684         }
 685 
 686         @Override
 687         public Void visitRuntimeVisibleTypeAnnotations(RuntimeVisibleTypeAnnotations_attribute attr, ClassOutputStream out) {
 688             annotationWriter.write(attr.annotations, out);
 689             return null;
 690         }
 691 
 692         @Override
 693         public Void visitPermittedSubtypes(PermittedSubtypes_attribute attr, ClassOutputStream out) {
 694             int n = attr.subtypes.length;
 695             out.writeShort(n);
 696             for (int i = 0 ; i < n ; i++) {
 697                 out.writeShort(attr.subtypes[i]);
 698             }
 699             return null;
 700         }
 701 
 702         @Override
 703         public Void visitSignature(Signature_attribute attr, ClassOutputStream out) {
 704             out.writeShort(attr.signature_index);
 705             return null;
 706         }
 707 
 708         @Override
 709         public Void visitSourceDebugExtension(SourceDebugExtension_attribute attr, ClassOutputStream out) {
 710             out.write(attr.debug_extension, 0, attr.debug_extension.length);
 711             return null;
 712         }
 713 
 714         @Override
 715         public Void visitSourceFile(SourceFile_attribute attr, ClassOutputStream out) {
 716             out.writeShort(attr.sourcefile_index);
 717             return null;
 718         }


< prev index next >