Package net.bytebuddy.asm
Class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.Simple<S extends Annotation>
java.lang.Object
net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.AbstractBase<S>
net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.Simple<S>
- Type Parameters:
S
- The type of the represented annotation.
- All Implemented Interfaces:
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<S>
- Enclosing interface:
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<T extends Annotation>
@Enhance
public static class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.Simple<S extends Annotation>
extends MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.AbstractBase<S>
A simple factory for an offset mapping.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory
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>
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe type of the bound annotation.The offset mapping to return. -
Constructor Summary
ConstructorsConstructorDescriptionSimple
(Class<S> annotationType, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping offsetMapping) Creates a simple factory for an offset mapping. -
Method Summary
Modifier and TypeMethodDescriptionReturns the type of the annotation for this factory.make
(TypeDescription.Generic target, AnnotationDescription.Loadable<S> annotation) Returns an offset mapping for the bound method target or parameter.Methods inherited from class net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.AbstractBase
make, make
-
Field Details
-
annotationType
The type of the bound annotation. -
offsetMapping
The offset mapping to return.
-
-
Constructor Details
-
Simple
public Simple(Class<S> annotationType, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping offsetMapping) Creates a simple factory for an offset mapping.- Parameters:
annotationType
- The type of the bound annotation.offsetMapping
- The offset mapping to return.
-
-
Method Details
-
getAnnotationType
Returns the type of the annotation for this factory.- Returns:
- The type of the annotation for this factory.
-
make
protected MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping make(TypeDescription.Generic target, AnnotationDescription.Loadable<S> annotation) Description copied from class:MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.AbstractBase
Returns an offset mapping for the bound method target or parameter.- Specified by:
make
in classMemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.AbstractBase<S 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.
-