org.jetbrains.kotlin.descriptors.impl
Class EnumEntrySyntheticClassDescriptor

java.lang.Object
  extended by org.jetbrains.kotlin.descriptors.impl.AbstractClassDescriptor
      extended by org.jetbrains.kotlin.descriptors.impl.ClassDescriptorBase
          extended by org.jetbrains.kotlin.descriptors.impl.EnumEntrySyntheticClassDescriptor
All Implemented Interfaces:
Annotated, ClassDescriptor, ClassifierDescriptor, ClassOrPackageFragmentDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithSource, DeclarationDescriptorWithVisibility, MemberDescriptor, Named

public class EnumEntrySyntheticClassDescriptor
extends ClassDescriptorBase


Field Summary
 
Fields inherited from class org.jetbrains.kotlin.descriptors.impl.AbstractClassDescriptor
defaultType
 
Method Summary
static EnumEntrySyntheticClassDescriptor create(StorageManager storageManager, ClassDescriptor enumClass, Name name,  enumMemberNames, Annotations annotations, SourceElement source)
          Creates and initializes descriptors for enum entry with the given name and its companion object
 Annotations getAnnotations()
           
 ClassDescriptor getCompanionObjectDescriptor()
           
 java.util.Collection<ConstructorDescriptor> getConstructors()
           
 java.util.List<TypeParameterDescriptor> getDeclaredTypeParameters()
          It may differ from 'typeConstructor.parameters' in current class is inner, 'typeConstructor.parameters' contains captured parameters from outer declaration.
 ClassKind getKind()
           
 Modality getModality()
           
 MemberScope getStaticScope()
           
 TypeConstructor getTypeConstructor()
           
 MemberScope getUnsubstitutedMemberScope()
           
 ConstructorDescriptor getUnsubstitutedPrimaryConstructor()
           
 Visibility getVisibility()
           
 boolean isCompanionObject()
           
 boolean isData()
           
 boolean isInner()
           
 java.lang.String toString()
           
 
Methods inherited from class org.jetbrains.kotlin.descriptors.impl.ClassDescriptorBase
getContainingDeclaration, getSource
 
Methods inherited from class org.jetbrains.kotlin.descriptors.impl.AbstractClassDescriptor
accept, acceptVoid, getDefaultType, getMemberScope, getMemberScope, getName, getOriginal, getThisAsReceiverParameter, getUnsubstitutedInnerClassesScope, substitute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

create

@NotNull
public static EnumEntrySyntheticClassDescriptor create(@NotNull
                                                               StorageManager storageManager,
                                                               @NotNull
                                                               ClassDescriptor enumClass,
                                                               @NotNull
                                                               Name name,
                                                               @NotNull
                                                                enumMemberNames,
                                                               @NotNull
                                                               Annotations annotations,
                                                               @NotNull
                                                               SourceElement source)
Creates and initializes descriptors for enum entry with the given name and its companion object

Parameters:
enumMemberNames - needed for fake overrides resolution

getUnsubstitutedMemberScope

@NotNull
public MemberScope getUnsubstitutedMemberScope()

getStaticScope

@NotNull
public MemberScope getStaticScope()

getConstructors

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

getTypeConstructor

@NotNull
public TypeConstructor getTypeConstructor()

getCompanionObjectDescriptor

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

getKind

@NotNull
public ClassKind getKind()

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)

isData

public boolean isData()

isCompanionObject

public boolean isCompanionObject()

getUnsubstitutedPrimaryConstructor

@Nullable
public ConstructorDescriptor getUnsubstitutedPrimaryConstructor()

getAnnotations

@NotNull
public Annotations getAnnotations()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getDeclaredTypeParameters

@NotNull
public java.util.List<TypeParameterDescriptor> getDeclaredTypeParameters()
Description copied from interface: ClassDescriptor
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