Class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Resolved.Factory<T extends Annotation>
java.lang.Object
net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.AbstractBase<T>
net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Resolved.Factory<T>
- Type Parameters:
T- The type of the annotation.
- All Implemented Interfaces:
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<T>
- Enclosing class:
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Resolved
@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>
A factory for creating a resolved offset mapping of a field value.
-
Nested Class Summary
Nested classes/interfaces inherited from interface MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.AbstractBase<S>, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.Simple<S>, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.WithParameterSupportOnly<S> -
Field Summary
FieldsModifier and TypeFieldDescriptionThe annotation type.private final FieldDescriptionThe field being accessed.private final Assigner.TypingThe typing to use. -
Constructor Summary
ConstructorsConstructorDescriptionFactory(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. -
Method Summary
Modifier and TypeMethodDescriptionReturns the type of the annotation for this factory.make(TypeDescription.Generic target, AnnotationDescription.Loadable<T> annotation) Returns an offset mapping for the bound method target or parameter.Methods inherited from class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.AbstractBase
make, make
-
Field Details
-
annotationType
The annotation type. -
fieldDescription
The field being accessed. -
typing
The typing to use.
-
-
Constructor Details
-
Factory
Creates a factory for reading a given field.- Parameters:
annotationType- The annotation type.fieldDescription- The field being accessed.
-
Factory
Creates a factory for reading a given field.- Parameters:
annotationType- The annotation type.fieldDescription- The field being accessed.typing- The typing to use.
-
-
Method Details
-
getAnnotationType
-
make
protected MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping make(TypeDescription.Generic target, AnnotationDescription.Loadable<T> annotation) Description copied from class:MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.AbstractBaseReturns an offset mapping for the bound method target or parameter.- Specified by:
makein classMemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.AbstractBase<T extends Annotation>- Parameters:
target- The declaring type of a non-static method or a parameter type.annotation- The annotation that was found on the method or parameter.- Returns:
- An appropriate offset mapping.
-