Interface DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U>

Type Parameters:
U - A loaded type that the built type is guaranteed to be a subclass of.
All Superinterfaces:
DynamicType.Builder<U>, DynamicType.Builder.MethodDefinition<U>
All Known Implementing Classes:
DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.AnnotationAdapter, DynamicType.Builder.AbstractBase.Adapter.MethodMatchAdapter.AnnotationAdapter, DynamicType.Builder.MethodDefinition.AbstractBase.Adapter, DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition.AbstractBase
Enclosing interface:
DynamicType.Builder.MethodDefinition<S>

public static interface DynamicType.Builder.MethodDefinition.ReceiverTypeDefinition<U> extends DynamicType.Builder.MethodDefinition<U>
A builder for a method definition with a receiver type.
  • Method Details

    • 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

      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.