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()
           
 JetType getDefaultType()
           
 ClassKind getKind()
           
 JetScope getMemberScope(java.util.List<? extends TypeProjection> typeArguments)
           
 JetScope getMemberScope(TypeSubstitution typeSubstitution)
           
 Modality getModality()
           
 JetScope getStaticScope()
           
 ReceiverParameterDescriptor getThisAsReceiverParameter()
           
 JetScope getUnsubstitutedInnerClassesScope()
           
 JetScope getUnsubstitutedMemberScope()
           
 ConstructorDescriptor getUnsubstitutedPrimaryConstructor()
           
 Visibility getVisibility()
           
 boolean isCompanionObject()
           
 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
JetScope getMemberScope(@NotNull
                                java.util.List<? extends TypeProjection> typeArguments)

getMemberScope

@NotNull
JetScope getMemberScope(@NotNull
                                TypeSubstitution typeSubstitution)

getUnsubstitutedMemberScope

@NotNull
JetScope getUnsubstitutedMemberScope()

getUnsubstitutedInnerClassesScope

@NotNull
JetScope getUnsubstitutedInnerClassesScope()

getStaticScope

@NotNull
JetScope 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
JetType 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()

getThisAsReceiverParameter

@NotNull
ReceiverParameterDescriptor getThisAsReceiverParameter()

getUnsubstitutedPrimaryConstructor

@Nullable
ConstructorDescriptor getUnsubstitutedPrimaryConstructor()