ResolvedReferenceType
abstract class ResolvedReferenceType : ResolvedType, ResolvedTypeParametrized, ResolvedTypeParameterValueProvider(source)
A ReferenceType like a class, an interface or an enum. Note that this type can contain also the values specified for the type parameters.
Author
Federico Tomassetti
Inheritors
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
abstract fun deriveTypeParameters(typeParametersMap: ResolvedTypeParametersMap): ResolvedReferenceType
Link copied to clipboard
Link copied to clipboard
abstract fun getAllAncestors(traverser: (ResolvedReferenceTypeDeclaration) -> List<ResolvedReferenceType>): List<ResolvedReferenceType>
Return all ancestors, that means all superclasses and interfaces.
Link copied to clipboard
Link copied to clipboard
Fields which are visible to inheritors.
Link copied to clipboard
Link copied to clipboard
Get a list of all the methods available on this type.
Link copied to clipboard
Link copied to clipboard
Fields declared on this type.
Link copied to clipboard
Methods declared on this type.
Link copied to clipboard
Return direct ancestors, that means the superclasses and interfaces implemented directly.
Link copied to clipboard
The type of the field could be different from the one in the corresponding FieldDeclaration because type variables would be solved.
Link copied to clipboard
Get the type associated with the type parameter with the given name.
Link copied to clipboard
Qualified name of the declaration.
Link copied to clipboard
Corresponding TypeDeclaration
Link copied to clipboard
Get the values for all type parameters declared on this type.
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
We don't make this _ex_plicit in the data representation because that would affect codegen and make everything generate like
<T extends Object> instead of <T>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
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
open fun replaceTypeVariables(tpToReplace: ResolvedTypeParameterDeclaration, replaced: ResolvedType, inferredTypes: Map<ResolvedTypeParameterDeclaration, ResolvedType>): ResolvedType
Replace all variables referring to the given TypeParameter with the given value.
open fun replaceTypeVariables(tp: ResolvedTypeParameterDeclaration, replaced: ResolvedType): ResolvedType
This is like (replaceTypeVariables but ignores the inferred values.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Execute a transformation on all the type parameters of this element.
Link copied to clipboard
Link copied to clipboard
Get the values for all type parameters declared on this type.
Link copied to clipboard
open fun typeParamValue(typeParameterDeclaration: ResolvedTypeParameterDeclaration): Optional<ResolvedType>
Calculate the value for the given type parameter.
Link copied to clipboard
Replace the type typeParametersValues present in the given type with the ones for which this type has a value.