getText method

String getText(
  1. CharStream input
)

Get the text matched so far for the current token.

Implementation

String getText(CharStream input) {
  // index is first lookahead char, don't include.
  return input.getText(Interval.of(startIndex, input.index - 1));
}