Search in sources :

Example 11 with AnnotationVisitor

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

the class TraceMethodVisitor method visitParameterAnnotation.

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

Example 12 with AnnotationVisitor

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

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

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

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

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

the class TraceMethodVisitor method visitLocalVariableAnnotation.

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

Example 15 with AnnotationVisitor

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

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)

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