public String getText(CharStream input) {
		// index is first lookahead char, don't include.
		return input.getText(Interval.of(startIndex, input.index()-1));
	}
Get the text matched so far for the current token.
runtime/Java/src/org/antlr/v4/runtime/atn/LexerATNSimulator.java