@Deprecated
	public String getTokenErrorDisplay(Token t) {
		if ( t==null ) return "<no token>";
		String s = t.getText();
		if ( s==null ) {
			if ( t.getType()==Token.EOF ) {
				s = "<EOF>";
			}
			else {
				s = "<"+t.getType()+">";
			}
		}
		s = s.replace("\n","\\n");
		s = s.replace("\r","\\r");
		s = s.replace("\t","\\t");
		return "'"+s+"'";
	}
How should a token be displayed in an error message? The default
 is to display just the text, but during development you might
 want to have a lot of information spit out.  Override in that case
 to use t.toString() (which, for CommonToken, dumps everything about
 the token). This is better than forcing you to override a method in
 your token objects because you don't have to go modify your lexer
 so that it creates a new Java type.

@deprecated This method is not called by the ANTLR 4 Runtime. Specific
implementations of {@link ANTLRErrorStrategy} may provide a similar
feature when necessary. For example, see
{@link DefaultErrorStrategy#getTokenErrorDisplay}.
runtime/Java/src/org/antlr/v4/runtime/Recognizer.java