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

    • Field Detail

      • annotationType

        private final java.lang.Class<T extends java.lang.annotation.Annotation> annotationType
        The annotation type.
    • 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.
      • getAnnotationType

        public java.lang.Class<T> getAnnotationType()
        Returns the annotation type of this factory.
        Specified by:
        getAnnotationType in interface Advice.OffsetMapping.Factory<T extends java.lang.annotation.Annotation>
        Returns:
        The factory's annotation type.