spring-framework / org.springframework.core.annotation / SynthesizingMethodParameter

SynthesizingMethodParameter

open class SynthesizingMethodParameter : MethodParameter

A MethodParameter variant which synthesizes annotations that declare attribute aliases via AliasFor.

Author
Juergen Hoeller

Author
Sam Brannen

Since
4.2

See Also
AnnotationUtils#synthesizeAnnotationAnnotationUtils#synthesizeAnnotationArray

Constructors

<init>

SynthesizingMethodParameter(method: Method, parameterIndex: Int)

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

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

Create a new SynthesizingMethodParameter for the given method.

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

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

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

Create a new SynthesizingMethodParameter for the given constructor.

Functions

clone

open fun clone(): SynthesizingMethodParameter

forExecutable

open static fun forExecutable(executable: Executable, parameterIndex: Int): SynthesizingMethodParameter

Create a new SynthesizingMethodParameter for the given method or constructor.

This is a convenience factory method for scenarios where a Method or Constructor reference is treated in a generic fashion.

forParameter

open static fun forParameter(parameter: Parameter): SynthesizingMethodParameter

Create a new SynthesizingMethodParameter for the given parameter descriptor.

This is a convenience factory method for scenarios where a Java 8 Parameter descriptor is already available.