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 classAn illegal resolution.static classA simple resolved annotation. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif the represented annotation could be resolved.resolve()Returns the resolved annotation.
-
Method Details
-
isResolved
boolean isResolved()Returnstrueif the represented annotation could be resolved.- Returns:
trueif 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.
-