Package net.bytebuddy.pool
Interface TypePool.Default.LazyTypeDescription.AnnotationToken.Resolution
- All Known Implementing Classes:
TypePool.Default.LazyTypeDescription.AnnotationToken.Resolution.Illegal
,TypePool.Default.LazyTypeDescription.AnnotationToken.Resolution.Simple
- Enclosing class:
- TypePool.Default.LazyTypeDescription.AnnotationToken
protected static interface TypePool.Default.LazyTypeDescription.AnnotationToken.Resolution
A resolution for an annotation tokens. Any annotation is suppressed if its type is not available.
This conforms to the handling of the Java reflection API.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
An illegal resolution.static class
A simple resolved annotation. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if the represented annotation could be resolved.resolve()
Returns the resolved annotation.
-
Method Details
-
isResolved
boolean isResolved()Returnstrue
if the represented annotation could be resolved.- Returns:
true
if the represented annotation could be resolved.
-
resolve
AnnotationDescription resolve()Returns the resolved annotation. This method throws an exception if this instance is not resolved.- Returns:
- The resolved annotation. This method throws an exception if this instance is not resolved.
-