MCPcopy Index your code
hub / github.com/clojure/clojure / visitAnnotation

Method visitAnnotation

src/jvm/clojure/asm/MethodWriter.java:650–664  ·  view source on GitHub ↗
(final String descriptor, final boolean visible)

Source from the content-addressed store, hash-verified

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(

Callers

nothing calls this directly

Calls 2

putShortMethod · 0.95
addConstantUtf8Method · 0.80

Tested by

no test coverage detected