Package | Description |
---|---|
net.bytebuddy.asm |
The ASM package contains classes that are meant for direct interaction with the ASM API.
|
net.bytebuddy.description.annotation |
Contains descriptions of annotations and annotation values.
|
net.bytebuddy.implementation.bind.annotation |
This package contains annotations, types and classes that are responsible for binding a method to calling another
method by interpreting annotations that indicate how a method should be bound to another method.
|
Modifier and Type | Method and Description |
---|---|
Advice.OffsetMapping |
Advice.OffsetMapping.ForAllArguments.Factory.make(ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<Advice.AllArguments> annotation,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new offset mapping for the supplied parameter if possible.
|
Advice.OffsetMapping |
Advice.OffsetMapping.ForArgument.Unresolved.Factory.make(ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<Advice.Argument> annotation,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new offset mapping for the supplied parameter if possible.
|
Advice.OffsetMapping |
Advice.OffsetMapping.ForEnterValue.Factory.make(ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<Advice.Enter> annotation,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new offset mapping for the supplied parameter if possible.
|
Advice.OffsetMapping |
Advice.OffsetMapping.ForExitValue.Factory.make(ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<Advice.Exit> annotation,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new offset mapping for the supplied parameter if possible.
|
Advice.OffsetMapping |
Advice.OffsetMapping.ForField.Unresolved.Factory.make(ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<Advice.FieldValue> annotation,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new offset mapping for the supplied parameter if possible.
|
Advice.OffsetMapping |
Advice.OffsetMapping.ForLocalValue.Factory.make(ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<Advice.Local> annotation,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new offset mapping for the supplied parameter if possible.
|
Advice.OffsetMapping |
Advice.OffsetMapping.ForOrigin.Factory.make(ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<Advice.Origin> annotation,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new offset mapping for the supplied parameter if possible.
|
Advice.OffsetMapping |
Advice.OffsetMapping.ForReturnValue.Factory.make(ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<Advice.Return> annotation,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new offset mapping for the supplied parameter if possible.
|
Advice.OffsetMapping |
Advice.OffsetMapping.ForStubValue.make(ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<Advice.StubValue> annotation,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new offset mapping for the supplied parameter if possible.
|
Advice.OffsetMapping |
Advice.OffsetMapping.ForThisReference.Factory.make(ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<Advice.This> annotation,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new offset mapping for the supplied parameter if possible.
|
Advice.OffsetMapping |
Advice.OffsetMapping.ForThrowable.Factory.make(ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<Advice.Thrown> annotation,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new offset mapping for the supplied parameter if possible.
|
Advice.OffsetMapping |
Advice.OffsetMapping.ForUnusedValue.Factory.make(ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<Advice.Unused> annotation,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new offset mapping for the supplied parameter if possible.
|
Advice.OffsetMapping |
Advice.OffsetMapping.Factory.make(ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<T> annotation,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new offset mapping for the supplied parameter if possible.
|
Advice.OffsetMapping |
Advice.OffsetMapping.Factory.Simple.make(ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<T> annotation,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new offset mapping for the supplied parameter if possible.
|
Advice.OffsetMapping |
Advice.OffsetMapping.Factory.Illegal.make(ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<T> annotation,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new offset mapping for the supplied parameter if possible.
|
Advice.OffsetMapping |
Advice.OffsetMapping.ForArgument.Resolved.Factory.make(ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<T> annotation,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new offset mapping for the supplied parameter if possible.
|
Advice.OffsetMapping |
Advice.OffsetMapping.ForField.Resolved.Factory.make(ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<T> annotation,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new offset mapping for the supplied parameter if possible.
|
Advice.OffsetMapping |
Advice.OffsetMapping.ForStackManipulation.Factory.make(ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<T> annotation,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new offset mapping for the supplied parameter if possible.
|
Advice.OffsetMapping |
Advice.OffsetMapping.ForStackManipulation.OfDefaultValue.make(ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<T> annotation,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new offset mapping for the supplied parameter if possible.
|
Advice.OffsetMapping |
Advice.OffsetMapping.ForStackManipulation.OfAnnotationProperty.make(ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<T> annotation,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new offset mapping for the supplied parameter if possible.
|
Advice.OffsetMapping |
Advice.OffsetMapping.ForSerializedValue.Factory.make(ParameterDescription.InDefinedShape target,
AnnotationDescription.Loadable<T> annotation,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new offset mapping for the supplied parameter if possible.
|
Constructor and Description |
---|
WithExplicitType(TypeDescription.Generic target,
AnnotationDescription.Loadable<Advice.FieldValue> annotation,
TypeDescription declaringType)
Creates an offset mapping for a field with an explicit declaring type.
|
WithImplicitType(TypeDescription.Generic target,
AnnotationDescription.Loadable<Advice.FieldValue> annotation)
Creates an offset mapping for a field with an implicit declaring type.
|
Modifier and Type | Class and Description |
---|---|
static class |
AnnotationDescription.AbstractBase.ForPrepared<S extends Annotation>
An abstract implementation of a loadable annotation description.
|
static class |
AnnotationDescription.ForLoadedAnnotation<S extends Annotation>
A description of an already loaded annotation.
|
protected class |
AnnotationDescription.Latent.Loadable<S extends Annotation>
A loadable annotation description of a latent annotation description.
|
Modifier and Type | Field and Description |
---|---|
static AnnotationDescription.Loadable<?> |
AnnotationDescription.UNDEFINED
Indicates a nonexistent annotation in a type-safe manner.
|
Modifier and Type | Method and Description |
---|---|
static <U extends Annotation> |
AnnotationDescription.ForLoadedAnnotation.of(U annotation)
Creates a description of the given annotation.
|
<T extends Annotation> |
AnnotationList.ofType(Class<T> annotationType)
Finds the first annotation of the given type and returns it.
|
<T extends Annotation> |
AnnotationList.AbstractBase.ofType(Class<T> annotationType)
Finds the first annotation of the given type and returns it.
|
<T extends Annotation> |
AnnotationList.Empty.ofType(Class<T> annotationType)
Finds the first annotation of the given type and returns it.
|
<T extends Annotation> |
AnnotationDescription.prepare(Class<T> annotationType)
Links this annotation description to a given annotation type such that it can be loaded.
|
<T extends Annotation> |
AnnotationDescription.ForLoadedAnnotation.prepare(Class<T> annotationType)
Links this annotation description to a given annotation type such that it can be loaded.
|
<T extends Annotation> |
AnnotationDescription.Latent.Loadable.prepare(Class<T> annotationType)
Links this annotation description to a given annotation type such that it can be loaded.
|
Modifier and Type | Method and Description |
---|---|
MethodDelegationBinder.ParameterBinding<?> |
AllArguments.Binder.bind(AnnotationDescription.Loadable<AllArguments> annotation,
MethodDescription source,
ParameterDescription target,
Implementation.Target implementationTarget,
Assigner assigner,
Assigner.Typing typing)
Creates a parameter binding for the given target parameter.
|
MethodDelegationBinder.ParameterBinding<?> |
Argument.Binder.bind(AnnotationDescription.Loadable<Argument> annotation,
MethodDescription source,
ParameterDescription target,
Implementation.Target implementationTarget,
Assigner assigner,
Assigner.Typing typing)
Creates a parameter binding for the given target parameter.
|
MethodDelegationBinder.ParameterBinding<?> |
Default.Binder.bind(AnnotationDescription.Loadable<Default> annotation,
MethodDescription source,
ParameterDescription target,
Implementation.Target implementationTarget,
Assigner assigner,
Assigner.Typing typing)
Creates a parameter binding for the given target parameter.
|
MethodDelegationBinder.ParameterBinding<?> |
DefaultCall.Binder.bind(AnnotationDescription.Loadable<DefaultCall> annotation,
MethodDescription source,
ParameterDescription target,
Implementation.Target implementationTarget,
Assigner assigner,
Assigner.Typing typing)
Creates a parameter binding for the given target parameter.
|
MethodDelegationBinder.ParameterBinding<?> |
DefaultMethod.Binder.bind(AnnotationDescription.Loadable<DefaultMethod> annotation,
MethodDescription source,
ParameterDescription target,
Implementation.Target implementationTarget,
Assigner assigner,
Assigner.Typing typing)
Creates a parameter binding for the given target parameter.
|
MethodDelegationBinder.ParameterBinding<?> |
Empty.Binder.bind(AnnotationDescription.Loadable<Empty> annotation,
MethodDescription source,
ParameterDescription target,
Implementation.Target implementationTarget,
Assigner assigner,
Assigner.Typing typing)
Creates a parameter binding for the given target parameter.
|
MethodDelegationBinder.ParameterBinding<?> |
FieldValue.Binder.bind(AnnotationDescription.Loadable<FieldValue> annotation,
MethodDescription source,
ParameterDescription target,
Implementation.Target implementationTarget,
Assigner assigner,
Assigner.Typing typing)
Creates a parameter binding for the given target parameter.
|
MethodDelegationBinder.ParameterBinding<?> |
Morph.Binder.bind(AnnotationDescription.Loadable<Morph> annotation,
MethodDescription source,
ParameterDescription target,
Implementation.Target implementationTarget,
Assigner assigner,
Assigner.Typing typing)
Creates a parameter binding for the given target parameter.
|
MethodDelegationBinder.ParameterBinding<?> |
Origin.Binder.bind(AnnotationDescription.Loadable<Origin> annotation,
MethodDescription source,
ParameterDescription target,
Implementation.Target implementationTarget,
Assigner assigner,
Assigner.Typing typing)
Creates a parameter binding for the given target parameter.
|
MethodDelegationBinder.ParameterBinding<?> |
Pipe.Binder.bind(AnnotationDescription.Loadable<Pipe> annotation,
MethodDescription source,
ParameterDescription target,
Implementation.Target implementationTarget,
Assigner assigner,
Assigner.Typing typing)
Creates a parameter binding for the given target parameter.
|
protected abstract Object |
TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFixedValue.bind(AnnotationDescription.Loadable<S> annotation,
MethodDescription source,
ParameterDescription target)
Resolves a value for the given annotation on a parameter that is processed by a
MethodDelegation . |
MethodDelegationBinder.ParameterBinding<?> |
TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFixedValue.bind(AnnotationDescription.Loadable<S> annotation,
MethodDescription source,
ParameterDescription target,
Implementation.Target implementationTarget,
Assigner assigner,
Assigner.Typing typing)
Creates a parameter binding for the given target parameter.
|
MethodDelegationBinder.ParameterBinding<?> |
TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding.bind(AnnotationDescription.Loadable<S> annotation,
MethodDescription source,
ParameterDescription target,
Implementation.Target implementationTarget,
Assigner assigner,
Assigner.Typing typing)
Creates a parameter binding for the given target parameter.
|
MethodDelegationBinder.ParameterBinding<?> |
StubValue.Binder.bind(AnnotationDescription.Loadable<StubValue> annotation,
MethodDescription source,
ParameterDescription target,
Implementation.Target implementationTarget,
Assigner assigner,
Assigner.Typing typing)
Creates a parameter binding for the given target parameter.
|
MethodDelegationBinder.ParameterBinding<?> |
Super.Binder.bind(AnnotationDescription.Loadable<Super> annotation,
MethodDescription source,
ParameterDescription target,
Implementation.Target implementationTarget,
Assigner assigner,
Assigner.Typing typing)
Creates a parameter binding for the given target parameter.
|
MethodDelegationBinder.ParameterBinding<?> |
SuperCall.Binder.bind(AnnotationDescription.Loadable<SuperCall> annotation,
MethodDescription source,
ParameterDescription target,
Implementation.Target implementationTarget,
Assigner assigner,
Assigner.Typing typing)
Creates a parameter binding for the given target parameter.
|
MethodDelegationBinder.ParameterBinding<?> |
SuperMethod.Binder.bind(AnnotationDescription.Loadable<SuperMethod> annotation,
MethodDescription source,
ParameterDescription target,
Implementation.Target implementationTarget,
Assigner assigner,
Assigner.Typing typing)
Creates a parameter binding for the given target parameter.
|
MethodDelegationBinder.ParameterBinding<?> |
TargetMethodAnnotationDrivenBinder.ParameterBinder.bind(AnnotationDescription.Loadable<T> annotation,
MethodDescription source,
ParameterDescription target,
Implementation.Target implementationTarget,
Assigner assigner,
Assigner.Typing typing)
Creates a parameter binding for the given target parameter.
|
MethodDelegationBinder.ParameterBinding<?> |
This.Binder.bind(AnnotationDescription.Loadable<This> annotation,
MethodDescription source,
ParameterDescription target,
Implementation.Target implementationTarget,
Assigner assigner,
Assigner.Typing typing)
Creates a parameter binding for the given target parameter.
|
protected Object |
TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFixedValue.OfConstant.bind(AnnotationDescription.Loadable<U> annotation,
MethodDescription source,
ParameterDescription target) |
protected MethodDelegationBinder.ParameterBinding<?> |
FieldProxy.Binder.bind(FieldDescription fieldDescription,
AnnotationDescription.Loadable<FieldProxy> annotation,
MethodDescription source,
ParameterDescription target,
Implementation.Target implementationTarget,
Assigner assigner) |
protected MethodDelegationBinder.ParameterBinding<?> |
FieldValue.Binder.Delegate.bind(FieldDescription fieldDescription,
AnnotationDescription.Loadable<FieldValue> annotation,
MethodDescription source,
ParameterDescription target,
Implementation.Target implementationTarget,
Assigner assigner) |
protected abstract MethodDelegationBinder.ParameterBinding<?> |
TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding.bind(FieldDescription fieldDescription,
AnnotationDescription.Loadable<S> annotation,
MethodDescription source,
ParameterDescription target,
Implementation.Target implementationTarget,
Assigner assigner)
Creates a parameter binding for the given target parameter.
|
protected TypeDescription |
FieldProxy.Binder.declaringType(AnnotationDescription.Loadable<FieldProxy> annotation) |
protected TypeDescription |
FieldValue.Binder.Delegate.declaringType(AnnotationDescription.Loadable<FieldValue> annotation) |
protected abstract TypeDescription |
TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding.declaringType(AnnotationDescription.Loadable<S> annotation)
Extracts the declaring type from an annotation.
|
protected String |
FieldProxy.Binder.fieldName(AnnotationDescription.Loadable<FieldProxy> annotation) |
protected String |
FieldValue.Binder.Delegate.fieldName(AnnotationDescription.Loadable<FieldValue> annotation) |
protected abstract String |
TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding.fieldName(AnnotationDescription.Loadable<S> annotation)
Extracts the field name from an annotation.
|
protected abstract StackManipulation |
Super.Instantiation.proxyFor(TypeDescription parameterType,
Implementation.Target implementationTarget,
AnnotationDescription.Loadable<Super> annotation)
Creates a stack manipulation which loads a
super -call proxy onto the stack. |
Constructor and Description |
---|
Bound(ParameterDescription target,
TargetMethodAnnotationDrivenBinder.ParameterBinder<T> parameterBinder,
AnnotationDescription.Loadable<T> annotation,
Assigner.Typing typing)
Creates a new bound handler.
|
Copyright © 2014–2019. All rights reserved.