Package | Description |
---|---|
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.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 | 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.AbstractBase.ForPrepared<S extends Annotation>
An abstract implementation of a loadable annotation description.
|
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 |
AnnotationList.ForLoadedAnnotations.get(int index) |
AnnotationDescription |
AnnotationList.Explicit.get(int index) |
AnnotationDescription |
AnnotationDescription.AnnotationValue.ForAnnotation.resolve() |
Modifier and Type | Method and Description |
---|---|
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 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> |
AnnotationDescription.AnnotationValue.ForComplexArray.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... annotationDescription)
Creates a new list of annotation descriptions.
|
ForAnnotation(AnnotationDescription annotationDescription)
Creates a new annotation value for a given annotation description.
|
Constructor and Description |
---|
Explicit(List<? extends AnnotationDescription> annotationDescriptions)
Creates a new list of annotation descriptions.
|
Constructor and Description |
---|
Latent(TypeDescription declaringType,
String fieldName,
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,
Object defaultValue)
Creates a new latent method description.
|
Token(String name,
int modifiers,
List<? extends TypeVariableToken> typeVariables,
TypeDescription.Generic returnType,
List<? extends ParameterDescription.Token> parameterTokens,
List<? extends TypeDescription.Generic> exceptionTypes,
List<? extends AnnotationDescription> annotations,
Object defaultValue)
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.
|
static TypeDescription.Generic |
TypeDescription.Generic.OfWildcardType.Latent.boundedAbove(TypeDescription.Generic upperBound,
List<? extends AnnotationDescription> declaredAnnotations)
Creates a wildcard with an upper bound.
|
static TypeDescription.Generic |
TypeDescription.Generic.OfWildcardType.Latent.boundedBelow(TypeDescription.Generic lowerBound,
List<? extends AnnotationDescription> declaredAnnotations)
Creates a wildcard with a lower bound.
|
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 spplied 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.OfWildcardType.Latent.unbounded(List<? extends AnnotationDescription> declaredAnnotations)
Creates an unbounded wildcard.
|
static TypeDescription.Generic |
TypeDescription.Generic.Builder.unboundWildcard(Collection<? extends AnnotationDescription> annotations)
Creates an unbound wildcard.
|
Constructor and Description |
---|
AnnotatedTypeVariable(TypeDescription.Generic typeVariable,
List<AnnotationDescription> annotations)
Creates a new annotated type variable.
|
Builder(List<? extends AnnotationDescription> annotations)
Creates a new builder for a generic type description.
|
Latent(List<? extends TypeDescription.Generic> upperBounds,
List<? extends TypeDescription.Generic> lowerBounds,
List<? extends AnnotationDescription> declaredAnnotations)
Creates a description of a latent wildcard.
|
Latent(TypeDescription.Generic componentType,
List<? extends AnnotationDescription> declaredAnnotations)
Creates a latent representation of a generic array type.
|
Latent(TypeDescription typeDescription,
List<? extends AnnotationDescription> annotationDescriptions)
Creates a non-generic type with an implicit owner type.
|
Latent(TypeDescription typeDescription,
TypeDescription.Generic declaringType,
List<? extends AnnotationDescription> annotationDescriptions)
Creates a non-generic type.
|
Latent(TypeDescription rawType,
TypeDescription.Generic ownerType,
List<? extends TypeDescription.Generic> parameters,
List<? extends AnnotationDescription> declaredAnnotations)
Creates a description of a latent parameterized type.
|
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.
|
Symbolic(String symbol,
List<? extends AnnotationDescription> declaredAnnotations)
Creates a symbolic type variable.
|
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) |
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) |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V> |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable.annotateParameter(AnnotationDescription... annotation)
Annotates the previously defined parameter with the specifed annotations.
|
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<W> |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable.AbstractBase.annotateParameter(AnnotationDescription... annotation) |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<V> |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable.annotateParameter(AnnotationDescription... annotation)
Annotates the previously defined parameter with the specifed annotations.
|
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<W> |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable.AbstractBase.annotateParameter(AnnotationDescription... annotation) |
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) |
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) |
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) |
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) |
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) |
DynamicType.Builder.FieldDefinition.Optional<U> |
DynamicType.Builder.AbstractBase.Adapter.FieldMatchAdapter.annotateField(Collection<? extends AnnotationDescription> 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) |
DynamicType.Builder.MethodDefinition<U> |
DynamicType.Builder.AbstractBase.Adapter.MethodMatchAdapter.AnnotationAdapter.annotateMethod(Collection<? extends AnnotationDescription> annotations) |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V> |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable.annotateParameter(Collection<? extends AnnotationDescription> annotations)
Annotates the previously defined parameter with the specifed 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 specifed annotations.
|
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<U> |
DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.ParameterAnnotationAdapter.annotateParameter(Collection<? extends AnnotationDescription> annotations) |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<U> |
DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.SimpleParameterAnnotationAdapter.annotateParameter(Collection<? extends AnnotationDescription> 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) |
DynamicType.Builder.MethodDefinition<U> |
DynamicType.Builder.AbstractBase.Adapter.MethodMatchAdapter.AnnotationAdapter.annotateParameter(int index,
Collection<? extends AnnotationDescription> 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) |
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.annotateType(Collection<? extends AnnotationDescription> 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) |
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U> |
DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.TypeVariableAnnotationAdapter.annotateTypeVariable(Collection<? extends AnnotationDescription> 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) |
InstrumentedType.WithFlexibleName |
InstrumentedType.Default.withAnnotations(List<? extends AnnotationDescription> annotationDescriptions) |
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 AnnotationDescription> annotationDescriptions,
TypeInitializer typeInitializer,
LoadedTypeInitializer loadedTypeInitializer,
TypeDescription declaringType,
MethodDescription enclosingMethod,
TypeDescription enclosingType,
List<? extends TypeDescription> declaredTypes,
boolean memberClass,
boolean anonymousClass,
boolean localClass)
Creates a new instrumented type.
|
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) |
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) |
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 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 |
---|---|
AnnotationDescription |
TargetMethodAnnotationDrivenBinder.DefaultsProvider.Empty.EmptyIterator.next() |
AnnotationDescription |
Argument.NextUnboundAsDefaultsProvider.NextUnboundArgumentIterator.next() |
Modifier and Type | Method and Description |
---|---|
Iterator<AnnotationDescription> |
TargetMethodAnnotationDrivenBinder.DefaultsProvider.makeIterator(Implementation.Target implementationTarget,
MethodDescription source,
MethodDescription target)
Creates an iterator from which a value is pulled each time no processable annotation is found on a
method parameter.
|
Iterator<AnnotationDescription> |
TargetMethodAnnotationDrivenBinder.DefaultsProvider.Empty.makeIterator(Implementation.Target implementationTarget,
MethodDescription source,
MethodDescription target) |
Iterator<AnnotationDescription> |
Argument.NextUnboundAsDefaultsProvider.makeIterator(Implementation.Target implementationTarget,
MethodDescription source,
MethodDescription target) |
Modifier and Type | Class and Description |
---|---|
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.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. |
Modifier and Type | Method and Description |
---|---|
static <T extends AnnotatedCodeElement> |
ElementMatchers.declaresAnnotation(ElementMatcher<? super AnnotationDescription> matcher)
Matches an
AnnotatedCodeElement 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.AbstractBase.RawAnnotationValue.resolve() |
AnnotationDescription |
TypePool.Default.LazyTypeDescription.AnnotationToken.Resolution.resolve()
Returns the resolved annotation.
|
AnnotationDescription |
TypePool.Default.LazyTypeDescription.AnnotationToken.Resolution.Simple.resolve() |
AnnotationDescription |
TypePool.Default.LazyTypeDescription.AnnotationToken.Resolution.Illegal.resolve() |
Constructor and Description |
---|
Simple(AnnotationDescription annotationDescription)
Creates a new simple resolution.
|
Copyright © 2014–2016. All rights reserved.