org.jetbrains.kotlin.psi.stubs.elements
Class KtClassElementType

java.lang.Object
  extended by com.intellij.psi.tree.IElementType
      extended by com.intellij.psi.stubs.IStubElementType<StubT,PsiT>
          extended by org.jetbrains.kotlin.psi.stubs.elements.KtStubElementType<KotlinClassStub,KtClass>
              extended by org.jetbrains.kotlin.psi.stubs.elements.KtClassElementType
All Implemented Interfaces:
com.intellij.psi.stubs.ObjectStubSerializer<KotlinClassStub,com.intellij.psi.stubs.StubElement>, com.intellij.psi.stubs.StubSerializer<KotlinClassStub>

public class KtClassElementType
extends KtStubElementType<KotlinClassStub,KtClass>


Nested Class Summary
 
Nested classes/interfaces inherited from class com.intellij.psi.tree.IElementType
com.intellij.psi.tree.IElementType.Predicate
 
Field Summary
 
Fields inherited from class com.intellij.psi.tree.IElementType
EMPTY_ARRAY, FIRST_TOKEN_INDEX, TRUE
 
Constructor Summary
KtClassElementType(java.lang.String debugName)
           
 
Method Summary
 KtClass createPsi(KotlinClassStub stub)
           
 KtClass createPsiFromAst(com.intellij.lang.ASTNode node)
           
 KotlinClassStub createStub(KtClass psi, com.intellij.psi.stubs.StubElement parentStub)
           
 KotlinClassStub deserialize(com.intellij.psi.stubs.StubInputStream dataStream, com.intellij.psi.stubs.StubElement parentStub)
           
static KtClassElementType getStubType(boolean isEnumEntry)
           
 void indexStub(KotlinClassStub stub, com.intellij.psi.stubs.IndexSink sink)
           
 void serialize(KotlinClassStub stub, com.intellij.psi.stubs.StubOutputStream dataStream)
           
 
Methods inherited from class org.jetbrains.kotlin.psi.stubs.elements.KtStubElementType
getArrayFactory, getExternalId, shouldCreateStub
 
Methods inherited from class com.intellij.psi.stubs.IStubElementType
getId
 
Methods inherited from class com.intellij.psi.tree.IElementType
enumerate, find, getIndex, getLanguage, getRegisteredIndex, hashCode, isLeftBound, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KtClassElementType

public KtClassElementType(@NotNull@NonNls
                          java.lang.String debugName)
Method Detail

createPsi

@NotNull
public KtClass createPsi(@NotNull
                                 KotlinClassStub stub)
Overrides:
createPsi in class KtStubElementType<KotlinClassStub,KtClass>

createPsiFromAst

@NotNull
public KtClass createPsiFromAst(@NotNull
                                        com.intellij.lang.ASTNode node)
Overrides:
createPsiFromAst in class KtStubElementType<KotlinClassStub,KtClass>

createStub

public KotlinClassStub createStub(@NotNull
                                  KtClass psi,
                                  com.intellij.psi.stubs.StubElement parentStub)
Specified by:
createStub in class com.intellij.psi.stubs.IStubElementType<KotlinClassStub,KtClass>

serialize

public void serialize(@NotNull
                      KotlinClassStub stub,
                      @NotNull
                      com.intellij.psi.stubs.StubOutputStream dataStream)
               throws java.io.IOException
Throws:
java.io.IOException

deserialize

@NotNull
public KotlinClassStub deserialize(@NotNull
                                           com.intellij.psi.stubs.StubInputStream dataStream,
                                           com.intellij.psi.stubs.StubElement parentStub)
                            throws java.io.IOException
Throws:
java.io.IOException

indexStub

public void indexStub(@NotNull
                      KotlinClassStub stub,
                      @NotNull
                      com.intellij.psi.stubs.IndexSink sink)
Specified by:
indexStub in interface com.intellij.psi.stubs.ObjectStubSerializer<KotlinClassStub,com.intellij.psi.stubs.StubElement>
Overrides:
indexStub in class KtStubElementType<KotlinClassStub,KtClass>

getStubType

public static KtClassElementType getStubType(boolean isEnumEntry)