< 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




 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 (Record_attribute.Param_data e: attr.params)
 648                 writeParamData(e, out);
 649             new AttributeWriter().write(attr.attributes, out);
 650             return null;
 651         }
 652 
 653         protected void writeParamData(Record_attribute.Param_data pd, ClassOutputStream out) {
 654             out.writeShort(pd.param_name_index);
 655             out.writeShort(pd.param_flags);
 656             out.writeShort(pd.param_descriptor);
 657             out.writeShort(pd.param_signature);
 658         }
 659 
 660         @Override
 661         public Void visitRuntimeInvisibleAnnotations(RuntimeInvisibleAnnotations_attribute attr, ClassOutputStream out) {
 662             annotationWriter.write(attr.annotations, out);
 663             return null;
 664         }
 665 
 666         @Override
 667         public Void visitRuntimeInvisibleParameterAnnotations(RuntimeInvisibleParameterAnnotations_attribute attr, ClassOutputStream out) {
 668             out.writeByte(attr.parameter_annotations.length);
 669             for (Annotation[] annos: attr.parameter_annotations)
 670                 annotationWriter.write(annos, out);
 671             return null;
 672         }
 673 
 674         @Override
 675         public Void visitRuntimeInvisibleTypeAnnotations(RuntimeInvisibleTypeAnnotations_attribute attr, ClassOutputStream out) {
 676             annotationWriter.write(attr.annotations, out);
 677             return null;
 678         }
 679 
 680         @Override


< prev index next >