Package net.bytebuddy.pool
Class TypePool.Default.LazyTypeDescription.AnnotationToken
java.lang.Object
net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.AnnotationToken
- Enclosing class:
- TypePool.Default.LazyTypeDescription
A token for representing collected data on an annotation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interface
A resolution for an annotation tokens. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
The descriptor of the represented annotation.private final Map<String,
AnnotationValue<?, ?>> A map of annotation value names to their value representations. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AnnotationToken
(String descriptor, Map<String, AnnotationValue<?, ?>> values) Creates a new annotation token. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Returns the annotation type's binary name.toAnnotationDescription
(TypePool typePool) Transforms this token into an annotation description.
-
Field Details
-
descriptor
The descriptor of the represented annotation. -
values
A map of annotation value names to their value representations.
-
-
Constructor Details
-
AnnotationToken
Creates a new annotation token.- Parameters:
descriptor
- The descriptor of the represented annotation.values
- A map of annotation value names to their value representations.
-
-
Method Details
-
getBinaryName
Returns the annotation type's binary name.- Returns:
- The annotation type's binary name.
-
toAnnotationDescription
private TypePool.Default.LazyTypeDescription.AnnotationToken.Resolution toAnnotationDescription(TypePool typePool) Transforms this token into an annotation description.- Parameters:
typePool
- The type pool to be used for looking up linked types.- Returns:
- An optional description of this annotation's token.
-