Class TypeUsageImpl

  • All Implemented Interfaces:
    net.jqwik.api.providers.TypeUsage

    public class TypeUsageImpl
    extends java.lang.Object
    implements net.jqwik.api.providers.TypeUsage
    • Method Detail

      • forResolution

        public static net.jqwik.api.providers.TypeUsage forResolution​(TypeResolution typeResolution)
      • forParameter

        public static net.jqwik.api.providers.TypeUsage forParameter​(MethodParameter parameter)
      • getUpperBounds

        public java.util.List<net.jqwik.api.providers.TypeUsage> getUpperBounds()
        Specified by:
        getUpperBounds in interface net.jqwik.api.providers.TypeUsage
      • getLowerBounds

        public java.util.List<net.jqwik.api.providers.TypeUsage> getLowerBounds()
        Specified by:
        getLowerBounds in interface net.jqwik.api.providers.TypeUsage
      • getRawType

        public java.lang.Class<?> getRawType()
        Specified by:
        getRawType in interface net.jqwik.api.providers.TypeUsage
      • isWildcard

        public boolean isWildcard()
        Specified by:
        isWildcard in interface net.jqwik.api.providers.TypeUsage
      • isTypeVariable

        public boolean isTypeVariable()
        Specified by:
        isTypeVariable in interface net.jqwik.api.providers.TypeUsage
      • isTypeVariableOrWildcard

        public boolean isTypeVariableOrWildcard()
        Specified by:
        isTypeVariableOrWildcard in interface net.jqwik.api.providers.TypeUsage
      • getTypeArguments

        public java.util.List<net.jqwik.api.providers.TypeUsage> getTypeArguments()
        Specified by:
        getTypeArguments in interface net.jqwik.api.providers.TypeUsage
      • getTypeArgument

        public net.jqwik.api.providers.TypeUsage getTypeArgument​(int position)
        Specified by:
        getTypeArgument in interface net.jqwik.api.providers.TypeUsage
      • isOfType

        public boolean isOfType​(java.lang.Class<?> aRawType)
        Specified by:
        isOfType in interface net.jqwik.api.providers.TypeUsage
      • canBeAssignedTo

        public boolean canBeAssignedTo​(net.jqwik.api.providers.TypeUsage targetType)
        Specified by:
        canBeAssignedTo in interface net.jqwik.api.providers.TypeUsage
      • isGeneric

        public boolean isGeneric()
        Specified by:
        isGeneric in interface net.jqwik.api.providers.TypeUsage
      • isEnum

        public boolean isEnum()
        Specified by:
        isEnum in interface net.jqwik.api.providers.TypeUsage
      • isArray

        public boolean isArray()
        Specified by:
        isArray in interface net.jqwik.api.providers.TypeUsage
      • getAnnotations

        public java.util.List<java.lang.annotation.Annotation> getAnnotations()
        Specified by:
        getAnnotations in interface net.jqwik.api.providers.TypeUsage
      • findAnnotation

        public <A extends java.lang.annotation.Annotation> java.util.Optional<A> findAnnotation​(java.lang.Class<A> annotationType)
        Specified by:
        findAnnotation in interface net.jqwik.api.providers.TypeUsage
      • isAnnotated

        public <A extends java.lang.annotation.Annotation> boolean isAnnotated​(java.lang.Class<A> annotationType)
        Specified by:
        isAnnotated in interface net.jqwik.api.providers.TypeUsage
      • isAssignableFrom

        public boolean isAssignableFrom​(java.lang.Class<?> providedClass)
        Specified by:
        isAssignableFrom in interface net.jqwik.api.providers.TypeUsage
      • getComponentType

        public java.util.Optional<net.jqwik.api.providers.TypeUsage> getComponentType()
        Specified by:
        getComponentType in interface net.jqwik.api.providers.TypeUsage
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • isVoid

        public boolean isVoid()
        Specified by:
        isVoid in interface net.jqwik.api.providers.TypeUsage
      • getSuperclass

        public java.util.Optional<net.jqwik.api.providers.TypeUsage> getSuperclass()
        Specified by:
        getSuperclass in interface net.jqwik.api.providers.TypeUsage
      • getInterfaces

        public java.util.List<net.jqwik.api.providers.TypeUsage> getInterfaces()
        Specified by:
        getInterfaces in interface net.jqwik.api.providers.TypeUsage
      • getType

        public java.lang.reflect.Type getType()
        Specified by:
        getType in interface net.jqwik.api.providers.TypeUsage
      • getAnnotatedType

        public java.lang.reflect.AnnotatedType getAnnotatedType()
        Specified by:
        getAnnotatedType in interface net.jqwik.api.providers.TypeUsage
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object