Package | Description |
---|---|
net.bytebuddy.asm |
The ASM package contains classes that are meant for direct interaction with the ASM API.
|
Modifier and Type | Method and Description |
---|---|
static <S extends Annotation> |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.of(Class<S> annotationType,
Object value)
Resolves an offset mapping that binds the provided annotation type to a given constant value.
|
static <S extends Annotation> |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.OfAnnotationProperty.of(Class<S> annotationType,
String property)
Resolves an offset mapping factory where the provided property is assigned to any parameter that
is annotated with the given annotation.
|
static <S extends Annotation,U extends Serializable> |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation.OfSerializedConstant.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.
|
Modifier and Type | Method and Description |
---|---|
MemberSubstitution.Substitution.Chain.Step.ForDelegation.WithCustomMapping |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.WithCustomMapping.bind(MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<?> offsetMapping)
Binds an annotation to a dynamically computed value.
|
Constructor and Description |
---|
Factory(MethodDescription.InDefinedShape delegate,
MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher dispatcher,
List<? extends MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<?>> factories)
Creates a new factory for a delegating step.
|
WithCustomMapping(MemberSubstitution.Substitution.Chain.Step.ForDelegation.Dispatcher.Factory dispatcherFactory,
Map<Class<? extends Annotation>,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<?>> offsetMappings)
Creates a factory for a
MemberSubstitution.Substitution.Chain.Step.ForDelegation with a custom value. |
Copyright © 2014–2024. All rights reserved.