T
- The type of the annotation.@HashCodeAndEqualsPlugin.Enhance public static class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Resolved.Factory<T extends Annotation> extends MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.AbstractBase<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)
Creates a factory for reading a given field.
|
Factory(Class<T> annotationType,
FieldDescription fieldDescription,
Assigner.Typing typing)
Creates a factory for reading a given field.
|
Modifier and Type | Method and Description |
---|---|
Class<T> |
getAnnotationType()
Returns the type of the annotation for this factory.
|
protected MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping |
make(TypeDescription.Generic target,
AnnotationDescription.Loadable<T> annotation)
Returns an offset mapping for the bound method target or parameter.
|
make, make
public Factory(Class<T> annotationType, FieldDescription fieldDescription)
annotationType
- The annotation type.fieldDescription
- The field being accessed.public Factory(Class<T> annotationType, FieldDescription fieldDescription, Assigner.Typing typing)
annotationType
- The annotation type.fieldDescription
- The field being accessed.typing
- The typing to use.public Class<T> getAnnotationType()
protected MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping make(TypeDescription.Generic target, AnnotationDescription.Loadable<T> annotation)
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.AbstractBase
make
in class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.AbstractBase<T extends Annotation>
target
- The declaring type of a non-static method or a parameter type.annotation
- The annotation that was found on the method or parameter.Copyright © 2014–2025. All rights reserved.