public static void clearActionData(int funcType, int funcNum)
     throws RecognitionException, TokenStreamException {
   switch (funcType) {
     case ACTIVITY_TYPE_FUNC:
       Body_c actact =
           Body_c.getOneACT_ACTOnR698(FunctionBody_c.getOneACT_FNBOnR695(m_testFunc[funcNum]));
       if (actact != null) {
         actact.Clear_blocks();
       }
       break;
     case ACTIVITY_TYPE_BRG:
       actact = Body_c.getOneACT_ACTOnR698(BridgeBody_c.getOneACT_BRBOnR697(m_testBrg[funcNum]));
       if (actact != null) {
         actact.Clear_blocks();
       }
       break;
     case ACTIVITY_TYPE_CB_OP:
       actact =
           Body_c.getOneACT_ACTOnR698(OperationBody_c.getOneACT_OPBOnR696(m_testCBTfr[funcNum]));
       if (actact != null) {
         actact.Clear_blocks();
       }
       break;
     case ACTIVITY_TYPE_IB_OP:
       actact =
           Body_c.getOneACT_ACTOnR698(OperationBody_c.getOneACT_OPBOnR696(m_testIBTfr[funcNum]));
       if (actact != null) {
         actact.Clear_blocks();
       }
       break;
     case ACTIVITY_TYPE_MDA:
       actact =
           Body_c.getOneACT_ACTOnR698(
               DerivedAttributeBody_c.getOneACT_DABOnR693(m_testMDA[funcNum]));
       if (actact != null) {
         actact.Clear_blocks();
       }
       break;
     case ACTIVITY_TYPE_STATE:
       actact =
           Body_c.getOneACT_ACTOnR698(
               StateActionBody_c.getOneACT_SABOnR691(m_testAction[funcNum]));
       if (actact != null) {
         actact.Clear_blocks();
       }
       break;
     case ACTIVITY_TYPE_TRANSITION:
       actact =
           Body_c.getOneACT_ACTOnR698(
               TransitionActionBody_c.getOneACT_TABOnR688(m_testAction[funcNum]));
       if (actact != null) {
         actact.Clear_blocks();
       }
       break;
     default:
       fail("clearAction: Unknown Activity type constant");
   }
   m_requiresClear = false;
 }
 public static void clearActionData(int funcType, int funcNum)
     throws RecognitionException, TokenStreamException {
   switch (funcType) {
     case ACTIVITY_TYPE_FUNC:
       Body_c actact =
           Body_c.getOneACT_ACTOnR698(FunctionBody_c.getOneACT_FNBOnR695(m_testFunc[funcNum]));
       if (actact != null) {
         actact.Clear_blocks();
       }
       break;
     case ACTIVITY_TYPE_BRG:
       actact = Body_c.getOneACT_ACTOnR698(BridgeBody_c.getOneACT_BRBOnR697(m_testBrg[funcNum]));
       if (actact != null) {
         actact.Clear_blocks();
       }
       break;
     case ACTIVITY_TYPE_CB_OP:
       actact =
           Body_c.getOneACT_ACTOnR698(OperationBody_c.getOneACT_OPBOnR696(m_testCBTfr[funcNum]));
       if (actact != null) {
         actact.Clear_blocks();
       }
       break;
     case ACTIVITY_TYPE_INT_RO:
       actact =
           Body_c.getOneACT_ACTOnR698(
               RequiredOperationBody_c.getOneACT_ROBOnR685(m_testReqOpr[funcNum]));
       if (actact != null) {
         actact.Clear_blocks();
       }
       break;
     case ACTIVITY_TYPE_INT_PO:
       actact =
           Body_c.getOneACT_ACTOnR698(
               ProvidedOperationBody_c.getOneACT_POBOnR687(m_testProvOpr[funcNum]));
       if (actact != null) {
         actact.Clear_blocks();
       }
       break;
     case ACTIVITY_TYPE_ArraySTATE:
       actact =
           Body_c.getOneACT_ACTOnR698(
               StateActionBody_c.getOneACT_SABOnR691(m_arrayStateAction[funcNum]));
       if (actact != null) {
         actact.Clear_blocks();
       }
     default:
       fail("clearAction: Unknown Activity type constant");
   }
   m_requiresClear = false;
 }