org.jetbrains.jet.lang.descriptors.impl
Class EnumEntrySyntheticClassDescriptor

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

public class EnumEntrySyntheticClassDescriptor
extends ClassDescriptorBase


Field Summary
 
Fields inherited from class org.jetbrains.jet.lang.descriptors.impl.AbstractClassDescriptor
defaultType
 
Method Summary
static EnumEntrySyntheticClassDescriptor create(StorageManager storageManager, ClassDescriptor enumClass, Name name,  enumMemberNames)
          Creates and initializes descriptors for enum entry with the given name and its class object
 java.util.List<AnnotationDescriptor> getAnnotations()
           
 ClassDescriptor getClassObjectDescriptor()
           
 java.util.Collection<ConstructorDescriptor> getConstructors()
           
 ClassKind getKind()
           
 Modality getModality()
           
protected  JetScope getScopeForMemberLookup()
           
 TypeConstructor getTypeConstructor()
           
 ConstructorDescriptor getUnsubstitutedPrimaryConstructor()
           
 Visibility getVisibility()
           
 boolean isInner()
           
 
Methods inherited from class org.jetbrains.jet.lang.descriptors.impl.ClassDescriptorBase
getContainingDeclaration
 
Methods inherited from class org.jetbrains.jet.lang.descriptors.impl.AbstractClassDescriptor
accept, acceptVoid, getClassObjectType, getDefaultType, getMemberScope, getName, getOriginal, getThisAsReceiverParameter, getUnsubstitutedInnerClassesScope, substitute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

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

Parameters:
enumMemberNames - needed for fake overrides resolution

getScopeForMemberLookup

@NotNull
protected JetScope getScopeForMemberLookup()
Specified by:
getScopeForMemberLookup in class AbstractClassDescriptor

getConstructors

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

getTypeConstructor

@NotNull
public TypeConstructor getTypeConstructor()

getClassObjectDescriptor

@Nullable
public ClassDescriptor getClassObjectDescriptor()

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)

getUnsubstitutedPrimaryConstructor

@Nullable
public ConstructorDescriptor getUnsubstitutedPrimaryConstructor()

getAnnotations

@NotNull
public java.util.List<AnnotationDescriptor> getAnnotations()