org.jetbrains.kotlin.psi
Interface KtPureClassOrObject
- All Superinterfaces:
- KtDeclarationContainer, KtPureElement
public interface KtPureClassOrObject
- extends KtPureElement, KtDeclarationContainer
A minimal interface that KtClassOrObject implements for the purpose of code-generation that does not need the full power of PSI.
This interface can be easily implemented by synthetic elements to generate code for them.
getName
@Nullable
java.lang.String getName()
isLocal
boolean isLocal()
getSuperTypeListEntries
@NotNull
@ReadOnly
java.util.List<KtSuperTypeListEntry> getSuperTypeListEntries()
getCompanionObjects
@NotNull
@ReadOnly
java.util.List<KtObjectDeclaration> getCompanionObjects()
hasExplicitPrimaryConstructor
boolean hasExplicitPrimaryConstructor()
hasPrimaryConstructor
boolean hasPrimaryConstructor()
getPrimaryConstructor
@Nullable
KtPrimaryConstructor getPrimaryConstructor()
getPrimaryConstructorModifierList
@Nullable
KtModifierList getPrimaryConstructorModifierList()
getPrimaryConstructorParameters
@NotNull
@ReadOnly
java.util.List<KtParameter> getPrimaryConstructorParameters()
getSecondaryConstructors
@NotNull
@ReadOnly
java.util.List<KtSecondaryConstructor> getSecondaryConstructors()