Interface DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<V>

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

public static interface DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<V> extends DynamicType.Builder.MethodDefinition.ParameterDefinition<V>, DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple<V>
A builder for defining an implementation of a method and optionally defining a type variable, thrown exception or method parameter. Implementations allow for the one-by-one definition of parameters what gives opportunity to annotate parameters in a fluent style. Doing so, it is optionally possible to define parameter names and modifiers. This can be done for either all or no parameters. Alternatively, parameters without annotations, names or modifiers can be defined by a single step.
  • Method Details

    • withParameters

      Defines the specified parameters for the currently defined method.
      Parameters:
      type - The parameter types. Any type can also be TargetType if the parameter type should be equal to the currently instrumented type.
      Returns:
      A new builder that is equal to the current builder but where the currently defined method appends the specified parameters.
    • withParameters

      Defines the specified parameters for the currently defined method.
      Parameters:
      types - The parameter types. Any type can also be TargetType if the parameter type should be equal to the currently instrumented type.
      Returns:
      A new builder that is equal to the current builder but where the currently defined method appends the specified parameters.
    • withParameters

      Defines the specified parameters for the currently defined method.
      Parameters:
      type - The parameter types. Any type can also be TargetType if the parameter type should be equal to the currently instrumented type.
      Returns:
      A new builder that is equal to the current builder but where the currently defined method appends the specified parameters.
    • withParameters

      Defines the specified parameters for the currently defined method.
      Parameters:
      types - The parameter types. Any type can also be TargetType if the parameter type should be equal to the currently instrumented type.
      Returns:
      A new builder that is equal to the current builder but where the currently defined method appends the specified parameters.