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

    • Method Detail

      • withParameters

        DynamicType.Builder.MethodDefinition.ExceptionDefinition<V> withParameters​(java.lang.reflect.Type... type)
        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

        DynamicType.Builder.MethodDefinition.ExceptionDefinition<V> withParameters​(java.util.List<? extends java.lang.reflect.Type> types)
        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

        DynamicType.Builder.MethodDefinition.ExceptionDefinition<V> withParameters​(TypeDefinition... type)
        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

        DynamicType.Builder.MethodDefinition.ExceptionDefinition<V> withParameters​(java.util.Collection<? extends TypeDefinition> types)
        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.