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 |
---|---|
protected static class |
AnnotationDescription.AnnotationInvocationHandler.MissingValue
Represents a missing annotation property which is not represented by a default value.
|
static class |
AnnotationValue.AbstractBase<U,V>
An abstract base implementation of an unloaded annotation value.
|
static class |
AnnotationValue.ForAnnotationDescription<U extends Annotation>
A description of an
Annotation as a value of another annotation. |
static class |
AnnotationValue.ForConstant<U>
Represents a primitive value, a
String or an array of the latter types. |
static class |
AnnotationValue.ForDescriptionArray<U,V>
Describes a complex array that is the value of an annotation.
|
static class |
AnnotationValue.ForEnumerationDescription<U extends Enum<U>>
A description of an
Enum as a value of an annotation. |
static class |
AnnotationValue.ForTypeDescription<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 AnnotationValue<boolean[],boolean[]> |
AnnotationValue.ForConstant.of(boolean... value)
Creates an annotation value for a
boolean[] value. |
static AnnotationValue<Boolean,Boolean> |
AnnotationValue.ForConstant.of(boolean value)
Creates an annotation value for a
boolean value. |
static AnnotationValue<byte[],byte[]> |
AnnotationValue.ForConstant.of(byte... value)
Creates an annotation value for a
byte[] value. |
static AnnotationValue<Byte,Byte> |
AnnotationValue.ForConstant.of(byte value)
Creates an annotation value for a
byte value. |
static AnnotationValue<char[],char[]> |
AnnotationValue.ForConstant.of(char... value)
Creates an annotation value for a
char[] value. |
static AnnotationValue<Character,Character> |
AnnotationValue.ForConstant.of(char value)
Creates an annotation value for a
char value. |
static AnnotationValue<double[],double[]> |
AnnotationValue.ForConstant.of(double... value)
Creates an annotation value for a
double[] value. |
static AnnotationValue<Double,Double> |
AnnotationValue.ForConstant.of(double value)
Creates an annotation value for a
double value. |
static <V extends Enum<V>> |
AnnotationValue.ForEnumerationDescription.of(EnumerationDescription value)
Creates a new annotation value for the given enumeration description.
|
static AnnotationValue<float[],float[]> |
AnnotationValue.ForConstant.of(float... value)
Creates an annotation value for a
float[] value. |
static AnnotationValue<Float,Float> |
AnnotationValue.ForConstant.of(float value)
Creates an annotation value for a
float value. |
static AnnotationValue<int[],int[]> |
AnnotationValue.ForConstant.of(int... value)
Creates an annotation value for a
int[] value. |
static AnnotationValue<Integer,Integer> |
AnnotationValue.ForConstant.of(int value)
Creates an annotation value for a
int value. |
static AnnotationValue<long[],long[]> |
AnnotationValue.ForConstant.of(long... value)
Creates an annotation value for a
long[] value. |
static AnnotationValue<Long,Long> |
AnnotationValue.ForConstant.of(long value)
Creates an annotation value for a
long value. |
protected static AnnotationValue<?,?> |
AnnotationDescription.AnnotationInvocationHandler.MissingValue.of(Method method)
Creates a missing value for the supplied annotation property.
|
static AnnotationValue<?,?> |
AnnotationValue.ForConstant.of(Object value)
Creates an annotation value for any constant value, i.e any primitive (wrapper) type,
any primitive array type or any
String value or array. |
static AnnotationValue<short[],short[]> |
AnnotationValue.ForConstant.of(short... value)
Creates an annotation value for a
short[] value. |
static AnnotationValue<Short,Short> |
AnnotationValue.ForConstant.of(short value)
Creates an annotation value for a
short value. |
static AnnotationValue<String[],String[]> |
AnnotationValue.ForConstant.of(String... value)
Creates an annotation value for a
String[] value. |
static AnnotationValue<String,String> |
AnnotationValue.ForConstant.of(String value)
Creates an annotation value for a
String value. |
static <V extends Class<V>> |
AnnotationValue.ForTypeDescription.of(TypeDescription typeDescription)
Creates an annotation value for representing the given type.
|
static AnnotationValue<TypeDescription[],Class<?>[]> |
AnnotationValue.ForDescriptionArray.of(TypeDescription[] typeDescription)
Creates a new complex array of annotation descriptions.
|
static <W extends Annotation> |
AnnotationValue.ForDescriptionArray.of(TypeDescription annotationType,
AnnotationDescription[] annotationDescription)
Creates a new complex array of annotation descriptions.
|
static <W extends Enum<W>> |
AnnotationValue.ForDescriptionArray.of(TypeDescription enumerationType,
EnumerationDescription[] enumerationDescription)
Creates a new complex array of enumeration descriptions.
|
static <V extends Annotation> |
AnnotationValue.ForAnnotationDescription.of(TypeDescription annotationType,
Map<String,? extends 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,? extends AnnotationValue<?,?>> values)
Creates a proxy instance for the supplied annotation type and values.
|
static <V extends Annotation> |
AnnotationValue.ForAnnotationDescription.of(TypeDescription annotationType,
Map<String,? extends 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.
|
ForDescriptionArray(Class<?> unloadedComponentType,
TypeDescription componentType,
List<? extends AnnotationValue<?,?>> values)
Creates a new complex array.
|
Latent(TypeDescription annotationType,
Map<String,? extends 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() |
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.RawDescriptionArray
Represents an array that is referenced by an annotation which does not contain primitive values or
String s. |
protected static class |
TypePool.AbstractBase.RawEnumerationValue
Represents an enumeration value of an annotation.
|
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.
|
RawDescriptionArray(TypePool typePool,
TypePool.AbstractBase.RawDescriptionArray.ComponentTypeReference componentTypeReference,
List<AnnotationValue<?,?>> values)
Creates a new array value representation of a complex array.
|
Copyright © 2014–2017. All rights reserved.