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

Method visitAnnotation

src/jvm/clojure/asm/ClassWriter.java:314–328  ·  view source on GitHub ↗
(final String descriptor, final boolean visible)

Source from the content-addressed store, hash-verified

312 }
313
314 @Override
315 public final AnnotationVisitor visitAnnotation(final String descriptor, final boolean visible) {
316 // Create a ByteVector to hold an 'annotation' JVMS structure.
317 // See https://docs.oracle.com/javase/specs/jvms/se9/html/jvms-4.html#jvms-4.7.16.
318 ByteVector annotation = new ByteVector();
319 // Write type_index and reserve space for num_element_value_pairs.
320 annotation.putShort(symbolTable.addConstantUtf8(descriptor)).putShort(0);
321 if (visible) {
322 return lastRuntimeVisibleAnnotation =
323 new AnnotationWriter(symbolTable, annotation, lastRuntimeVisibleAnnotation);
324 } else {
325 return lastRuntimeInvisibleAnnotation =
326 new AnnotationWriter(symbolTable, annotation, lastRuntimeInvisibleAnnotation);
327 }
328 }
329
330 @Override
331 public final AnnotationVisitor visitTypeAnnotation(

Callers

nothing calls this directly

Calls 2

putShortMethod · 0.95
addConstantUtf8Method · 0.80

Tested by

no test coverage detected