Package net.bytebuddy.pool
Class TypePool.Default.LazyTypeDescription.AnnotationToken.Resolution.Simple
java.lang.Object
net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.AnnotationToken.Resolution.Simple
- All Implemented Interfaces:
TypePool.Default.LazyTypeDescription.AnnotationToken.Resolution
- Enclosing interface:
TypePool.Default.LazyTypeDescription.AnnotationToken.Resolution
@Enhance
public static class TypePool.Default.LazyTypeDescription.AnnotationToken.Resolution.Simple
extends Object
implements TypePool.Default.LazyTypeDescription.AnnotationToken.Resolution
A simple resolved annotation.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.AnnotationToken.Resolution
TypePool.Default.LazyTypeDescription.AnnotationToken.Resolution.Illegal, TypePool.Default.LazyTypeDescription.AnnotationToken.Resolution.Simple
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AnnotationDescription
The represented annotation description. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Simple
(AnnotationDescription annotationDescription) Creates a new simple resolution. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if the represented annotation could be resolved.resolve()
Returns the resolved annotation.
-
Field Details
-
annotationDescription
The represented annotation description.
-
-
Constructor Details
-
Simple
Creates a new simple resolution.- Parameters:
annotationDescription
- The represented annotation description.
-
-
Method Details
-
isResolved
public boolean isResolved()Returnstrue
if the represented annotation could be resolved.- Specified by:
isResolved
in interfaceTypePool.Default.LazyTypeDescription.AnnotationToken.Resolution
- Returns:
true
if the represented annotation could be resolved.
-
resolve
Returns the resolved annotation. This method throws an exception if this instance is not resolved.- Specified by:
resolve
in interfaceTypePool.Default.LazyTypeDescription.AnnotationToken.Resolution
- Returns:
- The resolved annotation. This method throws an exception if this instance is not resolved.
-