Class TypePool.Default.LazyTypeDescription.LazyRecordComponentDescription

    • Constructor Detail

      • LazyRecordComponentDescription

        private LazyRecordComponentDescription​(java.lang.String name,
                                               java.lang.String descriptor,
                                               java.lang.String genericSignature,
                                               TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForRecordComponent signatureResolution,
                                               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 lazy description of a record component.
        Parameters:
        name - The record component's name.
        descriptor - The record component's descriptor.
        genericSignature - The record component's generic signature or null if the record component is non-generic.
        signatureResolution - The record component's signature resolution.
        typeAnnotationTokens - A mapping of the record component's type annotations.
        annotationTokens - A list of the record components annotations.
    • Method Detail

      • getType

        public TypeDescription.Generic getType()
        Returns the type of the record.
        Returns:
        The type of the record.
      • getDeclaringType

        public TypeDescription getDeclaringType()
        Returns the declaring type of this instance.
        Returns:
        The declaring type or null if no such type exists.
      • getActualName

        public java.lang.String getActualName()
        Returns the name of this element as it is found in the source code. If no such name exists, an empty string is returned.
        Returns:
        The name of this element as given in a Java program's source code.
      • getDeclaredAnnotations

        public AnnotationList getDeclaredAnnotations()
        Returns a list of annotations that are declared by this instance.
        Returns:
        A list of declared annotations.