ResolvedTypeVariable
From JLS 4.4: A type variable is introduced by the declaration of a type parameter of a generic class, interface, method, or constructor (§8.1.2, §9.1.2, §8.4.4, §8.8.4).
Author
Federico Tomassetti
Functions
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
This method checks if ThisType t = new OtherType() would compile.
Link copied to clipboard
Is this a lambda constraint type?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Is this a primitive type?
Link copied to clipboard
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
Is this a union type (as the ones used in multi catch clauses)?
Link copied to clipboard
Link copied to clipboard
Does this type mention at all, directly or indirectly, the given type parameters?
Link copied to clipboard
Link copied to clipboard
open fun replaceTypeVariables(tp: ResolvedTypeParameterDeclaration, replaced: ResolvedType): ResolvedType
This is like (replaceTypeVariables but ignores the inferred values.
open fun replaceTypeVariables(tpToBeReplaced: ResolvedTypeParameterDeclaration, replaced: ResolvedType, inferredTypes: Map<ResolvedTypeParameterDeclaration, ResolvedType>): ResolvedType
Replace all variables referring to the given TypeParameter with the given value.
Link copied to clipboard
Link copied to clipboard