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 java.lang.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
Fields Modifier and Type Field Description private AnnotationDescription
annotationDescription
The represented annotation description.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Simple(AnnotationDescription annotationDescription)
Creates a new simple resolution.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isResolved()
Returnstrue
if the represented annotation could be resolved.AnnotationDescription
resolve()
Returns the resolved annotation.
-
-
-
Field Detail
-
annotationDescription
private final AnnotationDescription annotationDescription
The represented annotation description.
-
-
Constructor Detail
-
Simple
protected Simple(AnnotationDescription annotationDescription)
Creates a new simple resolution.- Parameters:
annotationDescription
- The represented annotation description.
-
-
Method Detail
-
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
public AnnotationDescription 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.
-
-