T
- The type of the annotation.@HashCodeAndEqualsPlugin.Enhance public static class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.OfAnnotationProperty<T extends Annotation> extends MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.WithParameterSupportOnly<T>
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.AbstractBase<S extends Annotation>, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.Simple<S extends Annotation>, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.WithParameterSupportOnly<S extends Annotation>
Modifier | Constructor and Description |
---|---|
protected |
OfAnnotationProperty(Class<T> annotationType,
MethodDescription.InDefinedShape property)
Creates a factory for assigning an annotation property to the annotated parameter.
|
Modifier and Type | Method and Description |
---|---|
Class<T> |
getAnnotationType()
Returns the type of the annotation for this factory.
|
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping |
make(ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<T> annotation)
Creates an offset mapping for a parameter of the method or constructor that is the delegation target.
|
static <S extends Annotation> |
of(Class<S> annotationType,
String property)
Resolves an offset mapping factory where the provided property is assigned to any parameter that
is annotated with the given annotation.
|
make
protected OfAnnotationProperty(Class<T> annotationType, MethodDescription.InDefinedShape property)
annotationType
- The annotation type.property
- The annotation property to resolve.public static <S extends Annotation> MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<S> of(Class<S> annotationType, String property)
S
- The type of the annotation from which the property is read.annotationType
- The annotation type.property
- The name of the property on thepublic Class<T> getAnnotationType()
public MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping make(ParameterDescription.InDefinedShape target, AnnotationDescription.Loadable<T> annotation)
target
- The parameter that is bound to an expression.annotation
- The annotation that was found on the parameter.Copyright © 2014–2025. All rights reserved.