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

java.lang.Object
  extended by com.intellij.psi.tree.IElementType
      extended by com.intellij.psi.tree.ILazyParseableElementType
          extended by com.intellij.psi.tree.IFileElementType
              extended by com.intellij.psi.tree.StubFileElementType<T>
                  extended by com.intellij.psi.tree.IStubFileElementType<KotlinFileStub>
                      extended by org.jetbrains.kotlin.psi.stubs.elements.JetFileElementType
All Implemented Interfaces:
com.intellij.psi.stubs.ObjectStubSerializer<KotlinFileStub,com.intellij.psi.stubs.StubElement>, com.intellij.psi.stubs.StubSerializer<KotlinFileStub>
Direct Known Subclasses:
JetBlockCodeFragmentType, JetExpressionCodeFragmentType, JetTypeCodeFragmentType

public class JetFileElementType
extends com.intellij.psi.tree.IStubFileElementType<KotlinFileStub>


Nested Class Summary
 
Nested classes/interfaces inherited from class com.intellij.psi.tree.IElementType
com.intellij.psi.tree.IElementType.Predicate
 
Field Summary
static int STUB_VERSION
           
 
Fields inherited from class com.intellij.psi.tree.ILazyParseableElementType
LANGUAGE_KEY
 
Fields inherited from class com.intellij.psi.tree.IElementType
EMPTY_ARRAY, FIRST_TOKEN_INDEX, TRUE
 
Constructor Summary
  JetFileElementType()
           
protected JetFileElementType(java.lang.String debugName)
           
 
Method Summary
 KotlinFileStub deserialize(com.intellij.psi.stubs.StubInputStream dataStream, com.intellij.psi.stubs.StubElement parentStub)
           
protected  com.intellij.lang.ASTNode doParseContents(com.intellij.lang.ASTNode chameleon, com.intellij.psi.PsiElement psi)
           
 com.intellij.psi.StubBuilder getBuilder()
           
 java.lang.String getExternalId()
           
 int getStubVersion()
           
 void indexStub(KotlinFileStub stub, com.intellij.psi.stubs.IndexSink sink)
           
 void serialize(KotlinFileStub stub, com.intellij.psi.stubs.StubOutputStream dataStream)
           
 
Methods inherited from class com.intellij.psi.tree.IStubFileElementType
isDefault, shouldBuildStubFor
 
Methods inherited from class com.intellij.psi.tree.IFileElementType
parseContents
 
Methods inherited from class com.intellij.psi.tree.ILazyParseableElementType
createNode, getLanguageForParser, parseLight
 
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
 

Field Detail

STUB_VERSION

public static final int STUB_VERSION
See Also:
Constant Field Values
Constructor Detail

JetFileElementType

public JetFileElementType()

JetFileElementType

protected JetFileElementType(@NonNls
                             java.lang.String debugName)
Method Detail

getBuilder

public com.intellij.psi.StubBuilder getBuilder()
Overrides:
getBuilder in class com.intellij.psi.tree.IStubFileElementType<KotlinFileStub>

getStubVersion

public int getStubVersion()
Overrides:
getStubVersion in class com.intellij.psi.tree.IStubFileElementType<KotlinFileStub>

getExternalId

@NotNull
public java.lang.String getExternalId()
Specified by:
getExternalId in interface com.intellij.psi.stubs.ObjectStubSerializer<KotlinFileStub,com.intellij.psi.stubs.StubElement>
Overrides:
getExternalId in class com.intellij.psi.tree.IStubFileElementType<KotlinFileStub>

serialize

public void serialize(@NotNull
                      KotlinFileStub stub,
                      @NotNull
                      com.intellij.psi.stubs.StubOutputStream dataStream)
               throws java.io.IOException
Specified by:
serialize in interface com.intellij.psi.stubs.ObjectStubSerializer<KotlinFileStub,com.intellij.psi.stubs.StubElement>
Overrides:
serialize in class com.intellij.psi.tree.IStubFileElementType<KotlinFileStub>
Throws:
java.io.IOException

deserialize

@NotNull
public KotlinFileStub deserialize(@NotNull
                                          com.intellij.psi.stubs.StubInputStream dataStream,
                                          com.intellij.psi.stubs.StubElement parentStub)
                           throws java.io.IOException
Specified by:
deserialize in interface com.intellij.psi.stubs.ObjectStubSerializer<KotlinFileStub,com.intellij.psi.stubs.StubElement>
Overrides:
deserialize in class com.intellij.psi.tree.IStubFileElementType<KotlinFileStub>
Throws:
java.io.IOException

doParseContents

protected com.intellij.lang.ASTNode doParseContents(@NotNull
                                                    com.intellij.lang.ASTNode chameleon,
                                                    @NotNull
                                                    com.intellij.psi.PsiElement psi)
Overrides:
doParseContents in class com.intellij.psi.tree.ILazyParseableElementType

indexStub

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