public abstract class IErrorCounterReparseableElementType extends IReparseableElementType
IElementType.Predicate
Modifier and Type | Field and Description |
---|---|
static int |
FATAL_ERROR |
static int |
NO_ERRORS |
LANGUAGE_KEY
ARRAY_FACTORY, EMPTY_ARRAY, FIRST_TOKEN_INDEX, TRUE
Constructor and Description |
---|
IErrorCounterReparseableElementType(java.lang.String debugName,
Language language) |
Modifier and Type | Method and Description |
---|---|
abstract int |
getErrorsCount(java.lang.CharSequence seq,
Language fileLanguage,
Project project) |
boolean |
isParsable(java.lang.CharSequence buffer,
Language fileLanguage,
Project project)
Checks if the specified character sequence can be parsed as a valid content of the
chameleon node.
|
isParsable, isValidReparse
createNode, doParseContents, getLanguageForParser, parseContents, parseLight, reuseCollapsedTokens
enumerate, find, getIndex, getLanguage, hashCode, isLeftBound, toString, unregisterElementTypes, unregisterElementTypes
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
parseContents, reuseCollapsedTokens
public static final int NO_ERRORS
public static final int FATAL_ERROR
public IErrorCounterReparseableElementType(java.lang.String debugName, Language language)
public abstract int getErrorsCount(java.lang.CharSequence seq, Language fileLanguage, Project project)
public boolean isParsable(java.lang.CharSequence buffer, Language fileLanguage, Project project)
IReparseableElementType
isParsable
in class IReparseableElementType
buffer
- the content to parse.fileLanguage
- language of the fileproject
- the project containing the content.