ResolvedReferenceType

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

Constructors

Link copied to clipboard
constructor(typeDeclaration: ResolvedReferenceTypeDeclaration)
constructor(typeDeclaration: ResolvedReferenceTypeDeclaration, typeArguments: List<ResolvedType>)

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
Link copied to clipboard
open fun describe(): String
Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
open fun erasure(): ResolvedType
Link copied to clipboard
Return all ancestors, that means all superclasses and interfaces.
Link copied to clipboard
Fields which are visible to inheritors.
Link copied to clipboard
Get a list of all the methods available on this type.
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
open fun getId(): String
Id of the declaration.
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
open fun hashCode(): Int
Link copied to clipboard
open fun hasName(): Boolean
Has the TypeDeclaration a name?
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
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
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 isRawType(): Boolean
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 isUnboxable(): Boolean
Link copied to clipboard
open fun isUnboxableTo(primitiveType: ResolvedPrimitiveType): Boolean
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
Replace all variables referring to the given TypeParameter with the given value.
This is like (replaceTypeVariables but ignores the inferred values.
Link copied to clipboard
Link copied to clipboard
open fun toDescriptor(): String
Link copied to clipboard
abstract fun toRawType(): ResolvedType
Link copied to clipboard
open fun toString(): String
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
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.