toString method

  1. @override
String toString ()

Returns a textual representation of this token to be used for debugging purposes. The resulting string might contain information about the structure of the token, for example 'StringToken(foo)' for the identifier token 'foo'.

Use lexeme for the text actually parsed by the token.


String toString();