Class TypePool.Default.LazyTypeDescription.RecordComponentToken

    • Constructor Detail

      • RecordComponentToken

        protected RecordComponentToken​(java.lang.String name,
                                       java.lang.String descriptor,
                                       java.lang.String genericSignature,
                                       java.util.Map<java.lang.String,​java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> typeAnnotationTokens,
                                       java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens)
        Creates a new record component token.
        Parameters:
        name - The record component's name.
        descriptor - The record component's descriptor.
        genericSignature - The record component's generic signature or null if it is non-generic.
        typeAnnotationTokens - A mapping of the record component's type annotations.
        annotationTokens - A list of the record component's annotations.
    • Method Detail

      • toRecordComponentDescription

        private RecordComponentDescription.InDefinedShape toRecordComponentDescription​(TypePool.Default.LazyTypeDescription lazyTypeDescription)
        Transforms this record component token to a record component description that is attached to a lazy type description.
        Parameters:
        lazyTypeDescription - The lazy type description to attach this record component description to.
        Returns:
        A record component description representing this record component token.