org.jetbrains.kotlin.codegen
Class MutableClassDescriptor
java.lang.Object
org.jetbrains.kotlin.descriptors.impl.AbstractClassDescriptor
org.jetbrains.kotlin.descriptors.impl.ClassDescriptorBase
org.jetbrains.kotlin.codegen.MutableClassDescriptor
- All Implemented Interfaces:
- Annotated, ClassDescriptor, ClassifierDescriptor, ClassOrPackageFragmentDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithSource, DeclarationDescriptorWithVisibility, MemberDescriptor, Named
public class MutableClassDescriptor
- extends ClassDescriptorBase
- implements ClassDescriptor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MutableClassDescriptor
public MutableClassDescriptor(@NotNull
DeclarationDescriptor containingDeclaration,
@NotNull
ClassKind kind,
boolean isInner,
@NotNull
Name name,
@NotNull
SourceElement source)
getCompanionObjectDescriptor
@Nullable
public ClassDescriptor getCompanionObjectDescriptor()
- Specified by:
getCompanionObjectDescriptor
in interface ClassDescriptor
- Returns:
- nested object declared as 'companion' if one is present.
getAnnotations
@NotNull
public Annotations getAnnotations()
- Specified by:
getAnnotations
in interface Annotated
setModality
public void setModality(@NotNull
Modality modality)
getModality
@NotNull
public Modality getModality()
- Specified by:
getModality
in interface ClassDescriptor
- Specified by:
getModality
in interface MemberDescriptor
getKind
@NotNull
public ClassKind getKind()
- Specified by:
getKind
in interface ClassDescriptor
setVisibility
public void setVisibility(@NotNull
Visibility visibility)
getVisibility
@NotNull
public Visibility getVisibility()
- Specified by:
getVisibility
in interface ClassDescriptor
- Specified by:
getVisibility
in interface DeclarationDescriptorWithVisibility
- Specified by:
getVisibility
in interface MemberDescriptor
isInner
public boolean isInner()
- Specified by:
isInner
in interface ClassDescriptor
- Returns:
true
if this class contains a reference to its outer class (as opposed to static nested class)
isCompanionObject
public boolean isCompanionObject()
- Specified by:
isCompanionObject
in interface ClassDescriptor
getTypeConstructor
@NotNull
public TypeConstructor getTypeConstructor()
- Specified by:
getTypeConstructor
in interface ClassifierDescriptor
addSupertype
public void addSupertype(@NotNull
JetType supertype)
getConstructors
@NotNull
public java.util.Set<ConstructorDescriptor> getConstructors()
- Specified by:
getConstructors
in interface ClassDescriptor
getUnsubstitutedPrimaryConstructor
@Nullable
public ConstructorDescriptor getUnsubstitutedPrimaryConstructor()
- Specified by:
getUnsubstitutedPrimaryConstructor
in interface ClassDescriptor
setTypeParameterDescriptors
public void setTypeParameterDescriptors(@NotNull
java.util.List<TypeParameterDescriptor> typeParameters)
createTypeConstructor
public void createTypeConstructor()
getUnsubstitutedMemberScope
@NotNull
public JetScope getUnsubstitutedMemberScope()
- Specified by:
getUnsubstitutedMemberScope
in interface ClassDescriptor
getStaticScope
@NotNull
public JetScope getStaticScope()
- Specified by:
getStaticScope
in interface ClassDescriptor
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object