Better handling of complex primary key params.
[castle.git] / AspectSharp / AspectSharp.Lang / AspectLanguageParser.cs
blob61907f2b23818e47a07adcd99b7e75560afae4e3
1 // $ANTLR 2.7.4: "langparser.g" -> "AspectLanguageParser.cs"$
3 using antlr;
4 using System.Text;
5 using AspectSharp.Lang.AST;
7 // Generate the header common to all output files.
8 using System;
10 using TokenBuffer = antlr.TokenBuffer;
11 using TokenStreamException = antlr.TokenStreamException;
12 using TokenStreamIOException = antlr.TokenStreamIOException;
13 using ANTLRException = antlr.ANTLRException;
14 using LLkParser = antlr.LLkParser;
15 using Token = antlr.Token;
16 using TokenStream = antlr.TokenStream;
17 using RecognitionException = antlr.RecognitionException;
18 using NoViableAltException = antlr.NoViableAltException;
19 using MismatchedTokenException = antlr.MismatchedTokenException;
20 using SemanticException = antlr.SemanticException;
21 using ParserSharedInputState = antlr.ParserSharedInputState;
22 using BitSet = antlr.collections.impl.BitSet;
24 public class AspectLanguageParser : antlr.LLkParser
26 public const int EOF = 1;
27 public const int NULL_TREE_LOOKAHEAD = 3;
28 public const int ASPECT = 4;
29 public const int FOR = 5;
30 public const int IN = 6;
31 public const int END = 7;
32 public const int IMPORT = 8;
33 public const int MIXINS = 9;
34 public const int INCLUDE = 10;
35 public const int INTERCEPTORS = 11;
36 public const int ADVICEINTERCEPTOR = 12;
37 public const int POINTCUT = 13;
38 public const int METHOD = 14;
39 public const int PROPERTY = 15;
40 public const int PROPERTY_READ = 16;
41 public const int PROPERTY_WRITE = 17;
42 public const int ASSIGNFROM = 18;
43 public const int CUSTOMMATCHER = 19;
44 public const int EXCLUDES = 20;
45 public const int INCLUDES = 21;
46 public const int EOS = 22;
47 public const int LBRACK = 23;
48 public const int SEMI = 24;
49 public const int RBRACK = 25;
50 public const int STRING_LITERAL = 26;
51 public const int COLON = 27;
52 public const int ID = 28;
53 public const int LCURLY = 29;
54 public const int RCURLY = 30;
55 public const int OR = 31;
56 public const int ALL = 32;
57 public const int COMMA = 33;
58 public const int DOT = 34;
59 public const int WS = 35;
62 protected StringBuilder sbuilder = new StringBuilder();
64 protected LexicalInfo ToLexicalInfo(antlr.IToken token)
66 int line = token.getLine();
67 int startColumn = token.getColumn();
68 int endColumn = token.getColumn() + token.getText().Length;
69 String filename = token.getFilename();
70 return new LexicalInfo(filename, line, startColumn, endColumn);
73 protected String methodAll(String s)
75 if (s == "*")
76 return ".*";
77 return s;
80 protected void initialize()
82 tokenNames = tokenNames_;
86 protected AspectLanguageParser(TokenBuffer tokenBuf, int k) : base(tokenBuf, k)
88 initialize();
91 public AspectLanguageParser(TokenBuffer tokenBuf) : this(tokenBuf,1)
95 protected AspectLanguageParser(TokenStream lexer, int k) : base(lexer,k)
97 initialize();
100 public AspectLanguageParser(TokenStream lexer) : this(lexer,1)
104 public AspectLanguageParser(ParserSharedInputState state) : base(state,1)
106 initialize();
109 public EngineConfiguration start() //throws RecognitionException, TokenStreamException
111 EngineConfiguration conf;
114 conf = new EngineConfiguration();
117 try { // for error handling
118 { // ( ... )*
119 for (;;)
121 if ((LA(1)==EOS))
123 match(EOS);
125 else
127 goto _loop3_breakloop;
131 _loop3_breakloop: ;
132 } // ( ... )*
133 { // ( ... )*
134 for (;;)
136 if ((LA(1)==IMPORT))
138 import_directive(conf);
140 else
142 goto _loop5_breakloop;
146 _loop5_breakloop: ;
147 } // ( ... )*
148 { // ( ... )*
149 for (;;)
151 if ((LA(1)==INTERCEPTORS))
153 interceptors_global(conf);
155 else
157 goto _loop7_breakloop;
161 _loop7_breakloop: ;
162 } // ( ... )*
163 { // ( ... )*
164 for (;;)
166 if ((LA(1)==MIXINS))
168 mixins_global(conf);
170 else
172 goto _loop9_breakloop;
176 _loop9_breakloop: ;
177 } // ( ... )*
178 { // ( ... )*
179 for (;;)
181 if ((LA(1)==ASPECT))
183 aspects(conf);
185 else
187 goto _loop11_breakloop;
191 _loop11_breakloop: ;
192 } // ( ... )*
193 match(Token.EOF_TYPE);
195 catch (RecognitionException ex)
197 reportError(ex);
198 consume();
199 consumeUntil(tokenSet_0_);
201 return conf;
204 protected void import_directive(
205 EngineConfiguration conf
206 ) //throws RecognitionException, TokenStreamException
209 IToken i = null;
211 String ns;
212 String assemblyName;
213 ImportDirective import = null;
216 try { // for error handling
217 i = LT(1);
218 match(IMPORT);
219 ns=identifier();
221 import = new ImportDirective( ToLexicalInfo(i), ns );
222 conf.Imports.Add(import);
225 switch ( LA(1) )
227 case IN:
229 match(IN);
230 assemblyName=identifier();
232 import.AssemblyReference = new AssemblyReference( ToLexicalInfo(i), assemblyName);
234 break;
236 case EOF:
237 case ASPECT:
238 case IMPORT:
239 case MIXINS:
240 case INTERCEPTORS:
242 break;
244 default:
246 throw new NoViableAltException(LT(1), getFilename());
251 catch (RecognitionException ex)
253 reportError(ex);
254 consume();
255 consumeUntil(tokenSet_1_);
259 protected void interceptors_global(
260 EngineConfiguration conf
261 ) //throws RecognitionException, TokenStreamException
265 try { // for error handling
266 match(INTERCEPTORS);
267 keytypepair(conf.Interceptors);
271 catch (RecognitionException ex)
273 reportError(ex);
274 consume();
275 consumeUntil(tokenSet_2_);
279 protected void mixins_global(
280 EngineConfiguration conf
281 ) //throws RecognitionException, TokenStreamException
285 try { // for error handling
286 match(MIXINS);
287 keytypepair(conf.Mixins);
291 catch (RecognitionException ex)
293 reportError(ex);
294 consume();
295 consumeUntil(tokenSet_3_);
299 protected void aspects(
300 EngineConfiguration conf
301 ) //throws RecognitionException, TokenStreamException
304 IToken a = null;
305 IToken aspectId = null;
307 AspectDefinition aspect = null;
308 TargetTypeDefinition target = null;
309 TypeReference tr = null;
312 try { // for error handling
313 a = LT(1);
314 match(ASPECT);
315 aspectId = LT(1);
316 match(ID);
317 match(FOR);
319 aspect = new AspectDefinition( ToLexicalInfo(a), aspectId.getText() );
320 conf.Aspects.Add(aspect);
323 switch ( LA(1) )
325 case ID:
327 tr=type_name_def();
329 target = new TargetTypeDefinition( tr );
330 target.TargetStrategy = TargetStrategyEnum.SingleType;
331 aspect.TargetType = target;
333 break;
335 case LBRACK:
337 match(LBRACK);
339 target = new TargetTypeDefinition( );
340 aspect.TargetType = target;
341 String namespaceRegEx = null;
344 switch ( LA(1) )
346 case ASSIGNFROM:
348 match(ASSIGNFROM);
349 match(LCURLY);
350 tr=type_name_def();
351 match(RCURLY);
353 target.TargetStrategy = TargetStrategyEnum.Assignable;
354 target.AssignType = tr;
356 break;
358 case CUSTOMMATCHER:
360 match(CUSTOMMATCHER);
361 match(LCURLY);
362 tr=type_name_def();
363 match(RCURLY);
365 target.TargetStrategy = TargetStrategyEnum.Custom;
366 target.CustomMatcherType = tr;
368 break;
370 case ID:
373 namespaceRegEx=identifier();
375 target.TargetStrategy = TargetStrategyEnum.Namespace;
376 target.NamespaceRoot = namespaceRegEx;
379 switch ( LA(1) )
381 case EXCLUDES:
383 match(EXCLUDES);
384 match(LCURLY);
385 type_list(target.Excludes);
386 match(RCURLY);
387 break;
389 case RBRACK:
391 break;
393 default:
395 throw new NoViableAltException(LT(1), getFilename());
400 break;
402 default:
404 throw new NoViableAltException(LT(1), getFilename());
408 match(RBRACK);
409 break;
411 default:
413 throw new NoViableAltException(LT(1), getFilename());
418 { // ( ... )*
419 for (;;)
421 if ((LA(1)==INCLUDE))
423 include(aspect);
425 else
427 goto _loop33_breakloop;
431 _loop33_breakloop: ;
432 } // ( ... )*
433 { // ( ... )*
434 for (;;)
436 if ((LA(1)==POINTCUT))
438 pointcut(aspect);
440 else
442 goto _loop35_breakloop;
446 _loop35_breakloop: ;
447 } // ( ... )*
449 match(END);
451 catch (RecognitionException ex)
453 reportError(ex);
454 consume();
455 consumeUntil(tokenSet_4_);
459 protected String identifier() //throws RecognitionException, TokenStreamException
461 String value;
463 IToken id = null;
464 IToken id2 = null;
466 value = null; sbuilder.Length = 0;
469 try { // for error handling
470 id = LT(1);
471 match(ID);
473 sbuilder.Append(id.getText());
474 value = sbuilder.ToString();
476 { // ( ... )*
477 for (;;)
479 if ((LA(1)==DOT))
481 match(DOT);
482 id2 = LT(1);
483 match(ID);
485 sbuilder.Append('.');
486 sbuilder.Append(id2.getText());
489 else
491 goto _loop65_breakloop;
495 _loop65_breakloop: ;
496 } // ( ... )*
498 value = sbuilder.ToString();
501 catch (RecognitionException ex)
503 reportError(ex);
504 consume();
505 consumeUntil(tokenSet_5_);
507 return value;
510 protected void keytypepair(
511 IDeclarationCollection collection
512 ) //throws RecognitionException, TokenStreamException
516 try { // for error handling
517 match(LBRACK);
520 pairvalue(collection);
521 { // ( ... )*
522 for (;;)
524 if ((LA(1)==SEMI))
526 match(SEMI);
527 pairvalue(collection);
529 else
531 goto _loop20_breakloop;
535 _loop20_breakloop: ;
536 } // ( ... )*
539 match(RBRACK);
541 catch (RecognitionException ex)
543 reportError(ex);
544 consume();
545 consumeUntil(tokenSet_2_);
549 protected void pairvalue(
550 IDeclarationCollection collection
551 ) //throws RecognitionException, TokenStreamException
554 IToken keyToken = null;
556 DefinitionBase definition = null;
559 try { // for error handling
560 keyToken = LT(1);
561 match(STRING_LITERAL);
562 match(COLON);
564 String key = keyToken.getText();
565 definition = collection.Add( key, ToLexicalInfo(keyToken) );
567 type_name(definition);
569 catch (RecognitionException ex)
571 reportError(ex);
572 consume();
573 consumeUntil(tokenSet_6_);
577 protected void type_name(
578 DefinitionBase definition
579 ) //throws RecognitionException, TokenStreamException
583 TypeReference tr = null;
586 try { // for error handling
587 tr=type_name_def();
589 definition.TypeReference = tr;
592 catch (RecognitionException ex)
594 reportError(ex);
595 consume();
596 consumeUntil(tokenSet_6_);
600 protected TypeReference type_name_or_ref() //throws RecognitionException, TokenStreamException
602 TypeReference type;
604 IToken refTypeToken = null;
606 type = null;
609 try { // for error handling
610 switch ( LA(1) )
612 case STRING_LITERAL:
614 refTypeToken = LT(1);
615 match(STRING_LITERAL);
617 type = new TypeReference();
618 type.LinkRef = refTypeToken.getText();
620 break;
622 case ID:
624 type=type_name_def();
625 break;
627 default:
629 throw new NoViableAltException(LT(1), getFilename());
633 catch (RecognitionException ex)
635 reportError(ex);
636 consume();
637 consumeUntil(tokenSet_7_);
639 return type;
642 protected TypeReference type_name_def() //throws RecognitionException, TokenStreamException
644 TypeReference type;
646 IToken i = null;
648 type = new TypeReference();
649 String typeToken = null;
650 String assemblyToken = null;
653 try { // for error handling
654 typeToken=identifier();
656 type.TypeName = typeToken;
659 switch ( LA(1) )
661 case IN:
663 i = LT(1);
664 match(IN);
665 assemblyToken=identifier();
667 type.AssemblyReference = new AssemblyReference( ToLexicalInfo(i), assemblyToken );
669 break;
671 case END:
672 case INCLUDE:
673 case POINTCUT:
674 case SEMI:
675 case RBRACK:
676 case RCURLY:
678 break;
680 default:
682 throw new NoViableAltException(LT(1), getFilename());
687 catch (RecognitionException ex)
689 reportError(ex);
690 consume();
691 consumeUntil(tokenSet_8_);
693 return type;
696 protected void type_list(
697 TypeReferenceCollection types
698 ) //throws RecognitionException, TokenStreamException
702 TypeReference tr = null;
705 try { // for error handling
706 tr=type_name_def();
708 types.Add(tr);
710 { // ( ... )*
711 for (;;)
713 if ((LA(1)==SEMI))
715 match(SEMI);
716 tr=type_name_def();
718 types.Add(tr);
721 else
723 goto _loop38_breakloop;
727 _loop38_breakloop: ;
728 } // ( ... )*
730 catch (RecognitionException ex)
732 reportError(ex);
733 consume();
734 consumeUntil(tokenSet_9_);
738 protected void include(
739 AspectDefinition aspect
740 ) //throws RecognitionException, TokenStreamException
743 IToken i = null;
745 TypeReference tr = null;
746 MixinDefinition md;
749 try { // for error handling
750 i = LT(1);
751 match(INCLUDE);
753 md = new MixinDefinition( ToLexicalInfo(i) );
755 tr=type_name_or_ref();
757 md.TypeReference = tr;
758 aspect.Mixins.Add( md );
761 catch (RecognitionException ex)
763 reportError(ex);
764 consume();
765 consumeUntil(tokenSet_10_);
769 protected void pointcut(
770 AspectDefinition aspect
771 ) //throws RecognitionException, TokenStreamException
774 IToken p = null;
776 PointCutDefinition pointcut = null;
777 PointCutFlags flags = PointCutFlags.Unspecified;
780 try { // for error handling
781 p = LT(1);
782 match(POINTCUT);
783 flags=pointcutflags();
785 pointcut = new PointCutDefinition( ToLexicalInfo(p), flags );
786 aspect.PointCuts.Add( pointcut );
788 pointcuttarget(pointcut);
789 advices(pointcut);
790 match(END);
792 catch (RecognitionException ex)
794 reportError(ex);
795 consume();
796 consumeUntil(tokenSet_11_);
800 protected PointCutFlags pointcutflags() //throws RecognitionException, TokenStreamException
802 PointCutFlags flags;
805 flags = PointCutFlags.Unspecified;
808 try { // for error handling
809 flags=pointcutflag(flags);
811 switch ( LA(1) )
813 case OR:
815 match(OR);
816 flags=pointcutflag(flags);
817 break;
819 case LCURLY:
821 break;
823 default:
825 throw new NoViableAltException(LT(1), getFilename());
830 catch (RecognitionException ex)
832 reportError(ex);
833 consume();
834 consumeUntil(tokenSet_12_);
836 return flags;
839 protected void pointcuttarget(
840 PointCutDefinition pointcut
841 ) //throws RecognitionException, TokenStreamException
845 try { // for error handling
846 match(LCURLY);
847 pointcutsignature(pointcut);
849 catch (RecognitionException ex)
851 reportError(ex);
852 consume();
853 consumeUntil(tokenSet_13_);
857 protected void advices(
858 PointCutDefinition pointcut
859 ) //throws RecognitionException, TokenStreamException
863 try { // for error handling
864 { // ( ... )*
865 for (;;)
867 if ((LA(1)==ADVICEINTERCEPTOR))
869 advice(pointcut);
871 else
873 goto _loop43_breakloop;
877 _loop43_breakloop: ;
878 } // ( ... )*
880 catch (RecognitionException ex)
882 reportError(ex);
883 consume();
884 consumeUntil(tokenSet_14_);
888 protected void advice(
889 PointCutDefinition pointcut
890 ) //throws RecognitionException, TokenStreamException
893 IToken i = null;
895 TypeReference tr = null;
896 InterceptorDefinition interDef = null;
899 try { // for error handling
900 i = LT(1);
901 match(ADVICEINTERCEPTOR);
903 interDef = new InterceptorDefinition( ToLexicalInfo(i) );
905 match(LCURLY);
906 tr=type_name_or_ref();
908 interDef.TypeReference = tr;
909 pointcut.Advices.Add( interDef );
911 match(RCURLY);
913 catch (RecognitionException ex)
915 reportError(ex);
916 consume();
917 consumeUntil(tokenSet_13_);
921 protected PointCutFlags pointcutflag(
922 PointCutFlags flags
923 ) //throws RecognitionException, TokenStreamException
925 PointCutFlags retValue;
928 retValue = flags;
931 try { // for error handling
932 switch ( LA(1) )
934 case METHOD:
936 match(METHOD);
937 retValue |= PointCutFlags.Method;
938 break;
940 case PROPERTY:
942 match(PROPERTY);
943 retValue |= PointCutFlags.Property;
944 break;
946 case PROPERTY_READ:
948 match(PROPERTY_READ);
949 retValue |= PointCutFlags.PropertyRead;
950 break;
952 case PROPERTY_WRITE:
954 match(PROPERTY_WRITE);
955 retValue |= PointCutFlags.PropertyWrite;
956 break;
958 default:
960 throw new NoViableAltException(LT(1), getFilename());
964 catch (RecognitionException ex)
966 reportError(ex);
967 consume();
968 consumeUntil(tokenSet_15_);
970 return retValue;
973 protected void pointcutsignature(
974 PointCutDefinition pointcut
975 ) //throws RecognitionException, TokenStreamException
979 try { // for error handling
980 pointcutsig1(pointcut);
982 catch (RecognitionException ex)
984 reportError(ex);
985 consume();
986 consumeUntil(tokenSet_13_);
990 protected void pointcutsig1(
991 PointCutDefinition pointcut
992 ) //throws RecognitionException, TokenStreamException
996 String part1;
997 MethodSignature ms = null;
1000 try { // for error handling
1002 switch ( LA(1) )
1004 case ALL:
1006 match(ALL);
1008 part1 = "*";
1009 ms = AllMethodSignature.Instance;
1011 break;
1013 case ID:
1015 part1=reg_ex(true);
1016 ms = new MethodSignature(part1, methodAll("*"));
1017 break;
1019 default:
1021 throw new NoViableAltException(LT(1), getFilename());
1025 pointcut.Method = pointcutsig2(part1, ms);
1027 catch (RecognitionException ex)
1029 reportError(ex);
1030 consume();
1031 consumeUntil(tokenSet_13_);
1035 protected String reg_ex(
1036 Boolean allowALL
1037 ) //throws RecognitionException, TokenStreamException
1039 String value;
1041 IToken id = null;
1043 value = null; sbuilder.Length = 0;
1046 try { // for error handling
1048 id = LT(1);
1049 match(ID);
1051 sbuilder.Append(id.getText());
1052 value = sbuilder.ToString();
1055 switch ( LA(1) )
1057 case WS:
1059 match(WS);
1060 break;
1062 case DOT:
1064 match(DOT);
1066 sbuilder.Append('.');
1068 match(ALL);
1070 sbuilder.Append('*');
1072 break;
1074 default:
1075 if ((tokenSet_16_.member(LA(1))))
1077 if (LA(1) == ALL) {
1079 if (allowALL)
1080 break;
1081 throw new NoViableAltException(LT(1), getFilename());
1085 else if ((tokenSet_16_.member(LA(1)))) {
1087 else
1089 throw new NoViableAltException(LT(1), getFilename());
1091 break; }
1095 value = sbuilder.ToString();
1098 catch (RecognitionException ex)
1100 reportError(ex);
1101 consume();
1102 consumeUntil(tokenSet_16_);
1104 return value;
1107 protected MethodSignature pointcutsig2(
1108 String part1, MethodSignature ms
1109 ) //throws RecognitionException, TokenStreamException
1111 MethodSignature ret;
1114 String part2;
1115 ret = null;
1118 try { // for error handling
1120 switch ( LA(1) )
1122 case ALL:
1124 match(ALL);
1125 part2 = "*";
1126 ret=pointcutsig3(part1, part2, ms);
1127 break;
1129 case LCURLY:
1131 match(LCURLY);
1132 pointcutarguments(ms);
1133 match(RCURLY);
1134 match(RCURLY);
1135 ret = ms;
1136 break;
1138 case RCURLY:
1140 match(RCURLY);
1141 ret = ms;
1142 break;
1144 case ID:
1146 part2=reg_ex(true);
1147 ret=pointcutsig3(part1, part2, ms);
1148 break;
1150 default:
1152 throw new NoViableAltException(LT(1), getFilename());
1157 catch (RecognitionException ex)
1159 reportError(ex);
1160 consume();
1161 consumeUntil(tokenSet_0_);
1163 return ret;
1166 protected MethodSignature pointcutsig3(
1167 String part1, String part2, MethodSignature ms
1168 ) //throws RecognitionException, TokenStreamException
1170 MethodSignature ret;
1173 String part3;
1174 ret = null;
1177 try { // for error handling
1179 switch ( LA(1) )
1181 case ALL:
1183 match(ALL);
1184 part3 = "*";
1185 ms = new MethodSignature(part1, part2, methodAll(part3));
1186 pointcutsig4(ms);
1187 break;
1189 case LCURLY:
1191 match(LCURLY);
1192 ms = new MethodSignature(part1, methodAll(part2));
1193 pointcutarguments(ms);
1194 match(RCURLY);
1195 match(RCURLY);
1196 break;
1198 case RCURLY:
1200 match(RCURLY);
1201 ms = new MethodSignature(part1, methodAll(part2));
1202 break;
1204 case ID:
1206 part3=reg_ex(false);
1207 ms = new MethodSignature(part1, part2, methodAll(part3));
1208 pointcutsig4(ms);
1209 break;
1211 default:
1213 throw new NoViableAltException(LT(1), getFilename());
1217 ret = ms;
1219 catch (RecognitionException ex)
1221 reportError(ex);
1222 consume();
1223 consumeUntil(tokenSet_0_);
1225 return ret;
1228 protected void pointcutarguments(
1229 MethodSignature ms
1230 ) //throws RecognitionException, TokenStreamException
1234 try { // for error handling
1236 switch ( LA(1) )
1238 case ID:
1239 case ALL:
1241 pointcutargument(ms);
1242 { // ( ... )*
1243 for (;;)
1245 if ((LA(1)==COMMA))
1247 match(COMMA);
1248 pointcutargument(ms);
1250 else
1252 goto _loop61_breakloop;
1256 _loop61_breakloop: ;
1257 } // ( ... )*
1258 break;
1260 case RCURLY:
1262 break;
1264 default:
1266 throw new NoViableAltException(LT(1), getFilename());
1271 catch (RecognitionException ex)
1273 reportError(ex);
1274 consume();
1275 consumeUntil(tokenSet_9_);
1279 protected void pointcutsig4(
1280 MethodSignature ms
1281 ) //throws RecognitionException, TokenStreamException
1285 try { // for error handling
1287 switch ( LA(1) )
1289 case LCURLY:
1291 match(LCURLY);
1292 pointcutarguments(ms);
1293 match(RCURLY);
1294 match(RCURLY);
1295 break;
1297 case RCURLY:
1299 match(RCURLY);
1300 break;
1302 default:
1304 throw new NoViableAltException(LT(1), getFilename());
1309 catch (RecognitionException ex)
1311 reportError(ex);
1312 consume();
1313 consumeUntil(tokenSet_0_);
1317 protected void pointcutargument(
1318 MethodSignature ms
1319 ) //throws RecognitionException, TokenStreamException
1323 String argType = String.Empty;
1326 try { // for error handling
1327 switch ( LA(1) )
1329 case ALL:
1331 match(ALL);
1333 ms.AddArgumentType( "*" );
1335 break;
1337 case ID:
1339 argType=reg_ex(false);
1341 ms.AddArgumentType( argType );
1343 break;
1345 default:
1347 throw new NoViableAltException(LT(1), getFilename());
1351 catch (RecognitionException ex)
1353 reportError(ex);
1354 consume();
1355 consumeUntil(tokenSet_17_);
1359 private void initializeFactory()
1363 public static readonly string[] tokenNames_ = new string[] {
1364 @"""<0>""",
1365 @"""EOF""",
1366 @"""<2>""",
1367 @"""NULL_TREE_LOOKAHEAD""",
1368 @"""aspect""",
1369 @"""for""",
1370 @"""in""",
1371 @"""end""",
1372 @"""import""",
1373 @"""mixins""",
1374 @"""include""",
1375 @"""interceptors""",
1376 @"""advice""",
1377 @"""pointcut""",
1378 @"""method""",
1379 @"""property""",
1380 @"""propertyread""",
1381 @"""propertywrite""",
1382 @"""assignableFrom""",
1383 @"""customMatcher""",
1384 @"""excludes""",
1385 @"""includes""",
1386 @"""EOS""",
1387 @"""LBRACK""",
1388 @"""SEMI""",
1389 @"""RBRACK""",
1390 @"""STRING_LITERAL""",
1391 @"""COLON""",
1392 @"""ID""",
1393 @"""LCURLY""",
1394 @"""RCURLY""",
1395 @"""OR""",
1396 @"""ALL""",
1397 @"""COMMA""",
1398 @"""DOT""",
1399 @"""WS"""
1402 private static long[] mk_tokenSet_0_()
1404 long[] data = { 2L, 0L};
1405 return data;
1407 public static readonly BitSet tokenSet_0_ = new BitSet(mk_tokenSet_0_());
1408 private static long[] mk_tokenSet_1_()
1410 long[] data = { 2834L, 0L};
1411 return data;
1413 public static readonly BitSet tokenSet_1_ = new BitSet(mk_tokenSet_1_());
1414 private static long[] mk_tokenSet_2_()
1416 long[] data = { 2578L, 0L};
1417 return data;
1419 public static readonly BitSet tokenSet_2_ = new BitSet(mk_tokenSet_2_());
1420 private static long[] mk_tokenSet_3_()
1422 long[] data = { 530L, 0L};
1423 return data;
1425 public static readonly BitSet tokenSet_3_ = new BitSet(mk_tokenSet_3_());
1426 private static long[] mk_tokenSet_4_()
1428 long[] data = { 18L, 0L};
1429 return data;
1431 public static readonly BitSet tokenSet_4_ = new BitSet(mk_tokenSet_4_());
1432 private static long[] mk_tokenSet_5_()
1434 long[] data = { 1125134290L, 0L};
1435 return data;
1437 public static readonly BitSet tokenSet_5_ = new BitSet(mk_tokenSet_5_());
1438 private static long[] mk_tokenSet_6_()
1440 long[] data = { 50331648L, 0L};
1441 return data;
1443 public static readonly BitSet tokenSet_6_ = new BitSet(mk_tokenSet_6_());
1444 private static long[] mk_tokenSet_7_()
1446 long[] data = { 1073751168L, 0L};
1447 return data;
1449 public static readonly BitSet tokenSet_7_ = new BitSet(mk_tokenSet_7_());
1450 private static long[] mk_tokenSet_8_()
1452 long[] data = { 1124082816L, 0L};
1453 return data;
1455 public static readonly BitSet tokenSet_8_ = new BitSet(mk_tokenSet_8_());
1456 private static long[] mk_tokenSet_9_()
1458 long[] data = { 1073741824L, 0L};
1459 return data;
1461 public static readonly BitSet tokenSet_9_ = new BitSet(mk_tokenSet_9_());
1462 private static long[] mk_tokenSet_10_()
1464 long[] data = { 9344L, 0L};
1465 return data;
1467 public static readonly BitSet tokenSet_10_ = new BitSet(mk_tokenSet_10_());
1468 private static long[] mk_tokenSet_11_()
1470 long[] data = { 8320L, 0L};
1471 return data;
1473 public static readonly BitSet tokenSet_11_ = new BitSet(mk_tokenSet_11_());
1474 private static long[] mk_tokenSet_12_()
1476 long[] data = { 536870912L, 0L};
1477 return data;
1479 public static readonly BitSet tokenSet_12_ = new BitSet(mk_tokenSet_12_());
1480 private static long[] mk_tokenSet_13_()
1482 long[] data = { 4224L, 0L};
1483 return data;
1485 public static readonly BitSet tokenSet_13_ = new BitSet(mk_tokenSet_13_());
1486 private static long[] mk_tokenSet_14_()
1488 long[] data = { 128L, 0L};
1489 return data;
1491 public static readonly BitSet tokenSet_14_ = new BitSet(mk_tokenSet_14_());
1492 private static long[] mk_tokenSet_15_()
1494 long[] data = { 2684354560L, 0L};
1495 return data;
1497 public static readonly BitSet tokenSet_15_ = new BitSet(mk_tokenSet_15_());
1498 private static long[] mk_tokenSet_16_()
1500 long[] data = { 14763954304L, 0L};
1501 return data;
1503 public static readonly BitSet tokenSet_16_ = new BitSet(mk_tokenSet_16_());
1504 private static long[] mk_tokenSet_17_()
1506 long[] data = { 9663676416L, 0L};
1507 return data;
1509 public static readonly BitSet tokenSet_17_ = new BitSet(mk_tokenSet_17_());