public final HiveParser.dropFunctionStatement_return dropFunctionStatement() throws RecognitionException {
		HiveParser.dropFunctionStatement_return retval = new HiveParser.dropFunctionStatement_return();
		retval.start = input.LT(1);

		CommonTree root_0 = null;

		Token KW_DROP496=null;
		Token KW_TEMPORARY497=null;
		Token KW_FUNCTION498=null;
		ParserRuleReturnScope ifExists499 =null;
		ParserRuleReturnScope identifier500 =null;

		CommonTree KW_DROP496_tree=null;
		CommonTree KW_TEMPORARY497_tree=null;
		CommonTree KW_FUNCTION498_tree=null;
		RewriteRuleTokenStream stream_KW_FUNCTION=new RewriteRuleTokenStream(adaptor,"token KW_FUNCTION");
		RewriteRuleTokenStream stream_KW_DROP=new RewriteRuleTokenStream(adaptor,"token KW_DROP");
		RewriteRuleTokenStream stream_KW_TEMPORARY=new RewriteRuleTokenStream(adaptor,"token KW_TEMPORARY");
		RewriteRuleSubtreeStream stream_ifExists=new RewriteRuleSubtreeStream(adaptor,"rule ifExists");
		RewriteRuleSubtreeStream stream_identifier=new RewriteRuleSubtreeStream(adaptor,"rule identifier");

		 msgs.push("drop temporary function statement"); 
		try {
			// HiveParser.g:1405:5: ( KW_DROP KW_TEMPORARY KW_FUNCTION ( ifExists )? identifier -> ^( TOK_DROPFUNCTION identifier ( ifExists )? ) )
			// HiveParser.g:1405:7: KW_DROP KW_TEMPORARY KW_FUNCTION ( ifExists )? identifier
			{
			KW_DROP496=(Token)match(input,KW_DROP,FOLLOW_KW_DROP_in_dropFunctionStatement7892);  
			stream_KW_DROP.add(KW_DROP496);

			KW_TEMPORARY497=(Token)match(input,KW_TEMPORARY,FOLLOW_KW_TEMPORARY_in_dropFunctionStatement7894);  
			stream_KW_TEMPORARY.add(KW_TEMPORARY497);

			KW_FUNCTION498=(Token)match(input,KW_FUNCTION,FOLLOW_KW_FUNCTION_in_dropFunctionStatement7896);  
			stream_KW_FUNCTION.add(KW_FUNCTION498);

			// HiveParser.g:1405:40: ( ifExists )?
			int alt141=2;
			int LA141_0 = input.LA(1);
			if ( (LA141_0==KW_IF) ) {
				alt141=1;
			}
			switch (alt141) {
				case 1 :
					// HiveParser.g:1405:40: ifExists
					{
					pushFollow(FOLLOW_ifExists_in_dropFunctionStatement7898);
					ifExists499=ifExists();
					state._fsp--;

					stream_ifExists.add(ifExists499.getTree());
					}
					break;

			}

			pushFollow(FOLLOW_identifier_in_dropFunctionStatement7901);
			identifier500=identifier();
			state._fsp--;

			stream_identifier.add(identifier500.getTree());
			// AST REWRITE
			// elements: ifExists, identifier
			// token labels: 
			// rule labels: retval
			// token list labels: 
			// rule list labels: 
			// wildcard labels: 
			retval.tree = root_0;
			RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,"rule retval",retval!=null?retval.getTree():null);

			root_0 = (CommonTree)adaptor.nil();
			// 1406:5: -> ^( TOK_DROPFUNCTION identifier ( ifExists )? )
			{
				// HiveParser.g:1406:8: ^( TOK_DROPFUNCTION identifier ( ifExists )? )
				{
				CommonTree root_1 = (CommonTree)adaptor.nil();
				root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(TOK_DROPFUNCTION, "TOK_DROPFUNCTION"), root_1);
				adaptor.addChild(root_1, stream_identifier.nextTree());
				// HiveParser.g:1406:38: ( ifExists )?
				if ( stream_ifExists.hasNext() ) {
					adaptor.addChild(root_1, stream_ifExists.nextTree());
				}
				stream_ifExists.reset();

				adaptor.addChild(root_0, root_1);
				}

			}


			retval.tree = root_0;

			}

			retval.stop = input.LT(-1);

			retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);
			adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);

			 msgs.pop(); 
		}

		catch (RecognitionException e) {
		 reportError(e);
		  throw e;
		}

		finally {
			// do for sure before leaving
		}
		return retval;
	}