Package net.bytebuddy.asm
Interface MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<T extends Annotation>
- Type Parameters:
T- The type of the annotation.
- All Known Implementing Classes:
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.AbstractBase,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.Simple,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.WithParameterSupportOnly,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForAllArguments.Factory,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForArgument.Factory,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForCurrent.Factory,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Resolved.Factory,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField.Unresolved.Factory,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Resolved.Factory,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved.GetterFactory,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved.SetterFactory,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin.Factory,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForSelfCallHandle.Factory,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.Factory,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.OfAnnotationProperty,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.OfDefaultValue,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.OfDynamicInvocation,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.OfSerializedConstant,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStubValue.Factory,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForThisReference.Factory
- Enclosing interface:
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping
public static interface MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<T extends Annotation>
A factory for creating an offset mapping based on an annotation on a parameter, method or constructor.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classMemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.AbstractBase<S extends Annotation>An abstract base implementation of a factory for an offset mapping.static classMemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.Simple<S extends Annotation>A simple factory for an offset mapping.static classMemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.WithParameterSupportOnly<S extends Annotation>A factory for an offset mapping that does not support binding a method target. -
Method Summary
Modifier and TypeMethodDescriptionReturns the type of the annotation for this factory.make(MethodDescription.InDefinedShape target, AnnotationDescription.Loadable<T> annotation) Creates an offset mapping for an annotation that was found on a non-static method.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.
-
Method Details
-
getAnnotationType
Returns the type of the annotation for this factory.- Returns:
- The type of the annotation for this factory.
-
make
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.- Parameters:
target- The method that is the delegated to.annotation- The annotation that was found on the method.- Returns:
- An appropriate offset mapping.
-
make
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.- Parameters:
target- The parameter that is bound to an expression.annotation- The annotation that was found on the parameter.- Returns:
- An appropriate offset mapping.
-