Package | Description |
---|---|
net.bytebuddy.description.annotation |
Contains descriptions of annotations and annotation values.
|
net.bytebuddy.description.field |
Contains descriptions of Java fields.
|
net.bytebuddy.description.method |
Contains descriptions of Java methods and constructors as well as their parameters.
|
net.bytebuddy.description.type |
Contains descriptions of Java types and packages.
|
net.bytebuddy.dynamic |
This package contains classes and interfaces that are connected to writing the byte stream that represents a Java
type that is dynamically created and for loading this type into a running JVM process.
|
net.bytebuddy.dynamic.scaffold |
This package contains helper types and implementations that are responsible for the actual writing of a byte array
representing a Java class.
|
net.bytebuddy.dynamic.scaffold.inline |
All classes and types in this package are related to creating a
DynamicType by
enhancing a given type. |
net.bytebuddy.implementation |
The implementation package contains any logic for intercepting method calls.
|
net.bytebuddy.matcher |
Contains an API for matching Java byte code entities.
|
net.bytebuddy.pool |
Classes of this package allow for the creating
TypeDescription s without
loading any classes. |
net.bytebuddy.utility |
This package contains utility classes for common use within any Byte Buddy logic.
|
Modifier and Type | Class and Description |
---|---|
static class |
AnnotationList.AbstractBase
An abstract base implementation of an annotation list.
|
static class |
AnnotationList.Empty
Represents an empty annotation list.
|
static class |
AnnotationList.Explicit
Represents a list of explicitly provided annotation descriptions.
|
static class |
AnnotationList.ForLoadedAnnotations
Describes an array of loaded
Annotation s as an annotation list. |
Modifier and Type | Method and Description |
---|---|
AnnotationList |
AnnotationSource.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
AnnotationSource.Empty.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
AnnotationSource.Explicit.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
AnnotationList.inherited(Set<? extends TypeDescription> ignoredTypes)
Returns only annotations that are marked as
Inherited as long as they are not
contained by the set of ignored annotation types. |
AnnotationList |
AnnotationList.AbstractBase.inherited(Set<? extends TypeDescription> ignoredTypes)
Returns only annotations that are marked as
Inherited as long as they are not
contained by the set of ignored annotation types. |
AnnotationList |
AnnotationList.Empty.inherited(Set<? extends TypeDescription> ignoredTypes)
Returns only annotations that are marked as
Inherited as long as they are not
contained by the set of ignored annotation types. |
AnnotationList |
AnnotationList.visibility(ElementMatcher<? super RetentionPolicy> matcher)
Only retains annotations with the given retention policy.
|
AnnotationList |
AnnotationList.AbstractBase.visibility(ElementMatcher<? super RetentionPolicy> matcher)
Only retains annotations with the given retention policy.
|
AnnotationList |
AnnotationList.Empty.visibility(ElementMatcher<? super RetentionPolicy> matcher)
Only retains annotations with the given retention policy.
|
protected AnnotationList |
AnnotationList.AbstractBase.wrap(List<AnnotationDescription> values) |
Modifier and Type | Method and Description |
---|---|
static List<AnnotationList> |
AnnotationList.ForLoadedAnnotations.asList(Annotation[][] annotations)
Creates a list of annotation lists representing the given loaded annotations.
|
static List<AnnotationList> |
AnnotationList.Empty.asList(int length)
Creates a list of empty annotation lists of the given dimension.
|
static List<AnnotationList> |
AnnotationList.Explicit.asList(List<? extends List<? extends AnnotationDescription>> annotations)
Creates a list of annotation lists for a given multidimensional list of annotation descriptions.
|
Modifier and Type | Method and Description |
---|---|
AnnotationList |
FieldDescription.Token.getAnnotations()
Returns the annotations of the represented field.
|
AnnotationList |
FieldDescription.ForLoadedField.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
FieldDescription.Latent.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
FieldDescription.TypeSubstituting.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
Modifier and Type | Method and Description |
---|---|
AnnotationList |
ParameterDescription.Token.getAnnotations()
Returns the annotations of the represented method parameter.
|
AnnotationList |
MethodDescription.Token.getAnnotations()
Returns the annotations of the represented method.
|
AnnotationList |
ParameterDescription.ForLoadedParameter.OfMethod.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
ParameterDescription.ForLoadedParameter.OfConstructor.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
ParameterDescription.ForLoadedParameter.OfLegacyVmMethod.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
ParameterDescription.ForLoadedParameter.OfLegacyVmConstructor.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
ParameterDescription.Latent.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
ParameterDescription.TypeSubstituting.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
MethodDescription.ForLoadedConstructor.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
MethodDescription.ForLoadedMethod.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
MethodDescription.Latent.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
MethodDescription.Latent.TypeInitializer.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
MethodDescription.TypeSubstituting.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
Modifier and Type | Method and Description |
---|---|
AnnotationList |
TypeDescription.Generic.AnnotationReader.asList()
Returns the underlying type annotations as a list.
|
AnnotationList |
TypeDescription.Generic.AnnotationReader.NoOp.asList()
Returns the underlying type annotations as a list.
|
AnnotationList |
TypeDescription.Generic.AnnotationReader.Delegator.asList()
Returns the underlying type annotations as a list.
|
AnnotationList |
TypeVariableToken.getAnnotations()
Returns the annotations on this type variable.
|
AnnotationList |
RecordComponentDescription.Token.getAnnotations()
Returns the token's annotations.
|
AnnotationList |
TypeList.Generic.ForDetachedTypes.OfTypeVariables.AttachedTypeVariable.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.Generic.Visitor.AnnotationStripper.NonAnnotatedTypeVariable.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.Generic.Visitor.Substitutor.ForTypeVariableBinding.RetainedMethodTypeVariable.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.Generic.OfNonGenericType.ForLoadedType.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.Generic.OfNonGenericType.ForErasure.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.Generic.OfNonGenericType.Latent.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.Generic.OfNonGenericType.ForReifiedErasure.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.Generic.OfGenericArray.ForLoadedType.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.Generic.OfGenericArray.Latent.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.Generic.OfWildcardType.ForLoadedType.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.Generic.OfWildcardType.Latent.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.Generic.OfParameterizedType.ForLoadedType.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.Generic.OfParameterizedType.Latent.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.Generic.OfParameterizedType.ForReifiedType.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.Generic.OfParameterizedType.ForGenerifiedErasure.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.Generic.OfTypeVariable.Symbolic.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.Generic.OfTypeVariable.ForLoadedType.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.Generic.OfTypeVariable.WithAnnotationOverlay.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.Generic.LazyProjection.WithLazyNavigation.LazySuperClass.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.Generic.LazyProjection.WithLazyNavigation.LazyInterfaceType.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.Generic.LazyProjection.WithLazyNavigation.OfAnnotatedElement.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.Generic.LazyProjection.WithEagerNavigation.OfAnnotatedElement.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.Generic.LazyProjection.WithResolvedErasure.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.AbstractBase.OfSimpleType.WithDelegation.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.ForLoadedType.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.ArrayProjection.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.Latent.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.ForPackageDescription.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.SuperTypeLoading.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.SuperTypeLoading.ClassLoadingTypeProjection.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
RecordComponentDescription.ForLoadedRecordComponent.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
RecordComponentDescription.Latent.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
RecordComponentDescription.TypeSubstituting.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
PackageDescription.Simple.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
PackageDescription.ForLoadedPackage.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeDescription.getInheritedAnnotations()
Returns the annotations that this type declares or inherits from super types.
|
AnnotationList |
TypeDescription.AbstractBase.getInheritedAnnotations()
Returns the annotations that this type declares or inherits from super types.
|
AnnotationList |
TypeDescription.ArrayProjection.getInheritedAnnotations()
Returns the annotations that this type declares or inherits from super types.
|
Modifier and Type | Method and Description |
---|---|
AnnotationList |
Transformer.ForField.TransformedField.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
Transformer.ForMethod.TransformedMethod.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
Transformer.ForMethod.TransformedMethod.TransformedParameter.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
Modifier and Type | Method and Description |
---|---|
AnnotationList |
TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge.VisibilityBridge.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeWriter.MethodPool.Record.AccessBridgeWrapper.AccessorBridge.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypeWriter.MethodPool.Record.AccessBridgeWrapper.BridgeTarget.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
InstrumentedType.Default.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
InstrumentedType.Frozen.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
Modifier and Type | Method and Description |
---|---|
AnnotationList |
MethodRebaseResolver.Resolution.ForRebasedMethod.RebasedMethod.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
MethodRebaseResolver.Resolution.ForRebasedConstructor.RebasedConstructor.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
Modifier and Type | Method and Description |
---|---|
AnnotationList |
Implementation.Context.Default.CacheValueField.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
Implementation.Context.Default.AccessorMethod.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
Implementation.Context.Default.FieldGetter.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
Implementation.Context.Default.FieldSetter.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
Constructor and Description |
---|
DeclaringAnnotationMatcher(ElementMatcher<? super AnnotationList> matcher)
Creates a new matcher for the annotations of an annotated element.
|
InheritedAnnotationMatcher(ElementMatcher<? super AnnotationList> matcher)
Creates a new matcher for the inherited annotations of a type description.
|
Modifier and Type | Method and Description |
---|---|
AnnotationList |
TypePool.Default.LazyTypeDescription.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType.LazyPrimitiveType.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUnboundWildcard.LazyUnboundWildcard.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.RawAnnotatedType.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.AnnotatedTypeVariable.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.UnresolvedTypeVariable.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.Formal.LazyTypeVariable.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForGenericArray.LazyGenericArray.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForLowerBoundWildcard.LazyLowerBoundWildcard.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUpperBoundWildcard.LazyUpperBoundWildcard.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType.Nested.LazyParameterizedType.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType.LazyParameterizedType.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypePool.Default.LazyTypeDescription.TokenizedGenericType.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
AnnotationList |
TypePool.Default.LazyTypeDescription.TokenizedGenericType.Malformed.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
Modifier and Type | Method and Description |
---|---|
AnnotationList |
JavaModule.getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
Copyright © 2014–2024. All rights reserved.