public static class JavaElementType.ICodeBlockElementType extends IErrorCounterReparseableElementType implements ICompositeElementType, ILightLazyParseableElementType
IElementType.Predicate
FATAL_ERROR, NO_ERRORS
LANGUAGE_KEY
ARRAY_FACTORY, EMPTY_ARRAY, FIRST_TOKEN_INDEX, TRUE
Modifier and Type | Method and Description |
---|---|
ASTNode |
createCompositeNode() |
ASTNode |
createNode(java.lang.CharSequence text) |
int |
getErrorsCount(java.lang.CharSequence seq,
Language fileLanguage,
Project project) |
ASTNode |
parseContents(ASTNode chameleon)
Parses the contents of the specified chameleon node and returns the AST tree
representing the parsed contents.
|
FlyweightCapableTreeStructure<LighterASTNode> |
parseContents(LighterLazyParseableNode chameleon)
Parses the contents of the specified chameleon node and returns the lightweight tree
representing parsed contents.
|
isParsable
isParsable, isValidReparse
doParseContents, getLanguageForParser, parseLight, reuseCollapsedTokens
enumerate, find, getIndex, getLanguage, hashCode, isLeftBound, toString, unregisterElementTypes, unregisterElementTypes
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
reuseCollapsedTokens
public ASTNode createNode(java.lang.CharSequence text)
createNode
in class ILazyParseableElementType
public ASTNode createCompositeNode()
createCompositeNode
in interface ICompositeElementType
public ASTNode parseContents(ASTNode chameleon)
ILazyParseableElementType
parseContents
in interface ILazyParseableElementTypeBase
parseContents
in class ILazyParseableElementType
chameleon
- the node to parse.public FlyweightCapableTreeStructure<LighterASTNode> parseContents(LighterLazyParseableNode chameleon)
ILightLazyParseableElementType
parseContents
in interface ILightLazyParseableElementType
chameleon
- the node to parse.public int getErrorsCount(java.lang.CharSequence seq, Language fileLanguage, Project project)
getErrorsCount
in class IErrorCounterReparseableElementType