org.jetbrains.kotlin.types
Class TypeConstructorImpl

java.lang.Object
  extended by org.jetbrains.kotlin.descriptors.annotations.AnnotatedImpl
      extended by org.jetbrains.kotlin.types.TypeConstructorImpl
All Implemented Interfaces:
Annotated, TypeConstructor

public abstract class TypeConstructorImpl
extends AnnotatedImpl
implements TypeConstructor


Method Summary
static TypeConstructorImpl createForClass(ClassDescriptor classDescriptor, Annotations annotations, boolean isFinal, java.lang.String debugName, java.util.List<? extends TypeParameterDescriptor> parameters, java.util.Collection<KotlinType> supertypes)
           
static TypeConstructorImpl createForTypeParameter(TypeParameterDescriptor typeParameterDescriptor, Annotations annotations, boolean isFinal, java.lang.String debugName, java.util.List<? extends TypeParameterDescriptor> parameters, java.util.Collection<KotlinType> supertypes)
           
abstract  boolean equals(java.lang.Object obj)
           
 KotlinBuiltIns getBuiltIns()
           
 ClassifierDescriptor getDeclarationDescriptor()
           
 java.util.List<TypeParameterDescriptor> getParameters()
           
 java.util.Collection<KotlinType> getSupertypes()
           
abstract  int hashCode()
           
 boolean isDenotable()
          If the type is non-denotable, it can't be written in code directly, it only can appear internally inside a type checker.
 boolean isFinal()
          Cannot have subtypes.
 java.lang.String toString()
           
 
Methods inherited from class org.jetbrains.kotlin.descriptors.annotations.AnnotatedImpl
getAnnotations
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.annotations.Annotated
getAnnotations
 

Method Detail

createForClass

@NotNull
public static TypeConstructorImpl createForClass(@NotNull
                                                         ClassDescriptor classDescriptor,
                                                         @NotNull
                                                         Annotations annotations,
                                                         boolean isFinal,
                                                         @NotNull
                                                         java.lang.String debugName,
                                                         @NotNull
                                                         java.util.List<? extends TypeParameterDescriptor> parameters,
                                                         @NotNull
                                                         java.util.Collection<KotlinType> supertypes)

createForTypeParameter

@NotNull
public static TypeConstructorImpl createForTypeParameter(@NotNull
                                                                 TypeParameterDescriptor typeParameterDescriptor,
                                                                 @NotNull
                                                                 Annotations annotations,
                                                                 boolean isFinal,
                                                                 @NotNull
                                                                 java.lang.String debugName,
                                                                 @NotNull
                                                                 java.util.List<? extends TypeParameterDescriptor> parameters,
                                                                 @NotNull
                                                                 java.util.Collection<KotlinType> supertypes)

getParameters

@NotNull
public java.util.List<TypeParameterDescriptor> getParameters()
Specified by:
getParameters in interface TypeConstructor

getSupertypes

@NotNull
public java.util.Collection<KotlinType> getSupertypes()
Specified by:
getSupertypes in interface TypeConstructor

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isFinal

public boolean isFinal()
Description copied from interface: TypeConstructor
Cannot have subtypes.

Specified by:
isFinal in interface TypeConstructor

isDenotable

public boolean isDenotable()
Description copied from interface: TypeConstructor
If the type is non-denotable, it can't be written in code directly, it only can appear internally inside a type checker. Examples: intersection type or number value type.

Specified by:
isDenotable in interface TypeConstructor

getDeclarationDescriptor

@Nullable
public ClassifierDescriptor getDeclarationDescriptor()
Specified by:
getDeclarationDescriptor in interface TypeConstructor

getBuiltIns

@NotNull
public KotlinBuiltIns getBuiltIns()
Specified by:
getBuiltIns in interface TypeConstructor

hashCode

public abstract int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public abstract boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object