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 TypePool.Default.LazyTypeDescription.AnnotationToken.Resolution
TypePool.Default.LazyTypeDescription.AnnotationToken.Resolution.Illegal, TypePool.Default.LazyTypeDescription.AnnotationToken.Resolution.Simple -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AnnotationDescriptionThe represented annotation description. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSimple(AnnotationDescription annotationDescription) Creates a new simple resolution. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif 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()Returnstrueif the represented annotation could be resolved.- Specified by:
isResolvedin interfaceTypePool.Default.LazyTypeDescription.AnnotationToken.Resolution- Returns:
trueif the represented annotation could be resolved.
-
resolve
Returns the resolved annotation. This method throws an exception if this instance is not resolved.- Specified by:
resolvein interfaceTypePool.Default.LazyTypeDescription.AnnotationToken.Resolution- Returns:
- The resolved annotation. This method throws an exception if this instance is not resolved.
-