Interface DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U>

    • Method Detail

      • receiverType

        DynamicType.Builder.MethodDefinition<U> receiverType​(java.lang.reflect.AnnotatedElement receiverType)
        Defines the supplied (annotated) receiver type for the previously defined or matched method.
        Parameters:
        receiverType - The receiver type to define on the previously defined or matched method.
        Returns:
        A new builder that is equal to this builder but with the given type defined as the receiver on the previously defined or matched method.
      • receiverType

        DynamicType.Builder.MethodDefinition<U> receiverType​(TypeDescription.Generic receiverType)
        Defines the supplied (annotated) receiver type for the previously defined or matched method.
        Parameters:
        receiverType - The receiver type to define on the previously defined or matched method.
        Returns:
        A new builder that is equal to this builder but with the given type defined as the receiver on the previously defined or matched method.