Package | Description |
---|---|
net.bytebuddy.description.annotation |
Contains descriptions of annotations and annotation values.
|
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 |
AnnotationDescription.AnnotationValue.ForAnnotation<U extends Annotation>
A description of an
Annotation as a value of another annotation. |
static class |
AnnotationDescription.AnnotationValue.ForComplexArray<U,V>
Describes a complex array that is the value of an annotation.
|
static class |
AnnotationDescription.AnnotationValue.ForEnumeration<U extends Enum<U>>
A description of an
Enum as a value of an annotation. |
static class |
AnnotationDescription.AnnotationValue.ForType<U extends Class<U>>
A description of a
Class as a value of an annotation. |
static class |
AnnotationDescription.AnnotationValue.Trivial<U>
Represents a primitive value, a
String or an array of the latter types. |
Modifier and Type | Method and Description |
---|---|
static <V extends Enum<V>> |
AnnotationDescription.AnnotationValue.ForEnumeration.of(EnumerationDescription value)
Creates a new annotation value for the given enumeration description.
|
static <V extends Class<V>> |
AnnotationDescription.AnnotationValue.ForType.of(TypeDescription typeDescription)
Creates an annotation value for representing the given type.
|
static AnnotationDescription.AnnotationValue<TypeDescription[],Class<?>[]> |
AnnotationDescription.AnnotationValue.ForComplexArray.of(TypeDescription[] typeDescription)
Creates a new complex array of annotation descriptions.
|
static <W extends Annotation> |
AnnotationDescription.AnnotationValue.ForComplexArray.of(TypeDescription annotationType,
AnnotationDescription[] annotationDescription)
Creates a new complex array of annotation descriptions.
|
static <W extends Enum<W>> |
AnnotationDescription.AnnotationValue.ForComplexArray.of(TypeDescription enumerationType,
EnumerationDescription[] enumerationDescription)
Creates a new complex array of enumeration descriptions.
|
static <V extends Annotation> |
AnnotationDescription.AnnotationValue.ForAnnotation.of(TypeDescription annotationType,
Map<String,AnnotationDescription.AnnotationValue<?,?>> annotationValues)
Creates an annotation value instance for describing the given annotation type and values.
|
Modifier and Type | Method and Description |
---|---|
AnnotationDescription.Builder |
AnnotationDescription.Builder.define(String property,
AnnotationDescription.AnnotationValue<?,?> value)
Returns a builder with the additional, given property.
|
Modifier and Type | Method and Description |
---|---|
static <S extends Annotation> |
AnnotationDescription.AnnotationInvocationHandler.of(ClassLoader classLoader,
Class<S> annotationType,
Map<String,AnnotationDescription.AnnotationValue<?,?>> values) |
static <V extends Annotation> |
AnnotationDescription.AnnotationValue.ForAnnotation.of(TypeDescription annotationType,
Map<String,AnnotationDescription.AnnotationValue<?,?>> annotationValues)
Creates an annotation value instance for describing the given annotation type and values.
|
Constructor and Description |
---|
Builder(TypeDescription annotationType,
Map<String,AnnotationDescription.AnnotationValue<?,?>> annotationValues)
Creates a builder for an annotation description.
|
ForComplexArray(Class<?> unloadedComponentType,
TypeDescription componentType,
List<? extends AnnotationDescription.AnnotationValue<?,?>> annotationValues)
Creates a new complex array.
|
Latent(TypeDescription annotationType,
Map<String,AnnotationDescription.AnnotationValue<?,?>> annotationValues)
Creates a new latent annotation description.
|
Modifier and Type | Class and Description |
---|---|
protected static class |
TypePool.AbstractBase.RawAnnotationValue
Represents a nested annotation value.
|
protected static class |
TypePool.AbstractBase.RawEnumerationValue
Represents an enumeration value of an annotation.
|
protected static class |
TypePool.AbstractBase.RawNonPrimitiveArray
Represents an array that is referenced by an annotation which does not contain primitive values.
|
protected static class |
TypePool.AbstractBase.RawTypeValue
Represents a type value of an annotation.
|
Modifier and Type | Method and Description |
---|---|
protected AnnotationDescription.AnnotationValue<?,?> |
TypePool.LazyTypeDescription.MethodToken.getDefaultValue()
Returns the default value of the represented method or
null if no such values exists. |
Modifier and Type | Method and Description |
---|---|
Map<String,AnnotationDescription.AnnotationValue<?,?>> |
TypePool.LazyTypeDescription.AnnotationToken.getValues()
Returns a map of annotation value names to their value representations.
|
Modifier and Type | Method and Description |
---|---|
void |
TypePool.Default.AnnotationRegistrant.register(String name,
AnnotationDescription.AnnotationValue<?,?> annotationValue)
Registers an annotation value.
|
void |
TypePool.Default.TypeExtractor.OnTypeCollector.register(String name,
AnnotationDescription.AnnotationValue<?,?> annotationValue) |
void |
TypePool.Default.TypeExtractor.AnnotationExtractor.ArrayLookup.register(String ignored,
AnnotationDescription.AnnotationValue<?,?> annotationValue) |
void |
TypePool.Default.TypeExtractor.AnnotationExtractor.AnnotationLookup.register(String name,
AnnotationDescription.AnnotationValue<?,?> annotationValue) |
void |
TypePool.Default.TypeExtractor.FieldExtractor.OnFieldCollector.register(String name,
AnnotationDescription.AnnotationValue<?,?> annotationValue) |
void |
TypePool.Default.TypeExtractor.MethodExtractor.register(String ignored,
AnnotationDescription.AnnotationValue<?,?> annotationValue) |
void |
TypePool.Default.TypeExtractor.MethodExtractor.OnMethodCollector.register(String name,
AnnotationDescription.AnnotationValue<?,?> annotationValue) |
void |
TypePool.Default.TypeExtractor.MethodExtractor.OnMethodParameterCollector.register(String name,
AnnotationDescription.AnnotationValue<?,?> annotationValue) |
Constructor and Description |
---|
MethodToken(String name,
int modifiers,
String descriptor,
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod signatureResolution,
String[] exceptionName,
List<TypePool.LazyTypeDescription.AnnotationToken> annotationTokens,
Map<Integer,List<TypePool.LazyTypeDescription.AnnotationToken>> parameterAnnotationTokens,
List<TypePool.LazyTypeDescription.MethodToken.ParameterToken> parameterTokens,
AnnotationDescription.AnnotationValue<?,?> defaultValue)
Creates a new method token.
|
Constructor and Description |
---|
AnnotationToken(String descriptor,
Map<String,AnnotationDescription.AnnotationValue<?,?>> values)
Creates a new annotation token.
|
RawNonPrimitiveArray(TypePool typePool,
TypePool.AbstractBase.RawNonPrimitiveArray.ComponentTypeReference componentTypeReference,
List<AnnotationDescription.AnnotationValue<?,?>> value)
Creates a new array value representation of a complex array.
|
Copyright © 2014–2015. All rights reserved.