docs: public final void typeDeclaration() throws RecognitionException {
  		int typeDeclaration_StartIndex = input.index();
  
  		try {
  			if ( state.backtracking>0 && alreadyParsedRule(input, 4) ) { return; }
  
  			// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:285:5: ( classOrInterfaceDeclaration | ';' )
  			int alt8=2;
  			int LA8_0 = input.LA(1);
  			if ( (LA8_0==ENUM||LA8_0==58||LA8_0==63||LA8_0==72||LA8_0==83||LA8_0==93||LA8_0==96||(LA8_0 >= 100 && LA8_0 <= 102)||(LA8_0 >= 106 && LA8_0 <= 107)||LA8_0==110||LA8_0==114||LA8_0==119) ) {
  				alt8=1;
  			}
  			else if ( (LA8_0==52) ) {
  				alt8=2;
  			}
  
  			else {
  				if (state.backtracking>0) {state.failed=true; return;}
  				NoViableAltException nvae =
  					new NoViableAltException("", 8, 0, input);
  				throw nvae;
  			}
  
  			switch (alt8) {
  				case 1 :
  					// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:285:7: classOrInterfaceDeclaration
  					{
  					pushFollow(FOLLOW_classOrInterfaceDeclaration_in_typeDeclaration191);
  					classOrInterfaceDeclaration();
  					state._fsp--;
  					if (state.failed) return;
  					}
  					break;
  				case 2 :
  					// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:286:9: ';'
  					{
  					match(input,52,FOLLOW_52_in_typeDeclaration201); 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, 4, typeDeclaration_StartIndex); }
  
  		}
  	}