Interface DynamicType.Builder.MethodDefinition.ParameterDefinition<U>

    • Method Detail

      • withParameter

        DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<U> withParameter​(java.lang.reflect.Type type,
                                                                                              java.lang.String name,
                                                                                              ModifierContributor.ForParameter... modifierContributor)
        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

        DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<U> withParameter​(java.lang.reflect.Type type,
                                                                                              java.lang.String name,
                                                                                              java.util.Collection<? extends ModifierContributor.ForParameter> modifierContributors)
        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

        DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<U> withParameter​(java.lang.reflect.Type type,
                                                                                              java.lang.String name,
                                                                                              int modifiers)
        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

        DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<U> withParameter​(TypeDefinition type,
                                                                                              java.lang.String name,
                                                                                              ModifierContributor.ForParameter... modifierContributor)
        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

        DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<U> withParameter​(TypeDefinition type,
                                                                                              java.lang.String name,
                                                                                              java.util.Collection<? extends ModifierContributor.ForParameter> modifierContributors)
        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

        DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<U> withParameter​(TypeDefinition type,
                                                                                              java.lang.String name,
                                                                                              int modifiers)
        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.