Java org.springframework.core MethodParameter fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.core MethodParameter fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.core MethodParameter.

The text is from its open source code.

Subclass

org.springframework.core.MethodParameter has subclasses.
Click this link to see all its subclasses.

Constructor

MethodParameter(Method method, int parameterIndex)
Create a new MethodParameter for the given method, with nesting level 1.
MethodParameter(Constructor constructor, int parameterIndex)
Create a new MethodParameter for the given constructor, with nesting level 1.
MethodParameter(MethodParameter original)
Copy constructor, resulting in an independent MethodParameter object based on the same metadata and cache state that the original object was in.
MethodParameter(Method method, int parameterIndex, int nestingLevel)
Create a new MethodParameter for the given method.
MethodParameter(Constructor constructor, int parameterIndex, int nestingLevel)
Create a new MethodParameter for the given constructor.
MethodParameter(Executable executable, int parameterIndex, @Nullable Class containingClass)
Internal constructor used to create a MethodParameter with a containing class already set.

Method

voiddecreaseNestingLevel()
Decrease this parameter's nesting level.
MethodParameterforExecutable(Executable executable, int parameterIndex)
Create a new MethodParameter for the given method or constructor.
MethodParameterforMethodOrConstructor(Object methodOrConstructor, int parameterIndex)
Create a new MethodParameter for the given method or constructor.
AnnotatedElementgetAnnotatedElement()
Return the wrapped annotated element.
ClassgetClass()
Returns the runtime class of this Object .
ConstructorgetConstructor()
Return the wrapped Constructor, if any.
ClassgetContainingClass()
Return the containing class for this method parameter.
ClassgetDeclaringClass()
Return the class that declares the underlying Method or Constructor.
ExecutablegetExecutable()
Return the wrapped executable.
TypegetGenericParameterType()
Return the generic type of the method/constructor parameter.
MethodgetMethod()
Return the wrapped Method, if any.
AgetMethodAnnotation(Class annotationType)
Return the method/constructor annotation of the given type, if available.
ClassgetNestedParameterType()
Return the nested type of the method/constructor parameter.
AgetParameterAnnotation(Class annotationType)
Return the parameter annotation of the given type, if available.
Annotation[]getParameterAnnotations()
Return the annotations associated with the specific method/constructor parameter.
intgetParameterIndex()
Return the index of the method/constructor parameter.
StringgetParameterName()
Return the name of the method/constructor parameter.
ClassgetParameterType()
Return the type of the method/constructor parameter.
booleanhasMethodAnnotation(Class annotationType)
Return whether the method/constructor is annotated with the given type.
booleanhasParameterAnnotation(Class annotationType)
Return whether the parameter is declared with the given annotation type.
booleanhasParameterAnnotations()
Return true if the parameter has at least one annotation, false if it has none.
voidincreaseNestingLevel()
Increase this parameter's nesting level.
voidinitParameterNameDiscovery(@Nullable ParameterNameDiscoverer parameterNameDiscoverer)
Initialize parameter name discovery for this method parameter.
booleanisOptional()
Return whether this method indicates a parameter which is not required: either in the form of Java 8's java.util.Optional , any variant of a parameter-level Nullable annotation (such as from JSR-305 or the FindBugs set of annotations), or a language-level nullable type declaration in Kotlin.
MethodParameternested()
Return a variant of this MethodParameter which points to the same parameter but one nesting level deeper.
MethodParameternestedIfOptional()
Return a variant of this MethodParameter which points to the same parameter but one nesting level deeper in case of a java.util.Optional declaration.
voidsetParameterType(@Nullable Class parameterType)
Set a resolved (generic) parameter type.
voidsetTypeIndexForCurrentLevel(int typeIndex)
Set the type index for the current nesting level.