S
- The type of the represented annotation.@HashCodeAndEqualsPlugin.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>
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 and Description |
---|
Simple(Class<S> annotationType,
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping offsetMapping)
Creates a simple factory for an offset mapping.
|
Modifier and Type | Method and Description |
---|---|
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.
|
make, make
public Simple(Class<S> annotationType, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping offsetMapping)
annotationType
- The type of the bound annotation.offsetMapping
- The offset mapping to return.public Class<S> getAnnotationType()
protected MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping make(TypeDescription.Generic target, AnnotationDescription.Loadable<S> annotation)
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.AbstractBase
make
in class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.AbstractBase<S extends Annotation>
target
- The declaring type of a non-static method or a parameter type.annotation
- The annotation that was found on the method or parameter.Copyright © 2014–2024. All rights reserved.