ResolvedType

interface ResolvedType(source)

A resolved type.

  • It could be a primitive type or a reference type (enum, class, interface). In the latter case, it could take type typeParametersValues (other TypeUsages).
  • It could also be a TypeVariable, like in: class A<B> {} where B is a TypeVariable.
  • It could also be Wildcard Type, possibly with constraints.
  • It could also be a TypeVariable, like in: class A<B> {}.

Author

Federico Tomassetti

Inheritors

Functions

Link copied to clipboard
open fun arrayLevel(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun describe(): String
Link copied to clipboard
open fun erasure(): ResolvedType
Link copied to clipboard
open fun isArray(): Boolean
Link copied to clipboard
abstract fun isAssignableBy(other: ResolvedType): Boolean
This method checks if ThisType t = new OtherType() would compile.
Link copied to clipboard
open fun isConstraint(): Boolean
Is this a lambda constraint type?
Link copied to clipboard
Link copied to clipboard
open fun isNull(): Boolean
Is this the null type?
Link copied to clipboard
Link copied to clipboard
open fun isPrimitive(): Boolean
Is this a primitive type?
Link copied to clipboard
open fun isReference(): Boolean
Is this a non primitive value?
Link copied to clipboard
Can this be seen as a ReferenceTypeUsage?
Link copied to clipboard
Link copied to clipboard
open fun isUnionType(): Boolean
Is this a union type (as the ones used in multi catch clauses)?
Link copied to clipboard
open fun isVoid(): Boolean
Link copied to clipboard
open fun isWildcard(): Boolean
Link copied to clipboard
Does this type mention at all, directly or indirectly, the given type parameters?
Link copied to clipboard
This is like (replaceTypeVariables but ignores the inferred values.
Replace all variables referring to the given TypeParameter with the given value.
Link copied to clipboard
Link copied to clipboard
open fun toDescriptor(): String