Package net.bytebuddy.pool
Class TypePool.Default.LazyTypeDescription.AnnotationToken
- java.lang.Object
-
- net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.AnnotationToken
-
- Enclosing class:
- TypePool.Default.LazyTypeDescription
@Enhance protected static class TypePool.Default.LazyTypeDescription.AnnotationToken extends java.lang.Object
A token for representing collected data on an annotation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interfaceTypePool.Default.LazyTypeDescription.AnnotationToken.ResolutionA resolution for an annotation tokens.
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringdescriptorThe descriptor of the represented annotation.private java.util.Map<java.lang.String,AnnotationValue<?,?>>valuesA map of annotation value names to their value representations.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAnnotationToken(java.lang.String descriptor, java.util.Map<java.lang.String,AnnotationValue<?,?>> values)Creates a new annotation token.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetBinaryName()Returns the annotation type's binary name.protected java.util.Map<java.lang.String,AnnotationValue<?,?>>getValues()Returns a map of annotation value names to their value representations.private TypePool.Default.LazyTypeDescription.AnnotationToken.ResolutiontoAnnotationDescription(TypePool typePool)Transforms this token into an annotation description.
-
-
-
Field Detail
-
descriptor
private final java.lang.String descriptor
The descriptor of the represented annotation.
-
values
private final java.util.Map<java.lang.String,AnnotationValue<?,?>> values
A map of annotation value names to their value representations.
-
-
Constructor Detail
-
AnnotationToken
protected AnnotationToken(java.lang.String descriptor, java.util.Map<java.lang.String,AnnotationValue<?,?>> values)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 Detail
-
getValues
protected java.util.Map<java.lang.String,AnnotationValue<?,?>> getValues()
Returns a map of annotation value names to their value representations.- Returns:
- A map of annotation value names to their value representations.
-
getBinaryName
protected java.lang.String 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.
-
-