Package org.junit.jupiter.params.support
Interface ParameterDeclaration
-
- All Known Implementing Classes:
ResolverFacade.ExecutableParameterDeclaration,ResolverFacade.FieldParameterDeclaration,ResolverFacade.ResolvableParameterDeclaration
@API(status=MAINTAINED, since="5.13.3") public interface ParameterDeclarationParameterDeclarationencapsulates the declaration of an indexed@ParameterizedClassor@ParameterizedTestparameter.- Since:
- 5.13
- See Also:
ParameterDeclarations
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.reflect.AnnotatedElementgetAnnotatedElement(){@return the {@link AnnotatedElement} that declares the parameter; never {@code null}}intgetParameterIndex(){@return the index of the parameter}java.util.Optional<java.lang.String>getParameterName(){@return the name of the parameter, if available; never {@code null} but potentially empty}java.lang.Class<?>getParameterType(){@return the type of the parameter; never {@code null}}
-
-
-
Method Detail
-
getAnnotatedElement
java.lang.reflect.AnnotatedElement getAnnotatedElement()
{@return the {@link AnnotatedElement} that declares the parameter; never {@code null}}This is either a
Parameteror aField.
-
getParameterType
java.lang.Class<?> getParameterType()
{@return the type of the parameter; never {@code null}}
-
getParameterIndex
int getParameterIndex()
{@return the index of the parameter}
-
getParameterName
java.util.Optional<java.lang.String> getParameterName()
{@return the name of the parameter, if available; never {@code null} but potentially empty}
-
-