Class IReparseableElementType

Direct Known Subclasses:
IErrorCounterReparseableElementType

public abstract class IReparseableElementType extends ILazyParseableElementType
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

    • IReparseableElementType

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

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

      public IReparseableElementType(@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

    • isParsable

      public abstract boolean isParsable(@Nullable @Nullable IElementType parentType, @NotNull @NotNull CharSequence charSequence, @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)