Example usage for org.objectweb.asm ClassWriter visitTypeAnnotation

List of usage examples for org.objectweb.asm ClassWriter visitTypeAnnotation

Introduction

In this page you can find the example usage for org.objectweb.asm ClassWriter visitTypeAnnotation.

Prototype

@Override
    public final AnnotationVisitor visitTypeAnnotation(final int typeRef, final TypePath typePath,
            final String descriptor, final boolean visible) 

Source Link

Usage

From source file:com.facebook.buck.jvm.java.abi.TypeAnnotationMirror.java

License:Apache License

@Override
public void appendTo(ClassWriter writer) {
    AnnotationVisitor visitor = writer.visitTypeAnnotation(typeRef, typePath, desc, visible);
    visitValues(visitor);/* w ww  .ja  v  a2  s. co  m*/
    visitor.visitEnd();
}