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 Classes Modifier and Type Interface Description static class
TypePool.Default.LazyTypeDescription.AnnotationToken.Resolution.Illegal
An illegal resolution.static class
TypePool.Default.LazyTypeDescription.AnnotationToken.Resolution.Simple
A simple resolved annotation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isResolved()
Returnstrue
if the represented annotation could be resolved.AnnotationDescription
resolve()
Returns the resolved annotation.
-
-
-
Method Detail
-
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.
-
-