code: protected String getRuleName(Token token) {
  		String result = getTokenDefMap().get(token.getType());
  		return TokenTool.getLexerRuleName(result);
  	}
docs: TODO: rename to getLexerRuleName() on next API change