public String[] getTokenNames() {
		int numTokens = getMaxTokenType();
		String[] tokenNames = new String[numTokens+1];
		for (int i = 0; i < tokenNames.length; i++) {
			tokenNames[i] = getTokenName(i);
		}

		return tokenNames;
	}
Gets an array of token names for tokens defined or imported by the
grammar. The array index is the token type, and the value is the result
of {@link #getTokenName} for the corresponding token type.

@see #getTokenName
@return The token names of all tokens defined in the grammar.
tool/src/org/antlr/v4/tool/Grammar.java