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 Object
A token for representing collected data on an annotation.
  • Field Details

    • descriptor

      private final String descriptor
      The descriptor of the represented annotation.
    • values

      private final Map<String,AnnotationValue<?,?>> values
      A map of annotation value names to their value representations.
  • Constructor Details

    • AnnotationToken

      protected AnnotationToken(String descriptor, Map<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 Details

    • getBinaryName

      protected String getBinaryName()
      Returns the annotation type's binary name.
      Returns:
      The annotation type's binary name.
    • toAnnotationDescription

      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.