org.jetbrains.kotlin.psi.stubs.elements
Class KtStubElementType<StubT extends com.intellij.psi.stubs.StubElement,PsiT extends KtElementImplStub<?>>

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<StubT,PsiT>
All Implemented Interfaces:
com.intellij.psi.stubs.ObjectStubSerializer<StubT,com.intellij.psi.stubs.StubElement>, com.intellij.psi.stubs.StubSerializer<StubT>
Direct Known Subclasses:
KtAnnotationEntryElementType, KtClassElementType, KtFunctionElementType, KtImportDirectiveElementType, KtModifierListElementType, KtNameReferenceExpressionElementType, KtObjectElementType, KtParameterElementType, KtPlaceHolderStubElementType, KtPropertyAccessorElementType, KtPropertyElementType, KtTypeParameterElementType, KtTypeProjectionElementType, KtUserTypeElementType

public abstract class KtStubElementType<StubT extends com.intellij.psi.stubs.StubElement,PsiT extends KtElementImplStub<?>>
extends com.intellij.psi.stubs.IStubElementType<StubT,PsiT>


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
KtStubElementType(java.lang.String debugName, java.lang.Class<PsiT> psiClass, java.lang.Class<?> stubClass)
           
 
Method Summary
 PsiT createPsi(StubT stub)
           
 PsiT createPsiFromAst(com.intellij.lang.ASTNode node)
           
 com.intellij.util.ArrayFactory<PsiT> getArrayFactory()
           
 java.lang.String getExternalId()
           
 void indexStub(StubT stub, com.intellij.psi.stubs.IndexSink sink)
           
 boolean shouldCreateStub(com.intellij.lang.ASTNode node)
           
 
Methods inherited from class com.intellij.psi.stubs.IStubElementType
createStub, 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
 
Methods inherited from interface com.intellij.psi.stubs.ObjectStubSerializer
deserialize, serialize
 

Constructor Detail

KtStubElementType

public KtStubElementType(@NotNull@NonNls
                         java.lang.String debugName,
                         @NotNull
                         java.lang.Class<PsiT> psiClass,
                         @NotNull
                         java.lang.Class<?> stubClass)
Method Detail

createPsiFromAst

@NotNull
public PsiT createPsiFromAst(@NotNull
                                     com.intellij.lang.ASTNode node)

createPsi

@NotNull
public PsiT createPsi(@NotNull
                              StubT stub)
Specified by:
createPsi in class com.intellij.psi.stubs.IStubElementType<StubT extends com.intellij.psi.stubs.StubElement,PsiT extends KtElementImplStub<?>>

getExternalId

@NotNull
public java.lang.String getExternalId()

shouldCreateStub

public boolean shouldCreateStub(com.intellij.lang.ASTNode node)
Overrides:
shouldCreateStub in class com.intellij.psi.stubs.IStubElementType<StubT extends com.intellij.psi.stubs.StubElement,PsiT extends KtElementImplStub<?>>

indexStub

public void indexStub(@NotNull
                      StubT stub,
                      @NotNull
                      com.intellij.psi.stubs.IndexSink sink)

getArrayFactory

@NotNull
public com.intellij.util.ArrayFactory<PsiT> getArrayFactory()