(final String descriptor, final boolean visible)
| 648 | } |
| 649 | |
| 650 | @Override |
| 651 | public AnnotationVisitor visitAnnotation(final String descriptor, final boolean visible) { |
| 652 | // Create a ByteVector to hold an 'annotation' JVMS structure. |
| 653 | // See https://docs.oracle.com/javase/specs/jvms/se9/html/jvms-4.html#jvms-4.7.16. |
| 654 | ByteVector annotation = new ByteVector(); |
| 655 | // Write type_index and reserve space for num_element_value_pairs. |
| 656 | annotation.putShort(symbolTable.addConstantUtf8(descriptor)).putShort(0); |
| 657 | if (visible) { |
| 658 | return lastRuntimeVisibleAnnotation = |
| 659 | new AnnotationWriter(symbolTable, annotation, lastRuntimeVisibleAnnotation); |
| 660 | } else { |
| 661 | return lastRuntimeInvisibleAnnotation = |
| 662 | new AnnotationWriter(symbolTable, annotation, lastRuntimeInvisibleAnnotation); |
| 663 | } |
| 664 | } |
| 665 | |
| 666 | @Override |
| 667 | public AnnotationVisitor visitTypeAnnotation( |
nothing calls this directly
no test coverage detected