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 companion object
- Parameters:
enumMemberNames
- needed for fake overrides resolution
getUnsubstitutedMemberScope
@NotNull
public JetScope getUnsubstitutedMemberScope()
getStaticScope
@NotNull
public JetScope 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)
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