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.description.enumeration |
A package that contains classes for describing enumeration values.
|
net.bytebuddy.implementation |
The implementation package contains any logic for intercepting method calls.
|
net.bytebuddy.implementation.bytecode.member |
StackManipulation s of this package are responsible for
accessing type or method members, i.e. |
net.bytebuddy.utility |
This package contains utility classes for common use within any Byte Buddy logic.
|
Modifier and Type | Method and Description |
---|---|
<T extends Annotation> |
Advice.WithCustomMapping.bind(Class<T> type,
EnumerationDescription value)
Binds the supplied annotation to the supplied enumeration constant.
|
Constructor and Description |
---|
Factory(Class<T> annotationType,
EnumerationDescription enumerationDescription)
Creates a new factory for binding an enumeration.
|
Modifier and Type | Method and Description |
---|---|
EnumerationDescription |
AnnotationValue.ForEnumerationDescription.resolve()
Resolves the unloaded value of this annotation.
|
EnumerationDescription |
AnnotationValue.ForEnumerationDescription.WithUnknownConstant.resolve()
Resolves the unloaded value of this annotation.
|
Modifier and Type | Method and Description |
---|---|
AnnotationValue<EnumerationDescription,U> |
AnnotationValue.ForEnumerationDescription.filter(MethodDescription.InDefinedShape property,
TypeDefinition typeDefinition)
Filters this annotation value as a valid value of the provided property.
|
AnnotationValue<EnumerationDescription,U> |
AnnotationValue.ForEnumerationDescription.WithUnknownConstant.filter(MethodDescription.InDefinedShape property,
TypeDefinition typeDefinition)
Filters this annotation value as a valid value of the provided property.
|
static <V extends Enum<V>> |
AnnotationValue.ForEnumerationDescription.of(EnumerationDescription value)
Creates a new annotation value for the given enumeration description.
|
Modifier and Type | Method and Description |
---|---|
AnnotationDescription.Builder |
AnnotationDescription.Builder.define(String property,
EnumerationDescription value)
Returns a builder with the additional enumeration property.
|
AnnotationDescription.Builder |
AnnotationDescription.Builder.defineEnumerationArray(String property,
TypeDescription enumerationType,
EnumerationDescription... value)
Returns a builder with the additional enumeration array property.
|
static <V extends Enum<V>> |
AnnotationValue.ForEnumerationDescription.of(EnumerationDescription value)
Creates a new annotation value for the given enumeration description.
|
static <W extends Enum<W>> |
AnnotationValue.ForDescriptionArray.of(TypeDescription enumerationType,
EnumerationDescription[] enumerationDescription)
Creates a new complex array of enumeration descriptions.
|
Constructor and Description |
---|
ForEnumerationDescription(EnumerationDescription enumerationDescription)
Creates a new description of an annotation value for a given enumeration.
|
Modifier and Type | Class and Description |
---|---|
static class |
EnumerationDescription.AbstractBase
An adapter implementation of an enumeration description.
|
static class |
EnumerationDescription.ForLoadedEnumeration
An enumeration description representing a loaded enumeration.
|
static class |
EnumerationDescription.Latent
A latent description of an enumeration value.
|
Modifier and Type | Method and Description |
---|---|
static List<EnumerationDescription> |
EnumerationDescription.ForLoadedEnumeration.asList(Enum<?>[] enumerations)
Enlists a given array of loaded enumerations as enumeration values.
|
Modifier and Type | Method and Description |
---|---|
MethodCall |
MethodCall.with(EnumerationDescription... enumerationDescription)
Defines the given enumeration values to be provided as arguments to the invoked method where the values
are read from the enumeration class on demand.
|
InvokeDynamic |
InvokeDynamic.withEnumeration(EnumerationDescription... enumerationDescription)
Hands the provided enumerations to the dynamically bound method.
|
InvokeDynamic |
InvokeDynamic.AbstractDelegator.withEnumeration(EnumerationDescription... enumerationDescription)
Hands the provided enumerations to the dynamically bound method.
|
Constructor and Description |
---|
ForEnumerationValue(EnumerationDescription enumerationDescription)
Creates a new argument provider for an enumeration value.
|
Modifier and Type | Method and Description |
---|---|
static StackManipulation |
FieldAccess.forEnumeration(EnumerationDescription enumerationDescription)
Creates an accessor to read an enumeration value.
|
Modifier and Type | Method and Description |
---|---|
static JavaConstant |
JavaConstant.Dynamic.ofEnumeration(EnumerationDescription enumerationDescription)
Returns a
Enum value constant. |
Copyright © 2014–2020. All rights reserved.