Class TypeUsageImpl

java.lang.Object
net.jqwik.engine.support.types.TypeUsageImpl
All Implemented Interfaces:
Cloneable, net.jqwik.api.providers.TypeUsage

public class TypeUsageImpl extends Object implements net.jqwik.api.providers.TypeUsage, Cloneable
  • Field Details

  • Constructor Details

  • Method Details

    • forParameterizedClass

      public static net.jqwik.api.providers.TypeUsage forParameterizedClass(net.jqwik.api.Tuple.Tuple2<Class<?>,net.jqwik.api.providers.TypeUsage[]> parameterizedClass)
    • wildcardOf

      public static net.jqwik.api.providers.TypeUsage wildcardOf(net.jqwik.api.providers.TypeUsage upperBound)
    • forType

      public static TypeUsageImpl forType(Type type)
    • forResolution

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

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

      public static net.jqwik.api.providers.TypeUsage forParameter(MethodParameter parameter, List<net.jqwik.api.providers.TypeUsage.Enhancer> enhancerPipeline)
    • forNonWildcardType

      public static TypeUsageImpl forNonWildcardType(Type type)
    • wildcardOf

      public static TypeUsageImpl wildcardOf(WildcardType wildcardType)
    • addTypeArguments

      public void addTypeArguments(List<net.jqwik.api.providers.TypeUsage> typeArguments)
    • addLowerBounds

      public void addLowerBounds(List<net.jqwik.api.providers.TypeUsage> lowerBounds)
    • addUpperBounds

      public void addUpperBounds(List<net.jqwik.api.providers.TypeUsage> upperBounds)
    • getUpperBounds

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

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

      public 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 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(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 List<Annotation> getAnnotations()
      Specified by:
      getAnnotations in interface net.jqwik.api.providers.TypeUsage
    • findAnnotation

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

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

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

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • isVoid

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

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

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

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

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

      public AnnotatedType getAnnotatedType()
      Specified by:
      getAnnotatedType in interface net.jqwik.api.providers.TypeUsage
    • isNullable

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

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

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

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

      public net.jqwik.api.providers.TypeUsage asNullable()
      Specified by:
      asNullable in interface net.jqwik.api.providers.TypeUsage
    • asNotNullable

      public net.jqwik.api.providers.TypeUsage asNotNullable()
      Specified by:
      asNotNullable in interface net.jqwik.api.providers.TypeUsage
    • getTypeVariable

      public String getTypeVariable()
      Specified by:
      getTypeVariable in interface net.jqwik.api.providers.TypeUsage
    • withAnnotation

      public <A extends Annotation> net.jqwik.api.providers.TypeUsage withAnnotation(A annotation)
      Specified by:
      withAnnotation in interface net.jqwik.api.providers.TypeUsage
    • getMetaInfo

      public Optional<Object> getMetaInfo(String key)
      Specified by:
      getMetaInfo in interface net.jqwik.api.providers.TypeUsage
    • withMetaInfo

      public net.jqwik.api.providers.TypeUsage withMetaInfo(String key, Object value)
      Specified by:
      withMetaInfo in interface net.jqwik.api.providers.TypeUsage
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object