public class ILazyParseableElementType extends IElementType implements ILazyParseableElementTypeBase
IElementType.Predicate
Modifier and Type | Field and Description |
---|---|
static Key<Language> |
LANGUAGE_KEY |
ARRAY_FACTORY, EMPTY_ARRAY, FIRST_TOKEN_INDEX, TRUE
Constructor and Description |
---|
ILazyParseableElementType(java.lang.String debugName) |
ILazyParseableElementType(java.lang.String debugName,
Language language) |
ILazyParseableElementType(java.lang.String debugName,
Language language,
boolean register)
Allows to construct element types without registering them, as in
IElementType(String, Language, boolean) . |
Modifier and Type | Method and Description |
---|---|
ASTNode |
createNode(java.lang.CharSequence text) |
protected ASTNode |
doParseContents(ASTNode chameleon,
PsiElement psi) |
protected Language |
getLanguageForParser(PsiElement psi) |
ASTNode |
parseContents(ASTNode chameleon)
Parses the contents of the specified chameleon node and returns the AST tree
representing the parsed contents.
|
PsiBuilder |
parseLight(ASTNode chameleon)
Deprecated.
Not needed anymore, override
parseContents(ASTNode)
or implement ILightLazyParseableElementType instead. |
boolean |
reuseCollapsedTokens() |
enumerate, find, getIndex, getLanguage, hashCode, isLeftBound, toString, unregisterElementTypes, unregisterElementTypes
public ILazyParseableElementType(java.lang.String debugName)
public ILazyParseableElementType(java.lang.String debugName, Language language)
public ILazyParseableElementType(java.lang.String debugName, Language language, boolean register)
IElementType(String, Language, boolean)
.@Deprecated public PsiBuilder parseLight(ASTNode chameleon)
parseContents(ASTNode)
or implement ILightLazyParseableElementType
instead.chameleon
- the node to parse.public ASTNode parseContents(ASTNode chameleon)
parseContents
in interface ILazyParseableElementTypeBase
chameleon
- the node to parse.protected ASTNode doParseContents(ASTNode chameleon, PsiElement psi)
protected Language getLanguageForParser(PsiElement psi)
public ASTNode createNode(java.lang.CharSequence text)
public boolean reuseCollapsedTokens()
reuseCollapsedTokens
in interface ILazyParseableElementTypeBase