Class Advice.OffsetMapping.ForStackManipulation.OfAnnotationProperty<T extends java.lang.annotation.Annotation>

    • Constructor Detail

      • OfAnnotationProperty

        protected OfAnnotationProperty​(java.lang.Class<T> annotationType,
                                       MethodDescription.InDefinedShape property)
        Creates a factory for binding an annotation property.
        Parameters:
        annotationType - The annotation type.
        property - The annotation property.
    • Method Detail

      • of

        public static <S extends java.lang.annotation.Annotation> Advice.OffsetMapping.Factory<S> of​(java.lang.Class<S> annotationType,
                                                                                                     java.lang.String property)
        Creates a factory for an offset mapping that binds an annotation property.
        Type Parameters:
        S - The annotation type.
        Parameters:
        annotationType - The annotation type to bind.
        property - The property to bind.
        Returns:
        A factory for binding a property of the annotation type.