spring-framework / org.springframework.core.annotation / SynthesizingMethodParameter / <init>

<init>

SynthesizingMethodParameter(method: Method, parameterIndex: Int)

Create a new SynthesizingMethodParameter for the given method, with nesting level 1.

Parameters

method - the Method to specify a parameter for

parameterIndex - the index of the parameter: -1 for the method return type; 0 for the first method parameter; 1 for the second method parameter, etc.

SynthesizingMethodParameter(method: Method, parameterIndex: Int, nestingLevel: Int)

Create a new SynthesizingMethodParameter for the given method.

Parameters

method - the Method to specify a parameter for

parameterIndex - the index of the parameter: -1 for the method return type; 0 for the first method parameter; 1 for the second method parameter, etc.

nestingLevel - the nesting level of the target type (typically 1; e.g. in case of a List of Lists, 1 would indicate the nested List, whereas 2 would indicate the element of the nested List)

SynthesizingMethodParameter(constructor: Constructor<*>, parameterIndex: Int)

Create a new SynthesizingMethodParameter for the given constructor, with nesting level 1.

Parameters

constructor - the Constructor to specify a parameter for

parameterIndex - the index of the parameter

SynthesizingMethodParameter(constructor: Constructor<*>, parameterIndex: Int, nestingLevel: Int)

Create a new SynthesizingMethodParameter for the given constructor.

Parameters

constructor - the Constructor to specify a parameter for

parameterIndex - the index of the parameter

nestingLevel - the nesting level of the target type (typically 1; e.g. in case of a List of Lists, 1 would indicate the nested List, whereas 2 would indicate the element of the nested List)