Example usage for org.objectweb.asm.tree AnnotationNode AnnotationNode

List of usage examples for org.objectweb.asm.tree AnnotationNode AnnotationNode

Introduction

In this page you can find the example usage for org.objectweb.asm.tree AnnotationNode AnnotationNode.

Prototype

public AnnotationNode(final int api, final String descriptor) 

Source Link

Document

Constructs a new AnnotationNode .

Usage

From source file:com.heliosapm.MethodInstrumentor.java

License:Open Source License

public AnnotationVisitor visitAnnotation(final String desc, final boolean visible) {
    return new AnnotationNode(api, desc) {
        @Override/*from  w ww  .  j  a va 2s.c om*/
        public void visitEnd() {
            // put your annotation transformation code here
            accept(mv.visitAnnotation(desc, visible));
            log("AnnViz Accepted");
        }
    };
}