org.jetbrains.kotlin.descriptors
Interface ClassDescriptor

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

public interface ClassDescriptor
extends ClassifierDescriptor, MemberDescriptor, ClassOrPackageFragmentDescriptor


Method Summary
 ClassDescriptor getCompanionObjectDescriptor()
           
 java.util.Collection<ConstructorDescriptor> getConstructors()
           
 DeclarationDescriptor getContainingDeclaration()
           
 java.util.List<TypeParameterDescriptor> getDeclaredTypeParameters()
          It may differ from 'typeConstructor.parameters' in current class is inner, 'typeConstructor.parameters' contains captured parameters from outer declaration.
 KotlinType getDefaultType()
           
 ClassKind getKind()
           
 MemberScope getMemberScope(java.util.List<? extends TypeProjection> typeArguments)
           
 MemberScope getMemberScope(TypeSubstitution typeSubstitution)
           
 Modality getModality()
           
 ClassDescriptor getOriginal()
           
 MemberScope getStaticScope()
           
 ReceiverParameterDescriptor getThisAsReceiverParameter()
           
 MemberScope getUnsubstitutedInnerClassesScope()
           
 MemberScope 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
getSource
 

Method Detail

getMemberScope

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

getMemberScope

@NotNull
MemberScope getMemberScope(@NotNull
                                   TypeSubstitution typeSubstitution)

getUnsubstitutedMemberScope

@NotNull
MemberScope getUnsubstitutedMemberScope()

getUnsubstitutedInnerClassesScope

@NotNull
MemberScope getUnsubstitutedInnerClassesScope()

getStaticScope

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

getDeclaredTypeParameters

@ReadOnly
@NotNull
java.util.List<TypeParameterDescriptor> getDeclaredTypeParameters()
It may differ from 'typeConstructor.parameters' in current class is inner, 'typeConstructor.parameters' contains captured parameters from outer declaration.

Returns:
list of type parameters actually declared type parameters in current class

getOriginal

@NotNull
ClassDescriptor getOriginal()
Specified by:
getOriginal in interface DeclarationDescriptor
Specified by:
getOriginal in interface DeclarationDescriptorWithSource
Returns:
The descriptor that corresponds to the original declaration of this element. A descriptor can be obtained from its original by substituting type arguments (of the declaring class or of the element itself). returns this object if the current descriptor is original itself