Package net.bytebuddy.asm
Class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.Simple<S extends java.lang.annotation.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 java.lang.annotation.Annotation>
@Enhance public static class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.Simple<S extends java.lang.annotation.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 java.lang.annotation.Annotation>, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.Simple<S extends java.lang.annotation.Annotation>, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.WithParameterSupportOnly<S extends java.lang.annotation.Annotation>
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Class<S>
annotationType
The type of the bound annotation.private MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping
offsetMapping
The offset mapping to return.
-
Constructor Summary
Constructors Constructor Description Simple(java.lang.Class<S> annotationType, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping offsetMapping)
Creates a simple factory for an offset mapping.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<S>
getAnnotationType()
Returns the type of the annotation for this factory.protected 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.-
Methods inherited from class net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.AbstractBase
make, make
-
-
-
-
Field Detail
-
annotationType
private final java.lang.Class<S extends java.lang.annotation.Annotation> annotationType
The type of the bound annotation.
-
offsetMapping
private final MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping offsetMapping
The offset mapping to return.
-
-
Constructor Detail
-
Simple
public Simple(java.lang.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 Detail
-
getAnnotationType
public java.lang.Class<S> 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 java.lang.annotation.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.
-
-