T
- The type of the annotation.@HashCodeAndEqualsPlugin.Enhance public static class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.OfDefaultValue<T extends Annotation> extends Object implements MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<T>
null
for reference types
or the specific version of 0
for primitive types.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 |
---|
OfDefaultValue(Class<T> annotationType)
Creates a new factory for binding a default value.
|
Modifier and Type | Method and Description |
---|---|
Class<T> |
getAnnotationType()
Returns the type of the annotation for this factory.
|
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.
|
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.
|
public Class<T> getAnnotationType()
getAnnotationType
in interface MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<T extends Annotation>
public MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping make(MethodDescription.InDefinedShape target, AnnotationDescription.Loadable<T> annotation)
make
in interface MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<T extends Annotation>
target
- The method that is the delegated to.annotation
- The annotation that was found on the method.public MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping make(ParameterDescription.InDefinedShape target, AnnotationDescription.Loadable<T> annotation)
make
in interface MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<T extends Annotation>
target
- The parameter that is bound to an expression.annotation
- The annotation that was found on the parameter.Copyright © 2014–2024. All rights reserved.