@Test public void testMethodParameterAnnotationType() { new ByteBuddy() .subclass(Object.class) .modifiers(TypeManifestation.ABSTRACT) .defineMethod(FOO, void.class) .withParameter(Object.class) .annotateParameter(AnnotationDescription.Builder.ofType(Qux.class).build()) .withoutCode() .visit(new AssertionVisitorWrapper(false, Qux.class)) .visit(TypeReferenceAdjustment.strict()) .make(); }
public static TypeReferenceAdjustment strict() { return new TypeReferenceAdjustment(true, none()); }
TypeReferenceAdjustment extends AsmVisitorWrapper.AbstractBase { public static TypeReferenceAdjustment strict() { return new TypeReferenceAdjustment(true, none()); } }
TypeReferenceAdjustment extends AsmVisitorWrapper.AbstractBase { public static TypeReferenceAdjustment strict() { return new TypeReferenceAdjustment(true, none()); } protected  TypeReferenceAdjustment(boolean strict, ElementMatcher.Junction<? super TypeDescription> filter); }
TypeReferenceAdjustment extends AsmVisitorWrapper.AbstractBase { public static TypeReferenceAdjustment strict() { return new TypeReferenceAdjustment(true, none()); } protected  TypeReferenceAdjustment(boolean strict, ElementMatcher.Junction<? super TypeDescription> filter); static TypeReferenceAdjustment strict(); static TypeReferenceAdjustment relaxed(); TypeReferenceAdjustment filter(ElementMatcher<? super TypeDescription> filter); ClassVisitor wrap(TypeDescription instrumentedType,
                             ClassVisitor classVisitor,
                             Implementation.Context implementationContext,
                             TypePool typePool,
                             FieldList<FieldDescription.InDefinedShape> fields,
                             MethodList<?> methods,
                             int writerFlags,
                             int readerFlags); }
TypeReferenceAdjustment extends AsmVisitorWrapper.AbstractBase { public static TypeReferenceAdjustment strict() { return new TypeReferenceAdjustment(true, none()); } protected  TypeReferenceAdjustment(boolean strict, ElementMatcher.Junction<? super TypeDescription> filter); static TypeReferenceAdjustment strict(); static TypeReferenceAdjustment relaxed(); TypeReferenceAdjustment filter(ElementMatcher<? super TypeDescription> filter); ClassVisitor wrap(TypeDescription instrumentedType,
                             ClassVisitor classVisitor,
                             Implementation.Context implementationContext,
                             TypePool typePool,
                             FieldList<FieldDescription.InDefinedShape> fields,
                             MethodList<?> methods,
                             int writerFlags,
                             int readerFlags);  }