Package net.bytebuddy.asm
Class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.AbstractBase<S extends Annotation>
java.lang.Object
net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.AbstractBase<S>
- Type Parameters:
S- The type of the represented annotation.
- All Implemented Interfaces:
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<S>
- Direct Known Subclasses:
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.Simple,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Resolved.Factory,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.Factory,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.OfDynamicInvocation,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.OfSerializedConstant
- Enclosing interface:
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<T extends Annotation>
public abstract static class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.AbstractBase<S extends Annotation>
extends Object
implements MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<S>
An abstract base implementation of a 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> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmake(MethodDescription.InDefinedShape target, AnnotationDescription.Loadable<S> annotation) Creates an offset mapping for an annotation that was found on a non-static method.make(ParameterDescription.InDefinedShape target, AnnotationDescription.Loadable<S> annotation) Creates an offset mapping for a parameter of the method or constructor that is the delegation target.protected abstract MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMappingmake(TypeDescription.Generic target, AnnotationDescription.Loadable<S> annotation) Returns an offset mapping for the bound method target or parameter.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory
getAnnotationType
-
Constructor Details
-
AbstractBase
public AbstractBase()
-
-
Method Details
-
make
public MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping make(MethodDescription.InDefinedShape target, AnnotationDescription.Loadable<S> annotation) Creates an offset mapping for an annotation that was found on a non-static method.- Specified by:
makein interfaceMemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<S extends Annotation>- Parameters:
target- The method that is the delegated to.annotation- The annotation that was found on the method.- Returns:
- An appropriate offset mapping.
-
make
public MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping make(ParameterDescription.InDefinedShape target, AnnotationDescription.Loadable<S> annotation) Creates an offset mapping for a parameter of the method or constructor that is the delegation target.- Specified by:
makein interfaceMemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<S extends Annotation>- Parameters:
target- The parameter that is bound to an expression.annotation- The annotation that was found on the parameter.- Returns:
- An appropriate offset mapping.
-
make
protected abstract MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping make(TypeDescription.Generic target, AnnotationDescription.Loadable<S> annotation) Returns an offset mapping for the bound method target or parameter.- 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.
-