Class Line

java.lang.Object
io.cucumber.gherkin.Line

final class Line extends Object
  • Field Details

    • rawText

      private final String rawText
      The line text, including all leading and trailing whitespace characters.
    • empty

      private final boolean empty
    • text

      private final String text
      The line text with any whitespace characters trimmed.
    • indent

      private final int indent
      The offset in code-points of the first non-whitespace character in this line.
    • textLength

      private final int textLength
  • Constructor Details

  • Method Details

    • getIndent

      int getIndent()
    • getText

      String getText()
    • getRawText

      String getRawText()
    • getRawTextSubstring

      String getRawTextSubstring(int indentToRemove)
    • isEmpty

      boolean isEmpty()
    • startsWith

      boolean startsWith(String prefix)
    • startsWith

      boolean startsWith(char prefix)
    • substringTrimmed

      String substringTrimmed(int beginIndex)
    • startsWithTitleKeyword

      boolean startsWithTitleKeyword(String keyword)