org.jetbrains.kotlin.psi.stubs.elements
Class KtFileElementType
java.lang.Object
com.intellij.psi.tree.IElementType
com.intellij.psi.tree.ILazyParseableElementType
com.intellij.psi.tree.IFileElementType
com.intellij.psi.tree.StubFileElementType<T>
com.intellij.psi.tree.IStubFileElementType<KotlinFileStub>
org.jetbrains.kotlin.psi.stubs.elements.KtFileElementType
- All Implemented Interfaces:
- com.intellij.psi.stubs.ObjectStubSerializer<KotlinFileStub,com.intellij.psi.stubs.StubElement>, com.intellij.psi.stubs.StubSerializer<KotlinFileStub>
- Direct Known Subclasses:
- KtBlockCodeFragmentType, KtExpressionCodeFragmentType, KtTypeCodeFragmentType
public class KtFileElementType
- extends com.intellij.psi.tree.IStubFileElementType<KotlinFileStub>
| Nested classes/interfaces inherited from class com.intellij.psi.tree.IElementType |
com.intellij.psi.tree.IElementType.Predicate |
| 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 |
|
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 |
STUB_VERSION
public static final int STUB_VERSION
- See Also:
- Constant Field Values
KtFileElementType
public KtFileElementType()
KtFileElementType
protected KtFileElementType(@NonNls
java.lang.String debugName)
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>