Interface DynamicType.Builder.MethodDefinition.ParameterDefinition<U>

Type Parameters:
U - A loaded type that the built type is guaranteed to be a subclass of.
All Superinterfaces:
DynamicType.Builder.MethodDefinition.ExceptionDefinition<U>, DynamicType.Builder.MethodDefinition.ImplementationDefinition<U>, DynamicType.Builder.MethodDefinition.TypeVariableDefinition<U>
All Known Subinterfaces:
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V>, DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<V>
All Known Implementing Classes:
DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter, DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.ParameterAnnotationAdapter, DynamicType.Builder.MethodDefinition.ParameterDefinition.AbstractBase, DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable.AbstractBase, DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable.AbstractBase.Adapter, DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial.AbstractBase
Enclosing interface:
DynamicType.Builder.MethodDefinition<S>

public static interface DynamicType.Builder.MethodDefinition.ParameterDefinition<U> extends DynamicType.Builder.MethodDefinition.ExceptionDefinition<U>
A builder for defining an implementation of a method and optionally defining a type variable, thrown exception or method parameter.
  • Method Details

    • withParameter

      Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.
      Parameters:
      type - The parameter's type. Can also be TargetType if the parameter type should be equal to the currently instrumented type.
      name - The parameter's name.
      modifierContributor - The parameter's modifiers.
      Returns:
      A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.
    • withParameter

      Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.
      Parameters:
      type - The parameter's type. Can also be TargetType if the parameter type should be equal to the currently instrumented type.
      name - The parameter's name.
      modifierContributors - The parameter's modifiers.
      Returns:
      A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.
    • withParameter

      Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.
      Parameters:
      type - The parameter's type. Can also be TargetType if the parameter type should be equal to the currently instrumented type.
      name - The parameter's name.
      modifiers - The parameter's modifiers.
      Returns:
      A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.
    • withParameter

      Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.
      Parameters:
      type - The parameter's type. Can also be TargetType if the parameter type should be equal to the currently instrumented type.
      name - The parameter's name.
      modifierContributor - The parameter's modifiers.
      Returns:
      A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.
    • withParameter

      Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.
      Parameters:
      type - The parameter's type. Can also be TargetType if the parameter type should be equal to the currently instrumented type.
      name - The parameter's name.
      modifierContributors - The parameter's modifiers.
      Returns:
      A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.
    • withParameter

      Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.
      Parameters:
      type - The parameter's type. Can also be TargetType if the parameter type should be equal to the currently instrumented type.
      name - The parameter's name.
      modifiers - The parameter's modifiers.
      Returns:
      A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.