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

    • Method Detail

      • withParameter

        DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<V> withParameter​(java.lang.reflect.Type type)
        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

        DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<V> withParameter​(TypeDefinition type)
        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.