Vocabulary.getDisplayName

@uml Gets the display name of a token type.

<p>ANTLR provides a default implementation of this method, but applications are free to override the behavior in any manner which makes sense for the application. The default implementation returns the first result from the following list which produces a non-{@code null} result.</p>

<ol> <li>The result of {@link #getLiteralName}</li> <li>The result of {@link #getSymbolicName}</li> <li>The result of {@link Integer#toString}</li> </ol>

@param tokenType The token type.

@return The display name of the token type, for use in error reporting or other user-visible messages which reference specific token types.

interface Vocabulary
string
getDisplayName
()

Meta