Search in sources :

Example 21 with AnnotationVisitor

use of jdk.internal.org.objectweb.asm.AnnotationVisitor in project Bytecoder by mirkosertic.

the class TraceClassVisitor method visitTypeAnnotation.

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

Example 22 with AnnotationVisitor

use of jdk.internal.org.objectweb.asm.AnnotationVisitor in project Bytecoder by mirkosertic.

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)

Example 23 with AnnotationVisitor

use of jdk.internal.org.objectweb.asm.AnnotationVisitor in project Bytecoder by mirkosertic.

the class TraceMethodVisitor method visitTryCatchAnnotation.

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

Example 24 with AnnotationVisitor

use of jdk.internal.org.objectweb.asm.AnnotationVisitor in project Bytecoder by mirkosertic.

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 25 with AnnotationVisitor

use of jdk.internal.org.objectweb.asm.AnnotationVisitor in project Bytecoder by mirkosertic.

the class TraceMethodVisitor method visitAnnotation.

@Override
public AnnotationVisitor visitAnnotation(final String desc, final boolean visible) {
    Printer p = this.p.visitMethodAnnotation(desc, visible);
    AnnotationVisitor av = mv == null ? null : mv.visitAnnotation(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