public AnnotationVisitor visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String desc, boolean visible) { return AnnotationVisitorTee.getInstance(mv1.visitLocalVariableAnnotation(typeRef, typePath, start, end, index, desc, visible), mv2.visitLocalVariableAnnotation(typeRef, typePath, start, end, index, desc, visible)); } }
public AnnotationVisitor visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String desc, boolean visible) { return AnnotationVisitorTee.getInstance(mv1.visitLocalVariableAnnotation(typeRef, typePath, start, end, index, desc, visible), mv2.visitLocalVariableAnnotation(typeRef, typePath, start, end, index, desc, visible)); } }
return mv.visitLocalVariableAnnotation( typeRef, typePath, start, end, index, descriptor, visible);
methodVisitor.visitLocalVariableAnnotation( context.currentTypeAnnotationTarget, context.currentTypeAnnotationTargetPath, methodVisitor.visitLocalVariableAnnotation( context.currentTypeAnnotationTarget, context.currentTypeAnnotationTargetPath,
@Override public AnnotationVisitor visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String desc, boolean visible) { Type t = Type.getType(desc); int[] newIndex = new int[index.length]; for (int i = 0; i < newIndex.length; ++i) { newIndex[i] = remap(index[i], t); } return mv.visitLocalVariableAnnotation(typeRef, typePath, start, end, newIndex, desc, visible); }
@Override public AnnotationVisitor visitLocalVariableAnnotation(final int typeRef, final TypePath typePath, final Label[] start, final Label[] end, final int[] index, final String desc, final boolean visible) { fsmCursor.transition("visitLocalVariableAnnotation"); final AnnotationVisitor annotationVisitor = super .visitLocalVariableAnnotation(typeRef, typePath, start, end, index, desc, visible); return annotationVisitor; // TODO: add CheckAnnotationVisitorFsm }
@Override public AnnotationVisitor visitLocalVariableAnnotation( final int typeRef, final TypePath typePath, final Label[] start, final Label[] end, final int[] index, final String descriptor, final boolean visible) { Type type = Type.getType(descriptor); int[] remappedIndex = new int[index.length]; for (int i = 0; i < remappedIndex.length; ++i) { remappedIndex[i] = remap(index[i], type); } return super.visitLocalVariableAnnotation( typeRef, typePath, start, end, remappedIndex, descriptor, visible); }
@Override public AnnotationVisitor visitLocalVariableAnnotation( final int typeRef, final TypePath typePath, final Label[] start, final Label[] end, final int[] index, final String descriptor, final boolean visible) { Type type = Type.getType(descriptor); int[] remappedIndex = new int[index.length]; for (int i = 0; i < remappedIndex.length; ++i) { remappedIndex[i] = remap(index[i], type); } return super.visitLocalVariableAnnotation( typeRef, typePath, start, end, remappedIndex, descriptor, visible); }
@Override public AnnotationVisitor visitLocalVariableAnnotation( final int typeRef, final TypePath typePath, final Label[] start, final Label[] end, final int[] index, final String descriptor, final boolean visible) { Type type = Type.getType(descriptor); int[] remappedIndex = new int[index.length]; for (int i = 0; i < remappedIndex.length; ++i) { remappedIndex[i] = remap(index[i], type); } return super.visitLocalVariableAnnotation( typeRef, typePath, start, end, remappedIndex, descriptor, visible); }
@Override public AnnotationVisitor visitLocalVariableAnnotation( int i, TypePath typePath, Label[] labels, Label[] labels1, int[] ints, String s, boolean b) { log.traceEntry("i={} s={}", i, s); final AnnotationVisitor annotationVisitor = super.visitLocalVariableAnnotation(i, typePath, labels, labels1, ints, s, b); return log.traceExit(annotationVisitor); }
@Override public AnnotationVisitor visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String desc, boolean visible) { AnnotationVisitor av = super.visitLocalVariableAnnotation(typeRef, typePath, start, end, index, remapper.mapDesc(desc), visible); return av == null ? av : new AnnotationRemapper(av, remapper); } }
@Override public AnnotationVisitor visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String desc, boolean visible) { AnnotationVisitor av = super.visitLocalVariableAnnotation(typeRef, typePath, start, end, index, remapper.mapDesc(desc), visible); return av == null ? av : new AnnotationRemapper(av, remapper); } }
@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); }
/** * Makes the given visitor visit this type annotation. * * @param methodVisitor the visitor that must visit this annotation. * @param visible {@literal true} if the annotation is visible at runtime. */ public void accept(final MethodVisitor methodVisitor, final boolean visible) { Label[] startLabels = new Label[this.start.size()]; Label[] endLabels = new Label[this.end.size()]; int[] indices = new int[this.index.size()]; for (int i = 0, n = startLabels.length; i < n; ++i) { startLabels[i] = this.start.get(i).getLabel(); endLabels[i] = this.end.get(i).getLabel(); indices[i] = this.index.get(i); } accept( methodVisitor.visitLocalVariableAnnotation( typeRef, typePath, startLabels, endLabels, indices, desc, visible)); } }
/** * Makes the given visitor visit this type annotation. * * @param mv * the visitor that must visit this annotation. * @param visible * <tt>true</tt> if the annotation is visible at runtime. */ public void accept(final MethodVisitor mv, boolean visible) { Label[] start = new Label[this.start.size()]; Label[] end = new Label[this.end.size()]; int[] index = new int[this.index.size()]; for (int i = 0; i < start.length; ++i) { start[i] = this.start.get(i).getLabel(); end[i] = this.end.get(i).getLabel(); index[i] = this.index.get(i); } accept(mv.visitLocalVariableAnnotation(typeRef, typePath, start, end, index, desc, true)); } }
@Override public AnnotationVisitor visitLocalVariableAnnotation( final int typeRef, final TypePath typePath, final Label[] start, final Label[] end, final int[] index, final String descriptor, final boolean visible) { AnnotationVisitor annotationVisitor = super.visitLocalVariableAnnotation( typeRef, typePath, start, end, index, remapper.mapDesc(descriptor), visible); return annotationVisitor == null ? annotationVisitor : new AnnotationRemapper(api, annotationVisitor, remapper); } }
@Override public AnnotationVisitor visitLocalVariableAnnotation( final int typeRef, final TypePath typePath, final Label[] start, final Label[] end, final int[] index, final String descriptor, final boolean visible) { Printer annotationPrinter = p.visitLocalVariableAnnotation(typeRef, typePath, start, end, index, descriptor, visible); return new TraceAnnotationVisitor( super.visitLocalVariableAnnotation( typeRef, typePath, start, end, index, descriptor, visible), annotationPrinter); }
@Override public AnnotationVisitor visitLocalVariableAnnotation( final int typeRef, final TypePath typePath, final Label[] start, final Label[] end, final int[] index, final String descriptor, final boolean visible) { Printer annotationPrinter = p.visitLocalVariableAnnotation(typeRef, typePath, start, end, index, descriptor, visible); return new TraceAnnotationVisitor( super.visitLocalVariableAnnotation( typeRef, typePath, start, end, index, descriptor, visible), annotationPrinter); }
@Override public AnnotationVisitor visitLocalVariableAnnotation( final int typeRef, final TypePath typePath, final Label[] start, final Label[] end, final int[] index, final String descriptor, final boolean visible) { AnnotationVisitor annotationVisitor = super.visitLocalVariableAnnotation( typeRef, typePath, start, end, index, remapper.mapDesc(descriptor), visible); return annotationVisitor == null ? annotationVisitor : new AnnotationRemapper(api, annotationVisitor, remapper); } }
@Override public AnnotationVisitor visitLocalVariableAnnotation( final int typeRef, final TypePath typePath, final Label[] start, final Label[] end, final int[] index, final String descriptor, final boolean visible) { AnnotationVisitor annotationVisitor = super.visitLocalVariableAnnotation( typeRef, typePath, start, end, index, remapper.mapDesc(descriptor), visible); return annotationVisitor == null ? annotationVisitor : new AnnotationRemapper(api, annotationVisitor, remapper); } }