docs: public final void typeName() throws RecognitionException {
  		int typeName_StartIndex = input.index();
  
  		try {
  			if ( state.backtracking>0 && alreadyParsedRule(input, 49) ) { return; }
  
  			// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:527:5: ( Identifier | packageOrTypeName '.' Identifier )
  			int alt66=2;
  			int LA66_0 = input.LA(1);
  			if ( (LA66_0==Identifier) ) {
  				int LA66_1 = input.LA(2);
  				if ( (LA66_1==EOF) ) {
  					alt66=1;
  				}
  				else if ( (LA66_1==47) ) {
  					alt66=2;
  				}
  
  				else {
  					if (state.backtracking>0) {state.failed=true; return;}
  					int nvaeMark = input.mark();
  					try {
  						input.consume();
  						NoViableAltException nvae =
  							new NoViableAltException("", 66, 1, input);
  						throw nvae;
  					} finally {
  						input.rewind(nvaeMark);
  					}
  				}
  
  			}
  
  			else {
  				if (state.backtracking>0) {state.failed=true; return;}
  				NoViableAltException nvae =
  					new NoViableAltException("", 66, 0, input);
  				throw nvae;
  			}
  
  			switch (alt66) {
  				case 1 :
  					// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:527:9: Identifier
  					{
  					match(input,Identifier,FOLLOW_Identifier_in_typeName1745); if (state.failed) return;
  					}
  					break;
  				case 2 :
  					// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:528:9: packageOrTypeName '.' Identifier
  					{
  					pushFollow(FOLLOW_packageOrTypeName_in_typeName1755);
  					packageOrTypeName();
  					state._fsp--;
  					if (state.failed) return;
  					match(input,47,FOLLOW_47_in_typeName1757); if (state.failed) return;
  					match(input,Identifier,FOLLOW_Identifier_in_typeName1759); if (state.failed) return;
  					}
  					break;
  
  			}
  		}
  		catch (RecognitionException re) {
  			reportError(re);
  			recover(input,re);
  		}
  		finally {
  			// do for sure before leaving
  			if ( state.backtracking>0 ) { memoize(input, 49, typeName_StartIndex); }
  
  		}
  	}