Package net.jqwik.engine.support
Class MethodParameter
- java.lang.Object
-
- net.jqwik.engine.support.MethodParameter
-
public class MethodParameter extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MethodParameter(java.lang.reflect.Parameter rawParameter, TypeResolution resolution, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.annotation.Annotation>findAllAnnotations()<T extends java.lang.annotation.Annotation>
java.util.Optional<T>findAnnotation(java.lang.Class<T> annotationClass)java.lang.reflect.AnnotatedTypegetAnnotatedType()<T extends java.lang.annotation.Annotation>
TgetAnnotation(java.lang.Class<T> annotationClass)intgetIndex()java.lang.reflect.ParametergetRawParameter()java.lang.reflect.TypegetType()booleanisAnnotated(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)booleanisParameterized()java.lang.StringtoString()
-
-
-
Constructor Detail
-
MethodParameter
public MethodParameter(java.lang.reflect.Parameter rawParameter, TypeResolution resolution, int index)
-
-
Method Detail
-
getRawParameter
public java.lang.reflect.Parameter getRawParameter()
-
isParameterized
public boolean isParameterized()
-
isAnnotated
public boolean isAnnotated(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
-
getAnnotation
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
-
findAnnotation
public <T extends java.lang.annotation.Annotation> java.util.Optional<T> findAnnotation(java.lang.Class<T> annotationClass)
-
getType
public java.lang.reflect.Type getType()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
findAllAnnotations
public java.util.List<java.lang.annotation.Annotation> findAllAnnotations()
-
getAnnotatedType
public java.lang.reflect.AnnotatedType getAnnotatedType()
-
getIndex
public int getIndex()
-
-