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.


Method Summary
 java.util.List<KtObjectDeclaration> getCompanionObjects()
           
 java.lang.String getName()
           
 KtPrimaryConstructor getPrimaryConstructor()
           
 KtModifierList getPrimaryConstructorModifierList()
           
 java.util.List<KtParameter> getPrimaryConstructorParameters()
           
 java.util.List<KtSecondaryConstructor> getSecondaryConstructors()
           
 java.util.List<KtSuperTypeListEntry> getSuperTypeListEntries()
           
 boolean hasExplicitPrimaryConstructor()
           
 boolean hasPrimaryConstructor()
           
 boolean isLocal()
           
 
Methods inherited from interface org.jetbrains.kotlin.psi.KtPureElement
getContainingKtFile, getParent, getPsiOrParent
 
Methods inherited from interface org.jetbrains.kotlin.psi.KtDeclarationContainer
getDeclarations
 

Method Detail

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()