org.jetbrains.jet.lang.descriptors.impl
Class MutableClassDescriptorLite
java.lang.Object
org.jetbrains.jet.lang.descriptors.impl.ClassDescriptorBase
org.jetbrains.jet.lang.descriptors.impl.MutableClassDescriptorLite
- All Implemented Interfaces:
- Annotated, ClassDescriptor, ClassifierDescriptor, ClassOrNamespaceDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithVisibility, MemberDescriptor, Named
- Direct Known Subclasses:
- ClassDescriptorFromJvmBytecode, MutableClassDescriptor
public abstract class MutableClassDescriptorLite
- extends ClassDescriptorBase
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MutableClassDescriptorLite
public MutableClassDescriptorLite(@NotNull
DeclarationDescriptor containingDeclaration,
@NotNull
ClassKind kind,
boolean isInner)
getContainingDeclaration
@NotNull
public DeclarationDescriptor getContainingDeclaration()
getName
@NotNull
public Name getName()
setName
public void setName(@NotNull
Name name)
getOriginal
@NotNull
public DeclarationDescriptor getOriginal()
- 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
getTypeConstructor
@NotNull
public TypeConstructor getTypeConstructor()
setScopeForMemberLookup
public void setScopeForMemberLookup(JetScope scopeForMemberLookup)
createTypeConstructor
public void createTypeConstructor()
getScopeForMemberLookup
@NotNull
public JetScope getScopeForMemberLookup()
- Specified by:
getScopeForMemberLookup in class ClassDescriptorBase
getClassObjectType
public JetType getClassObjectType()
getKind
@NotNull
public ClassKind getKind()
setModality
public void setModality(Modality modality)
setVisibility
public void setVisibility(Visibility visibility)
getModality
@NotNull
public Modality getModality()
getVisibility
@NotNull
public Visibility getVisibility()
isInner
public boolean isInner()
- Returns:
true if this class contains a reference to its outer class (as opposed to static nested class)
getSupertypes
public java.util.Collection<JetType> getSupertypes()
setSupertypes
public void setSupertypes(@NotNull
java.util.Collection<JetType> supertypes)
getClassObjectDescriptor
@Nullable
public MutableClassDescriptorLite getClassObjectDescriptor()
getUnsubstitutedInnerClassesScope
@NotNull
public JetScope getUnsubstitutedInnerClassesScope()
addSupertype
public void addSupertype(@NotNull
JetType supertype)
setTypeParameterDescriptors
public void setTypeParameterDescriptors(java.util.List<TypeParameterDescriptor> typeParameters)
lockScopes
public void lockScopes()
getThisAsReceiverParameter
@NotNull
public ReceiverParameterDescriptor getThisAsReceiverParameter()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getAnnotations
public java.util.List<AnnotationDescriptor> getAnnotations()
setAnnotations
public void setAnnotations(java.util.List<AnnotationDescriptor> annotations)
getBuilder
public NamespaceLikeBuilder getBuilder()