equal
deleted
inserted
replaced
39 unaryExpressionNotPlusMinus castExpression selector innerCreator |
39 unaryExpressionNotPlusMinus castExpression selector innerCreator |
40 superSuffix identifierSuffix creator classCreatorRest |
40 superSuffix identifierSuffix creator classCreatorRest |
41 arrayCreator createdName arrayInitializer constructorDeclaration |
41 arrayCreator createdName arrayInitializer constructorDeclaration |
42 constructorModifiers methodNotConstructorDeclaration wildcard |
42 constructorModifiers methodNotConstructorDeclaration wildcard |
43 emptySquaredParenthesis methodModifierNotAnnotation |
43 emptySquaredParenthesis methodModifierNotAnnotation |
44 classModifierNotAnnotation' |
44 classModifierNotAnnotation classInitializer' |
45 classVariableNames:'' |
45 classVariableNames:'' |
46 poolDictionaries:'' |
46 poolDictionaries:'' |
47 category:'Languages-Java-Parser' |
47 category:'Languages-Java-Parser' |
48 ! |
48 ! |
49 |
49 |
64 [see also:] |
64 [see also:] |
65 |
65 |
66 " |
66 " |
67 ! ! |
67 ! ! |
68 |
68 |
69 |
|
70 !JavaParserII methodsFor:'accessing'! |
69 !JavaParserII methodsFor:'accessing'! |
71 |
70 |
72 start |
71 start |
73 "Default start production." |
72 "Default start production." |
74 |
73 |
75 ^ compilationUnit end |
74 ^ compilationUnit end |
76 |
75 |
77 "Modified: / 10-03-2012 / 12:03:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
76 "Modified: / 10-03-2012 / 12:03:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
78 ! ! |
77 ! ! |
79 |
|
80 |
78 |
81 !JavaParserII methodsFor:'as yet unclassified'! |
79 !JavaParserII methodsFor:'as yet unclassified'! |
82 |
80 |
83 explicitConstructorInvocation |
81 explicitConstructorInvocation |
84 |
82 |
92 (self superKW))) , |
90 (self superKW))) , |
93 |
91 |
94 arguments , |
92 arguments , |
95 (self tokenFor: ';') |
93 (self tokenFor: ';') |
96 ! ! |
94 ! ! |
97 |
|
98 |
95 |
99 !JavaParserII methodsFor:'grammar'! |
96 !JavaParserII methodsFor:'grammar'! |
100 |
97 |
101 arguments |
98 arguments |
102 |
99 |
322 |
319 |
323 ^ arrayInitializer |
320 ^ arrayInitializer |
324 / expression |
321 / expression |
325 ! ! |
322 ! ! |
326 |
323 |
327 |
|
328 !JavaParserII methodsFor:'grammar-annotations'! |
324 !JavaParserII methodsFor:'grammar-annotations'! |
329 |
325 |
330 annotation |
326 annotation |
331 |
327 |
332 ^(self tokenFor: '@') , qualifiedName , |
328 ^(self tokenFor: '@') , qualifiedName , |
380 annotations |
376 annotations |
381 |
377 |
382 ^ annotation plus |
378 ^ annotation plus |
383 ! ! |
379 ! ! |
384 |
380 |
385 |
|
386 !JavaParserII methodsFor:'grammar-classes'! |
381 !JavaParserII methodsFor:'grammar-classes'! |
387 |
382 |
388 classBody |
383 classBody |
389 |
384 |
390 ^ (self tokenFor:'{') , classBodyDeclaration star , (self tokenFor:'}'). |
385 ^ (self tokenFor:'{') , classBodyDeclaration star , (self tokenFor:'}'). |
394 |
389 |
395 classBodyDeclaration |
390 classBodyDeclaration |
396 |
391 |
397 ^ |
392 ^ |
398 (self tokenFor: ';') |
393 (self tokenFor: ';') |
399 / ((self staticKW) optional , block) |
394 / classInitializer |
400 / fieldDeclaration |
395 / fieldDeclaration |
401 / methodDeclaration |
396 / methodDeclaration |
402 / classDeclaration |
397 / classDeclaration |
403 / interfaceDeclaration |
398 / interfaceDeclaration |
404 |
399 |
405 "Modified: / 11-03-2012 / 13:15:13 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
400 "Modified: / 24-08-2013 / 01:44:40 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
406 ! |
401 ! |
407 |
402 |
408 classDeclaration |
403 classDeclaration |
409 |
404 |
410 ^ normalClassDeclaration |
405 ^ normalClassDeclaration |
411 / enumDeclaration |
406 / enumDeclaration |
|
407 ! |
|
408 |
|
409 classInitializer |
|
410 |
|
411 ^ ((self staticKW) optional , block) |
|
412 |
|
413 "Created: / 24-08-2013 / 01:44:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
412 ! |
414 ! |
413 |
415 |
414 classOrInterfaceDeclaration |
416 classOrInterfaceDeclaration |
415 |
417 |
416 ^ classDeclaration |
418 ^ classDeclaration |
565 ( ((self extendsKW)/(self superKW)), |
567 ( ((self extendsKW)/(self superKW)), |
566 type |
568 type |
567 ) optional |
569 ) optional |
568 ! ! |
570 ! ! |
569 |
571 |
570 |
|
571 !JavaParserII methodsFor:'grammar-classes-enum'! |
572 !JavaParserII methodsFor:'grammar-classes-enum'! |
572 |
573 |
573 enumBody |
574 enumBody |
574 |
575 |
575 ^ (self tokenFor: '{') , |
576 ^ (self tokenFor: '{') , |
602 interfaces optional, |
603 interfaces optional, |
603 enumBody |
604 enumBody |
604 |
605 |
605 "Created: / 17-03-2012 / 19:42:09 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
606 "Created: / 17-03-2012 / 19:42:09 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
606 ! ! |
607 ! ! |
607 |
|
608 |
608 |
609 !JavaParserII methodsFor:'grammar-classes-interface'! |
609 !JavaParserII methodsFor:'grammar-classes-interface'! |
610 |
610 |
611 interfaceBody |
611 interfaceBody |
612 |
612 |
670 ((self extendsKW) , typeList ) optional , |
670 ((self extendsKW) , typeList ) optional , |
671 interfaceBody |
671 interfaceBody |
672 |
672 |
673 "Created: / 17-03-2012 / 19:42:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
673 "Created: / 17-03-2012 / 19:42:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
674 ! ! |
674 ! ! |
675 |
|
676 |
675 |
677 !JavaParserII methodsFor:'grammar-classes-method'! |
676 !JavaParserII methodsFor:'grammar-classes-method'! |
678 |
677 |
679 constructorDeclaration |
678 constructorDeclaration |
680 |
679 |
760 |
759 |
761 throws |
760 throws |
762 |
761 |
763 ^ (self throwsKW) , qualifiedNameList |
762 ^ (self throwsKW) , qualifiedNameList |
764 ! ! |
763 ! ! |
765 |
|
766 |
764 |
767 !JavaParserII methodsFor:'grammar-expressions'! |
765 !JavaParserII methodsFor:'grammar-expressions'! |
768 |
766 |
769 additiveExpression |
767 additiveExpression |
770 |
768 |
944 selector star, |
942 selector star, |
945 ( (self tokenFor: '++') |
943 ( (self tokenFor: '++') |
946 /(self tokenFor: '--')) optional) |
944 /(self tokenFor: '--')) optional) |
947 ! ! |
945 ! ! |
948 |
946 |
949 |
|
950 !JavaParserII methodsFor:'grammar-modifiers'! |
947 !JavaParserII methodsFor:'grammar-modifiers'! |
951 |
948 |
952 classModifierNotAnnotation |
949 classModifierNotAnnotation |
953 |
950 |
954 ^ (self abstractKW) |
951 ^ (self abstractKW) |
972 variableModifiers |
969 variableModifiers |
973 |
970 |
974 ^((self finalKW) |
971 ^((self finalKW) |
975 / annotation) star |
972 / annotation) star |
976 ! ! |
973 ! ! |
977 |
|
978 |
974 |
979 !JavaParserII methodsFor:'grammar-statements'! |
975 !JavaParserII methodsFor:'grammar-statements'! |
980 |
976 |
981 assertStatement |
977 assertStatement |
982 |
978 |
1163 whileStatement |
1159 whileStatement |
1164 |
1160 |
1165 ^(self whileKW) , parExpression , statement |
1161 ^(self whileKW) , parExpression , statement |
1166 ! ! |
1162 ! ! |
1167 |
1163 |
1168 |
|
1169 !JavaParserII class methodsFor:'documentation'! |
1164 !JavaParserII class methodsFor:'documentation'! |
1170 |
1165 |
1171 version_CVS |
1166 version_CVS |
1172 ^ '$Header: /cvs/stx/stx/libjava/tools/JavaParserII.st,v 1.2 2013-02-25 11:15:35 vrany Exp $' |
1167 ^ '$Header: /cvs/stx/stx/libjava/tools/JavaParserII.st,v 1.2 2013-02-25 11:15:35 vrany Exp $' |
1173 ! |
1168 ! |