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

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.JetStubElementType<KotlinClassStub,JetClass>
              extended by org.jetbrains.kotlin.psi.stubs.elements.JetClassElementType
All Implemented Interfaces:
com.intellij.psi.stubs.ObjectStubSerializer<KotlinClassStub,com.intellij.psi.stubs.StubElement>, com.intellij.psi.stubs.StubSerializer<KotlinClassStub>

public class JetClassElementType
extends JetStubElementType<KotlinClassStub,JetClass>


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
JetClassElementType(java.lang.String debugName)
           
 
Method Summary
 JetClass createPsi(KotlinClassStub stub)
           
 JetClass createPsiFromAst(com.intellij.lang.ASTNode node)
           
 KotlinClassStub createStub(JetClass psi, com.intellij.psi.stubs.StubElement parentStub)
           
 KotlinClassStub deserialize(com.intellij.psi.stubs.StubInputStream dataStream, com.intellij.psi.stubs.StubElement parentStub)
           
static JetClassElementType 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.JetStubElementType
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, isLeftBound, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JetClassElementType

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

createPsi

@NotNull
public JetClass createPsi(@NotNull
                                  KotlinClassStub stub)
Overrides:
createPsi in class JetStubElementType<KotlinClassStub,JetClass>

createPsiFromAst

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

createStub

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

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 JetStubElementType<KotlinClassStub,JetClass>

getStubType

public static JetClassElementType getStubType(boolean isEnumEntry)