T
- The type of the annotation.@HashCodeAndEqualsPlugin.Enhance public static class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Resolved.Factory<T extends Annotation> extends Object implements MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<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>
Constructor and Description |
---|
Factory(Class<T> annotationType,
FieldDescription fieldDescription,
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Access access)
Creates a new factory for a field access handle.
|
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(MethodDescription.InDefinedShape target,
AnnotationDescription.Loadable<T> annotation)
Creates an offset mapping for an annotation that was found on a non-static method.
|
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.
|
public Factory(Class<T> annotationType, FieldDescription fieldDescription, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Access access)
annotationType
- The annotation type.fieldDescription
- The field being accessed.access
- The type of access.public Class<T> getAnnotationType()
getAnnotationType
in interface MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<T extends Annotation>
public MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping make(MethodDescription.InDefinedShape target, AnnotationDescription.Loadable<T> annotation)
make
in interface MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<T extends Annotation>
target
- The method that is the delegated to.annotation
- The annotation that was found on the method.public MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping make(ParameterDescription.InDefinedShape target, AnnotationDescription.Loadable<T> annotation)
make
in interface MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<T extends Annotation>
target
- The parameter that is bound to an expression.annotation
- The annotation that was found on the parameter.Copyright © 2014–2023. All rights reserved.