Package | Description |
---|---|
net.bytebuddy |
Byte Buddy is a library for creating Java classes at runtime of a Java program.
|
net.bytebuddy.description.annotation |
Contains descriptions of annotations and annotation values.
|
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.implementation.attribute |
All types and classes in this package are responsible for writing attributes for a given Java byte code element,
i.e.
|
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.
|
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 | Method and Description |
---|---|
ByteBuddy.MethodAnnotationTarget |
ByteBuddy.MethodAnnotationTarget.annotateMethod(AnnotationDescription... annotation)
Defines an method annotation for the currently selected methods.
|
ByteBuddy.MethodAnnotationTarget |
ByteBuddy.MethodAnnotationTarget.annotateParameter(int parameterIndex,
AnnotationDescription... annotation)
Defines an method annotation for a parameter of the currently selected methods.
|
ByteBuddy |
ByteBuddy.withTypeAnnotation(AnnotationDescription... annotation)
Defines a new type annotation for this configuration that replaces the currently defined type
attribute appender.
|
ByteBuddy |
ByteBuddy.Proxy.withTypeAnnotation(AnnotationDescription... annotation) |
Modifier and Type | Interface and Description |
---|---|
static interface |
AnnotationDescription.Loadable<S extends Annotation>
An annotation description that is linked to a given loaded annotation type which allows its representation
as a fully loaded instance.
|
Modifier and Type | Class and Description |
---|---|
static class |
AnnotationDescription.AbstractAnnotationDescription
An adapter implementaton of an annotation.
|
static class |
AnnotationDescription.AbstractAnnotationDescription.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.
|
Modifier and Type | Method and Description |
---|---|
AnnotationDescription |
AnnotationList.ForLoadedAnnotation.get(int index) |
AnnotationDescription |
AnnotationList.Explicit.get(int index) |
Modifier and Type | Method and Description |
---|---|
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.
|
protected AnnotationList |
AnnotationList.ForLoadedAnnotation.wrap(List<AnnotationDescription> values) |
protected AnnotationList |
AnnotationList.Explicit.wrap(List<AnnotationDescription> values) |
Constructor and Description |
---|
Explicit(List<? extends AnnotationDescription> annotationDescriptions)
Creates a new list of annotation descriptions.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.FieldAnnotationTarget<S> |
DynamicType.Builder.FieldAnnotationTarget.annotateField(AnnotationDescription... annotation)
Defines annotations to be added to the currently selected field.
|
DynamicType.Builder.FieldAnnotationTarget<S> |
DynamicType.Builder.AbstractBase.DefaultFieldValueTarget.annotateField(AnnotationDescription... annotation) |
DynamicType.Builder.MethodAnnotationTarget<S> |
DynamicType.Builder.MethodAnnotationTarget.annotateMethod(AnnotationDescription... annotation)
Defines annotations to be added to the currently selected method.
|
DynamicType.Builder.MethodAnnotationTarget<S> |
DynamicType.Builder.AbstractBase.DefaultMethodAnnotationTarget.annotateMethod(AnnotationDescription... annotation) |
DynamicType.Builder.MethodAnnotationTarget<S> |
DynamicType.Builder.MethodAnnotationTarget.annotateParameter(int parameterIndex,
AnnotationDescription... annotation)
Defines annotations to be added to a parameter of the currently selected methods.
|
DynamicType.Builder.MethodAnnotationTarget<S> |
DynamicType.Builder.AbstractBase.DefaultMethodAnnotationTarget.annotateParameter(int parameterIndex,
AnnotationDescription... annotation) |
DynamicType.Builder<T> |
DynamicType.Builder.annotateType(AnnotationDescription... annotation)
Adds annotations to the currently constructed type.
|
DynamicType.Builder<S> |
DynamicType.Builder.AbstractBase.annotateType(AnnotationDescription... annotation) |
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.AbstractDelegatingBuilder.annotateType(AnnotationDescription... annotation) |
Modifier and Type | Method and Description |
---|---|
AnnotationAppender |
AnnotationAppender.append(AnnotationDescription annotation,
AnnotationAppender.AnnotationVisibility annotationVisibility)
Terminally writes the given annotation to the specified target.
|
AnnotationAppender |
AnnotationAppender.Default.append(AnnotationDescription annotation,
AnnotationAppender.AnnotationVisibility annotationVisibility) |
static AnnotationAppender.AnnotationVisibility |
AnnotationAppender.AnnotationVisibility.of(AnnotationDescription annotation)
Finds the annotation visibility that is declared for a given annotation.
|
Constructor and Description |
---|
ForAnnotation(int parameterIndex,
List<? extends AnnotationDescription> annotations)
Create a new annotation appender for a method parameter.
|
ForAnnotation(List<? extends AnnotationDescription> annotations)
Creates a new single annotation attribute appender.
|
ForAnnotation(List<? extends AnnotationDescription> annotations)
Create a new annotation appender for a method.
|
ForAnnotation(List<? extends AnnotationDescription> annotations)
Creates a new field annotation appender.
|
Modifier and Type | Method and Description |
---|---|
AnnotationDescription |
TargetMethodAnnotationDrivenBinder.DefaultsProvider.Empty.EmptyIterator.next() |
AnnotationDescription |
Argument.NextUnboundAsDefaultsProvider.NextUnboundArgumentIterator.next() |
Modifier and Type | Method and Description |
---|---|
Iterator<AnnotationDescription> |
TargetMethodAnnotationDrivenBinder.DefaultsProvider.makeIterator(Implementation.Target implementationTarget,
MethodDescription source,
MethodDescription target)
Creates an iterator from which a value is pulled each time no processable annotation is found on a
method parameter.
|
Iterator<AnnotationDescription> |
TargetMethodAnnotationDrivenBinder.DefaultsProvider.Empty.makeIterator(Implementation.Target implementationTarget,
MethodDescription source,
MethodDescription target) |
Iterator<AnnotationDescription> |
Argument.NextUnboundAsDefaultsProvider.makeIterator(Implementation.Target implementationTarget,
MethodDescription source,
MethodDescription target) |
Modifier and Type | Class and Description |
---|---|
class |
AnnotationTypeMatcher<T extends AnnotationDescription>
An element matcher that matches the type of an annotation description.
|
Modifier and Type | Method and Description |
---|---|
static <T extends AnnotationDescription> |
ElementMatchers.anyOf(Annotation... value)
Creates a matcher that matches any of the given annotations as
AnnotationDescription s
by the Object.equals(Object) method. |
static <T extends AnnotationDescription> |
ElementMatchers.is(Annotation annotation)
Exactly matches a given annotation as an
AnnotationDescription . |
static <T extends AnnotationDescription> |
ElementMatchers.is(AnnotationDescription annotationDescription)
Exactly matches a given
AnnotationDescription . |
static <T extends AnnotationDescription> |
ElementMatchers.noneOf(Annotation... value)
Creates a matcher that matches none of the given annotations as
AnnotationDescription s
by the Object.equals(Object) method. |
Modifier and Type | Method and Description |
---|---|
static <T extends AnnotationDescription> |
ElementMatchers.is(AnnotationDescription annotationDescription)
Exactly matches a given
AnnotationDescription . |
Modifier and Type | Method and Description |
---|---|
static <T extends AnnotatedElement> |
ElementMatchers.declaresAnnotation(ElementMatcher<? super AnnotationDescription> matcher)
Matches an
AnnotatedElement to declare any annotation
that matches the given matcher. |
static <T extends TypeDescription> |
ElementMatchers.hasAnnotation(ElementMatcher<? super AnnotationDescription> matcher)
Matches a list of annotations by a given matcher on a type that declared these annotations or inherited them
from its super classes.
|
Modifier and Type | Method and Description |
---|---|
AnnotationDescription |
TypePool.LazyTypeDescription.AnnotationValue.ForAnnotation.resolve(TypePool typePool) |
Copyright © 2014–2015. All rights reserved.