1 |
1 |
2 /* |
2 /* |
3 * Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. |
3 * Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 * |
5 * |
6 * This code is free software; you can redistribute it and/or modify it |
6 * This code is free software; you can redistribute it and/or modify it |
7 * under the terms of the GNU General Public License version 2 only, as |
7 * under the terms of the GNU General Public License version 2 only, as |
8 * published by the Free Software Foundation. Oracle designates this |
8 * published by the Free Software Foundation. Oracle designates this |
477 out.writeShort(entry.name_index); |
477 out.writeShort(entry.name_index); |
478 out.writeShort(entry.signature_index); |
478 out.writeShort(entry.signature_index); |
479 out.writeShort(entry.index); |
479 out.writeShort(entry.index); |
480 } |
480 } |
481 |
481 |
|
482 public Void visitMethodParameters(MethodParameters_attribute attr, ClassOutputStream out) { |
|
483 out.writeByte(attr.method_parameter_table.length); |
|
484 for (MethodParameters_attribute.Entry e : attr.method_parameter_table) { |
|
485 out.writeShort(e.name_index); |
|
486 out.writeInt(e.flags); |
|
487 } |
|
488 return null; |
|
489 } |
|
490 |
482 public Void visitRuntimeVisibleAnnotations(RuntimeVisibleAnnotations_attribute attr, ClassOutputStream out) { |
491 public Void visitRuntimeVisibleAnnotations(RuntimeVisibleAnnotations_attribute attr, ClassOutputStream out) { |
483 annotationWriter.write(attr.annotations, out); |
492 annotationWriter.write(attr.annotations, out); |
484 return null; |
493 return null; |
485 } |
494 } |
486 |
495 |