Class Token

java.lang.Object
io.cucumber.gherkin.Token

final class Token extends Object
  • Field Details

    • line

      final @Nullable Line line
    • eof

      final boolean eof
    • matchedType

      @Nullable Parser.TokenType matchedType
    • matchedKeyword

      @Nullable String matchedKeyword
    • matchedText

      @Nullable String matchedText
    • matchedItems

      @Nullable List<LineSpan> matchedItems
    • matchedIndent

      int matchedIndent
    • matchedLanguage

      @Nullable String matchedLanguage
    • keywordType

      @Nullable io.cucumber.messages.types.StepKeywordType keywordType
    • location

      io.cucumber.messages.types.Location location
  • Constructor Details

    • Token

      private Token(@Nullable Line line, io.cucumber.messages.types.Location location)
  • Method Details

    • createEOF

      static Token createEOF(io.cucumber.messages.types.Location location)
    • createGherkinLine

      static Token createGherkinLine(String text, io.cucumber.messages.types.Location location)
    • isEOF

      boolean isEOF()
    • getTokenValue

      String getTokenValue()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getRequiredMatchedKeyword

      String getRequiredMatchedKeyword()
    • getRequiredMatchedText

      String getRequiredMatchedText()
    • getRequiredMatchedLanguage

      String getRequiredMatchedLanguage()
    • getRequiredMatchedType

      Parser.TokenType getRequiredMatchedType()
    • getRequiredLine

      Line getRequiredLine()