Interface DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple<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.TypeVariableDefinition<V>
All Known Subinterfaces:
DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<V>, DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<V>
All Known Implementing Classes:
DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter, DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.SimpleParameterAnnotationAdapter, DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial.AbstractBase, DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.AbstractBase, DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable.AbstractBase, DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable.AbstractBase.Adapter
Enclosing interface:
DynamicType.Builder.MethodDefinition.ParameterDefinition<U>

public static interface DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple<V> extends DynamicType.Builder.MethodDefinition.ExceptionDefinition<V>
A builder for defining an implementation of a method and optionally defining a type variable, thrown exception or a parameter type.
  • 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.
      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.
      Returns:
      A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.