Class TypePool.Default.LazyTypeDescription.LazyMethodDescription.LazyNonGenericReceiverType

    • Field Detail

      • typeDescription

        private final TypeDescription typeDescription
        The type description of the non-generic receiver type.
    • Constructor Detail

      • LazyNonGenericReceiverType

        protected LazyNonGenericReceiverType()
        Creates a new non-generic receiver type of the method's declaring type.
      • LazyNonGenericReceiverType

        protected LazyNonGenericReceiverType​(TypeDescription typeDescription)
        Creates a new non-generic receiver type of the supplied type.
        Parameters:
        typeDescription - The type to represent as a non-generic receiver type.
    • Method Detail

      • getDeclaredAnnotations

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

        public TypeDescription asErasure()
        Returns the erasure of this type. Wildcard types (TypeDefinition.Sort.WILDCARD) do not have a well-defined erasure and cause an IllegalStateException to be thrown.
        Returns:
        The erasure of this type.