Class MemberSubstitution.Substitution.Chain.Step.ForDelegation.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 assigning an annotation property to the annotated parameter.
        Parameters:
        annotationType - The annotation type.
        property - The annotation property to resolve.
    • Method Detail

      • of

        public static <S extends java.lang.annotation.Annotation> MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<S> of​(java.lang.Class<S> annotationType,
                                                                                                                                                       java.lang.String property)
        Resolves an offset mapping factory where the provided property is assigned to any parameter that is annotated with the given annotation.
        Type Parameters:
        S - The type of the annotation from which the property is read.
        Parameters:
        annotationType - The annotation type.
        property - The name of the property on the
        Returns:
        An appropriate factory for an offset mapping.
      • getAnnotationType

        public java.lang.Class<T> getAnnotationType()
        Returns the type of the annotation for this factory.
        Returns:
        The type of the annotation for this factory.