📄 ruleparser.java
字号:
case 1 : // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:365:33: (paramType= dotted_name )? opt_eol paramName= argument opt_eol ( ',' opt_eol (paramType= dotted_name )? opt_eol paramName= argument opt_eol )* { // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:365:33: (paramType= dotted_name )? int alt13=2; alt13 = dfa13.predict(input); switch (alt13) { case 1 : // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:365:34: paramType= dotted_name { following.push(FOLLOW_dotted_name_in_function400); paramType=dotted_name(); following.pop(); } break; } following.push(FOLLOW_opt_eol_in_function404); opt_eol(); following.pop(); following.push(FOLLOW_argument_in_function408); paramName=argument(); following.pop(); following.push(FOLLOW_opt_eol_in_function410); opt_eol(); following.pop(); f.addParameter( paramType, paramName ); // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:369:33: ( ',' opt_eol (paramType= dotted_name )? opt_eol paramName= argument opt_eol )* loop15: do { int alt15=2; int LA15_0 = input.LA(1); if ( LA15_0==24 ) { alt15=1; } switch (alt15) { case 1 : // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:369:41: ',' opt_eol (paramType= dotted_name )? opt_eol paramName= argument opt_eol { match(input,24,FOLLOW_24_in_function424); following.push(FOLLOW_opt_eol_in_function426); opt_eol(); following.pop(); // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:369:53: (paramType= dotted_name )? int alt14=2; alt14 = dfa14.predict(input); switch (alt14) { case 1 : // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:369:54: paramType= dotted_name { following.push(FOLLOW_dotted_name_in_function431); paramType=dotted_name(); following.pop(); } break; } following.push(FOLLOW_opt_eol_in_function435); opt_eol(); following.pop(); following.push(FOLLOW_argument_in_function439); paramName=argument(); following.pop(); following.push(FOLLOW_opt_eol_in_function441); opt_eol(); following.pop(); f.addParameter( paramType, paramName ); } break; default : break loop15; } } while (true); } break; } match(input,25,FOLLOW_25_in_function466); following.push(FOLLOW_opt_eol_in_function470); opt_eol(); following.pop(); match(input,26,FOLLOW_26_in_function474); following.push(FOLLOW_curly_chunk_in_function481); body=curly_chunk(); following.pop(); f.setText( body ); match(input,27,FOLLOW_27_in_function490); packageDescr.addFunction( f ); following.push(FOLLOW_opt_eol_in_function498); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; } // $ANTLR end function // $ANTLR start query // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:390:1: query returns [QueryDescr query] : opt_eol loc= 'query' queryName= word opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) 'end' opt_eol ; public QueryDescr query() throws RecognitionException { QueryDescr query; Token loc=null; String queryName = null; query = null; try { // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:395:17: ( opt_eol loc= 'query' queryName= word opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) 'end' opt_eol ) // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:395:17: opt_eol loc= 'query' queryName= word opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) 'end' opt_eol { following.push(FOLLOW_opt_eol_in_query522); opt_eol(); following.pop(); loc=(Token)input.LT(1); match(input,28,FOLLOW_28_in_query528); following.push(FOLLOW_word_in_query532); queryName=word(); following.pop(); following.push(FOLLOW_opt_eol_in_query534); opt_eol(); following.pop(); query = new QueryDescr( queryName, null ); query.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() ); AndDescr lhs = new AndDescr(); query.setLhs( lhs ); lhs.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() ); // /home/michael/projects/jboss-rules-3.0.x/drools-compiler/src/main/resources/org/drools/lang/drl.g:403:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) int alt17=2; switch ( input.LA(1) ) { case 23: int LA17_1 = input.LA(2); if ( expander != null ) { alt17=1; } else if ( true ) { alt17=2; } else { NoViableAltException nvae = new NoViableAltException("403:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 17, 1, input); throw nvae; } break; case EOL: int LA17_2 = input.LA(2); if ( expander != null ) { alt17=1; } else if ( true ) { alt17=2; } else { NoViableAltException nvae = new NoViableAltException("403:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 17, 2, input); throw nvae; } break; case 29: int LA17_3 = input.LA(2); if ( expander != null ) { alt17=1; } else if ( true ) { alt17=2; } else { NoViableAltException nvae = new NoViableAltException("403:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 17, 3, input); throw nvae; } break; case 56: int LA17_4 = input.LA(2); if ( expander != null ) { alt17=1; } else if ( true ) { alt17=2; } else { NoViableAltException nvae = new NoViableAltException("403:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 17, 4, input); throw nvae; } break; case 57: int LA17_5 = input.LA(2); if ( expander != null ) { alt17=1; } else if ( true ) { alt17=2; } else { NoViableAltException nvae = new NoViableAltException("403:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 17, 5, input); throw nvae; } break; case 58: int LA17_6 = input.LA(2); if ( expander != null ) { alt17=1; } else if ( true ) { alt17=2; } else { NoViableAltException nvae = new NoViableAltException("403:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 17, 6, input); throw nvae; } break; case ID: int LA17_7 = input.LA(2); if ( expander != null ) { alt17=1; } else if ( true ) { alt17=2; } else { NoViableAltException nvae = new NoViableAltException("403:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 17, 7, input); throw nvae; } break; case 15: int LA17_8 = input.LA(2); if ( expander != null ) { alt17=1; } else if ( true ) { alt17=2; } else { NoViableAltException nvae = new NoViableAltException("403:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 17, 8, input); throw nvae; } break; case INT: case BOOL: case STRING: case FLOAT: case MISC: case WS: case SH_STYLE_SINGLE_LINE_COMMENT: case C_STYLE_SINGLE_LINE_COMMENT: case MULTI_LINE_COMMENT: case 16: case 17: case 18: case 19: case 20: case 21: case 22: case 24: case 25: case 26: case 27: case 28: case 30: case 31: case 32: case 33: case 34: case 35: case 36: case 37: case 38: case 39: case 40: case 41: case 42: case 43: case 44: case 45: case 46: case 47:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -