org.jetbrains.kotlin.descriptors.impl
Class EnumEntrySyntheticClassDescriptor
java.lang.Object
org.jetbrains.kotlin.descriptors.impl.AbstractClassDescriptor
org.jetbrains.kotlin.descriptors.impl.ClassDescriptorBase
org.jetbrains.kotlin.descriptors.impl.EnumEntrySyntheticClassDescriptor
- All Implemented Interfaces:
- Annotated, ClassDescriptor, ClassifierDescriptor, ClassOrPackageFragmentDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithSource, DeclarationDescriptorWithVisibility, MemberDescriptor, Named
public class EnumEntrySyntheticClassDescriptor
- extends ClassDescriptorBase
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
create
@NotNull
public static EnumEntrySyntheticClassDescriptor create(@NotNull
StorageManager storageManager,
@NotNull
ClassDescriptor enumClass,
@NotNull
Name name,
@NotNull
enumMemberNames,
@NotNull
SourceElement source)
- Creates and initializes descriptors for enum entry with the given name and its default object
- Parameters:
enumMemberNames
- needed for fake overrides resolution
getScopeForMemberLookup
@NotNull
protected JetScope getScopeForMemberLookup()
- Specified by:
getScopeForMemberLookup
in class AbstractClassDescriptor
getStaticScope
@NotNull
public JetScope getStaticScope()
getConstructors
@NotNull
public java.util.Collection<ConstructorDescriptor> getConstructors()
getTypeConstructor
@NotNull
public TypeConstructor getTypeConstructor()
getDefaultObjectDescriptor
@Nullable
public ClassDescriptor getDefaultObjectDescriptor()
- Returns:
- nested object declared as 'default' 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)
isDefaultObject
public boolean isDefaultObject()
getUnsubstitutedPrimaryConstructor
@Nullable
public ConstructorDescriptor getUnsubstitutedPrimaryConstructor()
getAnnotations
@NotNull
public Annotations getAnnotations()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object