public class IStubFileElementType<T extends PsiFileStub> extends StubFileElementType<T>
IElementType.Predicate
DEFAULT_EXTERNAL_ID
LANGUAGE_KEY
ARRAY_FACTORY, EMPTY_ARRAY, FIRST_TOKEN_INDEX, TRUE
Constructor and Description |
---|
IStubFileElementType(Language language) |
IStubFileElementType(java.lang.String debugName,
Language language) |
Modifier and Type | Method and Description |
---|---|
T |
deserialize(StubInputStream dataStream,
StubElement parentStub) |
StubBuilder |
getBuilder() |
java.lang.String |
getExternalId() |
int |
getStubVersion()
Stub structure version.
|
static int |
getTemplateStubVersion() |
void |
indexStub(PsiFileStub stub,
IndexSink sink) |
void |
serialize(T stub,
StubOutputStream dataStream) |
boolean |
shouldBuildStubFor(VirtualFile file) |
parseContents
createNode, doParseContents, getLanguageForParser, parseLight, reuseCollapsedTokens
enumerate, find, getIndex, getLanguage, hashCode, isLeftBound, toString, unregisterElementTypes, unregisterElementTypes
public IStubFileElementType(Language language)
public IStubFileElementType(java.lang.String debugName, Language language)
public int getStubVersion()
TemplateLanguage
to prevent stub serialization problems due to
data language stub changespublic StubBuilder getBuilder()
public java.lang.String getExternalId()
public void serialize(T stub, StubOutputStream dataStream) throws java.io.IOException
java.io.IOException
public T deserialize(StubInputStream dataStream, StubElement parentStub) throws java.io.IOException
java.io.IOException
public void indexStub(PsiFileStub stub, IndexSink sink)
public boolean shouldBuildStubFor(VirtualFile file)
public static int getTemplateStubVersion()