Package | Description |
---|---|
net.bytebuddy.description.annotation |
Contains descriptions of annotations and annotation values.
|
net.bytebuddy.description.method |
Contains descriptions of Java methods and constructors as well as their parameters.
|
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.pool |
Classes of this package allow for the creating
TypeDescription s without
loading any classes. |
Modifier and Type | Class and Description |
---|---|
static class |
AnnotationValue.AbstractBase<U,V>
An abstract base implementation of an unloaded annotation value.
|
static class |
AnnotationValue.ForAnnotation<U extends Annotation>
A description of an
Annotation as a value of another annotation. |
static class |
AnnotationValue.ForComplexArray<U,V>
Describes a complex array that is the value of an annotation.
|
static class |
AnnotationValue.ForConstant<U>
Represents a primitive value, a
String or an array of the latter types. |
static class |
AnnotationValue.ForEnumeration<U extends Enum<U>>
A description of an
Enum as a value of an annotation. |
static class |
AnnotationValue.ForType<U extends Class<U>>
A description of a
Class as a value of an annotation. |
Modifier and Type | Field and Description |
---|---|
static AnnotationValue<?,?> |
AnnotationValue.UNDEFINED
An undefined annotation value.
|
Modifier and Type | Method and Description |
---|---|
static AnnotationValue<?,?> |
AnnotationDescription.ForLoadedAnnotation.asValue(Object value,
Class<?> type)
Transforms an annotation property to an annotation value.
|
AnnotationValue<?,?> |
AnnotationDescription.getValue(MethodDescription.InDefinedShape property)
Returns the value of this annotation.
|
AnnotationValue<?,?> |
AnnotationDescription.ForLoadedAnnotation.getValue(MethodDescription.InDefinedShape property) |
AnnotationValue<?,?> |
AnnotationDescription.Latent.getValue(MethodDescription.InDefinedShape property) |
AnnotationValue<?,?> |
AnnotationDescription.Latent.Loadable.getValue(MethodDescription.InDefinedShape property) |
static <V extends Enum<V>> |
AnnotationValue.ForEnumeration.of(EnumerationDescription value)
Creates a new annotation value for the given enumeration description.
|
static <V extends Class<V>> |
AnnotationValue.ForType.of(TypeDescription typeDescription)
Creates an annotation value for representing the given type.
|
static AnnotationValue<TypeDescription[],Class<?>[]> |
AnnotationValue.ForComplexArray.of(TypeDescription[] typeDescription)
Creates a new complex array of annotation descriptions.
|
static <W extends Annotation> |
AnnotationValue.ForComplexArray.of(TypeDescription annotationType,
AnnotationDescription[] annotationDescription)
Creates a new complex array of annotation descriptions.
|
static <W extends Enum<W>> |
AnnotationValue.ForComplexArray.of(TypeDescription enumerationType,
EnumerationDescription[] enumerationDescription)
Creates a new complex array of enumeration descriptions.
|
static <V extends Annotation> |
AnnotationValue.ForAnnotation.of(TypeDescription annotationType,
Map<String,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,
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,AnnotationValue<?,?>> values)
Creates a proxy instance for the supplied annotation type and values.
|
static <V extends Annotation> |
AnnotationValue.ForAnnotation.of(TypeDescription annotationType,
Map<String,AnnotationValue<?,?>> annotationValues)
Creates an annotation value instance for describing the given annotation type and values.
|
Constructor and Description |
---|
Builder(TypeDescription annotationType,
Map<String,AnnotationValue<?,?>> annotationValues)
Creates a builder for an annotation description.
|
ForComplexArray(Class<?> unloadedComponentType,
TypeDescription componentType,
List<? extends AnnotationValue<?,?>> annotationValues)
Creates a new complex array.
|
Latent(TypeDescription annotationType,
Map<String,AnnotationValue<?,?>> annotationValues)
Creates a new latent annotation description.
|
Modifier and Type | Method and Description |
---|---|
AnnotationValue<?,?> |
MethodDescription.getDefaultValue()
Returns the method's default annotation value or
null if no default value is defined for this method. |
AnnotationValue<?,?> |
MethodDescription.ForLoadedConstructor.getDefaultValue() |
AnnotationValue<?,?> |
MethodDescription.ForLoadedMethod.getDefaultValue() |
AnnotationValue<?,?> |
MethodDescription.Latent.getDefaultValue() |
AnnotationValue<?,?> |
MethodDescription.Latent.TypeInitializer.getDefaultValue() |
AnnotationValue<?,?> |
MethodDescription.TypeSubstituting.getDefaultValue() |
AnnotationValue<?,?> |
MethodDescription.Token.getDefaultValue()
Returns the default value of the represented method.
|
Modifier and Type | Method and Description |
---|---|
boolean |
MethodDescription.isDefaultValue(AnnotationValue<?,?> annotationValue)
Checks if the given value can describe a default annotation value for this method.
|
boolean |
MethodDescription.AbstractBase.isDefaultValue(AnnotationValue<?,?> annotationValue) |
Constructor and Description |
---|
Latent(TypeDescription declaringType,
String internalName,
int modifiers,
List<? extends TypeVariableToken> typeVariables,
TypeDescription.Generic returnType,
List<? extends ParameterDescription.Token> parameterTokens,
List<? extends TypeDescription.Generic> exceptionTypes,
List<? extends AnnotationDescription> declaredAnnotations,
AnnotationValue<?,?> defaultValue,
TypeDescription.Generic receiverType)
Creates a new latent method description.
|
Token(String name,
int modifiers,
List<? extends TypeVariableToken> typeVariableTokens,
TypeDescription.Generic returnType,
List<? extends ParameterDescription.Token> parameterTokens,
List<? extends TypeDescription.Generic> exceptionTypes,
List<? extends AnnotationDescription> annotations,
AnnotationValue<?,?> defaultValue,
TypeDescription.Generic receiverType)
Creates a new token for a method description.
|
Modifier and Type | Method and Description |
---|---|
AnnotationValue<?,?> |
Transformer.ForMethod.TransformedMethod.getDefaultValue() |
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U> |
DynamicType.Builder.MethodDefinition.ImplementationDefinition.defaultValue(AnnotationValue<?,?> annotationValue)
Defines the previously defined or matched method to return the supplied value as an annotation default value.
|
DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<X> |
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.AbstractBase.Adapter.defaultValue(AnnotationValue<?,?> annotationValue) |
DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<X> |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable.AbstractBase.Adapter.defaultValue(AnnotationValue<?,?> annotationValue) |
DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<X> |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable.AbstractBase.Adapter.defaultValue(AnnotationValue<?,?> annotationValue) |
DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U> |
DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.defaultValue(AnnotationValue<?,?> annotationValue) |
DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U> |
DynamicType.Builder.AbstractBase.Adapter.MethodMatchAdapter.defaultValue(AnnotationValue<?,?> annotationValue) |
DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U> |
DynamicType.Builder.AbstractBase.Adapter.OptionalMethodMatchAdapter.defaultValue(AnnotationValue<?,?> annotationValue) |
Modifier and Type | Method and Description |
---|---|
AnnotationValue<?,?> |
TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge.VisibilityBridge.getDefaultValue() |
AnnotationValue<?,?> |
TypeWriter.MethodPool.Record.AccessBridgeWrapper.AccessorBridge.getDefaultValue() |
AnnotationValue<?,?> |
TypeWriter.MethodPool.Record.AccessBridgeWrapper.BridgeTarget.getDefaultValue() |
AnnotationValue<?,?> |
TypeWriter.Default.ForInlining.TypeInitializerDelegate.getDefaultValue() |
Constructor and Description |
---|
ForAnnotationValue(AnnotationValue<?,?> annotationValue)
Creates a handler for defining a default annotation value for a method.
|
WithAnnotationDefaultValue(MethodDescription methodDescription,
AnnotationValue<?,?> annotationValue,
MethodAttributeAppender methodAttributeAppender)
Creates a new entry for defining a method with a default annotation value.
|
Modifier and Type | Method and Description |
---|---|
AnnotationValue<?,?> |
MethodRebaseResolver.Resolution.ForRebasedMethod.RebasedMethod.getDefaultValue() |
AnnotationValue<?,?> |
MethodRebaseResolver.Resolution.ForRebasedConstructor.RebasedConstructor.getDefaultValue() |
Modifier and Type | Method and Description |
---|---|
AnnotationValue<?,?> |
Implementation.Context.Default.AccessorMethod.getDefaultValue() |
AnnotationValue<?,?> |
Implementation.Context.Default.FieldGetter.getDefaultValue() |
AnnotationValue<?,?> |
Implementation.Context.Default.FieldSetter.getDefaultValue() |
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 Map<String,AnnotationValue<?,?>> |
TypePool.Default.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,
AnnotationValue<?,?> annotationValue)
Registers an annotation value.
|
void |
TypePool.Default.AnnotationRegistrant.AbstractBase.register(String name,
AnnotationValue<?,?> annotationValue) |
void |
TypePool.Default.TypeExtractor.AnnotationExtractor.ArrayLookup.register(String ignored,
AnnotationValue<?,?> annotationValue) |
void |
TypePool.Default.TypeExtractor.AnnotationExtractor.AnnotationLookup.register(String name,
AnnotationValue<?,?> annotationValue) |
void |
TypePool.Default.TypeExtractor.MethodExtractor.register(String ignored,
AnnotationValue<?,?> annotationValue) |
Constructor and Description |
---|
AnnotationToken(String descriptor,
Map<String,AnnotationValue<?,?>> values)
Creates a new annotation token.
|
RawNonPrimitiveArray(TypePool typePool,
TypePool.AbstractBase.RawNonPrimitiveArray.ComponentTypeReference componentTypeReference,
List<AnnotationValue<?,?>> value)
Creates a new array value representation of a complex array.
|
Copyright © 2014–2016. All rights reserved.