Class ILazyParseableElementType

java.lang.Object
com.intellij.psi.tree.IElementType
com.intellij.psi.tree.ILazyParseableElementType
Direct Known Subclasses:
IFileElementType, IReparseableElementType

public abstract class ILazyParseableElementType extends IElementType
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.
  • Constructor Details

    • ILazyParseableElementType

      public ILazyParseableElementType(@NotNull @NonNls @NotNull @NonNls String debugName)
    • ILazyParseableElementType

      public ILazyParseableElementType(@NotNull @NonNls @NotNull @NonNls String debugName, @Nullable @Nullable Language language)
    • ILazyParseableElementType

      public ILazyParseableElementType(@NotNull @NonNls @NotNull @NonNls String debugName, @Nullable @Nullable Language language, boolean register)
      Allows to construct element types without registering them, as in IElementType(String, Language, boolean).
  • Method Details

    • createInnerLexer

      @Nullable public @Nullable Lexer createInnerLexer()
      Returns a lexer for the text fragment or null if the outer tokens could be reused.
    • parse

      public abstract void parse(@NotNull @NotNull FleetPsiBuilder<?> builder)
      Parses the text fragment using the the provided FleetPsiBuilder