docs: public final void enumDeclaration() throws RecognitionException {
  		int enumDeclaration_StartIndex = input.index();
  
  		try {
  			if ( state.backtracking>0 && alreadyParsedRule(input, 11) ) { return; }
  
  			// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:318:5: ( ENUM Identifier ( 'implements' typeList )? enumBody )
  			// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:318:7: ENUM Identifier ( 'implements' typeList )? enumBody
  			{
  			match(input,ENUM,FOLLOW_ENUM_in_enumDeclaration411); if (state.failed) return;
  			match(input,Identifier,FOLLOW_Identifier_in_enumDeclaration413); if (state.failed) return;
  			// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:318:23: ( 'implements' typeList )?
  			int alt18=2;
  			int LA18_0 = input.LA(1);
  			if ( (LA18_0==88) ) {
  				alt18=1;
  			}
  			switch (alt18) {
  				case 1 :
  					// src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:318:24: 'implements' typeList
  					{
  					match(input,88,FOLLOW_88_in_enumDeclaration416); if (state.failed) return;
  					pushFollow(FOLLOW_typeList_in_enumDeclaration418);
  					typeList();
  					state._fsp--;
  					if (state.failed) return;
  					}
  					break;
  
  			}
  
  			pushFollow(FOLLOW_enumBody_in_enumDeclaration422);
  			enumBody();
  			state._fsp--;
  			if (state.failed) return;
  			}
  
  		}
  		catch (RecognitionException re) {
  			reportError(re);
  			recover(input,re);
  		}
  		finally {
  			// do for sure before leaving
  			if ( state.backtracking>0 ) { memoize(input, 11, enumDeclaration_StartIndex); }
  
  		}
  	}