public class JavaFileElementType extends ILightStubFileElementType<PsiJavaFileStub>
IElementType.Predicate
Modifier and Type | Field and Description |
---|---|
static int |
STUB_VERSION |
DEFAULT_EXTERNAL_ID
LANGUAGE_KEY
ARRAY_FACTORY, EMPTY_ARRAY, FIRST_TOKEN_INDEX, TRUE
Constructor and Description |
---|
JavaFileElementType() |
Modifier and Type | Method and Description |
---|---|
ASTNode |
createNode(java.lang.CharSequence text) |
PsiJavaFileStub |
deserialize(StubInputStream dataStream,
StubElement parentStub) |
LightStubBuilder |
getBuilder() |
java.lang.String |
getExternalId() |
int |
getStubVersion()
Stub structure version.
|
void |
indexStub(PsiJavaFileStub stub,
IndexSink sink) |
static boolean |
isInSourceContent(VirtualFile file) |
ASTNode |
parseContents(ASTNode chameleon)
Parses the contents of the specified chameleon node and returns the AST tree
representing the parsed contents.
|
FlyweightCapableTreeStructure<LighterASTNode> |
parseContentsLight(ASTNode chameleon) |
void |
serialize(PsiJavaFileStub stub,
StubOutputStream dataStream) |
boolean |
shouldBuildStubFor(VirtualFile file) |
getTemplateStubVersion, indexStub
doParseContents, getLanguageForParser, parseLight, reuseCollapsedTokens
enumerate, find, getIndex, getLanguage, hashCode, isLeftBound, toString, unregisterElementTypes, unregisterElementTypes
public static final int STUB_VERSION
public LightStubBuilder getBuilder()
getBuilder
in class ILightStubFileElementType<PsiJavaFileStub>
public int getStubVersion()
IStubFileElementType
TemplateLanguage
to prevent stub serialization problems due to
data language stub changesgetStubVersion
in class IStubFileElementType<PsiJavaFileStub>
public boolean shouldBuildStubFor(VirtualFile file)
shouldBuildStubFor
in class IStubFileElementType<PsiJavaFileStub>
public static boolean isInSourceContent(VirtualFile file)
public ASTNode createNode(java.lang.CharSequence text)
createNode
in class ILazyParseableElementType
public FlyweightCapableTreeStructure<LighterASTNode> parseContentsLight(ASTNode chameleon)
parseContentsLight
in class ILightStubFileElementType<PsiJavaFileStub>
public ASTNode parseContents(ASTNode chameleon)
ILazyParseableElementType
parseContents
in interface ILazyParseableElementTypeBase
parseContents
in class IFileElementType
chameleon
- the node to parse.public java.lang.String getExternalId()
getExternalId
in interface ObjectStubSerializer<PsiJavaFileStub,StubElement>
getExternalId
in class IStubFileElementType<PsiJavaFileStub>
public void serialize(PsiJavaFileStub stub, StubOutputStream dataStream) throws java.io.IOException
serialize
in interface ObjectStubSerializer<PsiJavaFileStub,StubElement>
serialize
in class IStubFileElementType<PsiJavaFileStub>
java.io.IOException
public PsiJavaFileStub deserialize(StubInputStream dataStream, StubElement parentStub) throws java.io.IOException
deserialize
in interface ObjectStubSerializer<PsiJavaFileStub,StubElement>
deserialize
in class IStubFileElementType<PsiJavaFileStub>
java.io.IOException
public void indexStub(PsiJavaFileStub stub, IndexSink sink)