public int getTokenType(String tokenName) {
		Integer ttype = getTokenTypeMap().get(tokenName);
		if ( ttype!=null ) return ttype;
		return Token.INVALID_TYPE;
	}
Get a map from rule names to rule indexes.

<p>Used for XPath and tree pattern compilation.</p>
runtime/Java/src/org/antlr/v4/runtime/Recognizer.java