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.field |
Contains descriptions of Java fields.
|
net.bytebuddy.description.method |
Contains descriptions of Java methods and constructors as well as their parameters.
|
net.bytebuddy.description.type |
Contains descriptions of Java types and packages.
|
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.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 |
---|---|
MemberAttributeExtension.ForField |
MemberAttributeExtension.ForField.annotate(AnnotationDescription... annotation)
Appends the supplied annotations.
|
MemberAttributeExtension.ForMethod |
MemberAttributeExtension.ForMethod.annotateMethod(AnnotationDescription... annotation)
Appends the supplied annotations.
|
MemberAttributeExtension.ForMethod |
MemberAttributeExtension.ForMethod.annotateParameter(int index,
AnnotationDescription... annotation)
Appends the supplied annotations to the parameter at the given index.
|
Modifier and Type | Method and Description |
---|---|
MemberAttributeExtension.ForField |
MemberAttributeExtension.ForField.annotate(Collection<? extends AnnotationDescription> annotations)
Appends the supplied annotations.
|
MemberAttributeExtension.ForMethod |
MemberAttributeExtension.ForMethod.annotateMethod(Collection<? extends AnnotationDescription> annotations)
Appends the supplied annotations.
|
MemberAttributeExtension.ForMethod |
MemberAttributeExtension.ForMethod.annotateParameter(int index,
Collection<? extends AnnotationDescription> annotations)
Appends the supplied annotations to the parameter at the given index.
|
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.AbstractBase
An adapter implementation of an annotation.
|
static class |
AnnotationDescription.ForLoadedAnnotation<S extends Annotation>
A description of an already loaded annotation.
|
static class |
AnnotationDescription.Latent
A latent description of an annotation value that is defined explicitly.
|
protected class |
AnnotationDescription.Latent.Loadable<S extends Annotation>
A loadable annotation description of a latent annotation description.
|
Modifier and Type | Method and Description |
---|---|
AnnotationDescription |
AnnotationDescription.Builder.build()
Creates an annotation description for the values that were defined for this builder.
|
AnnotationDescription |
AnnotationDescription.Builder.build(boolean validated)
Creates an annotation description for the values that were defined for this builder.
|
AnnotationDescription |
AnnotationList.ForLoadedAnnotations.get(int index) |
AnnotationDescription |
AnnotationList.Explicit.get(int index) |
AnnotationDescription |
AnnotationList.ofType(TypeDescription annotationType)
Finds the first annotation of the given type and returns it.
|
AnnotationDescription |
AnnotationList.AbstractBase.ofType(TypeDescription annotationType)
Finds the first annotation of the given type and returns it.
|
AnnotationDescription |
AnnotationList.Empty.ofType(TypeDescription annotationType)
Finds the first annotation of the given type and returns it.
|
AnnotationDescription |
AnnotationValue.ForAnnotationDescription.resolve()
Resolves the unloaded value of this annotation.
|
Modifier and Type | Method and Description |
---|---|
AnnotationValue<AnnotationDescription,U> |
AnnotationValue.ForAnnotationDescription.filter(MethodDescription.InDefinedShape property,
TypeDefinition typeDefinition)
Filters this annotation value as a valid value of the provided property.
|
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,
AnnotationDescription annotationDescription)
Returns a builder with the additional annotation property.
|
AnnotationDescription.Builder |
AnnotationDescription.Builder.defineAnnotationArray(String property,
TypeDescription annotationType,
AnnotationDescription... annotationDescription)
Returns a builder with the additional annotation array property.
|
static <W extends Annotation> |
AnnotationValue.ForDescriptionArray.of(TypeDescription annotationType,
AnnotationDescription[] annotationDescription)
Creates a new complex array of annotation descriptions.
|
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.AbstractBase.wrap(List<AnnotationDescription> values) |
Constructor and Description |
---|
Explicit(AnnotationDescription... annotation)
Creates a new explicit annotation source.
|
Explicit(AnnotationDescription... annotationDescription)
Creates a new list of annotation descriptions.
|
ForAnnotationDescription(AnnotationDescription annotationDescription)
Creates a new annotation value for a given annotation description.
|
Constructor and Description |
---|
Explicit(List<? extends AnnotationDescription> annotations)
Creates a new explicit annotation source.
|
Explicit(List<? extends AnnotationDescription> annotationDescriptions)
Creates a new list of annotation descriptions.
|
Constructor and Description |
---|
Latent(TypeDescription declaringType,
String name,
int modifiers,
TypeDescription.Generic fieldType,
List<? extends AnnotationDescription> declaredAnnotations)
Creates a new latent field description.
|
Token(String name,
int modifiers,
TypeDescription.Generic type,
List<? extends AnnotationDescription> annotations)
Creates a new field token.
|
Constructor and Description |
---|
Latent(MethodDescription.InDefinedShape declaringMethod,
TypeDescription.Generic parameterType,
List<? extends AnnotationDescription> declaredAnnotations,
String name,
Integer modifiers,
int index,
int offset)
Creates a latent parameter 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.
|
Token(TypeDescription.Generic type,
List<? extends AnnotationDescription> annotations)
Creates a new parameter token without an explicit name or an explicit modifier.
|
Token(TypeDescription.Generic type,
List<? extends AnnotationDescription> annotations,
String name,
Integer modifiers)
Creates a new parameter token.
|
Modifier and Type | Field and Description |
---|---|
protected List<? extends AnnotationDescription> |
TypeDescription.Generic.Builder.annotations
The type annotations of the current annotated type.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription.Generic.Builder |
TypeDescription.Generic.Builder.annotate(AnnotationDescription... annotation)
Defines type annotations to be declared by the current type.
|
TypeDescription.Generic |
TypeDescription.Generic.Builder.asWildcardLowerBound(AnnotationDescription... annotation)
Transforms this type into the lower bound of a wildcard type.
|
TypeDescription.Generic |
TypeDescription.Generic.Builder.asWildcardUpperBound(AnnotationDescription... annotation)
Transforms this type into the upper bound of a wildcard type.
|
TypeDescription.Generic |
TypeDescription.Generic.Builder.build(AnnotationDescription... annotation)
Finalizes the build and finalizes the created type as a generic type description.
|
static TypeDescription.Generic |
TypeDescription.Generic.Builder.unboundWildcard(AnnotationDescription... annotation)
Creates an unbound wildcard.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription.Generic.Builder |
TypeDescription.Generic.Builder.annotate(Collection<? extends AnnotationDescription> annotations)
Defines type annotations to be declared by the current type.
|
TypeDescription.Generic |
TypeDescription.Generic.Builder.asWildcardLowerBound(Collection<? extends AnnotationDescription> annotations)
Transforms this type into the lower bound of a wildcard type.
|
TypeDescription.Generic |
TypeDescription.Generic.Builder.asWildcardUpperBound(Collection<? extends AnnotationDescription> annotations)
Transforms this type into the upper bound of a wildcard type.
|
TypeDescription.Generic |
TypeDescription.Generic.Builder.build(Collection<? extends AnnotationDescription> annotations)
Finalizes the build and finalizes the created type as a generic type description.
|
protected abstract TypeDescription.Generic.Builder |
TypeDescription.Generic.Builder.doAnnotate(List<? extends AnnotationDescription> annotations)
Creates a new builder for the current type and the applied type annotations.
|
protected TypeDescription.Generic.Builder |
TypeDescription.Generic.Builder.OfNonGenericType.doAnnotate(List<? extends AnnotationDescription> annotations) |
protected TypeDescription.Generic.Builder |
TypeDescription.Generic.Builder.OfParameterizedType.doAnnotate(List<? extends AnnotationDescription> annotations) |
protected TypeDescription.Generic.Builder |
TypeDescription.Generic.Builder.OfGenericArrayType.doAnnotate(List<? extends AnnotationDescription> annotations) |
protected TypeDescription.Generic.Builder |
TypeDescription.Generic.Builder.OfTypeVariable.doAnnotate(List<? extends AnnotationDescription> annotations) |
static TypeDescription.Generic |
TypeDescription.Generic.Builder.unboundWildcard(Collection<? extends AnnotationDescription> annotations)
Creates an unbound wildcard.
|
Constructor and Description |
---|
Builder(List<? extends AnnotationDescription> annotations)
Creates a new builder for a generic type description.
|
Latent(TypeDescription declaringType,
String name,
TypeDescription.Generic type,
List<? extends AnnotationDescription> annotations)
Creates a new latent record component.
|
OfGenericArrayType(TypeDescription.Generic componentType,
List<? extends AnnotationDescription> annotations)
Creates a type builder for building a generic array type.
|
OfNonGenericType(TypeDescription typeDescription,
TypeDescription.Generic ownerType,
List<? extends AnnotationDescription> annotations)
Creates a builder for a non-generic type.
|
OfParameterizedType(TypeDescription rawType,
TypeDescription.Generic ownerType,
List<? extends TypeDescription.Generic> parameterTypes,
List<? extends AnnotationDescription> annotations)
Creates a builder for a parameterized type.
|
OfTypeVariable(String symbol,
List<? extends AnnotationDescription> annotations)
Creates a new builder for a symbolic type variable.
|
Token(String name,
TypeDescription.Generic type,
List<? extends AnnotationDescription> annotations)
Creates a new record component token.
|
TypeVariableToken(String symbol,
List<? extends TypeDescription.Generic> bounds,
List<? extends AnnotationDescription> annotations)
Creates a new type variable token.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.FieldDefinition.Optional<S> |
DynamicType.Builder.FieldDefinition.annotateField(AnnotationDescription... annotation)
Annotates the previously defined or matched field with the supplied annotations.
|
DynamicType.Builder.FieldDefinition.Optional<U> |
DynamicType.Builder.FieldDefinition.Optional.AbstractBase.annotateField(AnnotationDescription... annotation)
Annotates the previously defined or matched field with the supplied annotations.
|
DynamicType.Builder.MethodDefinition<S> |
DynamicType.Builder.MethodDefinition.annotateMethod(AnnotationDescription... annotation)
Annotates the previously defined or matched method with the supplied annotations.
|
DynamicType.Builder.MethodDefinition<U> |
DynamicType.Builder.MethodDefinition.AbstractBase.annotateMethod(AnnotationDescription... annotation)
Annotates the previously defined or matched method with the supplied annotations.
|
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V> |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable.annotateParameter(AnnotationDescription... annotation)
Annotates the previously defined parameter with the specified annotations.
|
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<W> |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable.AbstractBase.annotateParameter(AnnotationDescription... annotation)
Annotates the previously defined parameter with the specified annotations.
|
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<V> |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable.annotateParameter(AnnotationDescription... annotation)
Annotates the previously defined parameter with the specified annotations.
|
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<W> |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable.AbstractBase.annotateParameter(AnnotationDescription... annotation)
Annotates the previously defined parameter with the specified annotations.
|
DynamicType.Builder.MethodDefinition<S> |
DynamicType.Builder.MethodDefinition.annotateParameter(int index,
AnnotationDescription... annotation)
Annotates the parameter of the given index of the previously defined or matched method with the supplied annotations.
|
DynamicType.Builder.MethodDefinition<U> |
DynamicType.Builder.MethodDefinition.AbstractBase.annotateParameter(int index,
AnnotationDescription... annotation)
Annotates the parameter of the given index of the previously defined or matched method with the supplied annotations.
|
DynamicType.Builder.RecordComponentDefinition.Optional<S> |
DynamicType.Builder.RecordComponentDefinition.annotateRecordComponent(AnnotationDescription... annotation)
Annotates the record component with the supplied annotations.
|
DynamicType.Builder.RecordComponentDefinition.Optional<U> |
DynamicType.Builder.RecordComponentDefinition.Optional.AbstractBase.annotateRecordComponent(AnnotationDescription... annotation)
Annotates the record component with the supplied annotations.
|
DynamicType.Builder<T> |
DynamicType.Builder.annotateType(AnnotationDescription... annotation)
Annotates the instrumented type with the supplied annotations.
|
DynamicType.Builder<S> |
DynamicType.Builder.AbstractBase.annotateType(AnnotationDescription... annotation)
Annotates the instrumented type with the supplied annotations.
|
DynamicType.Builder.TypeVariableDefinition<S> |
DynamicType.Builder.TypeVariableDefinition.annotateTypeVariable(AnnotationDescription... annotation)
Annotates the previously defined type variable with the supplied annotations.
|
DynamicType.Builder.TypeVariableDefinition<U> |
DynamicType.Builder.TypeVariableDefinition.AbstractBase.annotateTypeVariable(AnnotationDescription... annotation)
Annotates the previously defined type variable with the supplied annotations.
|
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<V> |
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.annotateTypeVariable(AnnotationDescription... annotation)
Annotates the previously defined type variable with the supplied annotations.
|
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<W> |
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.AbstractBase.annotateTypeVariable(AnnotationDescription... annotation)
Annotates the previously defined type variable with the supplied annotations.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.FieldDefinition.Optional<S> |
DynamicType.Builder.FieldDefinition.annotateField(Collection<? extends AnnotationDescription> annotations)
Annotates the previously defined or matched field with the supplied annotations.
|
DynamicType.Builder.FieldDefinition.Optional<U> |
DynamicType.Builder.AbstractBase.Adapter.FieldDefinitionAdapter.annotateField(Collection<? extends AnnotationDescription> annotations)
Annotates the previously defined or matched field with the supplied annotations.
|
DynamicType.Builder.FieldDefinition.Optional<U> |
DynamicType.Builder.AbstractBase.Adapter.FieldMatchAdapter.annotateField(Collection<? extends AnnotationDescription> annotations)
Annotates the previously defined or matched field with the supplied annotations.
|
DynamicType.Builder.MethodDefinition<S> |
DynamicType.Builder.MethodDefinition.annotateMethod(Collection<? extends AnnotationDescription> annotations)
Annotates the previously defined or matched method with the supplied annotations.
|
DynamicType.Builder.MethodDefinition<U> |
DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.AnnotationAdapter.annotateMethod(Collection<? extends AnnotationDescription> annotations)
Annotates the previously defined or matched method with the supplied annotations.
|
DynamicType.Builder.MethodDefinition<U> |
DynamicType.Builder.AbstractBase.Adapter.MethodMatchAdapter.AnnotationAdapter.annotateMethod(Collection<? extends AnnotationDescription> annotations)
Annotates the previously defined or matched method with the supplied annotations.
|
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V> |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable.annotateParameter(Collection<? extends AnnotationDescription> annotations)
Annotates the previously defined parameter with the specified annotations.
|
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<V> |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable.annotateParameter(Collection<? extends AnnotationDescription> annotations)
Annotates the previously defined parameter with the specified annotations.
|
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<U> |
DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.ParameterAnnotationAdapter.annotateParameter(Collection<? extends AnnotationDescription> annotations)
Annotates the previously defined parameter with the specified annotations.
|
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<U> |
DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.SimpleParameterAnnotationAdapter.annotateParameter(Collection<? extends AnnotationDescription> annotations)
Annotates the previously defined parameter with the specified annotations.
|
DynamicType.Builder.MethodDefinition<S> |
DynamicType.Builder.MethodDefinition.annotateParameter(int index,
Collection<? extends AnnotationDescription> annotations)
Annotates the parameter of the given index of the previously defined or matched method with the supplied annotations.
|
DynamicType.Builder.MethodDefinition<U> |
DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.AnnotationAdapter.annotateParameter(int index,
Collection<? extends AnnotationDescription> annotations)
Annotates the parameter of the given index of the previously defined or matched method with the supplied annotations.
|
DynamicType.Builder.MethodDefinition<U> |
DynamicType.Builder.AbstractBase.Adapter.MethodMatchAdapter.AnnotationAdapter.annotateParameter(int index,
Collection<? extends AnnotationDescription> annotations)
Annotates the parameter of the given index of the previously defined or matched method with the supplied annotations.
|
DynamicType.Builder.RecordComponentDefinition.Optional<S> |
DynamicType.Builder.RecordComponentDefinition.annotateRecordComponent(Collection<? extends AnnotationDescription> annotations)
Annotates the record component with the supplied annotations.
|
DynamicType.Builder.RecordComponentDefinition.Optional<U> |
DynamicType.Builder.AbstractBase.Adapter.RecordComponentDefinitionAdapter.annotateRecordComponent(Collection<? extends AnnotationDescription> annotations)
Annotates the record component with the supplied annotations.
|
DynamicType.Builder.RecordComponentDefinition.Optional<U> |
DynamicType.Builder.AbstractBase.Adapter.RecordComponentMatchAdapter.annotateRecordComponent(Collection<? extends AnnotationDescription> annotations)
Annotates the record component with the supplied annotations.
|
DynamicType.Builder<T> |
DynamicType.Builder.annotateType(Collection<? extends AnnotationDescription> annotations)
Annotates the instrumented type with the supplied annotations.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Delegator.annotateType(Collection<? extends AnnotationDescription> annotations)
Annotates the instrumented type with the supplied annotations.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.annotateType(Collection<? extends AnnotationDescription> annotations)
Annotates the instrumented type with the supplied annotations.
|
DynamicType.Builder.TypeVariableDefinition<S> |
DynamicType.Builder.TypeVariableDefinition.annotateTypeVariable(Collection<? extends AnnotationDescription> annotations)
Annotates the previously defined type variable with the supplied annotations.
|
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<V> |
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.annotateTypeVariable(Collection<? extends AnnotationDescription> annotations)
Annotates the previously defined type variable with the supplied annotations.
|
DynamicType.Builder.TypeVariableDefinition<U> |
DynamicType.Builder.AbstractBase.Adapter.TypeVariableDefinitionAdapter.annotateTypeVariable(Collection<? extends AnnotationDescription> annotations)
Annotates the previously defined type variable with the supplied annotations.
|
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U> |
DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.TypeVariableAnnotationAdapter.annotateTypeVariable(Collection<? extends AnnotationDescription> annotations)
Annotates the previously defined type variable with the supplied annotations.
|
Modifier and Type | Method and Description |
---|---|
InstrumentedType |
InstrumentedType.withAnnotations(List<? extends AnnotationDescription> annotationDescriptions)
Creates a new instrumented type with the given annotations.
|
InstrumentedType.WithFlexibleName |
InstrumentedType.WithFlexibleName.withAnnotations(List<? extends AnnotationDescription> annotationDescriptions)
Creates a new instrumented type with the given annotations.
|
InstrumentedType.WithFlexibleName |
InstrumentedType.Default.withAnnotations(List<? extends AnnotationDescription> annotationDescriptions)
Creates a new instrumented type with the given annotations.
|
InstrumentedType.WithFlexibleName |
InstrumentedType.Frozen.withAnnotations(List<? extends AnnotationDescription> annotationDescriptions)
Creates a new instrumented type with the given annotations.
|
Constructor and Description |
---|
Default(String name,
int modifiers,
TypeDescription.Generic superClass,
List<? extends TypeVariableToken> typeVariables,
List<? extends TypeDescription.Generic> interfaceTypes,
List<? extends FieldDescription.Token> fieldTokens,
List<? extends MethodDescription.Token> methodTokens,
List<? extends RecordComponentDescription.Token> recordComponentTokens,
List<? extends AnnotationDescription> annotationDescriptions,
TypeInitializer typeInitializer,
LoadedTypeInitializer loadedTypeInitializer,
TypeDescription declaringType,
MethodDescription.InDefinedShape enclosingMethod,
TypeDescription enclosingType,
List<? extends TypeDescription> declaredTypes,
List<? extends TypeDescription> permittedSubclasses,
boolean anonymousClass,
boolean localClass,
boolean record,
TypeDescription nestHost,
List<? extends TypeDescription> nestMembers)
Creates a new instrumented type.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<T> |
DecoratingDynamicTypeBuilder.annotateType(Collection<? extends AnnotationDescription> annotations)
Annotates the instrumented type with the supplied annotations.
|
Modifier and Type | Method and Description |
---|---|
AnnotationAppender |
AnnotationAppender.append(AnnotationDescription annotationDescription,
AnnotationValueFilter annotationValueFilter)
Writes the given annotation to the target that this appender represents.
|
AnnotationAppender |
AnnotationAppender.Default.append(AnnotationDescription annotationDescription,
AnnotationValueFilter annotationValueFilter)
Writes the given annotation to the target that this appender represents.
|
AnnotationAppender |
AnnotationAppender.append(AnnotationDescription annotationDescription,
AnnotationValueFilter annotationValueFilter,
int typeReference,
String typePath)
Writes the given type annotation to the target that this appender represents.
|
AnnotationAppender |
AnnotationAppender.Default.append(AnnotationDescription annotationDescription,
AnnotationValueFilter annotationValueFilter,
int typeReference,
String typePath)
Writes the given type annotation to the target that this appender represents.
|
boolean |
AnnotationValueFilter.isRelevant(AnnotationDescription annotationDescription,
MethodDescription.InDefinedShape methodDescription)
Checks if the given annotation value should be written as the value of the provided annotation property.
|
Constructor and Description |
---|
Explicit(int parameterIndex,
List<? extends AnnotationDescription> annotations)
Creates a new appender for appending an annotation to a method.
|
Explicit(List<? extends AnnotationDescription> annotations)
Creates a new annotation attribute appender for explicit annotation values.
|
Explicit(List<? extends AnnotationDescription> annotations)
Creates a new annotation attribute appender for explicit annotation values.
|
Explicit(List<? extends AnnotationDescription> annotations)
Creates a new appender for appending an annotation to a method.
|
Explicit(List<? extends AnnotationDescription> annotations)
Creates a new annotation attribute appender for explicit annotation values.
|
Explicit(MethodAttributeAppender.Explicit.Target target,
List<? extends AnnotationDescription> annotations)
Creates an explicit annotation appender for a either a method or one of its parameters..
|
Modifier and Type | Method and Description |
---|---|
protected static TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler |
TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler.Bound.of(ParameterDescription target,
TargetMethodAnnotationDrivenBinder.ParameterBinder<?> parameterBinder,
AnnotationDescription annotation,
Assigner.Typing typing)
Creates a handler for a given annotation.
|
Modifier and Type | Class and Description |
---|---|
class |
AnnotationTargetMatcher<T extends AnnotationDescription>
A matcher for annotations that target a given element type.
|
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.annotationType(Class<? extends Annotation> type)
Matches if an annotation is of a given type.
|
static <T extends AnnotationDescription> |
ElementMatchers.annotationType(ElementMatcher<? super TypeDescription> matcher)
Matches if an annotation's type matches the supplied matcher.
|
static <T extends AnnotationDescription> |
ElementMatchers.annotationType(TypeDescription type)
Matches if an annotation is of a given type.
|
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.noneOf(Annotation... value)
Creates a matcher that matches none of the given annotations as
AnnotationDescription s
by the Object.equals(Object) method. |
static <T extends AnnotationDescription> |
ElementMatchers.targetsElement(ElementType elementType)
Matches if an annotation can target a given element type.
|
Modifier and Type | Method and Description |
---|---|
static <T extends AnnotationSource> |
ElementMatchers.declaresAnnotation(ElementMatcher<? super AnnotationDescription> matcher)
Matches an
AnnotationSource 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.Default.LazyTypeDescription.AnnotationToken.Resolution.resolve()
Returns the resolved annotation.
|
AnnotationDescription |
TypePool.Default.LazyTypeDescription.AnnotationToken.Resolution.Simple.resolve()
Returns the resolved annotation.
|
AnnotationDescription |
TypePool.Default.LazyTypeDescription.AnnotationToken.Resolution.Illegal.resolve()
Returns the resolved annotation.
|
Constructor and Description |
---|
Simple(AnnotationDescription annotationDescription)
Creates a new simple resolution.
|
Copyright © 2014–2020. All rights reserved.