java.lang.Object
com.intellij.psi.tree.IElementType
com.intellij.psi.tree.ILazyParseableElementType
- Direct Known Subclasses:
IFileElementType,IReparseableElementType
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
ConstructorsConstructorDescriptionILazyParseableElementType(@NotNull @NonNls String debugName) ILazyParseableElementType(@NotNull @NonNls String debugName, @Nullable Language language) ILazyParseableElementType(@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 TypeMethodDescription@Nullable LexerReturns a lexer for the text fragment or null if the outer tokens could be reused.abstract voidparse(@NotNull FleetPsiBuilder<?> builder) Parses the text fragment using the the provided FleetPsiBuilderMethods inherited from class com.intellij.psi.tree.IElementType
enumerate, find, getIndex, getLanguage, hashCode, isLeftBound, toString, unregisterElementTypes, unregisterElementTypes
-
Constructor Details
-
ILazyParseableElementType
-
ILazyParseableElementType
-
ILazyParseableElementType
public ILazyParseableElementType(@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
-
createInnerLexer
Returns a lexer for the text fragment or null if the outer tokens could be reused. -
parse
Parses the text fragment using the the provided FleetPsiBuilder
-