org.jetbrains.kotlin.descriptors
Interface ClassDescriptor

All Superinterfaces:
Annotated, ClassifierDescriptor, ClassOrPackageFragmentDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithSource, DeclarationDescriptorWithVisibility, MemberDescriptor, Named
All Known Subinterfaces:
ClassDescriptorWithResolutionScopes, JavaClassDescriptor
All Known Implementing Classes:
AbstractClassDescriptor, ClassDescriptorBase, ClassDescriptorImpl, EnumEntrySyntheticClassDescriptor, LazyClassDescriptor, LazyScriptClassDescriptor, LazySubstitutingClassDescriptor, MutableClassDescriptor

public interface ClassDescriptor
extends ClassifierDescriptor, MemberDescriptor, ClassOrPackageFragmentDescriptor


Method Summary
 ClassDescriptor getCompanionObjectDescriptor()
           
 java.util.Collection<ConstructorDescriptor> getConstructors()
           
 DeclarationDescriptor getContainingDeclaration()
           
 KotlinType getDefaultType()
           
 ClassKind getKind()
           
 KtScope getMemberScope(java.util.List<? extends TypeProjection> typeArguments)
           
 KtScope getMemberScope(TypeSubstitution typeSubstitution)
           
 Modality getModality()
           
 KtScope getStaticScope()
           
 ReceiverParameterDescriptor getThisAsReceiverParameter()
           
 KtScope getUnsubstitutedInnerClassesScope()
           
 KtScope getUnsubstitutedMemberScope()
           
 ConstructorDescriptor getUnsubstitutedPrimaryConstructor()
           
 Visibility getVisibility()
           
 boolean isCompanionObject()
           
 boolean isData()
           
 boolean isInner()
           
 ClassDescriptor substitute(TypeSubstitutor substitutor)
           
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.ClassifierDescriptor
getTypeConstructor
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.DeclarationDescriptorWithSource
getOriginal, getSource
 

Method Detail

getMemberScope

@NotNull
KtScope getMemberScope(@NotNull
                               java.util.List<? extends TypeProjection> typeArguments)

getMemberScope

@NotNull
KtScope getMemberScope(@NotNull
                               TypeSubstitution typeSubstitution)

getUnsubstitutedMemberScope

@NotNull
KtScope getUnsubstitutedMemberScope()

getUnsubstitutedInnerClassesScope

@NotNull
KtScope getUnsubstitutedInnerClassesScope()

getStaticScope

@NotNull
KtScope getStaticScope()

getConstructors

@NotNull
@ReadOnly
java.util.Collection<ConstructorDescriptor> getConstructors()

getContainingDeclaration

@NotNull
DeclarationDescriptor getContainingDeclaration()
Specified by:
getContainingDeclaration in interface DeclarationDescriptor
Specified by:
getContainingDeclaration in interface DeclarationDescriptorNonRoot

getDefaultType

@NotNull
KotlinType getDefaultType()
Specified by:
getDefaultType in interface ClassifierDescriptor
Returns:
type A<T> for the class A<T>

substitute

@NotNull
ClassDescriptor substitute(@NotNull
                                   TypeSubstitutor substitutor)
Specified by:
substitute in interface DeclarationDescriptor

getCompanionObjectDescriptor

@Nullable
ClassDescriptor getCompanionObjectDescriptor()
Returns:
nested object declared as 'companion' if one is present.

getKind

@NotNull
ClassKind getKind()

getModality

@NotNull
Modality getModality()
Specified by:
getModality in interface MemberDescriptor

getVisibility

@NotNull
Visibility getVisibility()
Specified by:
getVisibility in interface DeclarationDescriptorWithVisibility
Specified by:
getVisibility in interface MemberDescriptor

isInner

boolean isInner()
Returns:
true if this class contains a reference to its outer class (as opposed to static nested class)

isCompanionObject

boolean isCompanionObject()

isData

boolean isData()

getThisAsReceiverParameter

@NotNull
ReceiverParameterDescriptor getThisAsReceiverParameter()

getUnsubstitutedPrimaryConstructor

@Nullable
ConstructorDescriptor getUnsubstitutedPrimaryConstructor()