Exemplo n.º 1
0
 public final void pageVar(PageTagExport pageTagExport, Token id) throws ParseException {
   switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
     case PAGE_PAGEURL:
     case PAGE_URL:
       switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
         case PAGE_URL:
           jj_consume_token(PAGE_URL);
           break;
         case PAGE_PAGEURL:
           jj_consume_token(PAGE_PAGEURL);
           break;
         default:
           jj_la1[26] = jj_gen;
           jj_consume_token(-1);
           throw new ParseException();
       }
       pageTagExport.setPageUrl(id.image);
       break;
     case PAGE_NUMBER:
     case PAGE_PAGE:
     case PAGE_PAGENUMBER:
       switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
         case PAGE_PAGE:
           jj_consume_token(PAGE_PAGE);
           break;
         case PAGE_NUMBER:
           jj_consume_token(PAGE_NUMBER);
           break;
         case PAGE_PAGENUMBER:
           jj_consume_token(PAGE_PAGENUMBER);
           break;
         default:
           jj_la1[27] = jj_gen;
           jj_consume_token(-1);
           throw new ParseException();
       }
       pageTagExport.setPageNumber(id.image);
       break;
     case PAGE_FIRST:
     case PAGE_FIRSTITEM:
       switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
         case PAGE_FIRST:
           jj_consume_token(PAGE_FIRST);
           break;
         case PAGE_FIRSTITEM:
           jj_consume_token(PAGE_FIRSTITEM);
           break;
         default:
           jj_la1[28] = jj_gen;
           jj_consume_token(-1);
           throw new ParseException();
       }
       pageTagExport.setFirstItem(id.image);
       break;
     case PAGE_LAST:
     case PAGE_LASTITEM:
       switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
         case PAGE_LAST:
           jj_consume_token(PAGE_LAST);
           break;
         case PAGE_LASTITEM:
           jj_consume_token(PAGE_LASTITEM);
           break;
         default:
           jj_la1[29] = jj_gen;
           jj_consume_token(-1);
           throw new ParseException();
       }
       pageTagExport.setLastItem(id.image);
       break;
     default:
       jj_la1[30] = jj_gen;
       jj_consume_token(-1);
       throw new ParseException();
   }
 }
Exemplo n.º 2
0
 public final void pageExport(PageTagExport pageTagExport) throws ParseException {
   Token t = null;
   switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
     case PAGE_PAGEURL:
     case PAGE_URL:
       switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
         case PAGE_URL:
           t = jj_consume_token(PAGE_URL);
           break;
         case PAGE_PAGEURL:
           t = jj_consume_token(PAGE_PAGEURL);
           break;
         default:
           jj_la1[21] = jj_gen;
           jj_consume_token(-1);
           throw new ParseException();
       }
       pageTagExport.setPageUrl(t.image);
       break;
     case PAGE_NUMBER:
     case PAGE_PAGE:
     case PAGE_PAGENUMBER:
       switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
         case PAGE_PAGE:
           t = jj_consume_token(PAGE_PAGE);
           break;
         case PAGE_NUMBER:
           t = jj_consume_token(PAGE_NUMBER);
           break;
         case PAGE_PAGENUMBER:
           t = jj_consume_token(PAGE_PAGENUMBER);
           break;
         default:
           jj_la1[22] = jj_gen;
           jj_consume_token(-1);
           throw new ParseException();
       }
       pageTagExport.setPageNumber(t.image);
       break;
     case PAGE_FIRST:
     case PAGE_FIRSTITEM:
       switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
         case PAGE_FIRST:
           t = jj_consume_token(PAGE_FIRST);
           break;
         case PAGE_FIRSTITEM:
           t = jj_consume_token(PAGE_FIRSTITEM);
           break;
         default:
           jj_la1[23] = jj_gen;
           jj_consume_token(-1);
           throw new ParseException();
       }
       pageTagExport.setFirstItem(t.image);
       break;
     case PAGE_LAST:
     case PAGE_LASTITEM:
       switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
         case PAGE_LAST:
           t = jj_consume_token(PAGE_LAST);
           break;
         case PAGE_LASTITEM:
           t = jj_consume_token(PAGE_LASTITEM);
           break;
         default:
           jj_la1[24] = jj_gen;
           jj_consume_token(-1);
           throw new ParseException();
       }
       pageTagExport.setLastItem(t.image);
       break;
     case IDENTIFIER:
       t = jj_consume_token(IDENTIFIER);
       jj_consume_token(EQUALS);
       pageVar(pageTagExport, t);
       break;
     default:
       jj_la1[25] = jj_gen;
       jj_consume_token(-1);
       throw new ParseException();
   }
 }