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. |
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.ForLoadedAnnotation
Describes an array of loaded
Annotation s as an annotation list. |
Modifier and Type | Method and Description |
---|---|
AnnotationList |
AnnotatedCodeElement.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) |
AnnotationList |
AnnotationList.Empty.inherited(Set<? extends TypeDescription> ignoredTypes) |
AnnotationList |
AnnotationList.visibility(ElementMatcher<? super RetentionPolicy> matcher)
Only retains annotations with the given retention policy.
|
AnnotationList |
AnnotationList.AbstractBase.visibility(ElementMatcher<? super RetentionPolicy> matcher) |
AnnotationList |
AnnotationList.Empty.visibility(ElementMatcher<? super RetentionPolicy> matcher) |
protected AnnotationList |
AnnotationList.AbstractBase.wrap(List<AnnotationDescription> values) |
Modifier and Type | Method and Description |
---|---|
static List<AnnotationList> |
AnnotationList.ForLoadedAnnotation.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() |
AnnotationList |
FieldDescription.Latent.getDeclaredAnnotations() |
AnnotationList |
FieldDescription.TypeSubstituting.getDeclaredAnnotations() |
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.getDeclaredAnnotations() |
AnnotationList |
ParameterDescription.ForLoadedParameter.OfLegacyVmMethod.getDeclaredAnnotations() |
AnnotationList |
ParameterDescription.ForLoadedParameter.OfLegacyVmConstructor.getDeclaredAnnotations() |
AnnotationList |
ParameterDescription.Latent.getDeclaredAnnotations() |
AnnotationList |
ParameterDescription.TypeSubstituting.getDeclaredAnnotations() |
AnnotationList |
MethodDescription.ForLoadedConstructor.getDeclaredAnnotations() |
AnnotationList |
MethodDescription.ForLoadedMethod.getDeclaredAnnotations() |
AnnotationList |
MethodDescription.Latent.getDeclaredAnnotations() |
AnnotationList |
MethodDescription.Latent.TypeInitializer.getDeclaredAnnotations() |
AnnotationList |
MethodDescription.TypeSubstituting.getDeclaredAnnotations() |
Modifier and Type | Method and Description |
---|---|
AnnotationList |
TypeDescription.ForLoadedType.getDeclaredAnnotations() |
AnnotationList |
TypeDescription.ArrayProjection.getDeclaredAnnotations() |
AnnotationList |
TypeDescription.Latent.getDeclaredAnnotations() |
AnnotationList |
TypeDescription.ForPackageDescription.getDeclaredAnnotations() |
AnnotationList |
PackageDescription.Simple.getDeclaredAnnotations() |
AnnotationList |
PackageDescription.ForLoadedPackage.getDeclaredAnnotations() |
AnnotationList |
TypeDescription.getInheritedAnnotations()
Returns the annotations that this type declares or inherits from super types.
|
AnnotationList |
TypeDescription.AbstractBase.getInheritedAnnotations() |
AnnotationList |
TypeDescription.ArrayProjection.getInheritedAnnotations() |
Modifier and Type | Method and Description |
---|---|
AnnotationList |
MethodTransformer.Simple.TransformedMethod.getDeclaredAnnotations() |
AnnotationList |
MethodTransformer.Simple.TransformedMethod.TransformedParameter.getDeclaredAnnotations() |
Modifier and Type | Method and Description |
---|---|
AnnotationList |
TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge.VisibilityBridge.getDeclaredAnnotations() |
AnnotationList |
TypeWriter.MethodPool.Record.AccessBridgeWrapper.AccessorBridge.getDeclaredAnnotations() |
AnnotationList |
TypeWriter.MethodPool.Record.AccessBridgeWrapper.BridgeTarget.getDeclaredAnnotations() |
AnnotationList |
TypeWriter.Default.ForInlining.TypeInitializerDelegate.getDeclaredAnnotations() |
AnnotationList |
InstrumentedType.Default.getDeclaredAnnotations() |
Modifier and Type | Method and Description |
---|---|
AnnotationList |
MethodRebaseResolver.Resolution.ForRebasedMethod.RebasedMethod.getDeclaredAnnotations() |
AnnotationList |
MethodRebaseResolver.Resolution.ForRebasedConstructor.RebasedConstructor.getDeclaredAnnotations() |
Modifier and Type | Method and Description |
---|---|
AnnotationList |
Implementation.Context.Default.CacheValueField.getDeclaredAnnotations() |
AnnotationList |
Implementation.Context.Default.AccessorMethod.getDeclaredAnnotations() |
AnnotationList |
Implementation.Context.Default.FieldGetter.getDeclaredAnnotations() |
AnnotationList |
Implementation.Context.Default.FieldSetter.getDeclaredAnnotations() |
Constructor and Description |
---|
DeclaringAnnotationMatcher(ElementMatcher<? super AnnotationList> annotationMatcher)
Creates a new matcher for the annotations of an annotated element.
|
InheritedAnnotationMatcher(ElementMatcher<? super AnnotationList> annotationMatcher)
Creates a new matcher for the inherited annotations of a type description.
|
Modifier and Type | Method and Description |
---|---|
AnnotationList |
TypePool.LazyFacade.LazyResolution.LazyTypeDescription.getDeclaredAnnotations() |
AnnotationList |
TypePool.LazyTypeDescription.getDeclaredAnnotations() |
Copyright © 2014–2015. All rights reserved.