T - The type of the annotation.@HashCodeAndEqualsPlugin.Enhance public static class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.OfSerializedConstant<T extends Annotation> extends MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.AbstractBase<T>
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>| Modifier | Constructor and Description |
|---|---|
protected |
OfSerializedConstant(Class<T> annotationType,
StackManipulation deserialization,
TypeDescription.Generic typeDescription)
Creates a factory that creates an offset mapping for a value that is deserialized.
|
| Modifier and Type | Method and Description |
|---|---|
Class<T> |
getAnnotationType()
Returns the type of the annotation for this factory.
|
protected MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping |
make(TypeDescription.Generic target,
AnnotationDescription.Loadable<T> annotation)
Returns an offset mapping for the bound method target or parameter.
|
static <S extends Annotation,U extends Serializable> |
of(Class<S> type,
U value,
Class<? super U> targetType)
Creates a factory for an offset mapping that deserializes a given value that is then assigned to the annotated parameter or used as a method target.
|
make, makeprotected OfSerializedConstant(Class<T> annotationType, StackManipulation deserialization, TypeDescription.Generic typeDescription)
annotationType - The annotation type.deserialization - A stack manipulation that represents the deserialization.typeDescription - A description of the type that is returned as a result of the deserialization.public static <S extends Annotation,U extends Serializable> MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<S> of(Class<S> type, U value, Class<? super U> targetType)
S - The type of the annotation.U - The type of the serialized value.type - The annotation type.value - The serialized value.targetType - The type of the value that is deserialized.public Class<T> getAnnotationType()
protected MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping make(TypeDescription.Generic target, AnnotationDescription.Loadable<T> annotation)
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.AbstractBasemake in class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.AbstractBase<T 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–2023. All rights reserved.