Search in sources :

Example 6 with AnnotationVisitor

use of jdk.internal.org.objectweb.asm.AnnotationVisitor in project jdk8u_jdk by JetBrains.

the class TraceClassVisitor method visitAnnotation.

@Override
public AnnotationVisitor visitAnnotation(final String desc, final boolean visible) {
    Printer p = this.p.visitClassAnnotation(desc, visible);
    AnnotationVisitor av = cv == null ? null : cv.visitAnnotation(desc, visible);
    return new TraceAnnotationVisitor(av, p);
}
Also used : AnnotationVisitor(jdk.internal.org.objectweb.asm.AnnotationVisitor)

Example 7 with AnnotationVisitor

use of jdk.internal.org.objectweb.asm.AnnotationVisitor in project jdk8u_jdk by JetBrains.

the class TraceFieldVisitor method visitAnnotation.

@Override
public AnnotationVisitor visitAnnotation(final String desc, final boolean visible) {
    Printer p = this.p.visitFieldAnnotation(desc, visible);
    AnnotationVisitor av = fv == null ? null : fv.visitAnnotation(desc, visible);
    return new TraceAnnotationVisitor(av, p);
}
Also used : AnnotationVisitor(jdk.internal.org.objectweb.asm.AnnotationVisitor)

Example 8 with AnnotationVisitor

use of jdk.internal.org.objectweb.asm.AnnotationVisitor in project jdk8u_jdk by JetBrains.

the class TraceMethodVisitor method visitAnnotationDefault.

@Override
public AnnotationVisitor visitAnnotationDefault() {
    Printer p = this.p.visitAnnotationDefault();
    AnnotationVisitor av = mv == null ? null : mv.visitAnnotationDefault();
    return new TraceAnnotationVisitor(av, p);
}
Also used : AnnotationVisitor(jdk.internal.org.objectweb.asm.AnnotationVisitor)

Example 9 with AnnotationVisitor

use of jdk.internal.org.objectweb.asm.AnnotationVisitor in project jdk8u_jdk by JetBrains.

the class TraceMethodVisitor method visitInsnAnnotation.

@Override
public AnnotationVisitor visitInsnAnnotation(int typeRef, TypePath typePath, String desc, boolean visible) {
    Printer p = this.p.visitInsnAnnotation(typeRef, typePath, desc, visible);
    AnnotationVisitor av = mv == null ? null : mv.visitInsnAnnotation(typeRef, typePath, desc, visible);
    return new TraceAnnotationVisitor(av, p);
}
Also used : AnnotationVisitor(jdk.internal.org.objectweb.asm.AnnotationVisitor)

Example 10 with AnnotationVisitor

use of jdk.internal.org.objectweb.asm.AnnotationVisitor in project jdk8u_jdk by JetBrains.

the class TraceMethodVisitor method visitTypeAnnotation.

@Override
public AnnotationVisitor visitTypeAnnotation(int typeRef, TypePath typePath, String desc, boolean visible) {
    Printer p = this.p.visitMethodTypeAnnotation(typeRef, typePath, desc, visible);
    AnnotationVisitor av = mv == null ? null : mv.visitTypeAnnotation(typeRef, typePath, desc, visible);
    return new TraceAnnotationVisitor(av, p);
}
Also used : AnnotationVisitor(jdk.internal.org.objectweb.asm.AnnotationVisitor)

Aggregations

AnnotationVisitor (jdk.internal.org.objectweb.asm.AnnotationVisitor)31 ArrayList (java.util.ArrayList)2 List (java.util.List)2 ClassReader (jdk.internal.org.objectweb.asm.ClassReader)1 ClassVisitor (jdk.internal.org.objectweb.asm.ClassVisitor)1 ClassWriter (jdk.internal.org.objectweb.asm.ClassWriter)1 FieldVisitor (jdk.internal.org.objectweb.asm.FieldVisitor)1 MethodVisitor (jdk.internal.org.objectweb.asm.MethodVisitor)1