org.jetbrains.kotlin.psi.stubs.elements
Class KtStubElementType<StubT extends com.intellij.psi.stubs.StubElement,PsiT extends KtElementImplStub<?>>
java.lang.Object
com.intellij.psi.tree.IElementType
com.intellij.psi.stubs.IStubElementType<StubT,PsiT>
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 classes/interfaces inherited from class com.intellij.psi.tree.IElementType |
com.intellij.psi.tree.IElementType.Predicate |
| 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)
|
| 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, hashCode, isLeftBound, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.intellij.psi.stubs.ObjectStubSerializer |
deserialize, serialize |
KtStubElementType
public KtStubElementType(@NotNull@NonNls
java.lang.String debugName,
@NotNull
java.lang.Class<PsiT> psiClass,
@NotNull
java.lang.Class<?> stubClass)
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()