java.lang.Object
com.intellij.psi.tree.IElementType
com.intellij.psi.tree.ILazyParseableElementType
com.intellij.psi.tree.IReparseableElementType
- Direct Known Subclasses:
IErrorCounterReparseableElementType
A token type which represents a fragment of text (possibly in a different language)
which is not parsed during the current lexer or parser pass and can be parsed later when
its contents is requested.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.intellij.psi.tree.IElementType
IElementType.Predicate -
Field Summary
Fields inherited from class com.intellij.psi.tree.IElementType
EMPTY_ARRAY, FIRST_TOKEN_INDEX, TRUE -
Constructor Summary
ConstructorsConstructorDescriptionIReparseableElementType(@NotNull @NonNls String debugName) IReparseableElementType(@NotNull @NonNls String debugName, @Nullable Language language) IReparseableElementType(@NotNull @NonNls String debugName, @Nullable Language language, boolean register) Allows to construct element types without registering them, as inIElementType(String, Language, boolean). -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanhasProperBraceBalance(@NotNull ITokenSequence tokenSequence, int lexIndex, int lexCount, @NotNull IElementType leftBrace, @NotNull IElementType rightBrace) abstract booleanisParsable(@NotNull ITokenSequence tokenSequence, int startLexeme, int lexemeCount) Methods inherited from class com.intellij.psi.tree.ILazyParseableElementType
createInnerLexer, parseMethods inherited from class com.intellij.psi.tree.IElementType
enumerate, find, getIndex, getLanguage, hashCode, isLeftBound, toString, unregisterElementTypes, unregisterElementTypes
-
Constructor Details
-
IReparseableElementType
-
IReparseableElementType
-
IReparseableElementType
public IReparseableElementType(@NotNull @NonNls @NotNull @NonNls String debugName, @Nullable @Nullable Language language, boolean register) Allows to construct element types without registering them, as inIElementType(String, Language, boolean).
-
-
Method Details
-
isParsable
public abstract boolean isParsable(@NotNull @NotNull ITokenSequence tokenSequence, int startLexeme, int lexemeCount) -
hasProperBraceBalance
public static boolean hasProperBraceBalance(@NotNull @NotNull ITokenSequence tokenSequence, int lexIndex, int lexCount, @NotNull @NotNull IElementType leftBrace, @NotNull @NotNull IElementType rightBrace)
-