rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
public void focusLost(FocusEvent e) { | public void focusLost(FocusEvent e) { | public void setup() { // super.setup(); setLayout(new BorderLayout()); add (new JLabel(label),BorderLayout.WEST); name=new JTextField(((Driver)(PatchEdit.getDriver(patch.deviceNum,patch.driverNum))).getPatchName(patch),16); name.addFocusListener(new FocusListener() { public void focusGained(FocusEvent e) {}public void focusLost(FocusEvent e) { ((Driver)(PatchEdit.getDriver(patch.deviceNum,patch.driverNum))).setPatchName(patch,name.getText());} }); add (name,BorderLayout.EAST); } | 7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/60893359491c35f0ab916931b8f768791f2713ed/PatchNameWidget.java/clean/JSynthLib/core/PatchNameWidget.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3875,
1435,
225,
288,
368,
2240,
18,
8401,
5621,
565,
18479,
12,
2704,
30814,
10663,
282,
527,
261,
2704,
21403,
12,
1925,
3631,
8107,
3744,
18,
31285,
1769,
565,
508,
33,
2704... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3875,
1435,
225,
288,
368,
2240,
18,
8401,
5621,
565,
18479,
12,
2704,
30814,
10663,
282,
527,
261,
2704,
21403,
12,
1925,
3631,
8107,
3744,
18,
31285,
1769,
565,
508,
33,
2704... |
if(request.getAttribute("announcementTextFlag") != null) | if (request.getAttribute("announcementTextFlag") != null) | public ActionForward prepareEditAnnouncement(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FenixActionException, FenixFilterException { //retrieve announcement Integer announcementCode = getAnnouncementCode(request); ISiteComponent announcementComponent = new InfoAnnouncement(); SiteView siteView = readSiteView(request, announcementComponent, null, announcementCode, null); String information = ((InfoAnnouncement)siteView.getComponent()).getInformation(); DynaActionForm actionForm = (DynaActionForm)form; if(information != null) actionForm.set("information", information); if(request.getAttribute("announcementTextFlag") != null) actionForm.set("information", request.getAttribute("announcementTextFlag")); if(actionForm.get("editor").equals("") || (actionForm.get("editor").equals("true"))){ request.setAttribute("verEditor", "true"); } return mapping.findForward("editAnnouncement"); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/51b6ac2293210675b11702dcd353d11f8f6541bc/TeacherAdministrationViewerDispatchAction.java/clean/src/net/sourceforge/fenixedu/presentationTier/Action/teacher/TeacherAdministrationViewerDispatchAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
2911,
4666,
23137,
475,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
5411,
9984,
590,
16,
12446,
766,
13,
1216,
478,
275,
697,
1803,
503,
16,
478,
275,
697,
1586,
50... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
2911,
4666,
23137,
475,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
5411,
9984,
590,
16,
12446,
766,
13,
1216,
478,
275,
697,
1803,
503,
16,
478,
275,
697,
1586,
50... |
throw new PatchSyntaxException(myLineIndex, "Unknown before hunk start syntax"); | throw new PatchSyntaxException(myLineIndex, "Unknown after hunk start syntax"); | private PatchHunk readNextHunkContext() throws PatchSyntaxException { while(myLineIndex < myLines.length) { String curLine = myLines [myLineIndex]; if (curLine.startsWith(CONTEXT_FILE_PREFIX)) { return null; } if (curLine.startsWith(CONTEXT_HUNK_PREFIX)) { break; } myLineIndex++; } if (myLineIndex == myLines.length) { return null; } myLineIndex++; Matcher beforeMatcher = ourContextBeforeHunkStartPattern.matcher(myLines [myLineIndex]); if (!beforeMatcher.matches()) { throw new PatchSyntaxException(myLineIndex, "Unknown before hunk start syntax"); } myLineIndex++; List<String> beforeLines = readContextDiffLines(); if (myLineIndex == myLines.length) { throw new PatchSyntaxException(myLineIndex, "Missing after hunk"); } Matcher afterMatcher = ourContextAfterHunkStartPattern.matcher(myLines [myLineIndex]); if (!afterMatcher.matches()) { throw new PatchSyntaxException(myLineIndex, "Unknown before hunk start syntax"); } myLineIndex++; List<String> afterLines = readContextDiffLines(); int startLineBefore = Integer.parseInt(beforeMatcher.group(1)); int endLineBefore = Integer.parseInt(beforeMatcher.group(2)); int startLineAfter = Integer.parseInt(afterMatcher.group(1)); int endLineAfter = Integer.parseInt(afterMatcher.group(2)); PatchHunk hunk = new PatchHunk(startLineBefore, endLineBefore, startLineAfter, endLineAfter); int beforeLineIndex = 0; int afterLineIndex = 0; if (beforeLines.size() == 0) { for(String line: afterLines) { hunk.addLine(parsePatchLine(line, 2)); } } else if (afterLines.size() == 0) { for(String line: beforeLines) { hunk.addLine(parsePatchLine(line, 2)); } } else { while(beforeLineIndex < beforeLines.size() && afterLineIndex < afterLines.size()) { String beforeLine = beforeLines.get(beforeLineIndex); String afterLine = afterLines.get(afterLineIndex); if (beforeLine.startsWith(" ") && afterLine.startsWith(" ")) { hunk.addLine(new PatchLine(PatchLine.Type.CONTEXT, beforeLine.substring(2))); beforeLineIndex++; afterLineIndex++; } else if (beforeLine.startsWith("-")) { hunk.addLine(new PatchLine(PatchLine.Type.REMOVE, beforeLine.substring(2))); beforeLineIndex++; } else if (afterLine.startsWith("+")) { hunk.addLine(new PatchLine(PatchLine.Type.ADD, afterLine.substring(2))); afterLineIndex++; } else if (beforeLine.startsWith("!") && afterLine.startsWith("!")) { while(beforeLineIndex < beforeLines.size() && beforeLines.get(beforeLineIndex).startsWith("! ")) { hunk.addLine(new PatchLine(PatchLine.Type.REMOVE, beforeLines.get(beforeLineIndex).substring(2))); beforeLineIndex++; } while(afterLineIndex < afterLines.size() && afterLines.get(afterLineIndex).startsWith("! ")) { hunk.addLine(new PatchLine(PatchLine.Type.ADD, afterLines.get(afterLineIndex).substring(2))); afterLineIndex++; } } else { throw new PatchSyntaxException(-1, "Unknown line prefix"); } } } return hunk; } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/0379bd78ca43eafc356a59d9b6cbf49c2f461c15/PatchReader.java/clean/source/com/intellij/openapi/diff/impl/patch/PatchReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
12042,
44,
1683,
855,
2134,
44,
1683,
1042,
1435,
1216,
12042,
14714,
288,
565,
1323,
12,
4811,
1670,
1016,
411,
3399,
5763,
18,
2469,
13,
288,
1377,
514,
662,
1670,
273,
3399,
5763... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
12042,
44,
1683,
855,
2134,
44,
1683,
1042,
1435,
1216,
12042,
14714,
288,
565,
1323,
12,
4811,
1670,
1016,
411,
3399,
5763,
18,
2469,
13,
288,
1377,
514,
662,
1670,
273,
3399,
5763... |
nWords = 1; data = new int[1]; data[0] = v; } | nWords = 1; data = new int[1]; data[0] = v; } | public FDBigInt( int v ){ nWords = 1; data = new int[1]; data[0] = v; } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b5b5168edc3af09cb74945a80b0c36e6630ed502/Format.java/clean/src/main/mondrian/util/Format.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
478,
2290,
360,
1702,
12,
509,
331,
262,
95,
202,
202,
82,
7363,
273,
404,
31,
202,
202,
892,
273,
394,
509,
63,
21,
15533,
202,
202,
892,
63,
20,
65,
273,
331,
31,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
478,
2290,
360,
1702,
12,
509,
331,
262,
95,
202,
202,
82,
7363,
273,
404,
31,
202,
202,
892,
273,
394,
509,
63,
21,
15533,
202,
202,
892,
63,
20,
65,
273,
331,
31,
202,
... |
setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); | setOnblur((String) evalAttr("onblur", getOnblurExpr(), String.class)); | private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskey(), String.class)); } catch (NullAttributeException ex) { setAccesskey(null); } // The "align" attribute is deprecated. This needs to be removed when // the "align" attribute is finally removed. try { setAlign((String) evalAttr("align", getAlign(), String.class)); } catch (NullAttributeException ex) { setAlign(null); } try { setAlt((String) evalAttr("alt", getAlt(), String.class)); } catch (NullAttributeException ex) { setAlt(null); } try { setAltKey((String) evalAttr("altKey", getAltKey(), String.class)); } catch (NullAttributeException ex) { setAltKey(null); } try { setBorder((String) evalAttr("border", getBorder(), String.class)); } catch (NullAttributeException ex) { setBorder(null); } try { setBundle((String) evalAttr("bundle", getBundle(), String.class)); } catch (NullAttributeException ex) { setBundle(null); } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setDisabled(false); } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setIndexed(false); } try { setLocale((String) evalAttr("locale", getLocale(), String.class)); } catch (NullAttributeException ex) { setLocale(null); } try { setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); } catch (NullAttributeException ex) { setOnblur(null); } try { setOnchange((String) evalAttr("onchange", getOnchange(), String.class)); } catch (NullAttributeException ex) { setOnchange(null); } try { setOnclick((String) evalAttr("onclick", getOnclick(), String.class)); } catch (NullAttributeException ex) { setOnclick(null); } try { setOndblclick((String) evalAttr("ondblclick", getOndblclick(), String.class)); } catch (NullAttributeException ex) { setOndblclick(null); } try { setOnfocus((String) evalAttr("onfocus", getOnfocus(), String.class)); } catch (NullAttributeException ex) { setOnfocus(null); } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydown(), String.class)); } catch (NullAttributeException ex) { setOnkeydown(null); } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypress(), String.class)); } catch (NullAttributeException ex) { setOnkeypress(null); } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(), String.class)); } catch (NullAttributeException ex) { setOnkeyup(null); } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedown(), String.class)); } catch (NullAttributeException ex) { setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(), String.class)); } catch (NullAttributeException ex) { setOnmousemove(null); } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseout(), String.class)); } catch (NullAttributeException ex) { setOnmouseout(null); } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseover(), String.class)); } catch (NullAttributeException ex) { setOnmouseover(null); } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(), String.class)); } catch (NullAttributeException ex) { setOnmouseup(null); } try { setPage((String) evalAttr("page", getPage(), String.class)); } catch (NullAttributeException ex) { setPage(null); } try { setPageKey((String) evalAttr("pageKey", getPageKey(), String.class)); } catch (NullAttributeException ex) { setPageKey(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setSrc((String) evalAttr("src", getSrc(), String.class)); } catch (NullAttributeException ex) { setSrc(null); } try { setSrcKey((String) evalAttr("srcKey", getSrcKey(), String.class)); } catch (NullAttributeException ex) { setSrcKey(null); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setTabindex((String) evalAttr("tabindex", getTabindex(), String.class)); } catch (NullAttributeException ex) { setTabindex(null); } try { setTitle((String) evalAttr("title", getTitle(), String.class)); } catch (NullAttributeException ex) { setTitle(null); } try { setTitleKey((String) evalAttr("titleKey", getTitleKey(), String.class)); } catch (NullAttributeException ex) { setTitleKey(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } } | 8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/2dbb705eab3659c5c2ceb6398f2eec56e1f6994d/ELImageTag.java/clean/struts-el/src/share/org/apache/strutsel/taglib/html/ELImageTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
9334,
4766,
6647,
514,
18,
1106,
10019,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
9334,
4766,
6647,
514,
18,
1106,
10019,
... |
public void visitClass(@NotNull PsiClass aClass) { final VariableAccessVisitor visitor = new VariableAccessVisitor(); | public void visitClass(@NotNull PsiClass aClass){ if(!containsSynchronization(aClass)){ return; } final VariableAccessVisitor visitor = new VariableAccessVisitor(aClass); | public void visitClass(@NotNull PsiClass aClass) { final VariableAccessVisitor visitor = new VariableAccessVisitor(); aClass.accept(visitor); final Set<PsiElement> fields = visitor.getInappropriatelyAccessedFields(); for(Object field1 : fields){ final PsiField field = (PsiField) field1; if(!field.hasModifierProperty(PsiModifier.FINAL)){ final PsiClass containingClass = field.getContainingClass(); if(aClass.equals(containingClass)){ registerFieldError(field); } } } } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/fe27cafc4443843ebc5b3eb06b59640da45c43ed/FieldAccessedSynchronizedAndUnsynchronizedInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/threading/FieldAccessedSynchronizedAndUnsynchronizedInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
797,
26964,
5962,
453,
7722,
797,
20148,
13,
288,
5411,
727,
7110,
1862,
7413,
8000,
273,
394,
7110,
1862,
7413,
5621,
5411,
20148,
18,
9436,
12,
3516,
1811,
1769,
5411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
797,
26964,
5962,
453,
7722,
797,
20148,
13,
288,
5411,
727,
7110,
1862,
7413,
8000,
273,
394,
7110,
1862,
7413,
5621,
5411,
20148,
18,
9436,
12,
3516,
1811,
1769,
5411,
... |
if (_target != null) { newPanel.setTarget(_target); | if (target != null) { newPanel.setTarget(target); | public Object clone() { // next statement gives us a clone JGraph but not a cloned Toolbar TabDiagram newPanel = new TabDiagram(); if (_target != null) { newPanel.setTarget(_target); } newPanel.setToolBar(ToolBarFactory.createToolBar(true/*rollover*/, _target.getActions(), false/*floating*/)); setToolBar(ToolBarFactory.createToolBar(true/*rollover*/, _target.getActions(), false/*floating*/)); return newPanel; } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/24ab0ed80aaf47260c07e5d1c000076316089cc9/TabDiagram.java/buggy/src_new/org/argouml/uml/diagram/ui/TabDiagram.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
3236,
1435,
288,
3639,
368,
1024,
3021,
14758,
584,
279,
3236,
804,
4137,
1496,
486,
279,
13027,
13288,
3215,
3639,
9483,
14058,
1940,
394,
5537,
273,
394,
9483,
14058,
1940,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
3236,
1435,
288,
3639,
368,
1024,
3021,
14758,
584,
279,
3236,
804,
4137,
1496,
486,
279,
13027,
13288,
3215,
3639,
9483,
14058,
1940,
394,
5537,
273,
394,
9483,
14058,
1940,
56... |
if (newPage == activePage) return; | if (newPage == activePage) { return; } | void pageActivated(IWorkbenchPage newPage) { // Optimize. if (newPage == activePage) return; // Fire events in the following order: // 1. For each open part in the new page, open it and then (if applicable) make it visible // 2. Deactivate old active part // 3. Activate the new active part // 4. For each open part in the old page, make it invisible then close it // Hook listener on the new page. if (newPage != null) { IWorkbenchPartReference[] refs = ((WorkbenchPage)newPage).getOpenParts(); for (int i = 0; i < refs.length; i++) { IWorkbenchPartReference reference = refs[i]; partService.firePartOpened(reference); IWorkbenchPart part = reference.getPart(false); if (part != null && newPage.isPartVisible(part)) { partService.firePartVisible(reference); } } partService.setActivePart(newPage.getActivePartReference()); selectionService.setActivePart(newPage.getActivePart()); } else { partService.setActivePart(null); selectionService.setActivePart(null); } // Unhook listener from the old page. reset(); // Update active page. activePage = newPage; if (newPage != null) { newPage.addPartListener(partListner); } } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/WWinPartService.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WWinPartService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1363,
28724,
12,
45,
2421,
22144,
1964,
394,
1964,
13,
288,
3639,
368,
12056,
10153,
18,
3639,
309,
261,
2704,
1964,
422,
2695,
1964,
13,
5411,
327,
31,
3639,
368,
10151,
2641,
316,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1363,
28724,
12,
45,
2421,
22144,
1964,
394,
1964,
13,
288,
3639,
368,
12056,
10153,
18,
3639,
309,
261,
2704,
1964,
422,
2695,
1964,
13,
5411,
327,
31,
3639,
368,
10151,
2641,
316,
... |
{ return null; } | { return null; } | public Component getNextFocusableComponent() { return null; } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5435,
6927,
9233,
429,
1841,
1435,
202,
95,
202,
202,
2463,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5435,
6927,
9233,
429,
1841,
1435,
202,
95,
202,
202,
2463,
446,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public double readDouble() throws IOException { Object obj = vec.elementAt(ptr++); return (((Double)obj).doubleValue()); } | public double readDouble() throws IOException { Object obj = vec.elementAt(ptr++); return ((Double) obj).doubleValue(); } | public double readDouble() throws IOException { Object obj = vec.elementAt(ptr++); return (((Double)obj).doubleValue());} | 1023 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1023/84d120cc49d42a79bfbc68fe36429395bdef90fd/UnicastRemoteCall.java/buggy/libjava/gnu/java/rmi/server/UnicastRemoteCall.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1645,
855,
5265,
1435,
1216,
1860,
288,
202,
921,
1081,
273,
7062,
18,
2956,
861,
12,
6723,
9904,
1769,
202,
2463,
261,
12443,
5265,
13,
2603,
2934,
9056,
620,
10663,
97,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1645,
855,
5265,
1435,
1216,
1860,
288,
202,
921,
1081,
273,
7062,
18,
2956,
861,
12,
6723,
9904,
1769,
202,
2463,
261,
12443,
5265,
13,
2603,
2934,
9056,
620,
10663,
97,
2,
-100,
-100,
... |
} catch (SendFailedException sfe) { throw sfe; | private boolean deliver(MailImpl mail, Session session) { try { log("attempting to deliver " + mail.getName()); MimeMessage message = mail.getMessage(); //Create an array of the recipients as InternetAddress objects Collection recipients = mail.getRecipients(); InternetAddress addr[] = new InternetAddress[recipients.size()]; int j = 0; for (Iterator i = recipients.iterator(); i.hasNext(); j++) { MailAddress rcpt = (MailAddress)i.next(); addr[j] = rcpt.toInternetAddress(); } //Figure out which servers to try to send to. This collection // will hold all the possible target servers Collection targetServers = null; if (gatewayServer == null) { MailAddress rcpt = (MailAddress) recipients.iterator().next(); String host = rcpt.getHost(); //Lookup the possible targets targetServers = getMailetContext().getMailServers(host); if (targetServers.size() == 0) { log("No mail server found for: " + host); return failMessage(mail, new MessagingException("No route found to " + host), true); } } else { targetServers = new Vector(); targetServers.add(gatewayServer); } MessagingException lastError = null; if (addr.length > 0) { Iterator i = targetServers.iterator(); while ( i.hasNext()) { try { String outgoingmailserver = i.next().toString (); log("attempting delivery of " + mail.getName() + " to host " + outgoingmailserver + " to " + Arrays.asList(addr)); URLName urlname = new URLName("smtp://" + outgoingmailserver); Properties props = session.getProperties(); //This was an older version of JavaMail if (mail.getSender() == null) { props.put("mail.smtp.user", "<>"); props.put("mail.smtp.from", "<>"); } else { props.put("mail.smtp.user", mail.getSender().toString()); props.put("mail.smtp.from", mail.getSender().toString()); } Collection servernames = (Collection) getMailetContext().getAttribute(Constants.SERVER_NAMES); if (servernames.size() > 0) { props.put("mail.smtp.localhost", (String) servernames.iterator().next()); } //Many of these properties are only in later JavaMail versions //"mail.smtp.ehlo" //default true //"mail.smtp.auth" //default false //"mail.smtp.dsn.ret" //default to nothing... appended as RET= after MAIL FROM line. //"mail.smtp.dsn.notify" //default to nothing...appended as NOTIFY= after RCPT TO line. Transport transport = session.getTransport(urlname); transport.connect(); transport.sendMessage(message, addr); transport.close(); log("mail (" + mail.getName() + ") sent successfully to " + outgoingmailserver); return true; } catch (SendFailedException sfe) { throw sfe; } catch (MessagingException me) { //MessagingException are horribly difficult to figure out what actually happened. log("Exception delivering message (" + mail.getName() + ") - " + me.getMessage()); //Assume it is a permanent exception, or prove ourselves otherwise boolean permanent = true; if (me.getNextException() != null && me.getNextException() instanceof java.io.IOException) { //This is more than likely a temporary failure //If it's an IO exception with no nested exception, it's probably // some socket or weird IO related problem. permanent = false; } else if (me.getMessage().startsWith("Could not connect to SMTP host")) { //This is not a permanent exception because permanent = false; } //Now take action based on whether this was a permanent or temporary action if (permanent) { //If it's permanent, fail immediately. return failMessage(mail, me, true); } else { //Record what the last error is and continue the loop in case // there are other servers we could try. lastError = me; continue; } } } // end while //If we encountered an exception while looping through, send the last exception we got if (lastError != null) { throw lastError; } } else { log("no recipients specified... not sure how this could have happened."); } } catch (SendFailedException sfe) { //Would like to log all the types of email addresses if (sfe.getValidSentAddresses() != null) { Address[] validSent = sfe.getValidSentAddresses(); Collection recipients = mail.getRecipients(); //Remove these addresses for the recipients for (int i = 0; i < validSent.length; i++) { try { MailAddress addr = new MailAddress(validSent[i].toString()); recipients.remove(addr); } catch (ParseException pe) { //ignore once debugging done pe.printStackTrace(); } } } //The rest of the recipients failed for one reason or another. //let the fail message handle it like a permanent exception. return failMessage(mail, sfe, true); } catch (MessagingException ex) { //We should do a better job checking this... if the failure is a general //connect exception, this is less descriptive than more specific SMTP command //failure... have to lookup and see what are the various Exception //possibilities //Unable to deliver message after numerous tries... fail accordingly return failMessage(mail, ex, false); } return true; } | 47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/fc41a7bedc009ac3714a910a29137eed778c78ed/RemoteDelivery.java/buggy/trunk/src/java/org/apache/james/transport/mailets/RemoteDelivery.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
11795,
12,
6759,
2828,
4791,
16,
3877,
1339,
13,
288,
3639,
775,
288,
5411,
613,
2932,
11764,
310,
358,
11795,
315,
397,
4791,
18,
17994,
10663,
5411,
22059,
1079,
883,
273,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
11795,
12,
6759,
2828,
4791,
16,
3877,
1339,
13,
288,
3639,
775,
288,
5411,
613,
2932,
11764,
310,
358,
11795,
315,
397,
4791,
18,
17994,
10663,
5411,
22059,
1079,
883,
273,
4... | |
sf.computeLocationStats(metadata, buffer, pd, w); | sf.computeLocationStats(pixels, buf, planeDef, w); | public void computeLocationStats(PlaneDef pd) { if (pd == null) throw new NullPointerException("No plane definition."); ChannelBinding[] cb = getChannelBindings(); StatsFactory sf = new StatsFactory(); int w = 0; for (Iterator i = getMetadata().getChannels().iterator(); i.hasNext(); ) { // FIXME: This is where we need to have the ChannelBinding --> // Channel linkage. Without it, we have to assume that the order in // which the channel bindings was created matches up with the order // of the channels linked to the pixels set. Channel channel = (Channel) i.next(); double gMin = channel.getStatsInfo().getGlobalMin().doubleValue(); double gMax = channel.getStatsInfo().getGlobalMax().doubleValue(); //Test sf.computeLocationStats(metadata, buffer, pd, w); //cb[w].setNoiseReduction(new Boolean(sf.isNoiseReduction())); cb[w].setNoiseReduction(Boolean.TRUE); float start = cb[w].getInputStart().floatValue(); float end = cb[w].getInputEnd().floatValue(); //TODO: find a better way. if (gMax == end && gMin == start) cb[w].setInputStart(new Float(sf.getInputStart())); cb[w].setInputEnd(new Float(sf.getInputEnd())); } } | 55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/725d5581a5805696002bff1ec2ecb359495503f5/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3671,
2735,
4195,
12,
19505,
3262,
4863,
13,
565,
288,
3639,
309,
261,
22353,
422,
446,
13,
540,
202,
12849,
394,
10108,
2932,
2279,
11017,
2379,
1199,
1769,
3639,
5307,
5250,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3671,
2735,
4195,
12,
19505,
3262,
4863,
13,
565,
288,
3639,
309,
261,
22353,
422,
446,
13,
540,
202,
12849,
394,
10108,
2932,
2279,
11017,
2379,
1199,
1769,
3639,
5307,
5250,
... |
xAxisPrimary.getOrigin( ).setType( IntersectionType.MIN_LITERAL ); | xAxisPrimary.getOrigin( ).setType( IntersectionType.VALUE_LITERAL ); | public static final Chart createCurveFittingBar( ) { ChartWithAxes cwaBar = ChartWithAxesImpl.create( ); // Plot cwaBar.getBlock( ).setBackground( ColorDefinitionImpl.WHITE( ) ); cwaBar.getBlock( ).getOutline( ).setVisible( true ); Plot p = cwaBar.getPlot( ); p.getClientArea( ).setBackground( ColorDefinitionImpl.create( 255, 255, 225 ) ); p.getOutline( ).setVisible( false ); // Title cwaBar.getTitle( ) .getLabel( ) .getCaption( ) .setValue( "Curve Fitting Bar Chart" );//$NON-NLS-1$ // Legend cwaBar.getLegend( ).setVisible( false ); // X-Axis Axis xAxisPrimary = cwaBar.getPrimaryBaseAxes( )[0]; xAxisPrimary.setType( AxisType.TEXT_LITERAL ); xAxisPrimary.getMajorGrid( ).setTickStyle( TickStyle.BELOW_LITERAL ); xAxisPrimary.getOrigin( ).setType( IntersectionType.MIN_LITERAL ); // Y-Axis Axis yAxisPrimary = cwaBar.getPrimaryOrthogonalAxis( xAxisPrimary ); yAxisPrimary.getMajorGrid( ).setTickStyle( TickStyle.LEFT_LITERAL ); yAxisPrimary.setType( AxisType.LINEAR_LITERAL ); yAxisPrimary.getLabel( ).getCaption( ).getFont( ).setRotation( 90 ); // Data Set TextDataSet categoryValues = TextDataSetImpl.create( new String[]{ "Item 1", "Item 2", "Item 3"} );//$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$ NumberDataSet orthoValues = NumberDataSetImpl.create( new double[]{ 25, 35, 15 } ); // X-Series Series seCategory = SeriesImpl.create( ); seCategory.setDataSet( categoryValues ); SeriesDefinition sdX = SeriesDefinitionImpl.create( ); xAxisPrimary.getSeriesDefinitions( ).add( sdX ); sdX.getSeries( ).add( seCategory ); // Y-Series BarSeries bs = (BarSeries) BarSeriesImpl.create( ); bs.setDataSet( orthoValues ); bs.getLabel( ).setVisible( true ); bs.setTranslucent( true ); bs.setLabelPosition( Position.INSIDE_LITERAL ); bs.setCurveFitting( CurveFittingImpl.create( ) ); SeriesDefinition sdY = SeriesDefinitionImpl.create( ); yAxisPrimary.getSeriesDefinitions( ).add( sdY ); sdY.getSeriesPalette( ).update( -1 ); sdY.getSeries( ).add( bs ); return cwaBar; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/87be376b194f799be46893d03147e84946c9d70b/CurveFittingBar.java/clean/chart/org.eclipse.birt.chart.examples/src/org/eclipse/birt/chart/examples/view/models/CurveFittingBar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
727,
14804,
752,
9423,
14219,
1787,
5190,
12,
262,
202,
95,
202,
202,
7984,
1190,
26494,
14098,
69,
5190,
273,
14804,
1190,
26494,
2828,
18,
2640,
12,
11272,
202,
202,
759,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
727,
14804,
752,
9423,
14219,
1787,
5190,
12,
262,
202,
95,
202,
202,
7984,
1190,
26494,
14098,
69,
5190,
273,
14804,
1190,
26494,
2828,
18,
2640,
12,
11272,
202,
202,
759,... |
protected void endWriting() { if (writer != null) { try { | protected void endWriting() { if (writer != null) { try { | protected void endWriting() { if (writer != null) { try { writer.close(); } catch (IOException e) { mLogger.error("ERROR closing writer",e); } } } | 46431 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46431/77aab6dabe55ba4c89c29d9798938c44daa0daf9/IndexOperation.java/clean/src/org/roller/business/search/operations/IndexOperation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
679,
18835,
1435,
565,
288,
3639,
309,
261,
6299,
480,
446,
13,
3639,
288,
5411,
775,
5411,
288,
7734,
2633,
18,
4412,
5621,
5411,
289,
5411,
1044,
261,
14106,
425,
13,
5411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
679,
18835,
1435,
565,
288,
3639,
309,
261,
6299,
480,
446,
13,
3639,
288,
5411,
775,
5411,
288,
7734,
2633,
18,
4412,
5621,
5411,
289,
5411,
1044,
261,
14106,
425,
13,
5411,
... |
return resource.getLocation().toPortableString(); } | return resource.getLocation().toPortableString(); } | private String key(IResource resource) { return resource.getLocation().toPortableString(); } | 2575 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2575/480be17e4be6381db443f5d04495da4d910c541f/PBDotProjectBuilder.java/buggy/projects/wolips/plugins/org.objectstyle.wolips.builder/java/org/objectstyle/wolips/builder/internal/PBDotProjectBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
514,
498,
12,
45,
1420,
1058,
13,
288,
565,
327,
1058,
18,
588,
2735,
7675,
869,
2617,
429,
780,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
514,
498,
12,
45,
1420,
1058,
13,
288,
565,
327,
1058,
18,
588,
2735,
7675,
869,
2617,
429,
780,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
public void testAbortUpload() { // Create a 10 megs file TestHelper.createRandomFile(getFolderAtBart().getLocalBase(), 10000000); getFolderAtBart().forceScanOnNextMaintenance(); getFolderAtBart().maintain(); TestHelper.waitForCondition(2, new TestHelper.Condition() { public boolean reached() { return getContollerBart().getTransferManager() .getActiveUploads().length == 1; } }); TestHelper.waitMilliSeconds(200); assertEquals(1, bartModel.getRowCount()); // Upload requested + enqueud assertEquals(2, bartModelListener.events.size()); // Abort Download download = getContollerLisa().getTransferManager() .getActiveDownloads()[0]; download.abort(); TestHelper.waitForCondition(50, new TestHelper.Condition() { public boolean reached() { return bartModel.getRowCount() == 0; } }); // Wait for EDT TestHelper.waitMilliSeconds(500); // no active upload assertEquals(0, bartModel.getRowCount()); // Check correct events from model assertEquals(3, bartModelListener.events.size()); // Upload requested assertTrue(bartModelListener.events.get(0).getType() == TableModelEvent.INSERT); // Upload started assertTrue(bartModelListener.events.get(1).getType() == TableModelEvent.UPDATE); // Upload aborted assertTrue(bartModelListener.events.get(2).getType() == TableModelEvent.DELETE); TestHelper.waitMilliSeconds(500); } | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/a49171da04ec10edf60306c84d71f188b2bbb3f8/UploadsTableModelTest.java/clean/src/test/de/dal33t/powerfolder/test/ui/UploadsTableModelTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
13572,
4777,
1435,
288,
3639,
368,
1788,
279,
1728,
1791,
564,
585,
3639,
7766,
2276,
18,
2640,
8529,
812,
12,
588,
3899,
861,
38,
485,
7675,
588,
2042,
2171,
9334,
2130,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
13572,
4777,
1435,
288,
3639,
368,
1788,
279,
1728,
1791,
564,
585,
3639,
7766,
2276,
18,
2640,
8529,
812,
12,
588,
3899,
861,
38,
485,
7675,
588,
2042,
2171,
9334,
2130,... | ||
new SingleFileInserter(this, this, block, isMetadata, ctx, false, getCHKOnly, false, baseMetadata, insertAsArchiveManifest); | new SingleFileInserter(this, this, block, isMetadata, ctx, false, getCHKOnly, false, baseMetadata, insertAsArchiveManifest, true); | private void resolveAndStartBase() { Bucket bucket = null; synchronized(this) { if(hasResolvedBase) return; } while(true) { try { bucket = BucketTools.makeImmutableBucket(ctx.bf, baseMetadata.writeToByteArray()); break; } catch (IOException e) { fail(new InserterException(InserterException.BUCKET_ERROR, e, null)); return; } catch (MetadataUnresolvedException e) { try { resolve(e); } catch (IOException e1) { fail(new InserterException(InserterException.BUCKET_ERROR, e, null)); return; } catch (InserterException e2) { fail(e2); } } } if(bucket == null) return; synchronized(this) { if(hasResolvedBase) return; hasResolvedBase = true; } InsertBlock block; boolean isMetadata = true; boolean insertAsArchiveManifest = false; if(!(elementsToPutInZip.isEmpty())) { // There is a zip to insert. // We want to include the metadata. // We have the metadata, fortunately enough, because everything has been resolve()d. // So all we need to do is create the actual ZIP. try { // FIXME support formats other than .zip. // Only the *decoding* is generic at present. Bucket zipBucket = ctx.bf.makeBucket(-1); OutputStream os = zipBucket.getOutputStream(); ZipOutputStream zos = new ZipOutputStream(os); ZipEntry ze; for(Iterator i=elementsToPutInZip.iterator();i.hasNext();) { PutHandler ph = (PutHandler) i.next(); ze = new ZipEntry(ph.targetInZip); ze.setTime(0); zos.putNextEntry(ze); BucketTools.copyTo(ph.data, zos, ph.data.size()); } // Add .metadata - after the rest. ze = new ZipEntry(".metadata"); ze.setTime(0); // -1 = now, 0 = 1970. zos.putNextEntry(ze); BucketTools.copyTo(bucket, zos, bucket.size()); zos.closeEntry(); // Both finish() and close() are necessary. zos.finish(); zos.close(); // Now we have to insert the ZIP. // Can we just insert it, and not bother with a redirect to it? // Thereby exploiting implicit manifest support, which will pick up on .metadata?? // We ought to be able to !! block = new InsertBlock(zipBucket, new ClientMetadata("application/zip"), targetURI); isMetadata = false; insertAsArchiveManifest = true; } catch (ZipException e) { fail(new InserterException(InserterException.INTERNAL_ERROR, e, null)); return; } catch (IOException e) { fail(new InserterException(InserterException.BUCKET_ERROR, e, null)); return; } } else block = new InsertBlock(bucket, null, targetURI); try { SingleFileInserter metadataInserter = new SingleFileInserter(this, this, block, isMetadata, ctx, false, getCHKOnly, false, baseMetadata, insertAsArchiveManifest); Logger.minor(this, "Inserting main metadata: "+metadataInserter); this.metadataPuttersByMetadata.put(baseMetadata, metadataInserter); metadataInserter.start(null); } catch (InserterException e) { fail(e); } } | 56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/ba61984610fbdc6ae89adf37e39660cc27c3f343/SimpleManifestPutter.java/clean/src/freenet/client/async/SimpleManifestPutter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
2245,
1876,
1685,
2171,
1435,
288,
202,
202,
4103,
2783,
273,
446,
31,
202,
202,
22043,
12,
2211,
13,
288,
1082,
202,
430,
12,
5332,
12793,
2171,
13,
327,
31,
202,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
2245,
1876,
1685,
2171,
1435,
288,
202,
202,
4103,
2783,
273,
446,
31,
202,
202,
22043,
12,
2211,
13,
288,
1082,
202,
430,
12,
5332,
12793,
2171,
13,
327,
31,
202,
202,
... |
addPage( settingPage ); | addPage( settingPage ); } | public void addPages( ) { saveAsPage = new WizardSaveAsPage( "WizardSaveAsPage" ); //$NON-NLS-1$ saveAsPage.setOriginalFile( orginalFile ); saveAsPage.setTitle( Messages.getString( "SaveReportAsWizard.SaveAsPageTitle" ) ); //$NON-NLS-1$ saveAsPage.setDescription( Messages.getString( "SaveReportAsWizard.SaveAsPageMessage" ) ); //$NON-NLS-1$ // saveAsPage.setImageDescriptor( // IDEInternalWorkbenchImages.getImageDescriptor( // IDEInternalWorkbenchImages.IMG_DLGBAN_SAVEAS_DLG ) ); addPage( saveAsPage ); settingPage = new WizardReportSettingPage( model ); settingPage.setTitle( Messages.getFormattedString( "SaveReportAsWizard.SettingPage.title", new Object[]{Messages.getString( "NewReportWizard.wizardPageTitle.report" )} ) ); //$NON-NLS-1$ settingPage.setMessage( Messages.getString( "SaveReportAsWizard.SettingPage.message" ) ); //$NON-NLS-1$ addPage( settingPage ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/85e501aab5dc5be215f5861aec25d30ccb95f6b8/SaveReportAsWizard.java/clean/UI/org.eclipse.birt.report.designer.ui.ide/src/org/eclipse/birt/report/designer/ui/ide/wizards/SaveReportAsWizard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
5716,
12,
262,
202,
95,
202,
202,
5688,
1463,
1964,
273,
394,
678,
13412,
4755,
1463,
1964,
12,
315,
27130,
4755,
1463,
1964,
6,
11272,
4329,
3993,
17,
5106,
17,
21,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
5716,
12,
262,
202,
95,
202,
202,
5688,
1463,
1964,
273,
394,
678,
13412,
4755,
1463,
1964,
12,
315,
27130,
4755,
1463,
1964,
6,
11272,
4329,
3993,
17,
5106,
17,
21,... |
int e = d2b(df, bits); b = new BigInteger(bits); | int[] e = new int[1]; int[] bbits = new int[1]; b = d2b(df, e, bbits); | public static String JS_dtobasestr(int base, double d) { char[] buffer; /* The output string */ int p; /* index to current position in the buffer */ int pInt; /* index to the beginning of the integer part of the string */ int q; int digit; double di; /* d truncated to an integer */ double df; /* The fractional part of d */// JS_ASSERT(base >= 2 && base <= 36); buffer = new char[DTOBASESTR_BUFFER_SIZE]; p = 0; if (d < 0.0) { buffer[p++] = '-'; d = -d; } /* Check for Infinity and NaN */ if (Double.isNaN(d)) return "NaN"; else if (Double.isInfinite(d)) return "Infinity"; /* Output the integer part of d with the digits in reverse order. */ pInt = p; di = (int)d; BigInteger b = new BigInteger(byteValue((long)di)); String intDigits = b.toString(base); intDigits.getChars(0, intDigits.length(), buffer, p); p += intDigits.length(); df = d - di; if (df != 0.0) { /* We have a fraction. */ byte bits[] = new byte[8]; buffer[p++] = '.'; long dBits = Double.doubleToLongBits(d); int word0 = (int)(dBits >> 32); int word1 = (int)(dBits); int e = d2b(df, bits); b = new BigInteger(bits);// JS_ASSERT(e < 0); /* At this point df = b * 2^e. e must be less than zero because 0 < df < 1. */ int s2 = -(word0 >>> Exp_shift1 & Exp_mask >> Exp_shift1); if (s2 == 0) s2 = -1; s2 += Bias + P; /* 1/2^s2 = (nextDouble(d) - d)/2 */// JS_ASSERT(-s2 < e); bits = new byte[1]; bits[0] = 1; BigInteger mlo = new BigInteger(bits); BigInteger mhi = mlo; if ((word1 == 0) && ((word0 & Bndry_mask) == 0) && ((word0 & (Exp_mask & Exp_mask << 1)) != 0)) { /* The special case. Here we want to be within a quarter of the last input significant digit instead of one half of it when the output string's value is less than d. */ s2 += Log2P; bits[0] = 1<<Log2P; mhi = new BigInteger(bits); } b = b.shiftLeft(e + s2); bits[0] = 1; BigInteger s = new BigInteger(bits); s = s.shiftLeft(s2); /* At this point we have the following: * s = 2^s2; * 1 > df = b/2^s2 > 0; * (d - prevDouble(d))/2 = mlo/2^s2; * (nextDouble(d) - d)/2 = mhi/2^s2. */ bits[0] = (byte)base; // s'ok since base < 36 BigInteger bigBase = new BigInteger(bits); System.out.println("s2 = " + s2 + ", e = " + e + ", b = " + b.toString()); System.out.println("mhi = " + mhi.toString()); System.out.println("mlo = " + mlo.toString()); boolean done = false; do { b = b.multiply(bigBase); BigInteger[] divResult = b.divideAndRemainder(s); b = divResult[1]; digit = (char)(divResult[0].intValue()); if (mlo == mhi) mlo = mhi = mlo.multiply(bigBase); else { mlo = mlo.multiply(bigBase); mhi = mhi.multiply(bigBase); } /* Do we yet have the shortest string that will round to d? */ int j = b.compareTo(mlo); /* j is b/2^s2 compared with mlo/2^s2. */ BigInteger delta = s.subtract(mhi); int j1 = (delta.signum() <= 0) ? 1 : b.compareTo(delta); /* j1 is b/2^s2 compared with 1 - mhi/2^s2. */ if (j1 == 0 && ((word1 & 1) == 0)) { if (j > 0) digit++; done = true; } else if (j < 0 || (j == 0 && ((word1 & 1) == 0))) { if (j1 > 0) { /* Either dig or dig+1 would work here as the least significant digit. Use whichever would produce an output value closer to d. */ b = b.shiftLeft(1); j1 = b.compareTo(s); if (j1 > 0) /* The even test (|| (j1 == 0 && (digit & 1))) is not here because it messes up odd base output * such as 3.5 in base 3. */ digit++; } done = true; } else if (j1 > 0) { digit++; done = true; }// JS_ASSERT(digit < (uint32)base); buffer[p++] = BASEDIGIT(digit); } while (!done); } return new String(buffer, 0, p); } | 7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/3726b9fb19b6fab5f4203f81c219670d795ffdbd/DToA.java/buggy/js/rhino/org/mozilla/javascript/DToA.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
6756,
67,
72,
869,
18602,
313,
12,
474,
1026,
16,
1645,
302,
13,
565,
288,
3639,
1149,
8526,
1613,
31,
4202,
1748,
1021,
876,
533,
1195,
3639,
509,
293,
31,
9079,
1748,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
6756,
67,
72,
869,
18602,
313,
12,
474,
1026,
16,
1645,
302,
13,
565,
288,
3639,
1149,
8526,
1613,
31,
4202,
1748,
1021,
876,
533,
1195,
3639,
509,
293,
31,
9079,
1748,
... |
protected void setGlobalCurrentFocusCycleRoot(Container cycleRoot) | public void setGlobalCurrentFocusCycleRoot (Container cycleRoot) | protected void setGlobalCurrentFocusCycleRoot(Container cycleRoot) { firePropertyChange("currentFocusCycleRoot", focusCycleRoot, cycleRoot); focusCycleRoot = cycleRoot; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/KeyboardFocusManager.java/buggy/core/src/classpath/java/java/awt/KeyboardFocusManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
5160,
3935,
9233,
13279,
2375,
261,
2170,
8589,
2375,
13,
225,
288,
565,
4452,
1396,
3043,
2932,
2972,
9233,
13279,
2375,
3113,
7155,
13279,
2375,
16,
8589,
2375,
1769,
565,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
5160,
3935,
9233,
13279,
2375,
261,
2170,
8589,
2375,
13,
225,
288,
565,
4452,
1396,
3043,
2932,
2972,
9233,
13279,
2375,
3113,
7155,
13279,
2375,
16,
8589,
2375,
1769,
565,... |
CmsDbContext dbc = m_dbContextFactory.getDbContext(context); | CmsDbContext dbc = m_dbContextFactory.getDbContext(context); | public CmsGroup getParent(CmsRequestContext context, String groupname) throws CmsException { CmsDbContext dbc = m_dbContextFactory.getDbContext(context); CmsGroup result = null; try { result = m_driverManager.getParent(dbc, groupname); } catch (Exception e) { dbc.report(null, null, e); } finally { dbc.clear(); } return result; } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/a7ffa3c192d7068f584b0a3a844b88bdb2d3145a/CmsSecurityManager.java/clean/src/org/opencms/db/CmsSecurityManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2149,
1114,
5089,
12,
4747,
21426,
819,
16,
514,
25329,
13,
1216,
11228,
288,
3639,
30670,
9881,
273,
312,
67,
1966,
29871,
18,
588,
4331,
1042,
12,
2472,
1769,
6647,
2149,
1114,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2149,
1114,
5089,
12,
4747,
21426,
819,
16,
514,
25329,
13,
1216,
11228,
288,
3639,
30670,
9881,
273,
312,
67,
1966,
29871,
18,
588,
4331,
1042,
12,
2472,
1769,
6647,
2149,
1114,
56... |
ProjectModules projectModules = (ProjectModules) structuralModel.getPrimaryResource().getContents().get(0); | ModuleCore editUtility = (ModuleCore) structuralModel.getAdapter(ModuleCore.ADAPTER_CLASS); ProjectModules projectModules = editUtility.getProjectModules(); | private void createInitialWTPModulesFile() { ModuleStructuralModel structuralModel = null; try { IProject containingProject = getProject(); ModuleCoreNature moduleCoreNature = (ModuleCoreNature) containingProject.getNature(ModuleCoreNature.MODULE_NATURE_ID); structuralModel = moduleCoreNature.getModuleStructuralModelForWrite(this); structuralModel.prepareProjectModulesIfNecessary(); ProjectModules projectModules = (ProjectModules) structuralModel.getPrimaryResource().getContents().get(0); addContent(projectModules); structuralModel.saveIfNecessary(this); } catch(CoreException ex) { ex.printStackTrace(); } finally { if(structuralModel != null) structuralModel.releaseAccess(this); } } | 8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/81476b1fd02b961f5177061323d42f5acc8d48ac/WebModuleCreationOperation.java/clean/plugins/org.eclipse.jst.j2ee.web/webproject/org/eclipse/jst/j2ee/internal/web/archive/operations/WebModuleCreationOperation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
4435,
8588,
52,
7782,
812,
1435,
288,
202,
202,
3120,
14372,
1488,
1958,
3766,
1488,
273,
446,
31,
202,
202,
698,
288,
1082,
202,
45,
4109,
4191,
4109,
273,
11080,
5621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
4435,
8588,
52,
7782,
812,
1435,
288,
202,
202,
3120,
14372,
1488,
1958,
3766,
1488,
273,
446,
31,
202,
202,
698,
288,
1082,
202,
45,
4109,
4191,
4109,
273,
11080,
5621,
... |
public org.quickfix.field.NestedPartyRole getNestedPartyRole() throws FieldNotFound { org.quickfix.field.NestedPartyRole value = new org.quickfix.field.NestedPartyRole(); | public quickfix.field.NestedPartyRole getNestedPartyRole() throws FieldNotFound { quickfix.field.NestedPartyRole value = new quickfix.field.NestedPartyRole(); | public org.quickfix.field.NestedPartyRole getNestedPartyRole() throws FieldNotFound { org.quickfix.field.NestedPartyRole value = new org.quickfix.field.NestedPartyRole(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/TradeCaptureReport.java/buggy/src/java/src/quickfix/fix44/TradeCaptureReport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8649,
17619,
2996,
336,
8649,
17619,
2996,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8649,
17619,
2996,
460,
273,
394... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8649,
17619,
2996,
336,
8649,
17619,
2996,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8649,
17619,
2996,
460,
273,
394... |
public abstract void update(int i, java.lang.Object x); | public abstract void update(int i, Object x); | public abstract void update(int i, java.lang.Object x); | 10130 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10130/3d8b646bab14c92a68baf3a884497890dd0ce708/Array.java/buggy/sources/scala/Array.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8770,
918,
1089,
12,
474,
277,
16,
2252,
18,
4936,
18,
921,
619,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8770,
918,
1089,
12,
474,
277,
16,
2252,
18,
4936,
18,
921,
619,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
public CmsPublishedResource( CmsUUID structureId, CmsUUID resourceId, int backupTagId, String rootPath, int resourceType, boolean isFolder, int resourceState, int siblingCount) { | public CmsPublishedResource(CmsResource resource) { | public CmsPublishedResource( CmsUUID structureId, CmsUUID resourceId, int backupTagId, String rootPath, int resourceType, boolean isFolder, int resourceState, int siblingCount) { m_structureId = structureId; m_resourceId = resourceId; m_backupTagId = backupTagId; m_rootPath = rootPath; m_resourceType = resourceType; m_resourceState = resourceState; m_siblingCount = siblingCount; m_isFolder = isFolder; } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/0abaf9e2cd7b40be6257fbe506683783295516ca/CmsPublishedResource.java/buggy/src/org/opencms/db/CmsPublishedResource.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2149,
16451,
1420,
12,
3639,
15792,
30621,
16,
3639,
15792,
15035,
16,
3639,
509,
5114,
1805,
548,
16,
3639,
514,
13959,
16,
3639,
509,
14110,
16,
3639,
1250,
31137,
16,
3639,
509,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2149,
16451,
1420,
12,
3639,
15792,
30621,
16,
3639,
15792,
15035,
16,
3639,
509,
5114,
1805,
548,
16,
3639,
514,
13959,
16,
3639,
509,
14110,
16,
3639,
1250,
31137,
16,
3639,
509,
... |
return tagify("SUB", null, null); | return tagify("sub", null, null); | private String jsFunction_sub() { return tagify("SUB", null, null); } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/e4c32e2c7bcbcebcd19b29115abbd924e9039485/NativeString.java/buggy/js/rhino/src/org/mozilla/javascript/NativeString.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
3828,
2083,
67,
1717,
1435,
288,
3639,
327,
1047,
1164,
2932,
1717,
3113,
446,
16,
446,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
3828,
2083,
67,
1717,
1435,
288,
3639,
327,
1047,
1164,
2932,
1717,
3113,
446,
16,
446,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Iterator numerics = os.iterator(runtime.getClass("Numeric")); | Iterator numerics = target.iterator(runtime.getClass("Numeric")); | public void testObjectSpace() { ObjectSpace os = new ObjectSpace(); IRubyObject o1 = runtime.newFixnum(10); IRubyObject o2 = runtime.newFixnum(20); IRubyObject o3 = runtime.newFixnum(30); IRubyObject o4 = runtime.newString("hello"); os.add(o1); os.add(o2); os.add(o3); os.add(o4); List storedFixnums = new ArrayList(3); storedFixnums.add(o1); storedFixnums.add(o2); storedFixnums.add(o3); Iterator strings = os.iterator(runtime.getString()); assertSame(o4, strings.next()); assertEquals(null, strings.next()); Iterator numerics = os.iterator(runtime.getClass("Numeric")); for (int i = 0; i < 3; i++) { Object item = numerics.next(); assertTrue(storedFixnums.contains(item)); } assertEquals(null, numerics.next()); } | 46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/c8b66db475de1dc66f347884891dd70d9943689b/TestObjectSpace.java/clean/test/org/jruby/test/TestObjectSpace.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
921,
3819,
1435,
288,
3639,
1033,
3819,
1140,
273,
394,
1033,
3819,
5621,
3639,
15908,
10340,
921,
320,
21,
273,
3099,
18,
2704,
8585,
2107,
12,
2163,
1769,
3639,
15908,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
921,
3819,
1435,
288,
3639,
1033,
3819,
1140,
273,
394,
1033,
3819,
5621,
3639,
15908,
10340,
921,
320,
21,
273,
3099,
18,
2704,
8585,
2107,
12,
2163,
1769,
3639,
15908,
... |
static int newObject(int cons) {//JVMHelp.wr('.'); int size = Native.rdMem(cons); // instance size // we are NOT using JVM var h at address 2 for the // heap pointer anymore. ++size; // for the additional method pointer // TODO: Isn't the method pointer now in the handle? // check jvm.asm and JVM.java and JOPSim.java //System.out.println("new "+heapPtr+" size "+size); if (heapPtr+size >= allocPtr) { gc_alloc(); } if (heapPtr+size >= allocPtr) { // still not enough memory System.out.println("Out of memory error!"); System.exit(1); } if (freeList==0) { System.out.println("Run out of handles!"); // is this a good place to call gc???? // better check available handles on newObject gc_alloc(); } if (freeList==0) { System.out.println("Still out of handles!"); System.exit(1); } // we allocate from the upper part allocPtr -= size; // we need the object size. // in the heap or in the handle structure // or retrive it from the class info int ref; synchronized (mutex) { ref = getHandle(allocPtr+1, size); } // ref. flags used for array marker Native.wrMem(IS_OBJ, ref+OFF_TYPE); Native.wrMem(cons+3, allocPtr); // pointer to method table in objectref-1 // zero could be done on a flip and at initialization! // we don't need this// for (int i=1; i<size; ++i) {// Native.wrMem(0, allocPtr+i); // zero object// } return ref; } | 46436 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46436/d1fa3e9968154a50f17be730c01e23c7f575fe77/GC.java/buggy/java/target/src/common/com/jopdesign/sys/GC.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
509,
24518,
12,
474,
1959,
13,
288,
759,
46,
7397,
6696,
18,
91,
86,
2668,
1093,
1769,
202,
202,
474,
963,
273,
16717,
18,
13623,
3545,
12,
8559,
1769,
1082,
202,
759,
791,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
509,
24518,
12,
474,
1959,
13,
288,
759,
46,
7397,
6696,
18,
91,
86,
2668,
1093,
1769,
202,
202,
474,
963,
273,
16717,
18,
13623,
3545,
12,
8559,
1769,
1082,
202,
759,
791,
... | ||
if (jj_scan_token(NOT_BOOL)) return true; | if (jj_scan_token(NAME)) return true; | final private boolean jj_3R_76() { if (jj_scan_token(NOT_BOOL)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | 6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/2b47cff319e0a469e540c356f904a833b9b33cd7/PythonGrammar.java/clean/org/python/parser/PythonGrammar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
6669,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
1985,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
6669,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
1985,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10... |
settingPage = new WizardReportSettingPage( null ); settingPage.setTitle( Messages.getFormattedString( "SaveReportAsWizard.SettingPage.title", new Object[]{ Messages.getString( "NewReportWizard.wizardPageTitle.report" )} ) ); settingPage.setMessage( Messages.getString( "SaveReportAsWizard.SettingPage.message" ) ); addPage( settingPage ); | public void addPages( ) { newReportFileWizardPage = new WizardNewReportCreationPage( WIZARDPAGE ); addPage( newReportFileWizardPage ); templateChoicePage = new WizardTemplateChoicePage( TEMPLATECHOICEPAGE ); addPage( templateChoicePage ); // set titles newReportFileWizardPage.setTitle( REPORT ); newReportFileWizardPage.setDescription( CREATE_A_NEW_REPORT ); templateChoicePage.setTitle( REPORT ); templateChoicePage.setDescription( SELECT_A_REPORT_TEMPLATE ); settingPage = new WizardReportSettingPage( null ); settingPage.setTitle( Messages.getFormattedString( "SaveReportAsWizard.SettingPage.title",//$NON-NLS-1$ new Object[]{ Messages.getString( "NewReportWizard.wizardPageTitle.report" )} ) );//$NON-NLS-1$ settingPage.setMessage( Messages.getString( "SaveReportAsWizard.SettingPage.message" ) ); //$NON-NLS-1$ addPage( settingPage ); // initialize new report file page. newReportFileWizardPage.setInitialFileName( getNewFileFullName( NEW_REPORT_FILE_NAME_PREFIX ) ); newReportFileWizardPage.setInitialFileLocation( getDefaultLocation( ) ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/8bc01c04373fc7657a996518fd7e9d2c949341dc/NewReportWizard.java/buggy/UI/org.eclipse.birt.report.designer.ui.rcp/src/org/eclipse/birt/report/designer/ui/internal/rcp/wizards/NewReportWizard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
5716,
12,
262,
202,
95,
202,
202,
2704,
4820,
812,
27130,
1964,
273,
394,
678,
13412,
1908,
4820,
9906,
1964,
12,
678,
6867,
8085,
11219,
11272,
202,
202,
1289,
1964,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
5716,
12,
262,
202,
95,
202,
202,
2704,
4820,
812,
27130,
1964,
273,
394,
678,
13412,
1908,
4820,
9906,
1964,
12,
678,
6867,
8085,
11219,
11272,
202,
202,
1289,
1964,
... | |
StringBuffer sb = new StringBuffer(); sb.append(method); sb.append(' '); | StringBuffer sb = new StringBuffer(); sb.append(method); sb.append(' '); | private void sendHeader(String method, String path, Map header, InputStream requestBody) throws IOException { StringBuffer sb = new StringBuffer(); sb.append(method); sb.append(' '); sb.append(path); sb.append(' '); sb.append("HTTP/1.1"); sb.append(HttpConnection.CRLF); sb.append("Host: "); sb.append(mySVNRepositoryLocation.getHost()); sb.append(":"); sb.append(mySVNRepositoryLocation.getPort()); sb.append(HttpConnection.CRLF); sb.append("User-Agent: JavaSVN 1.0.0"); sb.append(HttpConnection.CRLF); sb.append("Keep-Alive:"); sb.append(HttpConnection.CRLF); sb.append("Connection: TE, Keep-Alive"); sb.append(HttpConnection.CRLF); sb.append("TE: trailers"); sb.append(HttpConnection.CRLF); boolean chunked = false; if (requestBody instanceof ByteArrayInputStream) { sb.append("Content-Length: "); sb.append(((ByteArrayInputStream) requestBody).available()); } else if (requestBody != null) { sb.append("Transfer-Encoding: chunked"); chunked = true; } else { sb.append("Content-Lenght: 0"); } sb.append(HttpConnection.CRLF); sb.append("Accept-Encoding: gzip"); sb.append(HttpConnection.CRLF); if (header != null) { if (!header.containsKey("Content-Type")) { sb.append("Content-Type: text/xml; charset=\"utf-8\""); sb.append(HttpConnection.CRLF); } for(Iterator keys = header.keySet().iterator(); keys.hasNext();) { Object key = keys.next(); sb.append(key.toString()); sb.append(": "); sb.append(header.get(key).toString()); sb.append(HttpConnection.CRLF); } } getOutputStream().write(sb.toString().getBytes()); getOutputStream().write(HttpConnection.CRLF_BYTES); if (requestBody != null) { byte[] buffer = new byte[2048]; while(true) { int read = requestBody.read(buffer); if (chunked) { if (read > 0) { getOutputStream().write(Integer.toHexString(read).getBytes()); getOutputStream().write(HttpConnection.CRLF_BYTES); getOutputStream().write(buffer, 0, read); getOutputStream().write(HttpConnection.CRLF_BYTES); } else { getOutputStream().write('0'); getOutputStream().write(HttpConnection.CRLF_BYTES); getOutputStream().write(HttpConnection.CRLF_BYTES); break; } } else { if (read > 0) { getOutputStream().write(buffer, 0, read); } else { break; } } } } getOutputStream().flush(); } | 5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/914a44a66c3f7b5fd84b42c4bcea84b237f62804/HttpConnection.java/buggy/javasvn/src/org/tmatesoft/svn/core/internal/io/dav/HttpConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1366,
1864,
12,
780,
707,
16,
514,
589,
16,
1635,
1446,
16,
5037,
20740,
13,
1216,
1860,
288,
202,
202,
780,
1892,
2393,
273,
394,
6674,
5621,
540,
202,
202,
18366,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1366,
1864,
12,
780,
707,
16,
514,
589,
16,
1635,
1446,
16,
5037,
20740,
13,
1216,
1860,
288,
202,
202,
780,
1892,
2393,
273,
394,
6674,
5621,
540,
202,
202,
18366,
18,
... |
if (checkSelf) check(n++ < occupiedCount); | if (checkSelf) { if (n >= occupiedCount) Context.codeBug(); ++n; } | private int ensureIndex(int key, boolean intType) { int index = -1; int firstDeleted = -1; int[] keys = this.keys; if (keys != null) { int fraction = key * A; index = fraction >>> (32 - power); int entry = keys[index]; if (entry == key) { return index; } if (entry != EMPTY) { if (entry == DELETED) { firstDeleted = index; } // Search in table after first failed attempt int mask = (1 << power) - 1; int step = tableLookupStep(fraction, mask, power); int n = 0; do { if (checkSelf) check(n++ < occupiedCount); index = (index + step) & mask; entry = keys[index]; if (entry == key) { return index; } if (entry == DELETED && firstDeleted < 0) { firstDeleted = index; } } while (entry != EMPTY); } } // Inserting of new key if (checkSelf) check(keys == null || keys[index] == EMPTY); if (firstDeleted >= 0) { index = firstDeleted; } else { // Need to consume empty entry: check occupation level if (keys == null || occupiedCount * 4 >= (1 << power) * 3) { // Too litle unused entries: rehash rehashTable(intType); keys = this.keys; index = getFreeIndex(key); } ++occupiedCount; } keys[index] = key; ++keyCount; return index; } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/b5141d614d4ae3c0a7455df83312be1a30e1b2e6/UintMap.java/buggy/js/rhino/src/org/mozilla/javascript/UintMap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
3387,
1016,
12,
474,
498,
16,
1250,
509,
559,
13,
288,
3639,
509,
770,
273,
300,
21,
31,
3639,
509,
1122,
7977,
273,
300,
21,
31,
3639,
509,
8526,
1311,
273,
333,
18,
2452,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
3387,
1016,
12,
474,
498,
16,
1250,
509,
559,
13,
288,
3639,
509,
770,
273,
300,
21,
31,
3639,
509,
1122,
7977,
273,
300,
21,
31,
3639,
509,
8526,
1311,
273,
333,
18,
2452,... |
private static byte longSub(OPT_Instruction s) { | private static DefUseEffect longSub(OPT_Instruction s) { | private static byte longSub(OPT_Instruction s) { if (CF_LONG) { OPT_Operand op1 = Binary.getVal1(s); OPT_Operand op2 = Binary.getVal2(s); if (op1.similar(op2)) { // THE SAME OPERAND: x - x == 0 Move.mutate(s, LONG_MOVE, Binary.getClearResult(s), LC(0)); return MOVE_FOLDED; } if (op2.isLongConstant()) { long val2 = op2.asLongConstant().value; if (op1.isLongConstant()) { // BOTH CONSTANTS: FOLD long val1 = op1.asLongConstant().value; Move.mutate(s, LONG_MOVE, Binary.getClearResult(s), LC(val1-val2)); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2 == 0L) { // x - 0 == x Move.mutate(s, LONG_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } //-#if RVM_FOR_64_ADDR // x - c = x + -c // prefer adds, since some architectures have addi but not subi Binary.mutate(s, LONG_ADD, Binary.getClearResult(s), Binary.getClearVal1(s), LC(-val2)); return REDUCED; //-#endif } } } return UNCHANGED; } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/4f52a59569c48e68010a63e605ee6691083a9e97/OPT_Simplifier.java/buggy/rvm/src/com/ibm/jikesrvm/opt/OPT_Simplifier.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
10922,
3727,
12477,
1525,
1676,
12,
15620,
67,
11983,
272,
13,
288,
282,
309,
261,
8955,
67,
14639,
13,
288,
1377,
16456,
67,
10265,
1061,
21,
273,
7896,
18,
588,
3053,
21,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
10922,
3727,
12477,
1525,
1676,
12,
15620,
67,
11983,
272,
13,
288,
282,
309,
261,
8955,
67,
14639,
13,
288,
1377,
16456,
67,
10265,
1061,
21,
273,
7896,
18,
588,
3053,
21,
1... |
private void digitsToWords(String tokenVal) { FeatureSet featureSet = tokenItem.getFeatures(); String nsw = ""; if (featureSet.isPresent("nsw")) { nsw = featureSet.getString("nsw"); } | private void digitsToWords(WordRelation wordRelation, Item tokenItem, String tokenVal) { FeatureSet featureSet = tokenItem.getFeatures(); String nsw = ""; if (featureSet.isPresent("nsw")) { nsw = featureSet.getString("nsw"); } | private void digitsToWords(String tokenVal) { FeatureSet featureSet = tokenItem.getFeatures(); String nsw = ""; if (featureSet.isPresent("nsw")) { nsw = featureSet.getString("nsw"); } if (nsw.equals("nide")) { NumberExpander.expandID(tokenVal, wordRelation); } else { String rName = featureSet.getString("name"); String digitsType = null; if (tokenVal.equals(rName)) { digitsType = (String) cart.interpret(tokenItem); } else { featureSet.setString("name", tokenVal); digitsType = (String) cart.interpret(tokenItem); featureSet.setString("name", rName); } if (digitsType.equals("ordinal")) { NumberExpander.expandOrdinal(tokenVal, wordRelation); } else if (digitsType.equals("digits")) { NumberExpander.expandDigits(tokenVal, wordRelation); } else if (digitsType.equals("year")) { NumberExpander.expandID(tokenVal, wordRelation); } else { NumberExpander.expandNumber(tokenVal, wordRelation); } } } | 24259 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24259/6a55df45b5e749262e5610405145a505d38c6c9e/TokenToWords.java/clean/java/de/dfki/lt/mary/modules/en/TokenToWords.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
6815,
774,
7363,
12,
780,
1147,
3053,
13,
288,
202,
4595,
694,
2572,
694,
273,
1147,
1180,
18,
588,
8696,
5621,
202,
780,
3153,
91,
273,
1408,
31,
202,
430,
261,
7238,
694,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
6815,
774,
7363,
12,
780,
1147,
3053,
13,
288,
202,
4595,
694,
2572,
694,
273,
1147,
1180,
18,
588,
8696,
5621,
202,
780,
3153,
91,
273,
1408,
31,
202,
430,
261,
7238,
694,
... |
Object3D getObject3D( ); | Object3D getObject3D( ) throws ChartException; | Object3D getObject3D( ); | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/7528b8374a8a882b170637bd8125a5549482d50f/I3DRenderEvent.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/event/I3DRenderEvent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
921,
23,
40,
6455,
23,
40,
12,
11272,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
921,
23,
40,
6455,
23,
40,
12,
11272,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
IWorkbenchRegistryConstants.ATT_EDITOR_CONTRIBUTOR); | IWorkbenchRegistryConstants.ATT_CONTRIBUTOR_CLASS); | public IEditorActionBarContributor createActionBarContributor() { // Handle case for predefined editor descriptors, like the // one for IEditorRegistry.SYSTEM_INPLACE_EDITOR_ID, which // don't have a configuration element. if (configurationElement == null) { return null; } // Get the contributor class name. String className = configurationElement .getAttribute(IWorkbenchRegistryConstants.ATT_EDITOR_CONTRIBUTOR); if (className == null) return null; // Create the contributor object. IEditorActionBarContributor contributor = null; try { contributor = (IEditorActionBarContributor) WorkbenchPlugin .createExtension(configurationElement, IWorkbenchRegistryConstants.ATT_EDITOR_CONTRIBUTOR); } catch (CoreException e) { WorkbenchPlugin.log("Unable to create editor contributor: " + //$NON-NLS-1$ id, e.getStatus()); } return contributor; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/f0d42a35a7c21208c172c18a627fd37f978ee900/EditorDescriptor.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/EditorDescriptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
6946,
1803,
5190,
442,
19293,
752,
1803,
5190,
442,
19293,
1435,
288,
3639,
368,
5004,
648,
364,
19555,
4858,
14215,
16,
3007,
326,
3639,
368,
1245,
364,
467,
6946,
4243,
18,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
6946,
1803,
5190,
442,
19293,
752,
1803,
5190,
442,
19293,
1435,
288,
3639,
368,
5004,
648,
364,
19555,
4858,
14215,
16,
3007,
326,
3639,
368,
1245,
364,
467,
6946,
4243,
18,
1... |
public org.quickfix.field.TradingSessionID get(org.quickfix.field.TradingSessionID value) | public quickfix.field.TradingSessionID get(quickfix.field.TradingSessionID value) | public org.quickfix.field.TradingSessionID get(org.quickfix.field.TradingSessionID value) throws FieldNotFound { getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderMultileg.java/buggy/src/java/src/quickfix/fix43/NewOrderMultileg.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9549,
904,
18,
1518,
18,
1609,
7459,
2157,
734,
336,
12,
19525,
904,
18,
1518,
18,
1609,
7459,
2157,
734,
225,
460,
13,
565,
1216,
2286,
2768,
225,
288,
5031,
12,
1132,
1769,
327,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9549,
904,
18,
1518,
18,
1609,
7459,
2157,
734,
336,
12,
19525,
904,
18,
1518,
18,
1609,
7459,
2157,
734,
225,
460,
13,
565,
1216,
2286,
2768,
225,
288,
5031,
12,
1132,
1769,
327,... |
bits[0] = 1<<Log2P; mhi = new BigInteger(bits); | mhi = BigInteger.valueOf(1<<Log2P); | public static String JS_dtobasestr(int base, double d) { char[] buffer; /* The output string */ int p; /* index to current position in the buffer */ int pInt; /* index to the beginning of the integer part of the string */ int q; int digit; double di; /* d truncated to an integer */ double df; /* The fractional part of d */// JS_ASSERT(base >= 2 && base <= 36); buffer = new char[DTOBASESTR_BUFFER_SIZE]; p = 0; if (d < 0.0) { buffer[p++] = '-'; d = -d; } /* Check for Infinity and NaN */ if (Double.isNaN(d)) return "NaN"; else if (Double.isInfinite(d)) return "Infinity"; /* Output the integer part of d with the digits in reverse order. */ pInt = p; di = (int)d; BigInteger b = new BigInteger(byteValue((long)di)); String intDigits = b.toString(base); intDigits.getChars(0, intDigits.length(), buffer, p); p += intDigits.length(); df = d - di; if (df != 0.0) { /* We have a fraction. */ byte bits[] = new byte[8]; buffer[p++] = '.'; long dBits = Double.doubleToLongBits(d); int word0 = (int)(dBits >> 32); int word1 = (int)(dBits); int e = d2b(df, bits); b = new BigInteger(bits);// JS_ASSERT(e < 0); /* At this point df = b * 2^e. e must be less than zero because 0 < df < 1. */ int s2 = -(word0 >>> Exp_shift1 & Exp_mask >> Exp_shift1); if (s2 == 0) s2 = -1; s2 += Bias + P; /* 1/2^s2 = (nextDouble(d) - d)/2 */// JS_ASSERT(-s2 < e); bits = new byte[1]; bits[0] = 1; BigInteger mlo = new BigInteger(bits); BigInteger mhi = mlo; if ((word1 == 0) && ((word0 & Bndry_mask) == 0) && ((word0 & (Exp_mask & Exp_mask << 1)) != 0)) { /* The special case. Here we want to be within a quarter of the last input significant digit instead of one half of it when the output string's value is less than d. */ s2 += Log2P; bits[0] = 1<<Log2P; mhi = new BigInteger(bits); } b = b.shiftLeft(e + s2); bits[0] = 1; BigInteger s = new BigInteger(bits); s = s.shiftLeft(s2); /* At this point we have the following: * s = 2^s2; * 1 > df = b/2^s2 > 0; * (d - prevDouble(d))/2 = mlo/2^s2; * (nextDouble(d) - d)/2 = mhi/2^s2. */ bits[0] = (byte)base; // s'ok since base < 36 BigInteger bigBase = new BigInteger(bits); System.out.println("s2 = " + s2 + ", e = " + e + ", b = " + b.toString()); System.out.println("mhi = " + mhi.toString()); System.out.println("mlo = " + mlo.toString()); boolean done = false; do { b = b.multiply(bigBase); BigInteger[] divResult = b.divideAndRemainder(s); b = divResult[1]; digit = (char)(divResult[0].intValue()); if (mlo == mhi) mlo = mhi = mlo.multiply(bigBase); else { mlo = mlo.multiply(bigBase); mhi = mhi.multiply(bigBase); } /* Do we yet have the shortest string that will round to d? */ int j = b.compareTo(mlo); /* j is b/2^s2 compared with mlo/2^s2. */ BigInteger delta = s.subtract(mhi); int j1 = (delta.signum() <= 0) ? 1 : b.compareTo(delta); /* j1 is b/2^s2 compared with 1 - mhi/2^s2. */ if (j1 == 0 && ((word1 & 1) == 0)) { if (j > 0) digit++; done = true; } else if (j < 0 || (j == 0 && ((word1 & 1) == 0))) { if (j1 > 0) { /* Either dig or dig+1 would work here as the least significant digit. Use whichever would produce an output value closer to d. */ b = b.shiftLeft(1); j1 = b.compareTo(s); if (j1 > 0) /* The even test (|| (j1 == 0 && (digit & 1))) is not here because it messes up odd base output * such as 3.5 in base 3. */ digit++; } done = true; } else if (j1 > 0) { digit++; done = true; }// JS_ASSERT(digit < (uint32)base); buffer[p++] = BASEDIGIT(digit); } while (!done); } return new String(buffer, 0, p); } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/3726b9fb19b6fab5f4203f81c219670d795ffdbd/DToA.java/buggy/js/rhino/src/org/mozilla/javascript/DToA.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
6756,
67,
72,
869,
18602,
313,
12,
474,
1026,
16,
1645,
302,
13,
565,
288,
3639,
1149,
8526,
1613,
31,
4202,
1748,
1021,
876,
533,
1195,
3639,
509,
293,
31,
9079,
1748,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
6756,
67,
72,
869,
18602,
313,
12,
474,
1026,
16,
1645,
302,
13,
565,
288,
3639,
1149,
8526,
1613,
31,
4202,
1748,
1021,
876,
533,
1195,
3639,
509,
293,
31,
9079,
1748,
... |
jCheckBoxSpellCheckActionPerformed(evt); | jButtonPrintTutorialActionPerformed(evt); | public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxSpellCheckActionPerformed(evt); } | 7731 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7731/1353d26b3e581366864bd35e0c02968df79ae56b/jFrame.java/clean/Project/jFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
7734,
525,
3616,
5108,
56,
22378,
19449,
12,
73,
11734,
1769,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
7734,
525,
3616,
5108,
56,
22378,
19449,
12,
73,
11734,
1769,
5411,
289,
2,
-100,
-100,
-100,
-100,
-... |
ICPPNamespace A = (ICPPNamespace) collector.getName(0).resolveBinding(); IVariable x1 = (IVariable) collector.getName(1).resolveBinding(); IVariable x2 = (IVariable) collector.getName(2).resolveBinding(); | ICPPNamespace A = (ICPPNamespace) collector.getName(0).resolveBinding(); IVariable x1 = (IVariable) collector.getName(1).resolveBinding(); IVariable x2 = (IVariable) collector.getName(2).resolveBinding(); | public void testExtendedNamespaces() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("namespace A { \n"); //$NON-NLS-1$ buffer.append(" int x; \n"); //$NON-NLS-1$ buffer.append("} \n"); //$NON-NLS-1$ buffer.append("int x; \n"); //$NON-NLS-1$ buffer.append("namespace A { \n"); //$NON-NLS-1$ buffer.append(" void f() { x; } \n"); //$NON-NLS-1$ buffer.append("} \n"); //$NON-NLS-1$ IASTTranslationUnit tu = parse(buffer.toString(), ParserLanguage.CPP); CPPNameCollector collector = new CPPNameCollector(); CPPVisitor.visitTranslationUnit(tu, collector); assertEquals(collector.size(), 6); ICPPNamespace A = (ICPPNamespace) collector.getName(0).resolveBinding(); IVariable x1 = (IVariable) collector.getName(1).resolveBinding(); IVariable x2 = (IVariable) collector.getName(2).resolveBinding(); assertInstances(collector, A, 2); assertInstances(collector, x1, 2); assertInstances(collector, x2, 1); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/85642473031be9bd27aacd0ceddea64e2ce41399/AST2CPPTests.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
11456,
13180,
1435,
1216,
1185,
288,
1377,
6674,
1613,
273,
394,
6674,
5621,
1377,
1613,
18,
6923,
2932,
4937,
432,
288,
8227,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
11456,
13180,
1435,
1216,
1185,
288,
1377,
6674,
1613,
273,
394,
6674,
5621,
1377,
1613,
18,
6923,
2932,
4937,
432,
288,
8227,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21... |
org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; | GridLayoutData constraintClassFigure_NameContainer0 = new GridLayoutData(); constraintClassFigure_NameContainer0.verticalAlignment = GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalAlignment = GridLayoutData.FILL; | private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutlineXOR(false); classFigure_NameContainer0.setLineWidth(1); classFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalIndent = 0; constraintClassFigure_NameContainer0.horizontalSpan = 2; constraintClassFigure_NameContainer0.verticalSpan = 1; constraintClassFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintClassFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(classFigure_NameContainer0, constraintClassFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutClassFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); classFigure_NameContainer0.setLayoutManager(layoutClassFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel classFigure_name1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); classFigure_name1.setText(""); classFigure_NameContainer0.add(classFigure_name1); setFigureClassFigure_name(classFigure_name1); org.eclipse.draw2d.RectangleFigure classFigure_Body0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_Body0.setFill(true); classFigure_Body0.setFillXOR(false); classFigure_Body0.setOutline(true); classFigure_Body0.setOutlineXOR(false); classFigure_Body0.setLineWidth(1); classFigure_Body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_Body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_Body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalIndent = 0; constraintClassFigure_Body0.horizontalSpan = 2; constraintClassFigure_Body0.verticalSpan = 1; constraintClassFigure_Body0.grabExcessHorizontalSpace = true; constraintClassFigure_Body0.grabExcessVerticalSpace = true; this.add(classFigure_Body0, constraintClassFigure_Body0); org.eclipse.draw2d.ToolbarLayout layoutClassFigure_Body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutClassFigure_Body0.setStretchMinorAxis(true); layoutClassFigure_Body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutClassFigure_Body0.setSpacing(0); layoutClassFigure_Body0.setVertical(true); classFigure_Body0.setLayoutManager(layoutClassFigure_Body0); org.eclipse.draw2d.RectangleFigure classFigure_PropertiesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_PropertiesCompartment1.setFill(true); classFigure_PropertiesCompartment1.setFillXOR(false); classFigure_PropertiesCompartment1.setOutline(true); classFigure_PropertiesCompartment1.setOutlineXOR(false); classFigure_PropertiesCompartment1.setLineWidth(1); classFigure_PropertiesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_PropertiesCompartment1); setFigureClassFigure_PropertiesCompartment(classFigure_PropertiesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OperationsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OperationsCompartment1.setFill(true); classFigure_OperationsCompartment1.setFillXOR(false); classFigure_OperationsCompartment1.setOutline(true); classFigure_OperationsCompartment1.setOutlineXOR(false); classFigure_OperationsCompartment1.setLineWidth(1); classFigure_OperationsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OperationsCompartment1); setFigureClassFigure_OperationsCompartment(classFigure_OperationsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_ClassesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_ClassesCompartment1.setFill(true); classFigure_ClassesCompartment1.setFillXOR(false); classFigure_ClassesCompartment1.setOutline(true); classFigure_ClassesCompartment1.setOutlineXOR(false); classFigure_ClassesCompartment1.setLineWidth(1); classFigure_ClassesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_ClassesCompartment1); setFigureClassFigure_ClassesCompartment(classFigure_ClassesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_LiteralsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_LiteralsCompartment1.setFill(true); classFigure_LiteralsCompartment1.setFillXOR(false); classFigure_LiteralsCompartment1.setOutline(true); classFigure_LiteralsCompartment1.setOutlineXOR(false); classFigure_LiteralsCompartment1.setLineWidth(1); classFigure_LiteralsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_LiteralsCompartment1); setFigureClassFigure_LiteralsCompartment(classFigure_LiteralsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OthersCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OthersCompartment1.setFill(true); classFigure_OthersCompartment1.setFillXOR(false); classFigure_OthersCompartment1.setOutline(true); classFigure_OthersCompartment1.setOutlineXOR(false); classFigure_OthersCompartment1.setLineWidth(1); classFigure_OthersCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OthersCompartment1); setFigureClassFigure_OthersCompartment(classFigure_OthersCompartment1); } | 56962 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56962/c8f96358e1fd7a3bf8a8fc61b57f2694f6ab2aee/EnumerationEditPart.java/buggy/plugins/org.eclipse.uml2.diagram.profile/src/org/eclipse/uml2/diagram/profile/edit/parts/EnumerationEditPart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
918,
752,
6323,
1435,
288,
1082,
202,
3341,
18,
20416,
18,
9446,
22,
72,
18,
19463,
42,
15906,
667,
42,
15906,
67,
461,
2170,
20,
273,
394,
2358,
18,
20416,
18,
9446,
22,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
918,
752,
6323,
1435,
288,
1082,
202,
3341,
18,
20416,
18,
9446,
22,
72,
18,
19463,
42,
15906,
667,
42,
15906,
67,
461,
2170,
20,
273,
394,
2358,
18,
20416,
18,
9446,
22,
... |
root.contentInserted(gapStartsAt.offset,offset,gapWidth); | { System.err.println("case 1"); root.contentInserted(gapStartsAt.getOffset(), offset - 1,gapWidth); } | public synchronized void contentInserted(int offset, int length) { if(root == null) { gapWidth = 0; return; } PosBottomHalf lowest = root.findLowest(offset); if(lowest == null) return; if(gapStartsAt != null) { if(gapStartsAt.offset < offset) root.contentInserted(gapStartsAt.offset,offset,gapWidth); else root.contentInserted(offset,gapStartsAt.offset,-gapWidth); } //offset==some pos offset XXX gapStartsAt = lowest; gapWidth += length; } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/00309a759b38d6d1ce750247db769733650e65a0/PositionManager.java/buggy/org/gjt/sp/jedit/buffer/PositionManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
913,
27329,
12,
474,
1384,
16,
509,
769,
13,
202,
95,
202,
202,
430,
12,
3085,
422,
446,
13,
202,
202,
95,
1082,
202,
14048,
2384,
273,
374,
31,
1082,
202,
2463,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
913,
27329,
12,
474,
1384,
16,
509,
769,
13,
202,
95,
202,
202,
430,
12,
3085,
422,
446,
13,
202,
202,
95,
1082,
202,
14048,
2384,
273,
374,
31,
1082,
202,
2463,
... |
public void addProblemFromCompiler(final CompilerMessage message) { if (message.getCategory() != CompilerMessageCategory.ERROR) return; VirtualFile virtualFile = message.getVirtualFile(); if (virtualFile == null) { Navigatable navigatable = message.getNavigatable(); if (navigatable instanceof OpenFileDescriptor) { virtualFile = ((OpenFileDescriptor)navigatable).getFile(); } } LOG.assertTrue(virtualFile != null); HighlightInfo info = HighlightInfo.createHighlightInfo(convertToHighlightInfoType(message), getTextRange(message), message.getMessage()); addProblem(new Problem(virtualFile, info)); } | public abstract void addProblemFromCompiler(CompilerMessage message); | public void addProblemFromCompiler(final CompilerMessage message) { if (message.getCategory() != CompilerMessageCategory.ERROR) return; VirtualFile virtualFile = message.getVirtualFile(); if (virtualFile == null) { Navigatable navigatable = message.getNavigatable(); if (navigatable instanceof OpenFileDescriptor) { virtualFile = ((OpenFileDescriptor)navigatable).getFile(); } } LOG.assertTrue(virtualFile != null); HighlightInfo info = HighlightInfo.createHighlightInfo(convertToHighlightInfoType(message), getTextRange(message), message.getMessage()); addProblem(new Problem(virtualFile, info)); } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/a9205261d3fdc2214ef45405981419614ce5a20c/WolfTheProblemSolver.java/buggy/source/com/intellij/codeInsight/problems/WolfTheProblemSolver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
527,
13719,
1265,
9213,
12,
6385,
12972,
1079,
883,
13,
288,
565,
309,
261,
2150,
18,
588,
4457,
1435,
480,
12972,
1079,
4457,
18,
3589,
13,
327,
31,
565,
7269,
812,
5024,
81... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
527,
13719,
1265,
9213,
12,
6385,
12972,
1079,
883,
13,
288,
565,
309,
261,
2150,
18,
588,
4457,
1435,
480,
12972,
1079,
4457,
18,
3589,
13,
327,
31,
565,
7269,
812,
5024,
81... |
if (!varyZ && !varyC && !varyT) { dimensions[0] = dims[0][0]; dimensions[1] = dims[0][1]; dimensions[2] = dims[0][2]; String o = getDimensionOrder(id); if (o.endsWith("Z")) dimensions[0] *= files.length; else if (o.endsWith("C")) dimensions[1] *= files.length; else dimensions[2] *= files.length; } else { | if (varyZ || varyC || varyT) { | protected void initFile(String id) throws FormatException, IOException { currentId = id; numImages = 0; dimensions = new int[3]; // get the matching files FilePattern fp = new FilePattern(new File(id)); files = fp.getFiles(); imageCounts = new int[files.length]; // determine the total number of images and build a list of dimensions // for each file int[][] dims = new int[files.length][3]; for (int i=0; i<files.length; i++) { imageCounts[i] = reader.getImageCount(files[i]); numImages += imageCounts[i]; dims[i][0] = reader.getSizeZ(files[i]); dims[i][1] = reader.getSizeC(files[i]); dims[i][2] = reader.getSizeT(files[i]); } // determine how many varying dimensions there are boolean varyZ = false; boolean varyC = false; boolean varyT = false; for (int i=1; i<dims.length; i++) { varyZ = dims[i][0] != dims[i-1][0]; varyC = dims[i][1] != dims[i-1][1]; varyT = dims[i][2] != dims[i-1][2]; } if (!varyZ && !varyC && !varyT) { dimensions[0] = dims[0][0]; dimensions[1] = dims[0][1]; dimensions[2] = dims[0][2]; String o = getDimensionOrder(id); if (o.endsWith("Z")) dimensions[0] *= files.length; else if (o.endsWith("C")) dimensions[1] *= files.length; else dimensions[2] *= files.length; } else { for (int j=0; j<3; j++) { int max = 0; int maxIndex = 0; for (int i=0; i<dims.length; i++) { if (dims[i][j] > max) { max = dims[i][j]; maxIndex = i; } } dimensions[j] = dims[maxIndex][j]; } } } | 49800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49800/2df09d33bfdc966378aae0cc09cb503afb983bc2/FileStitcher.java/clean/loci/formats/FileStitcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
783,
548,
273,
612,
31,
565,
818,
8946,
273,
374,
31,
565,
5769,
273,
394,
509,
63,
23,
15533,
565,
368,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
783,
548,
273,
612,
31,
565,
818,
8946,
273,
374,
31,
565,
5769,
273,
394,
509,
63,
23,
15533,
565,
368,
... |
if ( epart instanceof GraphicalEditorWithFlyoutPalette ) { GraphicalViewer viewer = ( (GraphicalEditorWithFlyoutPalette) epart ).getGraphicalViewer( ); Object cpart = viewer.getEditPartRegistry( ) .get( element ); | if ( epart instanceof GraphicalEditorWithFlyoutPalette ) { GraphicalViewer viewer = ( (GraphicalEditorWithFlyoutPalette) epart ).getGraphicalViewer( ); Object cpart = viewer.getEditPartRegistry( ) .get( element ); | protected void selectElement( final Object element, final boolean edit ) { Display.getCurrent( ).asyncExec( new Runnable( ) { public void run( ) { if ( element instanceof ReportItemHandle ) { IWorkbenchPart part = PlatformUI.getWorkbench( ) .getActiveWorkbenchWindow( ) .getPartService( ) .getActivePart( ); if ( part instanceof AbstractMultiPageEditor ) { IEditorPart epart = ( (AbstractMultiPageEditor) part ).getActivePageInstance( ); if ( epart instanceof GraphicalEditorWithFlyoutPalette ) { GraphicalViewer viewer = ( (GraphicalEditorWithFlyoutPalette) epart ).getGraphicalViewer( ); Object cpart = viewer.getEditPartRegistry( ) .get( element ); if ( cpart instanceof EditPart ) { viewer.flush( ); viewer.select( (EditPart) cpart ); } if ( edit && cpart instanceof LabelEditPart ) { ( (LabelEditPart) cpart ).performDirectEdit( ); } } } else if ( part instanceof IReportEditor ) { IEditorPart activeEditor = ( (IReportEditor) part ).getEditorPart( ); if ( activeEditor instanceof AbstractMultiPageEditor ) { IEditorPart epart = ( (AbstractMultiPageEditor) activeEditor ).getActivePageInstance( ); if ( epart instanceof GraphicalEditorWithFlyoutPalette ) { GraphicalViewer viewer = ( (GraphicalEditorWithFlyoutPalette) epart ).getGraphicalViewer( ); Object cpart = viewer.getEditPartRegistry( ) .get( element ); if ( cpart instanceof EditPart ) { viewer.flush( ); viewer.select( (EditPart) cpart ); } if ( edit && cpart instanceof LabelEditPart ) { ( (LabelEditPart) cpart ).performDirectEdit( ); } else if ( edit && cpart instanceof ImageEditPart ) { ( (ImageEditPart) cpart ).performDirectEdit( ); } else if ( edit && cpart instanceof ExtendedEditPart ) { ( (ExtendedEditPart) cpart ).performDirectEdit( ); } } } } } } } ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/ffe5e5bd717529e29e3d2ee2f0a1a1f10e321ec9/BaseInsertMenuAction.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/actions/BaseInsertMenuAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
2027,
1046,
12,
727,
1033,
930,
16,
727,
1250,
3874,
262,
202,
95,
202,
202,
4236,
18,
588,
3935,
12,
262,
18,
3810,
1905,
12,
394,
10254,
12,
262,
288,
1082,
202,
482... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
2027,
1046,
12,
727,
1033,
930,
16,
727,
1250,
3874,
262,
202,
95,
202,
202,
4236,
18,
588,
3935,
12,
262,
18,
3810,
1905,
12,
394,
10254,
12,
262,
288,
1082,
202,
482... |
String s = NLS.bind(WorkbenchMessages.HeapStatus_status, convertToMeg(usedMem), convertToMeg(totalMem)); | String s = NLS.bind(WorkbenchMessages.HeapStatus_status, convertToMegString(usedMem), convertToMegString(totalMem)); | private void paintCompositeMaxUnknown(GC gc) { Rectangle rect = getClientArea(); int x = rect.x; int y = rect.y; int w = rect.width; int h = rect.height; int bw = imgBounds.width; // button width int dx = x + w - bw - 2; // divider x int sw = w - bw - 3; // status width int uw = (int) (sw * usedMem / totalMem); // used mem width int ux = x + 1 + uw; // used mem right edge gc.setBackground(bgCol); gc.fillRectangle(rect); gc.setForeground(sepCol); gc.drawLine(dx, y, dx, y + h); gc.drawLine(ux, y, ux, y + h); gc.setForeground(topLeftCol); gc.drawLine(x, y, x+w, y); gc.drawLine(x, y, x, y+h); gc.setForeground(bottomRightCol); gc.drawLine(x+w-1, y, x+w-1, y+h); gc.drawLine(x, y+h-1, x+w, y+h-1); gc.setBackground(usedMemCol); gc.fillRectangle(x + 1, y + 1, uw, h - 2); String s = NLS.bind(WorkbenchMessages.HeapStatus_status, convertToMeg(usedMem), convertToMeg(totalMem)); Point p = gc.textExtent(s); int sx = (rect.width - 15 - p.x) / 2 + rect.x + 1; int sy = (rect.height - 2 - p.y) / 2 + rect.y + 1; gc.setForeground(textCol); gc.drawString(s, sx, sy, true); // draw an I-shaped bar in the foreground colour for the mark (if present) if (mark != -1) { int ssx = (int) (sw * mark / totalMem) + x + 1; paintMark(gc, ssx, y, h); } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/ce8bb11ed3d67c9d42bfb1ab1c77965cbc58e7d3/HeapStatus.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/HeapStatus.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
12574,
9400,
2747,
4874,
12,
15396,
8859,
13,
288,
3639,
13264,
4917,
273,
7635,
5484,
5621,
3639,
509,
619,
273,
4917,
18,
92,
31,
3639,
509,
677,
273,
4917,
18,
93,
31,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
12574,
9400,
2747,
4874,
12,
15396,
8859,
13,
288,
3639,
13264,
4917,
273,
7635,
5484,
5621,
3639,
509,
619,
273,
4917,
18,
92,
31,
3639,
509,
677,
273,
4917,
18,
93,
31,
363... |
mSize = e.getAttributeLong(MailService.A_SIZE); | mSize = e.getAttributeLong(MailService.A_SIZE, 0); | ZSoapMimePart(Element e) throws ServiceException { mPartName = e.getAttribute(MailService.A_PART); mName = e.getAttribute(MailService.A_NAME, null); mContentType = e.getAttribute(MailService.A_CONTENT_TYPE, null); mContentDisposition = e.getAttribute(MailService.A_CONTENT_DISPOSTION, null); mFileName = e.getAttribute(MailService.A_CONTENT_FILENAME, null); mContentId = e.getAttribute(MailService.A_CONTENT_ID, null); mContentDescription = e.getAttribute(MailService.A_CONTENT_DESCRIPTION, null); mContentLocation = e.getAttribute(MailService.A_CONTENT_LOCATION, null); mIsBody = e.getAttributeBool(MailService.A_BODY, false); mSize = e.getAttributeLong(MailService.A_SIZE); Element content = e.getOptionalElement(MailService.E_CONTENT); if (content != null) { mContent = content.getText(); } mChildren = new ArrayList<ZMimePart>(); for (Element mpEl: e.listElements(MailService.E_MIMEPART)) { mChildren.add(new ZSoapMimePart(mpEl)); } } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/ab7a9c53295de819dbc893a4c006f7cef2f887c4/ZSoapMessage.java/clean/ZimbraServer/src/java/com/zimbra/cs/zclient/soap/ZSoapMessage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
2285,
20601,
13320,
1988,
12,
1046,
425,
13,
1216,
16489,
288,
5411,
312,
1988,
461,
273,
425,
18,
588,
1499,
12,
6759,
1179,
18,
37,
67,
15055,
1769,
5411,
312,
461,
273,
425,
18,
588,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
2285,
20601,
13320,
1988,
12,
1046,
425,
13,
1216,
16489,
288,
5411,
312,
1988,
461,
273,
425,
18,
588,
1499,
12,
6759,
1179,
18,
37,
67,
15055,
1769,
5411,
312,
461,
273,
425,
18,
588,... |
relayout (); | void setFontDescription (int /*long*/ font) { super.setFontDescription (font); ExpandItem [] items = getItems (); for (int i = 0; i < items.length; i++) { items[i].setFontDescription (font); } relayout ();} | 12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/25e834c280324b3e7770e2b3f82a7d7ca7a1f981/ExpandBar.java/buggy/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
20454,
3291,
261,
474,
1748,
5748,
5549,
3512,
13,
288,
202,
9565,
18,
542,
5711,
3291,
261,
5776,
1769,
202,
12271,
1180,
5378,
1516,
273,
15515,
261,
1769,
202,
1884,
261,
474,
277,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
20454,
3291,
261,
474,
1748,
5748,
5549,
3512,
13,
288,
202,
9565,
18,
542,
5711,
3291,
261,
5776,
1769,
202,
12271,
1180,
5378,
1516,
273,
15515,
261,
1769,
202,
1884,
261,
474,
277,
273... | |
sb.append("\":"); | sb.append("\":{"); | public void start(String uri, String localname, String qName, Attributes attributes) throws SAXException { final ContentHandler contentHandler = handlerContext.getController().getOutput(); // Open head element contentHandler.startElement(uri, localname, qName, attributes); final ContentHandlerHelper helper = new ContentHandlerHelper(contentHandler); final String prefix = XMLUtils.prefixFromQName(qName); // current prefix for XHTML // Gather information about controls appearances final Map appearancesMap = new HashMap(); { final XFormsControls xformsControls = containingDocument.getXFormsControls(); xformsControls.getCurrentControlsState().visitControlsFollowRepeats(pipelineContext, xformsControls, new XFormsControls.XFormsControlVisitorListener() { public void startVisitControl(XFormsControl xformsControl) { final String controlName = xformsControl.getName(); final boolean hasJavaScriptInitialization = xformsControl.hasJavaScriptInitialization(); if (hasJavaScriptInitialization) { Map listForControlNameMap = (Map) appearancesMap.get(controlName); if (listForControlNameMap == null) { listForControlNameMap = new HashMap(); appearancesMap.put(xformsControl.getName(), listForControlNameMap); } final String controlAppearanceOrMediatype; { final String controlAppearance = xformsControl.getAppearance(); controlAppearanceOrMediatype = (controlAppearance != null) ? controlAppearance : xformsControl.getMediatype(); } List idsForAppearanceOrMediatypeList = (List) listForControlNameMap.get(controlAppearanceOrMediatype); if (idsForAppearanceOrMediatypeList == null) { idsForAppearanceOrMediatypeList = new ArrayList(); listForControlNameMap.put(controlAppearanceOrMediatype, idsForAppearanceOrMediatypeList); } idsForAppearanceOrMediatypeList.add(xformsControl.getEffectiveId()); } } public void endVisitControl(XFormsControl xformsControl) {} }); } // Stylesheets for (int i = 0; i < stylesheets.length; i++) { final ResourceConfig resourceConfig = stylesheets[i]; if (resourceConfig.isInUse(appearancesMap)) { // Only include stylesheet if needed helper.element(prefix, XMLConstants.XHTML_NAMESPACE_URI, "link", new String[] { "rel", "stylesheet", "href", resourceConfig.getResource(), "type", "text/css"}); } } // Scripts if (!containingDocument.isReadonly()) { for (int i = 0; i < scripts.length; i++) { final ResourceConfig resourceConfig = scripts[i]; if (resourceConfig.isInUse(appearancesMap)) { // Only include script if needed helper.element(prefix, XMLConstants.XHTML_NAMESPACE_URI, "script", new String[] { "type", "text/javascript", "src", resourceConfig.getResource()}); } } // User-defined scripts (with xxforms:script) final Map scripts = containingDocument.getScripts(); final String focusElementId = containingDocument.getClientFocusEffectiveControlId(pipelineContext); if (scripts != null || focusElementId != null) { helper.startElement(prefix, XMLConstants.XHTML_NAMESPACE_URI, "script", new String[] { "type", "text/javascript"}); if (scripts != null) { for (Iterator i = scripts.entrySet().iterator(); i.hasNext();) { final Map.Entry currentEntry = (Map.Entry) i.next(); helper.text("\nfunction " + XFormsUtils.scriptIdToScriptName(currentEntry.getKey().toString()) + "(event) {\n"); helper.text(currentEntry.getValue().toString()); helper.text("}\n"); } } if (focusElementId != null) { helper.text("\nfunction xformsPageLoadedServer() { ORBEON.xforms.Controls.setFocus(\"" + focusElementId + "\") }\n"); } helper.endElement(); } } // Store information about "special" controls that need JavaScript initialization { final String serverBase = externalContext.getResponse().rewriteResourceURL("/", true); // TODO: store server base // Produce JSON output if (appearancesMap.size() > 0) { final StringBuffer sb = new StringBuffer("var opsXFormsControls = {\"controls\":{"); for (Iterator i = appearancesMap.entrySet().iterator(); i.hasNext();) { final Map.Entry currentEntry1 = (Map.Entry) i.next(); final String controlName = (String) currentEntry1.getKey(); final Map controlMap = (Map) currentEntry1.getValue(); sb.append("\""); sb.append(controlName); sb.append("\":"); for (Iterator j = controlMap.entrySet().iterator(); j.hasNext();) { final Map.Entry currentEntry2 = (Map.Entry) j.next(); final String controlAppearance = (String) currentEntry2.getKey(); final List idsForAppearanceList = (List) currentEntry2.getValue(); sb.append("{\""); sb.append(controlAppearance != null ? controlAppearance : ""); sb.append("\":["); for (Iterator k = idsForAppearanceList.iterator(); k.hasNext();) { final String controlId = (String) k.next(); sb.append('"'); sb.append(controlId); sb.append('"'); if (k.hasNext()) sb.append(','); } sb.append("]}"); if (j.hasNext()) sb.append(','); } sb.append(""); if (i.hasNext()) sb.append(','); } sb.append("}};"); helper.startElement(prefix, XMLConstants.XHTML_NAMESPACE_URI, "script", new String[] { "type", "text/javascript"}); helper.text(sb.toString()); helper.endElement(); } } } | 10097 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10097/b79e1f1bbb4e22120b175539667bdbc3eac21601/XHTMLHeadHandler.java/buggy/src/java/org/orbeon/oxf/xforms/processor/handlers/XHTMLHeadHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
12,
780,
2003,
16,
514,
1191,
529,
16,
514,
22914,
16,
9055,
1677,
13,
1216,
14366,
288,
3639,
727,
3697,
1503,
913,
1503,
273,
1838,
1042,
18,
588,
2933,
7675,
588,
144... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
12,
780,
2003,
16,
514,
1191,
529,
16,
514,
22914,
16,
9055,
1677,
13,
1216,
14366,
288,
3639,
727,
3697,
1503,
913,
1503,
273,
1838,
1042,
18,
588,
2933,
7675,
588,
144... |
System.out.println( "CTS " + | z.reportln( "CTS " + | public boolean sendEvent( int event, boolean state ) { if (debug_events) System.out.print(System.currentTimeMillis() + ": " + "RXTXPort:sendEvent("); /* Let the native side know its time to die */ if ( fd == 0 || SPEventListener == null || monThread == null) { return(true); } switch( event ) { case SerialPortEvent.DATA_AVAILABLE: if( debug_events ) System.out.println( "DATA_AVAILABLE " + monThread.Data + ")" ); break; case SerialPortEvent.OUTPUT_BUFFER_EMPTY: if( debug_events ) System.out.println( "OUTPUT_BUFFER_EMPTY " + monThread.Output + ")" ); break; case SerialPortEvent.CTS: if( debug_events ) System.out.println( "CTS " + monThread.CTS + ")" ); break; case SerialPortEvent.DSR: if( debug_events ) System.out.println( "DSR " + monThread.Output + ")" ); break; case SerialPortEvent.RI: if( debug_events ) System.out.println( "RI " + monThread.RI + ")" ); break; case SerialPortEvent.CD: if( debug_events ) System.out.println( "CD " + monThread.CD + ")" ); break; case SerialPortEvent.OE: if( debug_events ) System.out.println( "OE " + monThread.OE + ")" ); break; case SerialPortEvent.PE: if( debug_events ) System.out.println( "PE " + monThread.PE + ")" ); break; case SerialPortEvent.FE: if( debug_events ) System.out.println( "FE " + monThread.FE + ")" ); break; case SerialPortEvent.BI: if( debug_events ) System.out.println( "BI " + monThread.BI + ")" ); break; default: if( debug_events ) System.out.println( "XXXXXXXXXXXXXX " + event + ")" ); break; } if( debug_events && debug_verbose ) System.out.println(System.currentTimeMillis() + ": " + "checking flags " ); switch( event ) { case SerialPortEvent.DATA_AVAILABLE: if( monThread.Data ) break; return(false); case SerialPortEvent.OUTPUT_BUFFER_EMPTY: if( monThread.Output ) break; return(false); case SerialPortEvent.CTS: if( monThread.CTS ) break; return(false); case SerialPortEvent.DSR: if( monThread.DSR ) break; return(false); case SerialPortEvent.RI: if( monThread.RI ) break; return(false); case SerialPortEvent.CD: if( monThread.CD ) break; return(false); case SerialPortEvent.OE: if( monThread.OE ) break; return(false); case SerialPortEvent.PE: if( monThread.PE ) break; return(false); case SerialPortEvent.FE: if( monThread.FE ) break; return(false); case SerialPortEvent.BI: if( monThread.BI ) break; return(false); default: System.err.println(System.currentTimeMillis() + ": " + "unknown event: " + event); return(false); } if( debug_events && debug_verbose ) System.out.println(System.currentTimeMillis() + ": " + "getting event" ); SerialPortEvent e = new SerialPortEvent(this, event, !state, state ); if( debug_events && debug_verbose ) System.out.println(System.currentTimeMillis() + ": " + "sending event" ); if(monThreadisInterrupted) { if( debug_events ) System.out.println(System.currentTimeMillis() + ": " + "sendEvent return" ); return(true); } if( SPEventListener != null ) { SPEventListener.serialEvent( e ); } if( debug_events && debug_verbose ) System.out.println(System.currentTimeMillis() + ": " + "sendEvent return" ); if (fd == 0 || SPEventListener == null || monThread == null) { return(true); } else { return(false); } } | 5329 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5329/8cf734328318c2bb4179dd2a5660d4b406f4e179/RXTXPort.java/clean/src/gnu/io/RXTXPort.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1366,
1133,
12,
509,
871,
16,
1250,
919,
262,
202,
95,
202,
202,
430,
261,
4148,
67,
5989,
13,
1082,
202,
3163,
18,
659,
18,
1188,
12,
3163,
18,
2972,
28512,
1435,
397... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1366,
1133,
12,
509,
871,
16,
1250,
919,
262,
202,
95,
202,
202,
430,
261,
4148,
67,
5989,
13,
1082,
202,
3163,
18,
659,
18,
1188,
12,
3163,
18,
2972,
28512,
1435,
397... |
btParser.setSym1(Flags.NATIVE); break; } case 542: break; case 543: { | public void ruleAction(int ruleNumber) { if (bad_rule != 0) return; switch (ruleNumber) { // // Rule 1: identifier ::= IDENTIFIER // case 1: { if (prsStream.getKind(btParser.getToken(1)) != X10Parsersym.TK_IDENTIFIER) { System.out.println("Turning keyword " + prsStream.getName(btParser.getToken(1)) + " at " + prsStream.getLine(btParser.getToken(1)) + ":" + prsStream.getColumn(btParser.getToken(1)) + " into an identifier"); } break; } // // Rule 2: PrimitiveType ::= NumericType // case 2: break; // // Rule 3: PrimitiveType ::= boolean // case 3: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Boolean())); break; } // // Rule 4: NumericType ::= IntegralType // case 4: break; // // Rule 5: NumericType ::= FloatingPointType // case 5: break; // // Rule 6: IntegralType ::= byte // case 6: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 7: IntegralType ::= char // case 7: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 8: IntegralType ::= short // case 8: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 9: IntegralType ::= int // case 9: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 10: IntegralType ::= long // case 10: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 11: FloatingPointType ::= float // case 11: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 12: FloatingPointType ::= double // case 12: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 13: ReferenceType ::= ClassOrInterfaceType // case 13: break; // // Rule 14: ReferenceType ::= ArrayType // case 14: break; // // Rule 15: ClassOrInterfaceType ::= ClassType // case 15: break; // // Rule 16: ClassType ::= TypeName // case 16: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 17: InterfaceType ::= TypeName // case 17: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 18: TypeName ::= identifier // case 18: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 19: TypeName ::= TypeName DOT identifier // case 19: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 20: ClassName ::= TypeName // case 20: break; // // Rule 21: TypeVariable ::= identifier // case 21: break; // // Rule 22: ArrayType ::= Type LBRACKET RBRACKET // case 22: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(array(a, pos(), 1)); break; } // // Rule 23: TypeParameter ::= TypeVariable TypeBoundopt // case 23: bad_rule = 23; break; // // Rule 24: TypeBound ::= extends ClassOrInterfaceType AdditionalBoundListopt // case 24: bad_rule = 24; break; // // Rule 25: AdditionalBoundList ::= AdditionalBound // case 25: bad_rule = 25; break; // // Rule 26: AdditionalBoundList ::= AdditionalBoundList AdditionalBound // case 26: bad_rule = 26; break; // // Rule 27: AdditionalBound ::= AND InterfaceType // case 27: bad_rule = 27; break; // // Rule 28: TypeArguments ::= LESS ActualTypeArgumentList GREATER // case 28: bad_rule = 28; break; // // Rule 29: ActualTypeArgumentList ::= ActualTypeArgument // case 29: bad_rule = 29; break; // // Rule 30: ActualTypeArgumentList ::= ActualTypeArgumentList COMMA ActualTypeArgument // case 30: bad_rule = 30; break; // // Rule 31: Wildcard ::= QUESTION WildcardBoundsOpt // case 31: bad_rule = 31; break; // // Rule 32: WildcardBounds ::= extends ReferenceType // case 32: bad_rule = 32; break; // // Rule 33: WildcardBounds ::= super ReferenceType // case 33: bad_rule = 33; break; // // Rule 34: PackageName ::= identifier // case 34: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 35: PackageName ::= PackageName DOT identifier // case 35: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 36: ExpressionName ::= identifier // case 36: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 37: ExpressionName ::= AmbiguousName DOT identifier // case 37: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 38: MethodName ::= identifier // case 38: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 39: MethodName ::= AmbiguousName DOT identifier // case 39: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 40: PackageOrTypeName ::= identifier // case 40: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 41: PackageOrTypeName ::= PackageOrTypeName DOT identifier // case 41: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 42: AmbiguousName ::= identifier // case 42: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 43: AmbiguousName ::= AmbiguousName DOT identifier // case 43: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 44: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 44: { PackageNode a = (PackageNode) btParser.getSym(1); List b = (List) btParser.getSym(2), c = (List) btParser.getSym(3); btParser.setSym1(nf.SourceFile(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b, c)); break; } // // Rule 45: ImportDeclarations ::= ImportDeclaration // case 45: { List l = new TypedList(new LinkedList(), Import.class, false); Import a = (Import) btParser.getSym(1); l.add(a); btParser.setSym1(l); break; } // // Rule 46: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 46: { List l = (TypedList) btParser.getSym(1); Import b = (Import) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 47: TypeDeclarations ::= TypeDeclaration // case 47: { List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); TopLevelDecl a = (TopLevelDecl) btParser.getSym(1); if (a != null) l.add(a); btParser.setSym1(l); break; } // // Rule 48: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 48: { List l = (TypedList) btParser.getSym(1); TopLevelDecl b = (TopLevelDecl) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 49: PackageDeclaration ::= package PackageName SEMICOLON // case 49: {//vj assert(btParser.getSym(1) == null); // generic not yet supported Name a = (Name) btParser.getSym(2); btParser.setSym1(a.toPackage()); break; } // // Rule 50: ImportDeclaration ::= SingleTypeImportDeclaration // case 50: break; // // Rule 51: ImportDeclaration ::= TypeImportOnDemandDeclaration // case 51: break; // // Rule 52: ImportDeclaration ::= SingleStaticImportDeclaration // case 52: break; // // Rule 53: ImportDeclaration ::= StaticImportOnDemandDeclaration // case 53: break; // // Rule 54: SingleTypeImportDeclaration ::= import TypeName SEMICOLON // case 54: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.CLASS, a.toString())); break; } // // Rule 55: TypeImportOnDemandDeclaration ::= import PackageOrTypeName DOT MULTIPLY SEMICOLON // case 55: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.PACKAGE, a.toString())); break; } // // Rule 56: SingleStaticImportDeclaration ::= import static TypeName DOT identifier SEMICOLON // case 56: bad_rule = 56; break; // // Rule 57: StaticImportOnDemandDeclaration ::= import static TypeName DOT MULTIPLY SEMICOLON // case 57: bad_rule = 57; break; // // Rule 58: TypeDeclaration ::= ClassDeclaration // case 58: break; // // Rule 59: TypeDeclaration ::= InterfaceDeclaration // case 59: break; // // Rule 60: TypeDeclaration ::= SEMICOLON // case 60: { btParser.setSym1(null); break; } // // Rule 61: ClassDeclaration ::= NormalClassDeclaration // case 61: break; // // Rule 62: NormalClassDeclaration ::= ClassModifiersopt class identifier Superopt Interfacesopt ClassBody // case 62: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3));//vj assert(btParser.getSym(4) == null); TypeNode c = (TypeNode) btParser.getSym(4); List d = (List) btParser.getSym(5); ClassBody e = (ClassBody) btParser.getSym(6); if (a.isValue()) btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); else btParser.setSym1(nf.ClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 63: ClassModifiers ::= ClassModifier // case 63: break; // // Rule 64: ClassModifiers ::= ClassModifiers ClassModifier // case 64: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 65: ClassModifier ::= public // case 65: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 66: ClassModifier ::= protected // case 66: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 67: ClassModifier ::= private // case 67: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 68: ClassModifier ::= abstract // case 68: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 69: ClassModifier ::= static // case 69: { btParser.setSym1(Flags.STATIC); break; } // // Rule 70: ClassModifier ::= final // case 70: { btParser.setSym1(Flags.FINAL); break; } // // Rule 71: ClassModifier ::= strictfp // case 71: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 72: TypeParameters ::= LESS TypeParameterList GREATER // case 72: bad_rule = 72; break; // // Rule 73: TypeParameterList ::= TypeParameter // case 73: bad_rule = 73; break; // // Rule 74: TypeParameterList ::= TypeParameterList COMMA TypeParameter // case 74: bad_rule = 74; break; // // Rule 75: Super ::= extends ClassType // case 75: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 76: Interfaces ::= implements InterfaceTypeList // case 76: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 77: InterfaceTypeList ::= InterfaceType // case 77: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 78: InterfaceTypeList ::= InterfaceTypeList COMMA InterfaceType // case 78: { List l = (TypedList) btParser.getSym(1); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 79: ClassBody ::= LBRACE ClassBodyDeclarationsopt RBRACE // case 79: { btParser.setSym1(nf.ClassBody(pos(btParser.getFirstToken(), btParser.getLastToken()), (List) btParser.getSym(2))); break; } // // Rule 80: ClassBodyDeclarations ::= ClassBodyDeclaration // case 80: break; // // Rule 81: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 81: { List a = (List) btParser.getSym(1), b = (List) btParser.getSym(2); a.addAll(b); // btParser.setSym1(a); break; } // // Rule 82: ClassBodyDeclaration ::= ClassMemberDeclaration // case 82: break; // // Rule 83: ClassBodyDeclaration ::= InstanceInitializer // case 83: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.NONE, a)); btParser.setSym1(l); break; } // // Rule 84: ClassBodyDeclaration ::= StaticInitializer // case 84: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.STATIC, a)); btParser.setSym1(l); break; } // // Rule 85: ClassBodyDeclaration ::= ConstructorDeclaration // case 85: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 86: ClassMemberDeclaration ::= FieldDeclaration // case 86: break; // // Rule 87: ClassMemberDeclaration ::= MethodDeclaration // case 87: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 88: ClassMemberDeclaration ::= ClassDeclaration // case 88: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 89: ClassMemberDeclaration ::= InterfaceDeclaration // case 89: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 90: ClassMemberDeclaration ::= SEMICOLON // case 90: { List l = new TypedList(new LinkedList(), ClassMember.class, false); btParser.setSym1(l); break; } // // Rule 91: FieldDeclaration ::= FieldModifiersopt Type VariableDeclarators SEMICOLON // case 91: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(2); List c = (List) btParser.getSym(3); for (Iterator i = c.iterator(); i.hasNext();) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), a, array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 92: VariableDeclarators ::= VariableDeclarator // case 92: { List l = new TypedList(new LinkedList(), VarDeclarator.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 93: VariableDeclarators ::= VariableDeclarators COMMA VariableDeclarator // case 93: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 94: VariableDeclarator ::= VariableDeclaratorId // case 94: break; // // Rule 95: VariableDeclarator ::= VariableDeclaratorId EQUAL VariableInitializer // case 95: { VarDeclarator a = (VarDeclarator) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); a.init = b; // btParser.setSym1(a); break; } // // Rule 96: VariableDeclaratorId ::= identifier // case 96: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new VarDeclarator(pos(), a.getIdentifier())); break; } // // Rule 97: VariableDeclaratorId ::= VariableDeclaratorId LBRACKET RBRACKET // case 97: { VarDeclarator a = (VarDeclarator) btParser.getSym(1); a.dims++; // btParser.setSym1(a); break; } // // Rule 98: VariableInitializer ::= Expression // case 98: break; // // Rule 99: VariableInitializer ::= ArrayInitializer // case 99: break; // // Rule 100: FieldModifiers ::= FieldModifier // case 100: break; // // Rule 101: FieldModifiers ::= FieldModifiers FieldModifier // case 101: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 102: FieldModifier ::= public // case 102: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 103: FieldModifier ::= protected // case 103: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 104: FieldModifier ::= private // case 104: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 105: FieldModifier ::= static // case 105: { btParser.setSym1(Flags.STATIC); break; } // // Rule 106: FieldModifier ::= final // case 106: { btParser.setSym1(Flags.FINAL); break; } // // Rule 107: FieldModifier ::= transient // case 107: { btParser.setSym1(Flags.TRANSIENT); break; } // // Rule 108: FieldModifier ::= volatile // case 108: { btParser.setSym1(Flags.VOLATILE); break; } // // Rule 109: MethodDeclaration ::= MethodHeader MethodBody // case 109: { MethodDecl a = (MethodDecl) btParser.getSym(1); Block b = (Block) btParser.getSym(2); btParser.setSym1(a.body(b)); break; } // // Rule 110: MethodHeader ::= MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 110: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 111: ResultType ::= Type // case 111: break; // // Rule 112: ResultType ::= void // case 112: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 113: MethodDeclarator ::= identifier LPAREN FormalParameterListopt RPAREN // case 113: { Object[] a = new Object[3]; a[0] = new Name(nf, ts, pos(), id(btParser.getToken(1)).getIdentifier()); a[1] = btParser.getSym(3); a[2] = new Integer(0); btParser.setSym1(a); break; } // // Rule 114: MethodDeclarator ::= MethodDeclarator LBRACKET RBRACKET // case 114: { Object[] a = (Object []) btParser.getSym(1); a[2] = new Integer(((Integer) a[2]).intValue() + 1); // btParser.setSym1(a); break; } // // Rule 115: FormalParameterList ::= LastFormalParameter // case 115: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 116: FormalParameterList ::= FormalParameters COMMA LastFormalParameter // case 116: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 117: FormalParameters ::= FormalParameter // case 117: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 118: FormalParameters ::= FormalParameters COMMA FormalParameter // case 118: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 119: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 119: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); VarDeclarator b = (VarDeclarator) btParser.getSym(3); btParser.setSym1(nf.Formal(pos(), f, array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b.name)); break; } // // Rule 121: VariableModifiers ::= VariableModifiers VariableModifier // case 121: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 122: VariableModifier ::= final // case 122: { btParser.setSym1(Flags.FINAL); break; } // // Rule 123: LastFormalParameter ::= VariableModifiersopt Type ...opt VariableDeclaratorId // case 123: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); assert(btParser.getSym(3) == null); VarDeclarator b = (VarDeclarator) btParser.getSym(4); btParser.setSym1(nf.Formal(pos(), f, array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b.name)); break; } // // Rule 124: MethodModifiers ::= MethodModifier // case 124: break; // // Rule 125: MethodModifiers ::= MethodModifiers MethodModifier // case 125: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 126: MethodModifier ::= public // case 126: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 127: MethodModifier ::= protected // case 127: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 128: MethodModifier ::= private // case 128: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 129: MethodModifier ::= abstract // case 129: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 130: MethodModifier ::= static // case 130: { btParser.setSym1(Flags.STATIC); break; } // // Rule 131: MethodModifier ::= final // case 131: { btParser.setSym1(Flags.FINAL); break; } // // Rule 132: MethodModifier ::= synchronized // case 132: { btParser.setSym1(Flags.SYNCHRONIZED); break; } // // Rule 133: MethodModifier ::= native // case 133: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 134: MethodModifier ::= strictfp // case 134: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 135: Throws ::= throws ExceptionTypeList // case 135: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 136: ExceptionTypeList ::= ExceptionType // case 136: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 137: ExceptionTypeList ::= ExceptionTypeList COMMA ExceptionType // case 137: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 138: ExceptionType ::= ClassType // case 138: break; // // Rule 139: ExceptionType ::= TypeVariable // case 139: break; // // Rule 140: MethodBody ::= Block // case 140: break; // // Rule 141: MethodBody ::= SEMICOLON // case 141: btParser.setSym1(null); break; // // Rule 142: InstanceInitializer ::= Block // case 142: break; // // Rule 143: StaticInitializer ::= static Block // case 143: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 144: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 144: { Flags m = (Flags) btParser.getSym(1); Object[] o = (Object []) btParser.getSym(2); Name a = (Name) o[1]; List b = (List) o[2]; List c = (List) btParser.getSym(3); Block d = (Block) btParser.getSym(4); btParser.setSym1(nf.ConstructorDecl(pos(), m, a.toString(), b, c, d)); break; } // // Rule 145: ConstructorDeclarator ::= SimpleTypeName LPAREN FormalParameterListopt RPAREN // case 145: {//vj assert(btParser.getSym(1) == null); Object[] a = new Object[3];//vj a[0] = btParser.getSym(1); a[1] = btParser.getSym(1); a[2] = btParser.getSym(3); btParser.setSym1(a); break; } // // Rule 146: SimpleTypeName ::= identifier // case 146: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 147: ConstructorModifiers ::= ConstructorModifier // case 147: break; // // Rule 148: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 148: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 149: ConstructorModifier ::= public // case 149: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 150: ConstructorModifier ::= protected // case 150: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 151: ConstructorModifier ::= private // case 151: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 152: ConstructorBody ::= LBRACE ExplicitConstructorInvocationopt BlockStatementsopt RBRACE // case 152: { Stmt a = (Stmt) btParser.getSym(2); List l; if (a == null) l = (List) btParser.getSym(3); else { l = new TypedList(new LinkedList(), Stmt.class, false); List l2 = (List) btParser.getSym(3); l.add(a); l.addAll(l2); } btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 153: ExplicitConstructorInvocation ::= this LPAREN ArgumentListopt RPAREN SEMICOLON // case 153: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.ThisCall(pos(), b)); break; } // // Rule 154: ExplicitConstructorInvocation ::= super LPAREN ArgumentListopt RPAREN SEMICOLON // case 154: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.SuperCall(pos(), b)); break; } // // Rule 155: ExplicitConstructorInvocation ::= Primary DOT this LPAREN ArgumentListopt RPAREN SEMICOLON // case 155: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.ThisCall(pos(), a, b)); break; } // // Rule 156: ExplicitConstructorInvocation ::= Primary DOT super LPAREN ArgumentListopt RPAREN SEMICOLON // case 156: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.SuperCall(pos(), a, b)); break; } // // Rule 157: EnumDeclaration ::= ClassModifiersopt enum identifier Interfacesopt EnumBody // case 157: bad_rule = 157; break; // // Rule 158: EnumBody ::= LBRACE EnumConstantsopt ,opt EnumBodyDeclarationsopt RBRACE // case 158: bad_rule = 158; break; // // Rule 159: EnumConstants ::= EnumConstant // case 159: bad_rule = 159; break; // // Rule 160: EnumConstants ::= EnumConstants COMMA EnumConstant // case 160: bad_rule = 160; break; // // Rule 161: EnumConstant ::= identifier Argumentsopt ClassBodyopt // case 161: bad_rule = 161; break; // // Rule 162: Arguments ::= LPAREN ArgumentListopt RPAREN // case 162: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 163: EnumBodyDeclarations ::= SEMICOLON ClassBodyDeclarationsopt // case 163: bad_rule = 163; break; // // Rule 164: InterfaceDeclaration ::= NormalInterfaceDeclaration // case 164: break; // // Rule 165: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier ExtendsInterfacesopt InterfaceBody // case 165: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3));//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(4); ClassBody d = (ClassBody) btParser.getSym(5); btParser.setSym1(nf.ClassDecl(pos(), a.Interface(), b.getIdentifier(), null, c, d)); break; } // // Rule 166: InterfaceModifiers ::= InterfaceModifier // case 166: break; // // Rule 167: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 167: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 168: InterfaceModifier ::= public // case 168: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 169: InterfaceModifier ::= protected // case 169: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 170: InterfaceModifier ::= private // case 170: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 171: InterfaceModifier ::= abstract // case 171: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 172: InterfaceModifier ::= static // case 172: { btParser.setSym1(Flags.STATIC); break; } // // Rule 173: InterfaceModifier ::= strictfp // case 173: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 174: ExtendsInterfaces ::= extends InterfaceType // case 174: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 175: ExtendsInterfaces ::= ExtendsInterfaces COMMA InterfaceType // case 175: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 176: InterfaceBody ::= LBRACE InterfaceMemberDeclarationsopt RBRACE // case 176: { List a = (List)btParser.getSym(2); btParser.setSym1(nf.ClassBody(pos(), a)); break; } // // Rule 177: InterfaceMemberDeclarations ::= InterfaceMemberDeclaration // case 177: break; // // Rule 178: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 178: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 179: InterfaceMemberDeclaration ::= ConstantDeclaration // case 179: break; // // Rule 180: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 180: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 181: InterfaceMemberDeclaration ::= ClassDeclaration // case 181: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 182: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 182: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 183: InterfaceMemberDeclaration ::= SEMICOLON // case 183: { btParser.setSym1(Collections.EMPTY_LIST); break; } // // Rule 184: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 184: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(2); List c = (List) btParser.getSym(3); for (Iterator i = c.iterator(); i.hasNext();) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), a, array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 185: ConstantModifiers ::= ConstantModifier // case 185: break; // // Rule 186: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 186: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 187: ConstantModifier ::= public // case 187: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 188: ConstantModifier ::= static // case 188: { btParser.setSym1(Flags.STATIC); break; } // // Rule 189: ConstantModifier ::= final // case 189: { btParser.setSym1(Flags.FINAL); break; } // // Rule 190: AbstractMethodDeclaration ::= AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt SEMICOLON // case 190: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 191: AbstractMethodModifiers ::= AbstractMethodModifier // case 191: break; // // Rule 192: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 192: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 193: AbstractMethodModifier ::= public // case 193: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 194: AbstractMethodModifier ::= abstract // case 194: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 195: AnnotationTypeDeclaration ::= InterfaceModifiersopt AT interface identifier AnnotationTypeBody // case 195: bad_rule = 195; break; // // Rule 196: AnnotationTypeBody ::= LBRACE AnnotationTypeElementDeclarationsopt RBRACE // case 196: bad_rule = 196; break; // // Rule 197: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclaration // case 197: bad_rule = 197; break; // // Rule 198: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclarations AnnotationTypeElementDeclaration // case 198: bad_rule = 198; break; // // Rule 199: AnnotationTypeElementDeclaration ::= AbstractMethodModifiersopt Type identifier LPAREN RPAREN DefaultValueopt SEMICOLON // case 199: bad_rule = 199; break; // // Rule 200: AnnotationTypeElementDeclaration ::= ConstantDeclaration // case 200: bad_rule = 200; break; // // Rule 201: AnnotationTypeElementDeclaration ::= ClassDeclaration // case 201: bad_rule = 201; break; // // Rule 202: AnnotationTypeElementDeclaration ::= InterfaceDeclaration // case 202: bad_rule = 202; break; // // Rule 203: AnnotationTypeElementDeclaration ::= EnumDeclaration // case 203: bad_rule = 203; break; // // Rule 204: AnnotationTypeElementDeclaration ::= AnnotationTypeDeclaration // case 204: bad_rule = 204; break; // // Rule 205: AnnotationTypeElementDeclaration ::= SEMICOLON // case 205: bad_rule = 205; break; // // Rule 206: DefaultValue ::= default ElementValue // case 206: bad_rule = 206; break; // // Rule 207: Annotations ::= Annotation // case 207: bad_rule = 207; break; // // Rule 208: Annotations ::= Annotations Annotation // case 208: bad_rule = 208; break; // // Rule 209: Annotation ::= NormalAnnotation // case 209: bad_rule = 209; break; // // Rule 210: Annotation ::= MarkerAnnotation // case 210: bad_rule = 210; break; // // Rule 211: Annotation ::= SingleElementAnnotation // case 211: bad_rule = 211; break; // // Rule 212: NormalAnnotation ::= AT TypeName LPAREN ElementValuePairsopt RPAREN // case 212: bad_rule = 212; break; // // Rule 213: ElementValuePairs ::= ElementValuePair // case 213: bad_rule = 213; break; // // Rule 214: ElementValuePairs ::= ElementValuePairs COMMA ElementValuePair // case 214: bad_rule = 214; break; // // Rule 215: ElementValuePair ::= SimpleName EQUAL ElementValue // case 215: bad_rule = 215; break; // // Rule 216: SimpleName ::= identifier // case 216: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 217: ElementValue ::= ConditionalExpression // case 217: bad_rule = 217; break; // // Rule 218: ElementValue ::= Annotation // case 218: bad_rule = 218; break; // // Rule 219: ElementValue ::= ElementValueArrayInitializer // case 219: bad_rule = 219; break; // // Rule 220: ElementValueArrayInitializer ::= LBRACE ElementValuesopt ,opt RBRACE // case 220: bad_rule = 220; break; // // Rule 221: ElementValues ::= ElementValue // case 221: bad_rule = 221; break; // // Rule 222: ElementValues ::= ElementValues COMMA ElementValue // case 222: bad_rule = 222; break; // // Rule 223: MarkerAnnotation ::= AT TypeName // case 223: bad_rule = 223; break; // // Rule 224: SingleElementAnnotation ::= AT TypeName LPAREN ElementValue RPAREN // case 224: bad_rule = 224; break; // // Rule 225: ArrayInitializer ::= LBRACE VariableInitializersopt ,opt RBRACE // case 225: { List a = (List) btParser.getSym(2); if (a == null) btParser.setSym1(nf.ArrayInit(pos())); else btParser.setSym1(nf.ArrayInit(pos(), a)); break; } // // Rule 226: VariableInitializers ::= VariableInitializer // case 226: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 227: VariableInitializers ::= VariableInitializers COMMA VariableInitializer // case 227: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 228: Block ::= LBRACE BlockStatementsopt RBRACE // case 228: { List l = (List) btParser.getSym(2); btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 229: BlockStatements ::= BlockStatement // case 229: { List l = new TypedList(new LinkedList(), Stmt.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); btParser.setSym1(l); break; } // // Rule 230: BlockStatements ::= BlockStatements BlockStatement // case 230: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 231: BlockStatement ::= LocalVariableDeclarationStatement // case 231: break; // // Rule 232: BlockStatement ::= ClassDeclaration // case 232: { ClassDecl a = (ClassDecl) btParser.getSym(1); List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), a)); btParser.setSym1(l); break; } // // Rule 233: BlockStatement ::= Statement // case 233: { List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 234: LocalVariableDeclarationStatement ::= LocalVariableDeclaration SEMICOLON // case 234: break; // // Rule 235: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 235: { Flags flags = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); List b = (List) btParser.getSym(3); List l = new TypedList(new LinkedList(), LocalDecl.class, false); for (Iterator i = b.iterator(); i.hasNext(); ) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.LocalDecl(pos(d), flags, array(a, pos(d), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 236: Statement ::= StatementWithoutTrailingSubstatement // case 236: break; // // Rule 237: Statement ::= LabeledStatement // case 237: break; // // Rule 238: Statement ::= IfThenStatement // case 238: break; // // Rule 239: Statement ::= IfThenElseStatement // case 239: break; // // Rule 240: Statement ::= WhileStatement // case 240: break; // // Rule 241: Statement ::= ForStatement // case 241: break; // // Rule 242: StatementWithoutTrailingSubstatement ::= Block // case 242: break; // // Rule 243: StatementWithoutTrailingSubstatement ::= EmptyStatement // case 243: break; // // Rule 244: StatementWithoutTrailingSubstatement ::= ExpressionStatement // case 244: break; // // Rule 245: StatementWithoutTrailingSubstatement ::= AssertStatement // case 245: break; // // Rule 246: StatementWithoutTrailingSubstatement ::= SwitchStatement // case 246: break; // // Rule 247: StatementWithoutTrailingSubstatement ::= DoStatement // case 247: break; // // Rule 248: StatementWithoutTrailingSubstatement ::= BreakStatement // case 248: break; // // Rule 249: StatementWithoutTrailingSubstatement ::= ContinueStatement // case 249: break; // // Rule 250: StatementWithoutTrailingSubstatement ::= ReturnStatement // case 250: break; // // Rule 251: StatementWithoutTrailingSubstatement ::= SynchronizedStatement // case 251: break; // // Rule 252: StatementWithoutTrailingSubstatement ::= ThrowStatement // case 252: break; // // Rule 253: StatementWithoutTrailingSubstatement ::= TryStatement // case 253: break; // // Rule 254: StatementNoShortIf ::= StatementWithoutTrailingSubstatement // case 254: break; // // Rule 255: StatementNoShortIf ::= LabeledStatementNoShortIf // case 255: break; // // Rule 256: StatementNoShortIf ::= IfThenElseStatementNoShortIf // case 256: break; // // Rule 257: StatementNoShortIf ::= WhileStatementNoShortIf // case 257: break; // // Rule 258: StatementNoShortIf ::= ForStatementNoShortIf // case 258: break; // // Rule 259: IfThenStatement ::= if LPAREN Expression RPAREN Statement // case 259: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.If(pos(), a, b)); break; } // // Rule 260: IfThenElseStatement ::= if LPAREN Expression RPAREN StatementNoShortIf else Statement // case 260: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 261: IfThenElseStatementNoShortIf ::= if LPAREN Expression RPAREN StatementNoShortIf else StatementNoShortIf // case 261: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 262: EmptyStatement ::= SEMICOLON // case 262: { btParser.setSym1(nf.Empty(pos())); break; } // // Rule 263: LabeledStatement ::= identifier COLON Statement // case 263: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 264: LabeledStatementNoShortIf ::= identifier COLON StatementNoShortIf // case 264: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 265: ExpressionStatement ::= StatementExpression SEMICOLON // case 265: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Eval(pos(), a)); break; } // // Rule 266: StatementExpression ::= Assignment // case 266: break; // // Rule 267: StatementExpression ::= PreIncrementExpression // case 267: break; // // Rule 268: StatementExpression ::= PreDecrementExpression // case 268: break; // // Rule 269: StatementExpression ::= PostIncrementExpression // case 269: break; // // Rule 270: StatementExpression ::= PostDecrementExpression // case 270: break; // // Rule 271: StatementExpression ::= MethodInvocation // case 271: break; // // Rule 272: StatementExpression ::= ClassInstanceCreationExpression // case 272: break; // // Rule 273: AssertStatement ::= assert Expression SEMICOLON // case 273: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Assert(pos(), a)); break; } // // Rule 274: AssertStatement ::= assert Expression COLON Expression SEMICOLON // case 274: { Expr a = (Expr) btParser.getSym(2), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Assert(pos(), a, b)); break; } // // Rule 275: SwitchStatement ::= switch LPAREN Expression RPAREN SwitchBlock // case 275: { Expr a = (Expr) btParser.getSym(3); List b = (List) btParser.getSym(5); btParser.setSym1(nf.Switch(pos(), a, b)); break; } // // Rule 276: SwitchBlock ::= LBRACE SwitchBlockStatementGroupsopt SwitchLabelsopt RBRACE // case 276: { List l = (List) btParser.getSym(2), l2 = (List) btParser.getSym(3); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 277: SwitchBlockStatementGroups ::= SwitchBlockStatementGroup // case 277: break; // // Rule 278: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 278: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 279: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 279: { List l = new TypedList(new LinkedList(), SwitchElement.class, false); List l1 = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l1); l.add(nf.SwitchBlock(pos(), l2)); btParser.setSym1(l); break; } // // Rule 280: SwitchLabels ::= SwitchLabel // case 280: { List l = new TypedList(new LinkedList(), Case.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 281: SwitchLabels ::= SwitchLabels SwitchLabel // case 281: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 282: SwitchLabel ::= case ConstantExpression COLON // case 282: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Case(pos(), a)); break; } // // Rule 283: SwitchLabel ::= case EnumConstant COLON // case 283: bad_rule = 283; break; // // Rule 284: SwitchLabel ::= default COLON // case 284: { btParser.setSym1(nf.Default(pos())); break; } // // Rule 285: EnumConstant ::= identifier // case 285: bad_rule = 285; break; // // Rule 286: WhileStatement ::= while LPAREN Expression RPAREN Statement // case 286: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 287: WhileStatementNoShortIf ::= while LPAREN Expression RPAREN StatementNoShortIf // case 287: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 288: DoStatement ::= do Statement while LPAREN Expression RPAREN SEMICOLON // case 288: { Stmt a = (Stmt) btParser.getSym(2); Expr b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Do(pos(), a, b)); break; } // // Rule 289: ForStatement ::= BasicForStatement // case 289: break; // // Rule 290: ForStatement ::= EnhancedForStatement // case 290: break; // // Rule 291: BasicForStatement ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON ForUpdateopt RPAREN Statement // case 291: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 292: ForStatementNoShortIf ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON ForUpdateopt RPAREN StatementNoShortIf // case 292: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 293: ForInit ::= StatementExpressionList // case 293: break; // // Rule 294: ForInit ::= LocalVariableDeclaration // case 294: { List l = new TypedList(new LinkedList(), ForInit.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 295: ForUpdate ::= StatementExpressionList // case 295: break; // // Rule 296: StatementExpressionList ::= StatementExpression // case 296: { List l = new TypedList(new LinkedList(), Eval.class, false); Expr a = (Expr) btParser.getSym(1); l.add(nf.Eval(pos(), a)); btParser.setSym1(l); break; } // // Rule 297: StatementExpressionList ::= StatementExpressionList COMMA StatementExpression // case 297: { List l = (List) btParser.getSym(1); Expr a = (Expr) btParser.getSym(3); l.add(nf.Eval(pos(), a)); //btParser.setSym1(l); break; } // // Rule 298: BreakStatement ::= break identifieropt SEMICOLON // case 298: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Break(pos())); else btParser.setSym1(nf.Break(pos(), a.toString())); break; } // // Rule 299: ContinueStatement ::= continue identifieropt SEMICOLON // case 299: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Continue(pos())); else btParser.setSym1(nf.Continue(pos(), a.toString())); break; } // // Rule 300: ReturnStatement ::= return Expressionopt SEMICOLON // case 300: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Return(pos(), a)); break; } // // Rule 301: ThrowStatement ::= throw Expression SEMICOLON // case 301: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Throw(pos(), a)); break; } // // Rule 302: SynchronizedStatement ::= synchronized LPAREN Expression RPAREN Block // case 302: { Expr a = (Expr) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Synchronized(pos(), a, b)); break; } // // Rule 303: TryStatement ::= try Block Catches // case 303: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Try(pos(), a, b)); break; } // // Rule 304: TryStatement ::= try Block Catchesopt Finally // case 304: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); Block c = (Block) btParser.getSym(4); btParser.setSym1(nf.Try(pos(), a, b, c)); break; } // // Rule 305: Catches ::= CatchClause // case 305: { List l = new TypedList(new LinkedList(), Catch.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 306: Catches ::= Catches CatchClause // case 306: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 307: CatchClause ::= catch LPAREN FormalParameter RPAREN Block // case 307: { Formal a = (Formal) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Catch(pos(), a, b)); break; } // // Rule 308: Finally ::= finally Block // case 308: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 309: Primary ::= PrimaryNoNewArray // case 309: break; // // Rule 310: Primary ::= ArrayCreationExpression // case 310: break; // // Rule 311: PrimaryNoNewArray ::= Literal // case 311: break; // // Rule 312: PrimaryNoNewArray ::= Type DOT class // case 312: { Object o = btParser.getSym(1); if (o instanceof Name) { Name a = (Name) o; btParser.setSym1(nf.ClassLit(pos(), a.toType())); } else if (o instanceof TypeNode) { TypeNode a = (TypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else if (o instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 313: PrimaryNoNewArray ::= void DOT class // case 313: { btParser.setSym1(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(btParser.getToken(1)), ts.Void()))); break; } // // Rule 314: PrimaryNoNewArray ::= this // case 314: { btParser.setSym1(nf.This(pos())); break; } // // Rule 315: PrimaryNoNewArray ::= ClassName DOT this // case 315: { Name a = (Name) btParser.getSym(1); btParser.setSym1(nf.This(pos(), a.toType())); break; } // // Rule 316: PrimaryNoNewArray ::= LPAREN Expression RPAREN // case 316: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 317: PrimaryNoNewArray ::= ClassInstanceCreationExpression // case 317: break; // // Rule 318: PrimaryNoNewArray ::= FieldAccess // case 318: break; // // Rule 319: PrimaryNoNewArray ::= MethodInvocation // case 319: break; // // Rule 320: PrimaryNoNewArray ::= ArrayAccess // case 320: break; // // Rule 321: Literal ::= IntegerLiteral // case 321: { // TODO: remove any prefix (such as 0x) polyglot.lex.IntegerLiteral a = int_lit(btParser.getToken(1), 10); btParser.setSym1(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 322: Literal ::= LongLiteral // case 322: { // TODO: remove any suffix (such as L) or prefix (such as 0x) polyglot.lex.LongLiteral a = long_lit(btParser.getToken(1), 10); btParser.setSym1(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 323: Literal ::= FloatingPointLiteral // case 323: { // TODO: remove any suffix (such as F) polyglot.lex.FloatLiteral a = float_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 324: Literal ::= DoubleLiteral // case 324: { // TODO: remove any suffix (such as D) polyglot.lex.DoubleLiteral a = double_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 325: Literal ::= BooleanLiteral // case 325: { polyglot.lex.BooleanLiteral a = boolean_lit(btParser.getToken(1)); btParser.setSym1(nf.BooleanLit(pos(), a.getValue().booleanValue())); break; } // // Rule 326: Literal ::= CharacterLiteral // case 326: { polyglot.lex.CharacterLiteral a = char_lit(btParser.getToken(1)); btParser.setSym1(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 327: Literal ::= StringLiteral // case 327: { polyglot.lex.StringLiteral a = string_lit(btParser.getToken(1)); btParser.setSym1(nf.StringLit(pos(), a.getValue())); break; } // // Rule 328: Literal ::= null // case 328: { btParser.setSym1(nf.NullLit(pos())); break; } // // Rule 329: BooleanLiteral ::= true // case 329: break; // // Rule 330: BooleanLiteral ::= false // case 330: break; // // Rule 331: ClassInstanceCreationExpression ::= new ClassOrInterfaceType LPAREN ArgumentListopt RPAREN ClassBodyopt // case 331: {//vj assert(btParser.getSym(2) == null); TypeNode a = (TypeNode) btParser.getSym(2);//vj assert(btParser.getSym(4) == null); List b = (List) btParser.getSym(4); ClassBody c = (ClassBody) btParser.getSym(6); if (c == null) btParser.setSym1(nf.New(pos(), a, b)); else btParser.setSym1(nf.New(pos(), a, b, c)); break; } // // Rule 332: ClassInstanceCreationExpression ::= Primary DOT new identifier LPAREN ArgumentListopt RPAREN ClassBodyopt // case 332: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a, b.toType(), c)); else btParser.setSym1(nf.New(pos(), a, b.toType(), c, d)); break; } // // Rule 333: ClassInstanceCreationExpression ::= AmbiguousName DOT new identifier LPAREN ArgumentListopt RPAREN ClassBodyopt // case 333: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(4) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(6) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c)); else btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c, d)); break; } // // Rule 334: ArgumentList ::= Expression // case 334: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 335: ArgumentList ::= ArgumentList COMMA Expression // case 335: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 336: ArrayCreationExpression ::= new PrimitiveType DimExprs Dimsopt // case 336: { CanonicalTypeNode a = (CanonicalTypeNode) btParser.getSym(2); List b = (List) btParser.getSym(3); Integer c = (Integer) btParser.getSym(4); btParser.setSym1(nf.NewArray(pos(), a, b, c.intValue())); break; } // // Rule 337: ArrayCreationExpression ::= new ClassOrInterfaceType DimExprs Dimsopt // case 337: { TypeNode a = (TypeNode) btParser.getSym(2); List b = (List) btParser.getSym(3); Integer c = (Integer) btParser.getSym(4); btParser.setSym1(nf.NewArray(pos(), a, b, c.intValue())); break; } // // Rule 338: ArrayCreationExpression ::= new PrimitiveType Dims ArrayInitializer // case 338: { CanonicalTypeNode a = (CanonicalTypeNode) btParser.getSym(2); Integer b = (Integer) btParser.getSym(3); ArrayInit c = (ArrayInit) btParser.getSym(4); btParser.setSym1(nf.NewArray(pos(), a, b.intValue(), c)); break; } // // Rule 339: ArrayCreationExpression ::= new ClassOrInterfaceType Dims ArrayInitializer // case 339: { TypeNode a = (TypeNode) btParser.getSym(2); Integer b = (Integer) btParser.getSym(3); ArrayInit c = (ArrayInit) btParser.getSym(4); btParser.setSym1(nf.NewArray(pos(), a, b.intValue(), c)); break; } // // Rule 340: DimExprs ::= DimExpr // case 340: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 341: DimExprs ::= DimExprs DimExpr // case 341: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 342: DimExpr ::= LBRACKET Expression RBRACKET // case 342: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(a.position(pos())); break; } // // Rule 343: Dims ::= LBRACKET RBRACKET // case 343: { btParser.setSym1(new Integer(1)); break; } // // Rule 344: Dims ::= Dims LBRACKET RBRACKET // case 344: { Integer a = (Integer) btParser.getSym(1); btParser.setSym1(new Integer(a.intValue() + 1)); break; } // // Rule 345: FieldAccess ::= Primary DOT identifier // case 345: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(), a, b.getIdentifier())); break; } // // Rule 346: FieldAccess ::= super DOT identifier // case 346: { polyglot.lex.Identifier a = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken())), a.getIdentifier())); break; } // // Rule 347: FieldAccess ::= ClassName DOT super DOT identifier // case 347: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier())); break; } // // Rule 348: MethodInvocation ::= MethodName LPAREN ArgumentListopt RPAREN // case 348: { Name a = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Call(pos(), a.prefix == null ? null : a.prefix.toReceiver(), a.name, b)); break; } // // Rule 349: MethodInvocation ::= Primary DOT identifier LPAREN ArgumentListopt RPAREN // case 349: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), a, b.getIdentifier(), c)); break; } // // Rule 350: MethodInvocation ::= super DOT identifier LPAREN ArgumentListopt RPAREN // case 350: {//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken())), b.getIdentifier(), c)); break; } // // Rule 351: MethodInvocation ::= ClassName DOT super DOT identifier LPAREN ArgumentListopt RPAREN // case 351: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(5) == null); polyglot.lex.Identifier b = id(btParser.getToken(5)); List c = (List) btParser.getSym(7); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier(), c)); break; } // // Rule 352: PostfixExpression ::= Primary // case 352: break; // // Rule 353: PostfixExpression ::= ExpressionName // case 353: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 354: PostfixExpression ::= PostIncrementExpression // case 354: break; // // Rule 355: PostfixExpression ::= PostDecrementExpression // case 355: break; // // Rule 356: PostIncrementExpression ::= PostfixExpression PLUS_PLUS // case 356: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_INC)); break; } // // Rule 357: PostDecrementExpression ::= PostfixExpression MINUS_MINUS // case 357: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_DEC)); break; } // // Rule 358: UnaryExpression ::= PreIncrementExpression // case 358: break; // // Rule 359: UnaryExpression ::= PreDecrementExpression // case 359: break; // // Rule 360: UnaryExpression ::= PLUS UnaryExpression // case 360: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.POS, a)); break; } // // Rule 361: UnaryExpression ::= MINUS UnaryExpression // case 361: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NEG, a)); break; } // // Rule 363: PreIncrementExpression ::= PLUS_PLUS UnaryExpression // case 363: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_INC, a)); break; } // // Rule 364: PreDecrementExpression ::= MINUS_MINUS UnaryExpression // case 364: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_DEC, a)); break; } // // Rule 365: UnaryExpressionNotPlusMinus ::= PostfixExpression // case 365: break; // // Rule 366: UnaryExpressionNotPlusMinus ::= TWIDDLE UnaryExpression // case 366: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.BIT_NOT, a)); break; } // // Rule 367: UnaryExpressionNotPlusMinus ::= NOT UnaryExpression // case 367: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NOT, a)); break; } // // Rule 369: MultiplicativeExpression ::= UnaryExpression // case 369: break; // // Rule 370: MultiplicativeExpression ::= MultiplicativeExpression MULTIPLY UnaryExpression // case 370: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MUL, b)); break; } // // Rule 371: MultiplicativeExpression ::= MultiplicativeExpression DIVIDE UnaryExpression // case 371: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.DIV, b)); break; } // // Rule 372: MultiplicativeExpression ::= MultiplicativeExpression REMAINDER UnaryExpression // case 372: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MOD, b)); break; } // // Rule 373: AdditiveExpression ::= MultiplicativeExpression // case 373: break; // // Rule 374: AdditiveExpression ::= AdditiveExpression PLUS MultiplicativeExpression // case 374: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.ADD, b)); break; } // // Rule 375: AdditiveExpression ::= AdditiveExpression MINUS MultiplicativeExpression // case 375: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SUB, b)); break; } // // Rule 376: ShiftExpression ::= AdditiveExpression // case 376: break; // // Rule 377: ShiftExpression ::= ShiftExpression LEFT_SHIFT AdditiveExpression // case 377: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SHL, b)); break; } // // Rule 378: ShiftExpression ::= ShiftExpression GREATER GREATER AdditiveExpression // case 378: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.SHR, b)); break; } // // Rule 379: ShiftExpression ::= ShiftExpression GREATER GREATER GREATER AdditiveExpression // case 379: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Binary(pos(), a, Binary.USHR, b)); break; } // // Rule 380: RelationalExpression ::= ShiftExpression // case 380: break; // // Rule 381: RelationalExpression ::= RelationalExpression LESS ShiftExpression // case 381: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LT, b)); break; } // // Rule 382: RelationalExpression ::= RelationalExpression GREATER ShiftExpression // case 382: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.GT, b)); break; } // // Rule 383: RelationalExpression ::= RelationalExpression LESS_EQUAL ShiftExpression // case 383: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LE, b)); break; } // // Rule 384: RelationalExpression ::= RelationalExpression GREATER EQUAL ShiftExpression // case 384: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.GE, b)); break; } // // Rule 385: EqualityExpression ::= RelationalExpression // case 385: break; // // Rule 386: EqualityExpression ::= EqualityExpression EQUAL_EQUAL RelationalExpression // case 386: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.EQ, b)); break; } // // Rule 387: EqualityExpression ::= EqualityExpression NOT_EQUAL RelationalExpression // case 387: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.NE, b)); break; } // // Rule 388: AndExpression ::= EqualityExpression // case 388: break; // // Rule 389: AndExpression ::= AndExpression AND EqualityExpression // case 389: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_AND, b)); break; } // // Rule 390: ExclusiveOrExpression ::= AndExpression // case 390: break; // // Rule 391: ExclusiveOrExpression ::= ExclusiveOrExpression XOR AndExpression // case 391: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_XOR, b)); break; } // // Rule 392: InclusiveOrExpression ::= ExclusiveOrExpression // case 392: break; // // Rule 393: InclusiveOrExpression ::= InclusiveOrExpression OR ExclusiveOrExpression // case 393: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_OR, b)); break; } // // Rule 394: ConditionalAndExpression ::= InclusiveOrExpression // case 394: break; // // Rule 395: ConditionalAndExpression ::= ConditionalAndExpression AND_AND InclusiveOrExpression // case 395: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_AND, b)); break; } // // Rule 396: ConditionalOrExpression ::= ConditionalAndExpression // case 396: break; // // Rule 397: ConditionalOrExpression ::= ConditionalOrExpression OR_OR ConditionalAndExpression // case 397: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_OR, b)); break; } // // Rule 398: ConditionalExpression ::= ConditionalOrExpression // case 398: break; // // Rule 399: ConditionalExpression ::= ConditionalOrExpression QUESTION Expression COLON ConditionalExpression // case 399: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3), c = (Expr) btParser.getSym(5); btParser.setSym1(nf.Conditional(pos(), a, b, c)); break; } // // Rule 400: AssignmentExpression ::= ConditionalExpression // case 400: break; // // Rule 401: AssignmentExpression ::= Assignment // case 401: break; // // Rule 402: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 402: { Expr a = (Expr) btParser.getSym(1); Assign.Operator b = (Assign.Operator) btParser.getSym(2); Expr c = (Expr) btParser.getSym(3); btParser.setSym1(nf.Assign(pos(), a, b, c)); break; } // // Rule 403: LeftHandSide ::= ExpressionName // case 403: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 404: LeftHandSide ::= FieldAccess // case 404: break; // // Rule 405: LeftHandSide ::= ArrayAccess // case 405: break; // // Rule 406: AssignmentOperator ::= EQUAL // case 406: { btParser.setSym1(Assign.ASSIGN); break; } // // Rule 407: AssignmentOperator ::= MULTIPLY_EQUAL // case 407: { btParser.setSym1(Assign.MUL_ASSIGN); break; } // // Rule 408: AssignmentOperator ::= DIVIDE_EQUAL // case 408: { btParser.setSym1(Assign.DIV_ASSIGN); break; } // // Rule 409: AssignmentOperator ::= REMAINDER_EQUAL // case 409: { btParser.setSym1(Assign.MOD_ASSIGN); break; } // // Rule 410: AssignmentOperator ::= PLUS_EQUAL // case 410: { btParser.setSym1(Assign.ADD_ASSIGN); break; } // // Rule 411: AssignmentOperator ::= MINUS_EQUAL // case 411: { btParser.setSym1(Assign.SUB_ASSIGN); break; } // // Rule 412: AssignmentOperator ::= LEFT_SHIFT_EQUAL // case 412: { btParser.setSym1(Assign.SHL_ASSIGN); break; } // // Rule 413: AssignmentOperator ::= GREATER GREATER EQUAL // case 413: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.SHR_ASSIGN); break; } // // Rule 414: AssignmentOperator ::= GREATER GREATER GREATER EQUAL // case 414: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.USHR_ASSIGN); break; } // // Rule 415: AssignmentOperator ::= AND_EQUAL // case 415: { btParser.setSym1(Assign.BIT_AND_ASSIGN); break; } // // Rule 416: AssignmentOperator ::= XOR_EQUAL // case 416: { btParser.setSym1(Assign.BIT_XOR_ASSIGN); break; } // // Rule 417: AssignmentOperator ::= OR_EQUAL // case 417: { btParser.setSym1(Assign.BIT_OR_ASSIGN); break; } // // Rule 418: Expression ::= AssignmentExpression // case 418: break; // // Rule 419: ConstantExpression ::= Expression // case 419: break; // // Rule 420: Dimsopt ::= // case 420: { btParser.setSym1(new Integer(0)); break; } // // Rule 421: Dimsopt ::= Dims // case 421: break; // // Rule 422: Catchesopt ::= // case 422: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 423: Catchesopt ::= Catches // case 423: break; // // Rule 424: identifieropt ::= // case 424: btParser.setSym1(null); break; // // Rule 425: identifieropt ::= identifier // case 425: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 426: ForUpdateopt ::= // case 426: { btParser.setSym1(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 427: ForUpdateopt ::= ForUpdate // case 427: break; // // Rule 428: Expressionopt ::= // case 428: btParser.setSym1(null); break; // // Rule 429: Expressionopt ::= Expression // case 429: break; // // Rule 430: ForInitopt ::= // case 430: { btParser.setSym1(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 431: ForInitopt ::= ForInit // case 431: break; // // Rule 432: SwitchLabelsopt ::= // case 432: { btParser.setSym1(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 433: SwitchLabelsopt ::= SwitchLabels // case 433: break; // // Rule 434: SwitchBlockStatementGroupsopt ::= // case 434: { btParser.setSym1(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 435: SwitchBlockStatementGroupsopt ::= SwitchBlockStatementGroups // case 435: break; // // Rule 436: VariableModifiersopt ::= // case 436: { btParser.setSym1(Flags.NONE); break; } // // Rule 437: VariableModifiersopt ::= VariableModifiers // case 437: break; // // Rule 438: VariableInitializersopt ::= // case 438: btParser.setSym1(null); break; // // Rule 439: VariableInitializersopt ::= VariableInitializers // case 439: break; // // Rule 440: ElementValuesopt ::= // case 440: btParser.setSym1(null); break; // // Rule 441: ElementValuesopt ::= ElementValues // case 441: bad_rule = 441; break; // // Rule 442: ElementValuePairsopt ::= // case 442: btParser.setSym1(null); break; // // Rule 443: ElementValuePairsopt ::= ElementValuePairs // case 443: bad_rule = 443; break; // // Rule 444: DefaultValueopt ::= // case 444: btParser.setSym1(null); break; // // Rule 445: DefaultValueopt ::= DefaultValue // case 445: break; // // Rule 446: AnnotationTypeElementDeclarationsopt ::= // case 446: btParser.setSym1(null); break; // // Rule 447: AnnotationTypeElementDeclarationsopt ::= AnnotationTypeElementDeclarations // case 447: bad_rule = 447; break; // // Rule 448: AbstractMethodModifiersopt ::= // case 448: { btParser.setSym1(Flags.NONE); break; } // // Rule 449: AbstractMethodModifiersopt ::= AbstractMethodModifiers // case 449: break; // // Rule 450: ConstantModifiersopt ::= // case 450: { btParser.setSym1(Flags.NONE); break; } // // Rule 451: ConstantModifiersopt ::= ConstantModifiers // case 451: break; // // Rule 452: InterfaceMemberDeclarationsopt ::= // case 452: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 453: InterfaceMemberDeclarationsopt ::= InterfaceMemberDeclarations // case 453: break; // // Rule 454: ExtendsInterfacesopt ::= // case 454: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 455: ExtendsInterfacesopt ::= ExtendsInterfaces // case 455: break; // // Rule 456: InterfaceModifiersopt ::= // case 456: { btParser.setSym1(Flags.NONE); break; } // // Rule 457: InterfaceModifiersopt ::= InterfaceModifiers // case 457: break; // // Rule 458: ClassBodyopt ::= // case 458: btParser.setSym1(null); break; // // Rule 459: ClassBodyopt ::= ClassBody // case 459: break; // // Rule 460: Argumentsopt ::= // case 460: btParser.setSym1(null); break; // // Rule 461: Argumentsopt ::= Arguments // case 461: bad_rule = 461; break; // // Rule 462: EnumBodyDeclarationsopt ::= // case 462: btParser.setSym1(null); break; // // Rule 463: EnumBodyDeclarationsopt ::= EnumBodyDeclarations // case 463: bad_rule = 463; break; // // Rule 464: ,opt ::= // case 464: btParser.setSym1(null); break; // // Rule 465: ,opt ::= COMMA // case 465: break; // // Rule 466: EnumConstantsopt ::= // case 466: btParser.setSym1(null); break; // // Rule 467: EnumConstantsopt ::= EnumConstants // case 467: bad_rule = 467; break; // // Rule 468: ArgumentListopt ::= // case 468: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 469: ArgumentListopt ::= ArgumentList // case 469: break; // // Rule 470: BlockStatementsopt ::= // case 470: { btParser.setSym1(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 471: BlockStatementsopt ::= BlockStatements // case 471: break; // // Rule 472: ExplicitConstructorInvocationopt ::= // case 472: btParser.setSym1(null); break; // // Rule 473: ExplicitConstructorInvocationopt ::= ExplicitConstructorInvocation // case 473: break; // // Rule 474: ConstructorModifiersopt ::= // case 474: { btParser.setSym1(Flags.NONE); break; } // // Rule 475: ConstructorModifiersopt ::= ConstructorModifiers // case 475: break; // // Rule 476: ...opt ::= // case 476: btParser.setSym1(null); break; // // Rule 477: ...opt ::= ELLIPSIS // case 477: break; // // Rule 478: FormalParameterListopt ::= // case 478: { btParser.setSym1(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 479: FormalParameterListopt ::= FormalParameterList // case 479: break; // // Rule 480: Throwsopt ::= // case 480: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 481: Throwsopt ::= Throws // case 481: break; // // Rule 482: MethodModifiersopt ::= // case 482: { btParser.setSym1(Flags.NONE); break; } // // Rule 483: MethodModifiersopt ::= MethodModifiers // case 483: break; // // Rule 484: FieldModifiersopt ::= // case 484: { btParser.setSym1(Flags.NONE); break; } // // Rule 485: FieldModifiersopt ::= FieldModifiers // case 485: break; // // Rule 486: ClassBodyDeclarationsopt ::= // case 486: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 487: ClassBodyDeclarationsopt ::= ClassBodyDeclarations // case 487: break; // // Rule 488: Interfacesopt ::= // case 488: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 489: Interfacesopt ::= Interfaces // case 489: break; // // Rule 490: Superopt ::= // case 490: btParser.setSym1(null); break; // // Rule 491: Superopt ::= Super // case 491: break; // // Rule 492: TypeParametersopt ::= // case 492: btParser.setSym1(null); break; // // Rule 493: TypeParametersopt ::= TypeParameters // case 493: break; // // Rule 494: ClassModifiersopt ::= // case 494: { btParser.setSym1(Flags.NONE); break; } // // Rule 495: ClassModifiersopt ::= ClassModifiers // case 495: break; // // Rule 496: Annotationsopt ::= // case 496: btParser.setSym1(null); break; // // Rule 497: Annotationsopt ::= Annotations // case 497: bad_rule = 497; break; // // Rule 498: TypeDeclarationsopt ::= // case 498: { btParser.setSym1(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 499: TypeDeclarationsopt ::= TypeDeclarations // case 499: break; // // Rule 500: ImportDeclarationsopt ::= // case 500: { btParser.setSym1(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 501: ImportDeclarationsopt ::= ImportDeclarations // case 501: break; // // Rule 502: PackageDeclarationopt ::= // case 502: btParser.setSym1(null); break; // // Rule 503: PackageDeclarationopt ::= PackageDeclaration // case 503: break; // // Rule 504: WildcardBoundsOpt ::= // case 504: btParser.setSym1(null); break; // // Rule 505: WildcardBoundsOpt ::= WildcardBounds // case 505: bad_rule = 505; break; // // Rule 506: AdditionalBoundListopt ::= // case 506: btParser.setSym1(null); break; // // Rule 507: AdditionalBoundListopt ::= AdditionalBoundList // case 507: bad_rule = 507; break; // // Rule 508: TypeBoundopt ::= // case 508: btParser.setSym1(null); break; // // Rule 509: TypeBoundopt ::= TypeBound // case 509: bad_rule = 509; break; // // Rule 510: TypeArgumentsopt ::= // case 510: btParser.setSym1(null); break; // // Rule 511: TypeArgumentsopt ::= TypeArguments // case 511: bad_rule = 511; break; // // Rule 512: Type ::= DataType PlaceTypeSpecifieropt // case 512: { assert(btParser.getSym(2) == null); //btParser.setSym1(); break; } // // Rule 513: Type ::= nullable LESS Type GREATER // case 513: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Nullable(pos(), a)); break; } // // Rule 514: Type ::= future LESS Type GREATER // case 514: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Future(pos(), a)); break; } // // Rule 515: Type ::= boxed LESS Type GREATER // case 515: bad_rule = 515; break; // // Rule 516: Type ::= fun LESS Type COMMA Type GREATER // case 516: bad_rule = 516; break; // // Rule 517: DataType ::= PrimitiveType // case 517: break; // // Rule 518: DataType ::= ClassOrInterfaceType // case 518: break; // // Rule 519: DataType ::= ArrayType // case 519: break; // // Rule 520: PlaceTypeSpecifier ::= AT PlaceType // case 520: bad_rule = 520; break; // // Rule 521: PlaceType ::= place // case 521: bad_rule = 521; break; // // Rule 522: PlaceType ::= activity // case 522: bad_rule = 522; break; // // Rule 523: PlaceType ::= method // case 523: bad_rule = 523; break; // // Rule 524: PlaceType ::= current // case 524: bad_rule = 524; break; // // Rule 525: PlaceType ::= PlaceExpression // case 525: bad_rule = 525; break; // // Rule 526: ClassOrInterfaceType ::= TypeName DepParametersopt // case 526: { Name a = (Name) btParser.getSym(1); TypeNode t = a.toType(); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.ParametricTypeNode(pos(), t, b)); break; } // // Rule 527: DepParameters ::= LPAREN DepParameterExpr RPAREN // case 527: break; // // Rule 528: DepParameterExpr ::= ArgumentList WhereClauseopt // case 528: { List a = (List) btParser.getSym(1); Expr b = (Expr) btParser.getSym(2); btParser.setSym1(nf.DepParameterExpr(pos(),a,b)); break; } // // Rule 529: DepParameterExpr ::= WhereClause // case 529: { Expr b = (Expr) btParser.getSym(1); btParser.setSym1(nf.DepParameterExpr(pos(), null, b)); break; } // // Rule 530: WhereClause ::= COLON Expression // case 530: break; // // Rule 532: X10ArrayType ::= Type LBRACKET DOT RBRACKET // case 532: { TypeNode a = (TypeNode) btParser.getSym(1); TypeNode t = nf.X10ArrayTypeNode(pos(), a, false, null); System.out.println("Parser parses X10ArrayType Type [.] as |" + t +"|"); btParser.setSym1(t); break; } // // Rule 533: X10ArrayType ::= Type reference LBRACKET DOT RBRACKET // case 533: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, null)); break; } // // Rule 534: X10ArrayType ::= Type value LBRACKET DOT RBRACKET // case 534: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, null)); break; } // // Rule 535: X10ArrayType ::= Type LBRACKET DepParameterExpr RBRACKET // case 535: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 536: X10ArrayType ::= Type reference LBRACKET DepParameterExpr RBRACKET // case 536: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 537: X10ArrayType ::= Type value LBRACKET DepParameterExpr RBRACKET // case 537: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, b)); break; } // // Rule 538: ObjectKind ::= value // case 538: bad_rule = 538; break; // // Rule 539: ObjectKind ::= reference // case 539: bad_rule = 539; break; // // Rule 540: MethodModifier ::= atomic // case 540: { btParser.setSym1(Flags.ATOMIC); break; } // // Rule 541: MethodModifier ::= extern // case 541: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 542: ClassDeclaration ::= ValueClassDeclaration // case 542: break; // // Rule 543: ValueClassDeclaration ::= ClassModifiersopt value identifier Superopt Interfacesopt ClassBody // case 543: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); TypeNode c = (TypeNode) btParser.getSym(4); List d = (List) btParser.getSym(5); ClassBody e = (ClassBody) btParser.getSym(6); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 544: ValueClassDeclaration ::= ClassModifiersopt value class identifier Superopt Interfacesopt ClassBody // case 544: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(4)); TypeNode c = (TypeNode) btParser.getSym(5); List d = (List) btParser.getSym(6); ClassBody e = (ClassBody) btParser.getSym(7); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 545: ArrayCreationExpression ::= new ArrayBaseType LBRACKET Expression RBRACKET // case 545: { TypeNode a = (TypeNode) btParser.getSym(2); Expr c = (Expr) btParser.getSym(4); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(c); btParser.setSym1(nf.NewArray(pos(), a, l)); break; } // // Rule 546: ArrayCreationExpression ::= new ArrayBaseType LBRACKET RBRACKET ArrayInitializer // case 546: { TypeNode a = (TypeNode) btParser.getSym(2); ArrayInit d = (ArrayInit) btParser.getSym(5); // btParser.setSym1(nf.ArrayConstructor(pos(), a, false, null, d)); btParser.setSym1(nf.NewArray(pos(), a, 0, d)); break; } // // Rule 547: ArrayCreationExpression ::= new ArrayBaseType LBRACKET DOT Expression RBRACKET // case 547: { TypeNode a = (TypeNode) btParser.getSym(2); Expr c = (Expr) btParser.getSym(5); System.out.println("parser: Parsed new " + a + " [. " + c + " ]"); btParser.setSym1(nf.ArrayConstructor(pos(), a, false, c, null)); break; } // // Rule 548: ArrayCreationExpression ::= new ArrayBaseType LBRACKET DOT Expression RBRACKET Expression // case 548: { TypeNode a = (TypeNode) btParser.getSym(2); Expr c = (Expr) btParser.getSym(5); Expr d = (Expr) btParser.getSym(7); System.out.println("parser: Parsed new " + a + " [. " + c + " ]" + d); btParser.setSym1(nf.ArrayConstructor(pos(), a, false, c, d)); break; } // // Rule 549: ArrayCreationExpression ::= new ArrayBaseType value LBRACKET DOT Expression RBRACKET // case 549: { TypeNode a = (TypeNode) btParser.getSym(2); Expr c = (Expr) btParser.getSym(6); btParser.setSym1(nf.ArrayConstructor(pos(), a, true, c, null)); break; } // // Rule 550: ArrayCreationExpression ::= new ArrayBaseType value LBRACKET DOT Expression RBRACKET Expression // case 550: { TypeNode a = (TypeNode) btParser.getSym(2); Expr c = (Expr) btParser.getSym(6); Expr d = (Expr) btParser.getSym(8); btParser.setSym1(nf.ArrayConstructor(pos(), a, true, c, d)); break; } // // Rule 551: ArrayBaseType ::= PrimitiveType // case 551: break; // // Rule 552: ArrayBaseType ::= ClassOrInterfaceType // case 552: break; // // Rule 553: ArrayAccess ::= ExpressionName LBRACKET ArgumentList RBRACKET // case 553: { Name e = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); System.out.println("ArrayAccess parsing:" + b + " size =" + b.size()); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), e.toExpr(), (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), e.toExpr(), b)); break; } // // Rule 554: ArrayAccess ::= PrimaryNoNewArray LBRACKET ArgumentList RBRACKET // case 554: { Expr a = (Expr) btParser.getSym(1); List b = (List) btParser.getSym(3); System.out.println("ArrayAccess parsing:" + b + " size =" + b.size()); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), a, (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), a, b)); break; } // // Rule 555: Statement ::= NowStatement // case 555: break; // // Rule 556: Statement ::= ClockedStatement // case 556: break; // // Rule 557: Statement ::= AsyncStatement // case 557: break; // // Rule 558: Statement ::= AtomicStatement // case 558: break; // // Rule 559: Statement ::= WhenStatement // case 559: break; // // Rule 560: Statement ::= ForEachStatement // case 560: break; // // Rule 561: Statement ::= AtEachStatement // case 561: break; // // Rule 562: Statement ::= FinishStatement // case 562: break; // // Rule 563: StatementWithoutTrailingSubstatement ::= NextStatement // case 563: break; // // Rule 564: StatementWithoutTrailingSubstatement ::= AwaitStatement // case 564: break; // // Rule 565: StatementNoShortIf ::= NowStatementNoShortIf // case 565: break; // // Rule 566: StatementNoShortIf ::= ClockedStatementNoShortIf // case 566: break; // // Rule 567: StatementNoShortIf ::= AsyncStatementNoShortIf // case 567: break; // // Rule 568: StatementNoShortIf ::= AtomicStatementNoShortIf // case 568: break; // // Rule 569: StatementNoShortIf ::= WhenStatementNoShortIf // case 569: break; // // Rule 570: StatementNoShortIf ::= ForEachStatementNoShortIf // case 570: break; // // Rule 571: StatementNoShortIf ::= AtEachStatementNoShortIf // case 571: break; // // Rule 572: StatementNoShortIf ::= FinishStatementNoShortIf // case 572: break; // // Rule 573: NowStatement ::= now LPAREN Clock RPAREN Statement // case 573: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 574: ClockedStatement ::= clocked LPAREN ClockList RPAREN Statement // case 574: { List a = (List) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 575: AsyncStatement ::= async PlaceExpressionSingleListopt Statement // case 575: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 576: AsyncStatement ::= async LPAREN here RPAREN Statement // case 576: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Async(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 577: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 577: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 578: AtomicStatement ::= atomic LPAREN here RPAREN Statement // case 578: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Atomic(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 579: WhenStatement ::= when LPAREN Expression RPAREN Statement // case 579: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 580: WhenStatement ::= WhenStatement or LPAREN Expression RPAREN Statement // case 580: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); w.add(new When_c.Branch_c(e,s)); btParser.setSym1(w); break; } // // Rule 581: ForEachStatement ::= foreach LPAREN FormalParameter COLON Expression RPAREN Statement // case 581: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 582: AtEachStatement ::= ateach LPAREN FormalParameter COLON Expression RPAREN Statement // case 582: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 583: EnhancedForStatement ::= for LPAREN FormalParameter COLON Expression RPAREN Statement // case 583: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForLoop(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 584: FinishStatement ::= finish Statement // case 584: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 585: NowStatementNoShortIf ::= now LPAREN Clock RPAREN StatementNoShortIf // case 585: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 586: ClockedStatementNoShortIf ::= clocked LPAREN ClockList RPAREN StatementNoShortIf // case 586: { List a = (List) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 587: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt StatementNoShortIf // case 587: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 588: AsyncStatementNoShortIf ::= async LPAREN here RPAREN StatementNoShortIf // case 588: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Async(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 589: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 589: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 590: AtomicStatementNoShortIf ::= atomic LPAREN here RPAREN StatementNoShortIf // case 590: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Atomic(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 591: WhenStatementNoShortIf ::= when LPAREN Expression RPAREN StatementNoShortIf // case 591: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 592: WhenStatementNoShortIf ::= WhenStatement or LPAREN Expression RPAREN StatementNoShortIf // case 592: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); w.add(new When_c.Branch_c(e,s)); btParser.setSym1(w); break; } // // Rule 593: ForEachStatementNoShortIf ::= foreach LPAREN FormalParameter COLON Expression RPAREN StatementNoShortIf // case 593: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 594: AtEachStatementNoShortIf ::= ateach LPAREN FormalParameter COLON Expression RPAREN StatementNoShortIf // case 594: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 595: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 595: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 596: PlaceExpressionSingleList ::= LPAREN PlaceExpression RPAREN // case 596: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 597: PlaceExpression ::= here // case 597: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken()))); break; } // // Rule 598: PlaceExpression ::= this // case 598: { btParser.setSym1(nf.Field(pos(btParser.getFirstToken()), nf.This(pos(btParser.getFirstToken())), "place")); break; } // // Rule 599: PlaceExpression ::= ExpressionName // case 599: { Expr e = (Expr) btParser.getSym(1); btParser.setSym1(nf.Field(pos(btParser.getFirstToken()), e, "place")); break; } // // Rule 600: PlaceExpression ::= ArrayAccess // case 600: bad_rule = 600; break; // // Rule 601: NextStatement ::= next SEMICOLON // case 601: { btParser.setSym1(nf.Next(pos())); break; } // // Rule 602: AwaitStatement ::= await Expression SEMICOLON // case 602: { Expr e = (Expr) btParser.getSym(2); btParser.setSym1(nf.Await(pos(), e)); break; } // // Rule 603: ClockList ::= Clock // case 603: { Name c = (Name) btParser.getSym(1); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(c.toExpr()); btParser.setSym1(l); break; } // // Rule 604: ClockList ::= ClockList COMMA Clock // case 604: { List l = (List) btParser.getSym(1); Name c = (Name) btParser.getSym(3); l.add(c.toExpr()); // btParser.setSym1(l); break; } // // Rule 605: Clock ::= identifier // case 605: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 606: CastExpression ::= LPAREN Type RPAREN UnaryExpressionNotPlusMinus // case 606: { TypeNode a = (TypeNode) btParser.getSym(2); Expr b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Cast(pos(), a, b)); break; } // // Rule 607: MethodInvocation ::= Primary ARROW identifier LPAREN ArgumentListopt RPAREN // case 607: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.RemoteCall(pos(), a, b.getIdentifier(), c)); break; } // // Rule 608: RelationalExpression ::= RelationalExpression instanceof Type // case 608: { Expr a = (Expr) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Instanceof(pos(), a, b)); break; } // // Rule 609: ExpressionName ::= here // case 609: { btParser.setSym1(new Name(nf, ts, pos(), "here"){ public Expr toExpr() { return nf.Here(pos); } }); break; } // // Rule 610: Primary ::= FutureExpression // case 610: break; // // Rule 611: FutureExpression ::= future PlaceExpressionSingleListopt LBRACE Expression RBRACE // case 611: { Expr e1 = (Expr) btParser.getSym(2), e2 = (Expr) btParser.getSym(4); btParser.setSym1(nf.Future(pos(), (e1 == null ? nf.Here(pos(btParser.getFirstToken())) : e1), e2)); break; } // // Rule 612: FutureExpression ::= future LPAREN here RPAREN LBRACE Expression RBRACE // case 612: { Expr e2 = (Expr) btParser.getSym(6); btParser.setSym1(nf.Future(pos(), nf.Here(pos(btParser.getFirstToken(3))), e2)); break; } // // Rule 613: FunExpression ::= fun Type LPAREN FormalParameterListopt RPAREN LBRACE Expression RBRACE // case 613: bad_rule = 613; break; // // Rule 614: MethodInvocation ::= MethodName LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 614: bad_rule = 614; break; // // Rule 615: MethodInvocation ::= Primary DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 615: bad_rule = 615; break; // // Rule 616: MethodInvocation ::= super DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 616: bad_rule = 616; break; // // Rule 617: MethodInvocation ::= ClassName DOT super DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 617: bad_rule = 617; break; // // Rule 618: MethodInvocation ::= TypeName DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 618: bad_rule = 618; break; // // Rule 619: ClassInstanceCreationExpression ::= new ClassOrInterfaceType LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 619: bad_rule = 619; break; // // Rule 620: ClassInstanceCreationExpression ::= Primary DOT new identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 620: bad_rule = 620; break; // // Rule 621: ClassInstanceCreationExpression ::= AmbiguousName DOT new identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 621: bad_rule = 621; break; // // Rule 622: PlaceTypeSpecifieropt ::= // case 622: btParser.setSym1(null); break; // // Rule 623: PlaceTypeSpecifieropt ::= PlaceTypeSpecifier // case 623: break; // // Rule 624: DepParametersopt ::= // case 624: btParser.setSym1(null); break; // // Rule 625: DepParametersopt ::= DepParameters // case 625: break; // // Rule 626: WhereClauseopt ::= // case 626: btParser.setSym1(null); break; // // Rule 627: WhereClauseopt ::= WhereClause // case 627: break; // // Rule 628: ObjectKindopt ::= // case 628: btParser.setSym1(null); break; // // Rule 629: ObjectKindopt ::= ObjectKind // case 629: break; // // Rule 630: ArrayInitializeropt ::= // case 630: btParser.setSym1(null); break; // // Rule 631: ArrayInitializeropt ::= ArrayInitializer // case 631: break; // // Rule 632: ConcreteDistributionopt ::= // case 632: btParser.setSym1(null); break; // // Rule 633: ConcreteDistributionopt ::= ConcreteDistribution // case 633: break; // // Rule 634: PlaceExpressionSingleListopt ::= // case 634: btParser.setSym1(null); break; // // Rule 635: PlaceExpressionSingleListopt ::= PlaceExpressionSingleList // case 635: break; // // Rule 636: ArgumentListopt ::= // case 636: btParser.setSym1(null); break; // // Rule 637: ArgumentListopt ::= ArgumentList // case 637: break; // // Rule 638: DepParametersopt ::= // case 638: btParser.setSym1(null); break; // // Rule 639: DepParametersopt ::= DepParameters // case 639: break; default: break; } return; } | 1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/bb2a94143f433b1bc3a3f14e9063a6f9ed4a0262/X10Parser.java/clean/x10.compiler/src/x10/parser/X10Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1720,
1803,
12,
474,
1720,
1854,
13,
565,
288,
3639,
309,
261,
8759,
67,
5345,
480,
374,
13,
5411,
327,
31,
3639,
1620,
261,
5345,
1854,
13,
3639,
288,
2398,
368,
5411,
368,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1720,
1803,
12,
474,
1720,
1854,
13,
565,
288,
3639,
309,
261,
8759,
67,
5345,
480,
374,
13,
5411,
327,
31,
3639,
1620,
261,
5345,
1854,
13,
3639,
288,
2398,
368,
5411,
368,
... | |
public org.quickfix.field.EncodedUnderlyingIssuer getEncodedUnderlyingIssuer() throws FieldNotFound { org.quickfix.field.EncodedUnderlyingIssuer value = new org.quickfix.field.EncodedUnderlyingIssuer(); | public quickfix.field.EncodedUnderlyingIssuer getEncodedUnderlyingIssuer() throws FieldNotFound { quickfix.field.EncodedUnderlyingIssuer value = new quickfix.field.EncodedUnderlyingIssuer(); | public org.quickfix.field.EncodedUnderlyingIssuer getEncodedUnderlyingIssuer() throws FieldNotFound { org.quickfix.field.EncodedUnderlyingIssuer value = new org.quickfix.field.EncodedUnderlyingIssuer(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/DerivativeSecurityList.java/clean/src/java/src/quickfix/fix43/DerivativeSecurityList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
14655,
6291,
16667,
28799,
14655,
6291,
16667,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
14655,
6291,
166... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
14655,
6291,
16667,
28799,
14655,
6291,
16667,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
14655,
6291,
166... |
assertEquals(mod.folderName, "$\\vsspath\\core"); assertEquals(mod.type, "branch"); | assertEquals(mod.getFolderName(), "$\\vsspath\\core"); assertEquals(mod.type, "vss"); Modification.ModifiedFile modfile = (Modification.ModifiedFile) mod.files.get(0); assertEquals(modfile.action, "branch"); | public void testHandleEntryDirBranched() { List entry = new ArrayList(); vss.setVsspath("\\vsspath"); entry.add("***** core *****"); entry.add("Version 19"); entry.add("User: Etucker Date: 7/03/01 Time: 11:16a"); entry.add("SessionIdGenerator.java branched"); Modification mod = vss.handleEntry(entry); assertEquals(mod.fileName, "SessionIdGenerator.java"); assertEquals(mod.userName, "Etucker"); assertEquals(mod.folderName, "$\\vsspath\\core"); assertEquals(mod.type, "branch"); } | 55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/0b0ffff0e707cb59916a9d7dac2454f2c0303172/VssTest.java/buggy/main/test/net/sourceforge/cruisecontrol/sourcecontrols/VssTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3259,
1622,
1621,
38,
2450,
2049,
1435,
288,
3639,
987,
1241,
273,
394,
2407,
5621,
3639,
331,
1049,
18,
542,
58,
1049,
803,
2932,
1695,
90,
1049,
803,
8863,
3639,
1241,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3259,
1622,
1621,
38,
2450,
2049,
1435,
288,
3639,
987,
1241,
273,
394,
2407,
5621,
3639,
331,
1049,
18,
542,
58,
1049,
803,
2932,
1695,
90,
1049,
803,
8863,
3639,
1241,
... |
"http: | Namespace.XML_NAMESPACE, | public void testBadURIInBaseAttributeWithParent() { Element parent = new Element("parent"); parent.setBaseURI("http://www.cafeconleche.org/"); Element child = new Element("child"); child.setBaseURI("http://www.cafeconleche.org/"); parent.appendChild(child); child.addAttribute(new Attribute("xml:base", "http://www.w3.org/XML/1998/namespace", "%TR.html")); assertEquals("http://www.cafeconleche.org/", child.getBaseURI()); } | 626 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/626/7a66786fdb939cedcc5a7654e0039b1c085a7a05/BaseURITest.java/clean/src/nu/xom/tests/BaseURITest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
6434,
3098,
382,
2171,
1499,
1190,
3054,
1435,
288,
7734,
3010,
982,
273,
394,
3010,
2932,
2938,
8863,
3639,
982,
18,
542,
2171,
3098,
2932,
2505,
2207,
5591,
18,
71,
172... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
6434,
3098,
382,
2171,
1499,
1190,
3054,
1435,
288,
7734,
3010,
982,
273,
394,
3010,
2932,
2938,
8863,
3639,
982,
18,
542,
2171,
3098,
2932,
2505,
2207,
5591,
18,
71,
172... |
super( parent, style ); this.formatspecifier = formatspecifier; init( ); placeComponents( ); | this( parent, style, formatspecifier, new String[]{ DATA_TYPE_NUMBER, DATA_TYPE_DATETIME } ); | public FormatSpecifierComposite( Composite parent, int style, FormatSpecifier formatspecifier ) { super( parent, style ); this.formatspecifier = formatspecifier; init( ); placeComponents( ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/a8cbb3bd39fd0de535656d42c24e44059a9ca11b/FormatSpecifierComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FormatSpecifierComposite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4077,
21416,
9400,
12,
14728,
982,
16,
509,
2154,
16,
1082,
202,
1630,
21416,
740,
2793,
1251,
262,
202,
95,
202,
202,
9565,
12,
982,
16,
2154,
11272,
202,
202,
2211,
18,
2139... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4077,
21416,
9400,
12,
14728,
982,
16,
509,
2154,
16,
1082,
202,
1630,
21416,
740,
2793,
1251,
262,
202,
95,
202,
202,
9565,
12,
982,
16,
2154,
11272,
202,
202,
2211,
18,
2139... |
throw new IllegalArgumentException( | throw new IOException( | public List parse() { List list = new ArrayList(); String attValue; String attType = nextAT(); if (attType == null) { return list; //empty list of RDNs } List atav = new ArrayList(); while (true) { if (pos == length) { //empty Attribute Value atav.add(new AttributeTypeAndValue(attType, new AttributeValue( "", false))); list.add(0, atav); return list; } switch (chars[pos]) { case '"': attValue = quotedAV(); atav.add(new AttributeTypeAndValue(attType, new AttributeValue( attValue, hasQE))); break; case '#': attValue = hexAV(); atav.add(new AttributeTypeAndValue(attType, new AttributeValue( attValue, encoded))); break; case '+': case ',': case ';': // compatibility with RFC 1779: semicolon can separate RDNs //empty attribute value atav.add(new AttributeTypeAndValue(attType, new AttributeValue( "", false))); break; default: attValue = escapedAV(); atav.add(new AttributeTypeAndValue(attType, new AttributeValue( attValue, hasQE))); } if (pos >= length) { list.add(0, atav); return list; } if (chars[pos] == ',' || chars[pos] == ';') { list.add(0, atav); atav = new ArrayList(); } else if (chars[pos] != '+') { throw new IllegalArgumentException( "Invalid distinguished name string"); } pos++; attType = nextAT(); if (attType == null) { throw new IllegalArgumentException( "Invalid distinguished name string"); } } } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/cd486b2997fc7cfe4c08299e2fbad2544d3edffb/DNParser.java/clean/modules/security/src/main/java/common/org/apache/harmony/security/x509/DNParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
1109,
1435,
288,
3639,
987,
666,
273,
394,
2407,
5621,
3639,
514,
2403,
620,
31,
3639,
514,
2403,
559,
273,
1024,
789,
5621,
3639,
309,
261,
4558,
559,
422,
446,
13,
288,
541... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
1109,
1435,
288,
3639,
987,
666,
273,
394,
2407,
5621,
3639,
514,
2403,
620,
31,
3639,
514,
2403,
559,
273,
1024,
789,
5621,
3639,
309,
261,
4558,
559,
422,
446,
13,
288,
541... |
this.priority = prio; | priority = prio; | public void setFCPPriority(int prio) { Logger.info(this, "Setting priority to "+Integer.toString(prio)); this.priority = prio; this.setChanged(); this.notifyObservers(); } | 47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/0458430a0dc8a713aa2b4d64f000cbbaaeb4adea/FCPClientGet.java/buggy/src/thaw/fcp/FCPClientGet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
24340,
4258,
8183,
12,
474,
14705,
83,
13,
288,
202,
202,
3328,
18,
1376,
12,
2211,
16,
315,
5568,
4394,
358,
13773,
4522,
18,
10492,
12,
29112,
83,
10019,
202,
202,
2211... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
24340,
4258,
8183,
12,
474,
14705,
83,
13,
288,
202,
202,
3328,
18,
1376,
12,
2211,
16,
315,
5568,
4394,
358,
13773,
4522,
18,
10492,
12,
29112,
83,
10019,
202,
202,
2211... |
Crystal crystal = new Crystal(); | Crystal crystal = builder.newCrystal(); | public void testAdd_AtomContainer() { AtomContainer acetone = new org.openscience.cdk.AtomContainer(); Atom c1 = new Atom("C"); Atom c2 = new Atom("C"); Atom o = new Atom("O"); Atom c3 = new Atom("C"); acetone.addAtom(c1); acetone.addAtom(c2); acetone.addAtom(c3); acetone.addAtom(o); Bond b1 = new Bond(c1, c2,1); Bond b2 = new Bond(c1, o, 2); Bond b3 = new Bond(c1, c3,1); acetone.addBond(b1); acetone.addBond(b2); acetone.addBond(b3); Crystal crystal = new Crystal(); crystal.add(acetone); assertEquals(4, crystal.getAtomCount()); assertEquals(3, crystal.getBondCount()); } | 1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/d21f277c120791acd10319bbfe4f2deaa0db1306/CrystalTest.java/buggy/src/org/openscience/cdk/test/CrystalTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
986,
67,
3641,
2170,
1435,
288,
3639,
7149,
2170,
1721,
278,
476,
273,
394,
2358,
18,
20346,
71,
6254,
18,
71,
2883,
18,
3641,
2170,
5621,
3639,
7149,
276,
21,
273,
394... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
986,
67,
3641,
2170,
1435,
288,
3639,
7149,
2170,
1721,
278,
476,
273,
394,
2358,
18,
20346,
71,
6254,
18,
71,
2883,
18,
3641,
2170,
5621,
3639,
7149,
276,
21,
273,
394... |
synchronizer.initializeClasspaths(); | protected void initializeSynchronizer() { synchronizer = new JavaReflectionSynchronizer(this); synchronizer.initializeClasspaths();} | 8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/7d45e9b1762d7b0eed96f268aa7abdf4720a51f6/JavaJDOMAdapterFactory.java/buggy/plugins/org.eclipse.jem.workbench/workbench/org/eclipse/jem/internal/adapters/jdom/JavaJDOMAdapterFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
4046,
19298,
1824,
1435,
288,
202,
87,
2600,
1824,
273,
394,
5110,
9801,
19298,
1824,
12,
2211,
1769,
202,
87,
2600,
1824,
18,
11160,
797,
4481,
5621,
97,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
4046,
19298,
1824,
1435,
288,
202,
87,
2600,
1824,
273,
394,
5110,
9801,
19298,
1824,
12,
2211,
1769,
202,
87,
2600,
1824,
18,
11160,
797,
4481,
5621,
97,
2,
-100,
-100,
-100,
-100,... | |
public List<ITask> getPlannedTasks() { | public Set<ITask> getPlannedTasks() { | public List<ITask> getPlannedTasks() { return plannedTasks; } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/376468c4ba28400bd64ae41664789f947784c0af/TaskPlannerEditorInput.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/planner/ui/TaskPlannerEditorInput.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
32,
1285,
835,
34,
9774,
10041,
6685,
1435,
288,
202,
202,
2463,
886,
10041,
6685,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
32,
1285,
835,
34,
9774,
10041,
6685,
1435,
288,
202,
202,
2463,
886,
10041,
6685,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
} | } | public void beginTask(String taskName, int totalWork) { JobInfo info = getJobInfo(job); info.beginTask(taskName, totalWork); refreshJobInfo(info); currentTaskName = taskName; if (listener != null) { listener.beginTask(taskName, totalWork); } } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/82e45bfb168fa5c37a8ced4976d2cc8fef6ce0f2/ProgressManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
2376,
2174,
12,
780,
20172,
16,
509,
2078,
2421,
13,
288,
1082,
202,
2278,
966,
1123,
273,
13024,
966,
12,
4688,
1769,
1082,
202,
1376,
18,
10086,
2174,
12,
4146,
461,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
2376,
2174,
12,
780,
20172,
16,
509,
2078,
2421,
13,
288,
1082,
202,
2278,
966,
1123,
273,
13024,
966,
12,
4688,
1769,
1082,
202,
1376,
18,
10086,
2174,
12,
4146,
461,
1... |
myParent.getInternalObject().updateRow(myParent.getId(), myParent.getIDG(),myParent.getCod(), | myParent.getInternalObject().updateRow(myParent.getId(), myParent.getIDG(), myParent.getCod(), | private void saveRecord() { if(cFields()){ oldIDG = myParent.getIDG(); oldCod = myParent.getCod(); oldName = myParent.getNames(); oldComment = myParent.getComment(); try { myParent.setCod(Integer.parseInt(jTextField1.getText())); } catch (NumberFormatException nfex) { nfex.printStackTrace(); } myParent.setNames(jTextField3.getText()); myParent.setComment(jTextArea1.getText()); myParent.setIDG(myParent.getInternalObject().getIndexConnOfId()[jComboG.getSelectedIndex()]); myParent.getInternalObject().updateRow(myParent.getId(), myParent.getIDG(),myParent.getCod(), myParent.getNames(), myParent.getComment()); myParent.refreshTable(); myParent.getTable().changeSelection(myParent.getRow(),2,false,false); jButtonUndo.setEnabled(true);} } | 12667 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12667/cd1bd2c80a65366109bb73522f79affdaac52026/aeCasa.java/buggy/src/nom/aeCasa.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1923,
2115,
1435,
288,
3639,
309,
12,
71,
2314,
10756,
95,
5411,
1592,
734,
43,
273,
3399,
3054,
18,
588,
734,
43,
5621,
5411,
1592,
29633,
273,
3399,
3054,
18,
588,
29633,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1923,
2115,
1435,
288,
3639,
309,
12,
71,
2314,
10756,
95,
5411,
1592,
734,
43,
273,
3399,
3054,
18,
588,
734,
43,
5621,
5411,
1592,
29633,
273,
3399,
3054,
18,
588,
29633,
5... |
int type = BOR; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; { | try { int type = BOR; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; { match('|'); | public void mBOR() throws RecognitionException { int type = BOR; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.lexer.g:136:7: ( '|' ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.lexer.g:136:7: '|' { match('|'); } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/7e425814ce563fcc662b266adb2a4dc8e1a95d19/JavaParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParserLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
38,
916,
1435,
1216,
9539,
288,
3639,
509,
618,
273,
605,
916,
31,
3639,
509,
787,
273,
23577,
1016,
5621,
3639,
509,
980,
273,
9851,
5621,
3639,
509,
1149,
2555,
273,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
38,
916,
1435,
1216,
9539,
288,
3639,
509,
618,
273,
605,
916,
31,
3639,
509,
787,
273,
23577,
1016,
5621,
3639,
509,
980,
273,
9851,
5621,
3639,
509,
1149,
2555,
273,
2... |
Vector3f locationPos = calcVec1.set(position).subtractLocal( localTranslation).divideLocal(stepScale); locationPos.multLocal(getStepScale()); | Vector3f locationPos = calcVec1.set(position).subtractLocal( localTranslation).divideLocal(stepScale); locationPos.multLocal(getStepScale()); | public float getHeightFromWorld(Vector3f position) { Vector3f locationPos = calcVec1.set(position).subtractLocal( localTranslation).divideLocal(stepScale); locationPos.multLocal(getStepScale()); return getHeight(locationPos.x, locationPos.z); } | 19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/45fa64e083912b459ff58146e313c758a1c26093/TerrainPage.java/buggy/src/com/jmex/terrain/TerrainPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1431,
9263,
1265,
18071,
12,
5018,
23,
74,
1754,
13,
288,
3639,
5589,
23,
74,
2117,
1616,
273,
7029,
12991,
21,
18,
542,
12,
3276,
2934,
1717,
1575,
2042,
12,
7734,
1191,
6717,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1431,
9263,
1265,
18071,
12,
5018,
23,
74,
1754,
13,
288,
3639,
5589,
23,
74,
2117,
1616,
273,
7029,
12991,
21,
18,
542,
12,
3276,
2934,
1717,
1575,
2042,
12,
7734,
1191,
6717,
29... |
sb.append( identifier ); | sb.append( identifier >= 0 ? identifier : identifier ^ 0xffffff00 ); | public String toString() { StringBuffer sb = new StringBuffer(); sb.append("ICMP: "); sb.append( getTypeLabel() ); final String codeLabel = getCodeLabel(); if( codeLabel.length() > 0 ){ sb.append(" ("); sb.append( codeLabel ); sb.append(')'); } if( isQuery() ){ sb.append(" identifier-"); sb.append( identifier ); sb.append(" seq-"); sb.append( sequence_number ); } sb.append(" length-"); sb.append( count ); sb.append(" bytes"); return sb.toString(); } | 4599 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4599/301289e971ef74e25311bc31a83488dc2c765201/ICMPMessage.java/buggy/src/com/act365/net/icmp/ICMPMessage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1762,
1435,
288,
5411,
6674,
2393,
273,
394,
6674,
5621,
5411,
2393,
18,
6923,
2932,
2871,
4566,
30,
315,
1769,
1377,
2393,
18,
6923,
12,
3130,
2224,
1435,
11272,
5411,
727,
51... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1762,
1435,
288,
5411,
6674,
2393,
273,
394,
6674,
5621,
5411,
2393,
18,
6923,
2932,
2871,
4566,
30,
315,
1769,
1377,
2393,
18,
6923,
12,
3130,
2224,
1435,
11272,
5411,
727,
51... |
try { File file = this.fileAccessService.getPrivatePersistentFile(fileName); if(!file.exists()) { assertTrue(file.createNewFile()); } | try { File file = this.fileAccessService .getPrivatePersistentFile(fileName); if (!file.exists()) { assertTrue(file.createNewFile()); } | public void testPersistentFilePersistency() { try { File file = this.fileAccessService.getPrivatePersistentFile(fileName); if(!file.exists()) { assertTrue(file.createNewFile()); } writeReadFile(file); File newFile = this.fileAccessService.getPrivatePersistentFile(fileName); // Assert that those files are in fact the same assertEquals(file, newFile); // and with the same size assertEquals(file.length(), newFile.length()); } catch (Exception e) { fail(e.getMessage()); } } | 27035 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27035/0c761c736af622d36b8ce9b201c391d24ce52b89/TestFileAccessService.java/clean/test/net/java/sip/communicator/slick/fileaccess/TestFileAccessService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
11906,
812,
12771,
2075,
1435,
288,
9506,
202,
698,
288,
1082,
202,
812,
585,
273,
333,
18,
768,
1862,
1179,
18,
588,
6014,
11906,
812,
12,
17812,
1769,
25083,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
11906,
812,
12771,
2075,
1435,
288,
9506,
202,
698,
288,
1082,
202,
812,
585,
273,
333,
18,
768,
1862,
1179,
18,
588,
6014,
11906,
812,
12,
17812,
1769,
25083,
202,
... |
setDisabled(((Boolean) evalAttr("disabled", getDisabled() + "", | setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), | private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskey(), String.class)); } catch (NullAttributeException ex) { setAccesskey(null); } try { setAlt((String) evalAttr("alt", getAlt(), String.class)); } catch (NullAttributeException ex) { setAlt(null); } try { setAltKey((String) evalAttr("altKey", getAltKey(), String.class)); } catch (NullAttributeException ex) { setAltKey(null); } try { setCols((String) evalAttr("cols", getCols(), String.class)); } catch (NullAttributeException ex) { setCols(null); } try { setDisabled(((Boolean) evalAttr("disabled", getDisabled() + "", Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setDisabled(false); } try { setIndexed(((Boolean) evalAttr("indexed", getIndexed() + "", Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setIndexed(false); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); } catch (NullAttributeException ex) { setOnblur(null); } try { setOnchange((String) evalAttr("onchange", getOnchange(), String.class)); } catch (NullAttributeException ex) { setOnchange(null); } try { setOnclick((String) evalAttr("onclick", getOnclick(), String.class)); } catch (NullAttributeException ex) { setOnclick(null); } try { setOndblclick((String) evalAttr("ondblclick", getOndblclick(), String.class)); } catch (NullAttributeException ex) { setOndblclick(null); } try { setOnfocus((String) evalAttr("onfocus", getOnfocus(), String.class)); } catch (NullAttributeException ex) { setOnfocus(null); } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydown(), String.class)); } catch (NullAttributeException ex) { setOnkeydown(null); } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypress(), String.class)); } catch (NullAttributeException ex) { setOnkeypress(null); } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(), String.class)); } catch (NullAttributeException ex) { setOnkeyup(null); } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedown(), String.class)); } catch (NullAttributeException ex) { setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(), String.class)); } catch (NullAttributeException ex) { setOnmousemove(null); } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseout(), String.class)); } catch (NullAttributeException ex) { setOnmouseout(null); } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseover(), String.class)); } catch (NullAttributeException ex) { setOnmouseover(null); } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(), String.class)); } catch (NullAttributeException ex) { setOnmouseup(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setReadonly(((Boolean) evalAttr("readonly", getReadonly()+"", Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setReadonly(false); } try { setRows((String) evalAttr("rows", getRows(), String.class)); } catch (NullAttributeException ex) { setRows(null); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setSize((String) evalAttr("size", getSize(), String.class)); } catch (NullAttributeException ex) { setSize(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setTabindex((String) evalAttr("tabindex", getTabindex(), String.class)); } catch (NullAttributeException ex) { setTabindex(null); } try { setTitle((String) evalAttr("title", getTitle(), String.class)); } catch (NullAttributeException ex) { setTitle(null); } try { setTitleKey((String) evalAttr("titleKey", getTitleKey(), String.class)); } catch (NullAttributeException ex) { setTitleKey(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } } | 8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/e679eaeee0e8e3d08af59a27c47d892908e9a9f1/ELTextareaTag.java/clean/struts-el/src/share/org/apache/strutsel/taglib/html/ELTextareaTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
9334,
4766,
6647,
514,
18,
1106,
10019,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
9334,
4766,
6647,
514,
18,
1106,
10019,
... |
public MethodInvoker(Object receiver, String methodName, Object[] args) { this.receiver = receiver; receiverType = receiver.getClass(); this.methodName = methodName; this.args = args; argTypes = new Class[args.length]; for (int i = 0; i < args.length; i++) { argTypes[i] = args[i].getClass(); } | public MethodInvoker(Object receiver, String methodName) { this(receiver, methodName, new Object[0]); | public MethodInvoker(Object receiver, String methodName, Object[] args) { this.receiver = receiver; receiverType = receiver.getClass(); this.methodName = methodName; this.args = args; argTypes = new Class[args.length]; for (int i = 0; i < args.length; i++) { argTypes[i] = args[i].getClass(); } } | 5239 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5239/3c6926451f33d168070ace88d0f60e099fbdf6db/MethodInvoker.java/buggy/jwebunit-commons-tests/src/main/java/net/sourceforge/jwebunit/tests/util/reflect/MethodInvoker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2985,
24455,
12,
921,
5971,
16,
514,
4918,
16,
1033,
8526,
833,
13,
288,
3639,
333,
18,
24454,
273,
5971,
31,
3639,
5971,
559,
273,
5971,
18,
588,
797,
5621,
3639,
333,
18,
2039,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2985,
24455,
12,
921,
5971,
16,
514,
4918,
16,
1033,
8526,
833,
13,
288,
3639,
333,
18,
24454,
273,
5971,
31,
3639,
5971,
559,
273,
5971,
18,
588,
797,
5621,
3639,
333,
18,
2039,
... |
void showStopLine(Dim.StackFrame frame) { | void showStopLine(Dim.StackFrame frame) { | void showStopLine(Dim.StackFrame frame) { String sourceName = frame.getUrl(); if (sourceName == null || sourceName.equals("<stdin>")) { if (console.isVisible()) { console.show(); } } else { int lineNumber = frame.getLineNumber(); FileWindow w = getFileWindow(sourceName); if (w != null) { setFilePosition(w, lineNumber); } else { Dim.SourceInfo si = frame.sourceInfo(); createFileWindow(si, lineNumber); } } } | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/2d4fc75b74d717c754829dde488ff0a7456682cc/SwingGui.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/SwingGui.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
2405,
4947,
1670,
12,
5225,
18,
2624,
3219,
2623,
13,
565,
288,
3639,
514,
28337,
273,
2623,
18,
588,
1489,
5621,
3639,
309,
261,
3168,
461,
422,
446,
747,
28337,
18,
14963,
2932,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
2405,
4947,
1670,
12,
5225,
18,
2624,
3219,
2623,
13,
565,
288,
3639,
514,
28337,
273,
2623,
18,
588,
1489,
5621,
3639,
309,
261,
3168,
461,
422,
446,
747,
28337,
18,
14963,
2932,
... |
localEos.addObject(localInstanceOfObject(ec, (EOEnterpriseObject) e .nextElement())); | localEos.addObject(localInstanceOfObject(ec, (EOEnterpriseObject)e.nextElement())); | public static NSArray localInstancesOfObjects(EOEditingContext ec, NSArray eos) { if (eos == null) throw new RuntimeException( "ERXEOControlUtilities: localInstancesOfObjects: Array is null"); if (ec == null) throw new RuntimeException( "ERXEOControlUtilities: localInstancesOfObjects: EditingContext is null"); NSMutableArray localEos = new NSMutableArray(); for (Enumeration e = eos.objectEnumerator(); e.hasMoreElements();) { localEos.addObject(localInstanceOfObject(ec, (EOEnterpriseObject) e .nextElement())); } return localEos; } | 22541 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/22541/34bd76e4415f130e75e7bb5959a34935299de2cf/ERXEOControlUtilities.java/clean/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXEOControlUtilities.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
11472,
1076,
1191,
5361,
951,
4710,
12,
41,
51,
28029,
1042,
6557,
16,
5411,
11472,
1076,
425,
538,
13,
288,
3639,
309,
261,
73,
538,
422,
446,
13,
7734,
604,
394,
3235,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
11472,
1076,
1191,
5361,
951,
4710,
12,
41,
51,
28029,
1042,
6557,
16,
5411,
11472,
1076,
425,
538,
13,
288,
3639,
309,
261,
73,
538,
422,
446,
13,
7734,
604,
394,
3235,
12,
... |
Button deselectAll = new Button( buttonsComposite, SWT.PUSH ); | deselectAll = new Button( buttonsComposite, SWT.PUSH ); | private void createButtons( Composite parent ) { Composite buttonsComposite = new Composite( parent, SWT.NULL ); GridLayout layout = new GridLayout( ); layout.marginWidth = 0; layout.marginHeight = 0; buttonsComposite.setLayout( layout ); buttonsComposite.setLayoutData( new GridData( GridData.VERTICAL_ALIGN_BEGINNING ) ); Button selectAll = new Button( buttonsComposite, SWT.PUSH ); selectAll.setText( Messages.getString( "WizardSelectCssStylePage.button.label.selectAll" ) ); //$NON-NLS-1$ selectAll.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { TableItem[] ch = stylesTable.getItems( ); for ( int i = 0; i < ch.length; i++ ) { ch[i].setChecked( true ); } } } ); setButtonLayoutData( selectAll ); Button deselectAll = new Button( buttonsComposite, SWT.PUSH ); deselectAll.setText( Messages.getString( "WizardSelectCssStylePage.button.label.deselectAll" ) ); //$NON-NLS-1$ deselectAll.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { TableItem[] ch = stylesTable.getItems( ); for ( int i = 0; i < ch.length; i++ ) { ch[i].setChecked( false ); } } } ); setButtonLayoutData( deselectAll ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/7ebaf7251c0d8801f4854288ae1f312412b8a70f/WizardSelectCssStylePage.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/WizardSelectCssStylePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
14388,
12,
14728,
982,
262,
202,
95,
202,
202,
9400,
9502,
9400,
273,
394,
14728,
12,
982,
16,
348,
8588,
18,
8560,
11272,
202,
202,
6313,
3744,
3511,
273,
394,
714... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
14388,
12,
14728,
982,
262,
202,
95,
202,
202,
9400,
9502,
9400,
273,
394,
14728,
12,
982,
16,
348,
8588,
18,
8560,
11272,
202,
202,
6313,
3744,
3511,
273,
394,
714... |
match(input,38,FOLLOW_38_in_word3301); if (failed) return word; | match(input,38,FOLLOW_38_in_word3283); if (failed) return word; | public String word() throws RecognitionException { String word = null; Token id=null; Token str=null; word = null; try { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1286:4: ( ( ID )=>id= ID | ( 'import' )=> 'import' | ( 'use' )=> 'use' | ( 'rule' )=> 'rule' | ( 'query' )=> 'query' | ( 'salience' )=> 'salience' | ( 'no-loop' )=> 'no-loop' | ( 'when' )=> 'when' | ( 'then' )=> 'then' | ( 'end' )=> 'end' | str= STRING ) int alt51=11; switch ( input.LA(1) ) { case ID: alt51=1; break; case 28: alt51=2; break; case 73: alt51=3; break; case 37: alt51=4; break; case 34: alt51=5; break; case 41: alt51=6; break; case 42: alt51=7; break; case 38: alt51=8; break; case RHS: alt51=9; break; case 35: alt51=10; break; case STRING: alt51=11; break; default: if (backtracking>0) {failed=true; return word;} NoViableAltException nvae = new NoViableAltException("1282:1: word returns [String word] : ( ( ID )=>id= ID | ( 'import' )=> 'import' | ( 'use' )=> 'use' | ( 'rule' )=> 'rule' | ( 'query' )=> 'query' | ( 'salience' )=> 'salience' | ( 'no-loop' )=> 'no-loop' | ( 'when' )=> 'when' | ( 'then' )=> 'then' | ( 'end' )=> 'end' | str= STRING );", 51, 0, input); throw nvae; } switch (alt51) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1286:4: ( ID )=>id= ID { id=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_word3231); if (failed) return word; if ( backtracking==0 ) { word=id.getText(); } } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1287:4: ( 'import' )=> 'import' { match(input,28,FOLLOW_28_in_word3243); if (failed) return word; if ( backtracking==0 ) { word="import"; } } break; case 3 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1288:4: ( 'use' )=> 'use' { match(input,73,FOLLOW_73_in_word3252); if (failed) return word; if ( backtracking==0 ) { word="use"; } } break; case 4 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1289:4: ( 'rule' )=> 'rule' { match(input,37,FOLLOW_37_in_word3264); if (failed) return word; if ( backtracking==0 ) { word="rule"; } } break; case 5 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1290:4: ( 'query' )=> 'query' { match(input,34,FOLLOW_34_in_word3275); if (failed) return word; if ( backtracking==0 ) { word="query"; } } break; case 6 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1291:4: ( 'salience' )=> 'salience' { match(input,41,FOLLOW_41_in_word3285); if (failed) return word; if ( backtracking==0 ) { word="salience"; } } break; case 7 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1292:5: ( 'no-loop' )=> 'no-loop' { match(input,42,FOLLOW_42_in_word3293); if (failed) return word; if ( backtracking==0 ) { word="no-loop"; } } break; case 8 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1293:4: ( 'when' )=> 'when' { match(input,38,FOLLOW_38_in_word3301); if (failed) return word; if ( backtracking==0 ) { word="when"; } } break; case 9 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1294:4: ( 'then' )=> 'then' { match(input,RHS,FOLLOW_RHS_in_word3312); if (failed) return word; if ( backtracking==0 ) { word="then"; } } break; case 10 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1295:4: ( 'end' )=> 'end' { match(input,35,FOLLOW_35_in_word3323); if (failed) return word; if ( backtracking==0 ) { word="end"; } } break; case 11 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1296:4: str= STRING { str=(Token)input.LT(1); match(input,STRING,FOLLOW_STRING_in_word3337); if (failed) return word; if ( backtracking==0 ) { word=getString(str); } } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return word; } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/0aa286f40333d2c596071d72d310904501c4f8b2/DRLParser.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2076,
1435,
1216,
9539,
288,
6647,
514,
2076,
273,
446,
31,
3639,
3155,
612,
33,
2011,
31,
3639,
3155,
609,
33,
2011,
31,
1171,
202,
202,
1095,
273,
446,
31,
540,
202,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2076,
1435,
1216,
9539,
288,
6647,
514,
2076,
273,
446,
31,
3639,
3155,
612,
33,
2011,
31,
3639,
3155,
609,
33,
2011,
31,
1171,
202,
202,
1095,
273,
446,
31,
540,
202,
3639,
... |
void heredoc_restore() { HereDocNode here = (HereDocNode) lex_strterm; support.setBuffer(here.getLastLine(), here.getPosition()); } | 45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/6f66db94b4abb0c89da5bc3bb0414d0f4aa78d6c/RubyYaccLexer.java/buggy/src/org/jruby/lexer/yacc/RubyYaccLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
22336,
329,
504,
67,
13991,
1435,
288,
3639,
13743,
1759,
907,
2674,
273,
261,
26715,
1759,
907,
13,
5275,
67,
701,
6408,
31,
3639,
2865,
18,
542,
1892,
12,
14852,
18,
588,
3024,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
22336,
329,
504,
67,
13991,
1435,
288,
3639,
13743,
1759,
907,
2674,
273,
261,
26715,
1759,
907,
13,
5275,
67,
701,
6408,
31,
3639,
2865,
18,
542,
1892,
12,
14852,
18,
588,
3024,
1... | ||
public SOAPEnvelope getEchoSoapEnvelope() { SOAPFactory omfactory = OMAbstractFactory.getSOAP11Factory(); SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope(); reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "soapenv"); reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance", "xsi"); reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/soap/", "soap"); reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd"); reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC"); reqEnv.declareNamespace("http://soapinterop.org/", "tns"); reqEnv.declareNamespace("http://soapinterop.org/xsd", "s"); reqEnv.declareNamespace("http://schemas.xmlsoap.org/wsdl/", "wsdl"); OMElement operation = omfactory.createOMElement("echoIntegerArray", "http://soapinterop.org/", null); SOAPBody body = omfactory.createSOAPBody(reqEnv); body.addChild(operation); operation.addAttribute("soapenv:encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", null); OMElement part = omfactory.createOMElement("inputIntegerArray", "", null); part.addAttribute("xsi:type", "SOAP-ENC:Array", null); part.addAttribute("SOAP-ENC:arrayType", "xsd:int[3]", null); OMElement value0 = omfactory.createOMElement("varString", "", null); value0.addAttribute("xsi:type", "xsd:int", null); value0.addChild(omfactory.createText("451")); OMElement value1 = omfactory.createOMElement("varString", "", null); value1.addAttribute("xsi:type", "xsd:int", null); value1.addChild(omfactory.createText("425")); OMElement value2 = omfactory.createOMElement("varString", "", null); value2.addAttribute("xsi:type", "xsd:int", null); value2.addChild(omfactory.createText("2523")); part.addChild(value0); part.addChild(value1); part.addChild(value2); operation.addChild(part); //reqEnv.getBody().addChild(method); return reqEnv; } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/95f09abc768fee06d65b12836e31273ac0e15eb3/Round1IntArrayUtil.java/clean/modules/integration/src/test/interop/whitemesa/round1/util/Round1IntArrayUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
27952,
10862,
588,
19704,
20601,
10862,
1435,
95,
27952,
1733,
362,
6848,
33,
1872,
7469,
1733,
18,
588,
27952,
2499,
1733,
5621,
27952,
664,
6294,
11253,
3491,
33,
362,
6848,
18,
2640,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
27952,
10862,
588,
19704,
20601,
10862,
1435,
95,
27952,
1733,
362,
6848,
33,
1872,
7469,
1733,
18,
588,
27952,
2499,
1733,
5621,
27952,
664,
6294,
11253,
3491,
33,
362,
6848,
18,
2640,
27... | ||
receiver.getInternalClass().call(receiver.toRubyObject(), iVisited.getName(), args.toJavaArray(), 0); | receiver.getInternalClass().call(receiver, iVisited.getName(), args.toJavaArray(), 0); | public void visitCallNode(CallNode iVisited) { EvaluateVisitor evaluator = EvaluateVisitor.createVisitor(self); IRubyObject receiver = evaluator.eval(iVisited.getReceiverNode()); if (iVisited.getArgsNode() == null) { // attribute set. receiver.getInternalClass().call(receiver.toRubyObject(), iVisited.getName(), new IRubyObject[] {value}, 0); } else { // element set RubyArray args = (RubyArray) evaluator.eval(iVisited.getArgsNode()); args.append(value); receiver.getInternalClass().call(receiver.toRubyObject(), iVisited.getName(), args.toJavaArray(), 0); } } | 48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/f235ab756f32ea9496f8f880066b46ad95ebb692/AssignmentVisitor.java/buggy/org/jruby/evaluator/AssignmentVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
1477,
907,
12,
1477,
907,
277,
30019,
13,
288,
3639,
18176,
7413,
18256,
273,
18176,
7413,
18,
2640,
7413,
12,
2890,
1769,
3639,
15908,
10340,
921,
5971,
273,
18256,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
1477,
907,
12,
1477,
907,
277,
30019,
13,
288,
3639,
18176,
7413,
18256,
273,
18176,
7413,
18,
2640,
7413,
12,
2890,
1769,
3639,
15908,
10340,
921,
5971,
273,
18256,
18,
... |
value = cr.readClass( off =+ 2, buf); | value = cr.readClass( off, buf); off += 2; | public int read( ClassReader cr, int off, char[] buf) { tag = cr.b[ off++] & 0xff; switch( tag) { case 'B': // pointer to CONSTANT_Byte case 'C': // pointer to CONSTANT_Char case 'D': // pointer to CONSTANT_Double case 'F': // pointer to CONSTANT_Float case 'I': // pointer to CONSTANT_Integer case 'J': // pointer to CONSTANT_Long case 'S': // pointer to CONSTANT_Short case 'Z': // pointer to CONSTANT_Boolean case 's': // pointer to CONSTANT_Utf8 value = cr.readConst( cr.readUnsignedShort( off =+ 2), buf); break; case 'e': // enum_const_value value = new EnumConstValue( cr.readClass( off =+ 2, buf), cr.readClass( off =+ 2, buf)); break; case 'c': // class_info value = cr.readClass( off =+ 2, buf); break; case '@': // annotation_value value = new Annotation(); off = (( Annotation) value).read( cr, off, buf); break; case '[': // array_value value = new LinkedList(); int size = cr.readUnsignedShort( off =+ 2); for( int i = 0; i<size; i++) { AnnotationMemberValue member = new AnnotationMemberValue(); member.read( cr, off, buf); (( List) value).add( member); } break; } return off; } | 8320 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8320/f2a1c6f2872a82afd2f2c6d90320f1ef3135eb32/AnnotationMemberValue.java/buggy/asm/src/org/objectweb/asm/attrs/AnnotationMemberValue.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
855,
12,
1659,
2514,
4422,
16,
509,
3397,
16,
1149,
8526,
1681,
13,
288,
565,
1047,
273,
4422,
18,
70,
63,
3397,
9904,
65,
473,
374,
5297,
31,
565,
1620,
12,
1047,
13,
288,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
855,
12,
1659,
2514,
4422,
16,
509,
3397,
16,
1149,
8526,
1681,
13,
288,
565,
1047,
273,
4422,
18,
70,
63,
3397,
9904,
65,
473,
374,
5297,
31,
565,
1620,
12,
1047,
13,
288,... |
else if (token.equals("O")) | else if ("O".equals(token)) | public FieldSpec(String spec) throws Exception { StringTokenizer tokenizer = new StringTokenizer(spec, ":"); if ((tokenizer.countTokens() >= MIN_TOKENS) && (tokenizer.countTokens() <= MAX_TOKENS)) { String token = tokenizer.nextToken().toUpperCase(); // ------------------------------------------------ // test the first token for a valid type identifier // if it's valid assign the token to the type. // ------------------------------------------------ if (token.equals("N")) { type = RuleTextField.N; } else if (token.equals("H")) { type = RuleTextField.H; } else if (token.equals("A")) { type = RuleTextField.A; } else if (token.equals("O")) { type = RuleTextField.O; } else if (token.equals("AN")) { type = RuleTextField.AN; } else { throw (new Exception()); } // ------------------------------------------------ // test for a valid integer to define the size // of the field and assing to columns. // ------------------------------------------------ try { token = tokenizer.nextToken(); columns = Integer.parseInt(token); } catch (Throwable exception) { throw (new Exception()); } // ------------------------------------------------ // test for a valid integer to define the edit // length and assign to editLength. If this fails // test for identifier for unlimited edit length. // If this works, set unlimitedEdit to true. // ------------------------------------------------ try { token = tokenizer.nextToken().toUpperCase(); editLength = Integer.parseInt(token); } catch (Throwable exception) { if (token.equals("U")) { unlimitedEdit = true; } else { throw (new Exception()); } } } else { throw (new Exception()); } } | 28044 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28044/9619b3a25f43787dc92011111668210e06c00c71/RuleInputField.java/buggy/src/lib/com/izforge/izpack/panels/RuleInputField.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
2286,
1990,
12,
780,
857,
13,
1216,
1185,
3639,
288,
5411,
16370,
10123,
273,
394,
16370,
12,
2793,
16,
6153,
1769,
5411,
309,
14015,
2316,
1824,
18,
1883,
5157,
1435,
1545,
6989,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
2286,
1990,
12,
780,
857,
13,
1216,
1185,
3639,
288,
5411,
16370,
10123,
273,
394,
16370,
12,
2793,
16,
6153,
1769,
5411,
309,
14015,
2316,
1824,
18,
1883,
5157,
1435,
1545,
6989,
6... |
Boolean isSupported = (Boolean)method.invoke(null, arguments); | Boolean isSupported = (Boolean)charsetIsSupportedMethod.invoke(null, arguments); | static private String determineMailHeaderEncodingCharset(String rawText) { if (!rawText.startsWith("=?")) return null; int iSecondQuestionMark = rawText.indexOf('?', 2); if (iSecondQuestionMark == -1) return null; // safety checks if (iSecondQuestionMark == 2) return null; // empty charset? impossible int iThirdQuestionMark = rawText.indexOf('?', iSecondQuestionMark + 1); if (iThirdQuestionMark == -1) return null; // there must be one after encoding if (-1 == rawText.indexOf("?=", iThirdQuestionMark + 1)) return null; // closing tag String mimeCharset = rawText.substring(2, iSecondQuestionMark); String javaCharset = javax.mail.internet.MimeUtility.javaCharset(mimeCharset); // currently we don't require java 1.4, but it is very useful here, // so use reflection try { Class charsetClass = Class.forName("java.nio.charset.Charset"); Class[] parameterTypes = { String.class }; java.lang.reflect.Method method = charsetClass.getMethod("isSupported", parameterTypes); String[] arguments = { javaCharset }; Boolean isSupported = (Boolean)method.invoke(null, arguments); if (isSupported.booleanValue()) return javaCharset; else // UTF-8 must be supported by every JRE, and it is better then server default, // even if a few clients don't support it yet. // I use UTF-8 instead of UTF8 because there is no java-MIME mapping, // and official MIME code yet, so this will be directly used as a MIME // code, and it is the quasi-standard MIME code (OE uses this). return "UTF-8"; } catch (ClassNotFoundException e) { return javaCharset; // pre 1.4 runtime } catch (java.lang.reflect.InvocationTargetException e) { // it was thrown by Charset.isSupported, illegal charset name return "UTF-8"; } catch (Exception e) { return javaCharset; // impossible } } | 47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/daca13ff62540faa673aab241b2d30f1d190dbe6/GenericListserv.java/buggy/trunk/src/java/org/apache/james/transport/mailets/GenericListserv.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
3238,
514,
4199,
6759,
1864,
4705,
9652,
12,
780,
1831,
1528,
13,
565,
288,
3639,
309,
16051,
1899,
1528,
18,
17514,
1190,
2932,
25501,
3719,
327,
446,
31,
3639,
509,
277,
8211,
1166... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
3238,
514,
4199,
6759,
1864,
4705,
9652,
12,
780,
1831,
1528,
13,
565,
288,
3639,
309,
16051,
1899,
1528,
18,
17514,
1190,
2932,
25501,
3719,
327,
446,
31,
3639,
509,
277,
8211,
1166... |
this.filter = new WordBasedFilter( false ); | this.filter = new WordBasedFilter(); | public MutableComboBox( LockableListModel model, boolean allowAdditions ) { super( model ); this.model = model; this.filter = new WordBasedFilter( false ); this.setEditable( true ); this.allowAdditions = allowAdditions; NameInputListener listener = new NameInputListener(); this.getEditor().getEditorComponent().addFocusListener( listener ); this.getEditor().getEditorComponent().addKeyListener( listener ); } | 50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/014084c005ac25692ade7984b39d46ea5d2cf696/MutableComboBox.java/buggy/src/net/sourceforge/kolmafia/MutableComboBox.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
10960,
22199,
12,
3488,
429,
682,
1488,
938,
16,
1250,
1699,
986,
5029,
262,
202,
95,
202,
202,
9565,
12,
938,
11272,
202,
202,
2211,
18,
2284,
273,
938,
31,
202,
202,
2211,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
10960,
22199,
12,
3488,
429,
682,
1488,
938,
16,
1250,
1699,
986,
5029,
262,
202,
95,
202,
202,
9565,
12,
938,
11272,
202,
202,
2211,
18,
2284,
273,
938,
31,
202,
202,
2211,
... |
if (debugLevel >= 1) { if (debugLevel >= 6) { int pc = addDebugPCEntry((short)itsLineNumber); push(pc); istore(debug_pcLocal); addByteCode(ByteCode.ALOAD_0); classFile.add(ByteCode.GETFIELD, superClassSlashName, "debug_stopFlags", "I"); int label = acquireLabel(); addByteCode(ByteCode.IFEQ, label); addByteCode(ByteCode.JSR, debugStopSubLabel); classFile.adjustStackTop(-1); markLabel(label); } else { push(itsLineNumber); istore(debug_pcLocal); } } | private void visitStatement(Node node) { Object datum = node.getDatum(); if (datum == null || !(datum instanceof Number)) return; itsLineNumber = ((Number) datum).shortValue(); if (itsLineNumber == -1) return; classFile.addLineNumberEntry((short)itsLineNumber); if (debugLevel >= 1) { if (debugLevel >= 6) { int pc = addDebugPCEntry((short)itsLineNumber); push(pc); istore(debug_pcLocal); // see if a stop is requested anywhere in this function. // if the flag is non-zero, then let the subroutine decide // what to do. addByteCode(ByteCode.ALOAD_0); // load 'this' classFile.add(ByteCode.GETFIELD, superClassSlashName, "debug_stopFlags", "I"); int label = acquireLabel(); addByteCode(ByteCode.IFEQ, label); addByteCode(ByteCode.JSR, debugStopSubLabel); classFile.adjustStackTop(-1); markLabel(label); } else { push(itsLineNumber); istore(debug_pcLocal); } } } | 19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/9ad35a1fffb9bcd2d764ce33979ed3f91bfe8393/Codegen.java/buggy/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3757,
3406,
12,
907,
756,
13,
288,
3639,
1033,
12059,
273,
756,
18,
588,
18268,
5621,
3639,
309,
261,
3404,
379,
422,
446,
747,
401,
12,
3404,
379,
1276,
3588,
3719,
5411,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3757,
3406,
12,
907,
756,
13,
288,
3639,
1033,
12059,
273,
756,
18,
588,
18268,
5621,
3639,
309,
261,
3404,
379,
422,
446,
747,
401,
12,
3404,
379,
1276,
3588,
3719,
5411,
32... | |
super(expr); | super(location, expr); | public ToArrayExpr(Expr expr) { super(expr); } | 3863 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3863/87fa828f676c349c54c585677eb7eeab11f5627f/ToArrayExpr.java/buggy/quercus/src/main/java/com/caucho/quercus/expr/ToArrayExpr.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2974,
1076,
4742,
12,
4742,
3065,
13,
225,
288,
565,
2240,
12,
3562,
16,
3065,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2974,
1076,
4742,
12,
4742,
3065,
13,
225,
288,
565,
2240,
12,
3562,
16,
3065,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
public final AllocAdvice getAllocAdvice(Type type, EXTENT bytes, | final public AllocAdvice getAllocAdvice(Type type, EXTENT bytes, | public final AllocAdvice getAllocAdvice(Type type, EXTENT bytes, CallSite callsite, AllocAdvice hint) { return null; } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/94b7f2758d20d0b18a9fe0f2a98fc5fcde7a9fce/Plan.java/buggy/rvm/src/vm/memoryManagers/JMTk/plan/genHybrid/Plan.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
12830,
1871,
633,
336,
8763,
1871,
633,
12,
559,
618,
16,
11112,
2222,
1731,
16,
25083,
225,
3049,
4956,
4097,
1137,
16,
25083,
225,
12830,
1871,
633,
7380,
13,
288,
377,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
12830,
1871,
633,
336,
8763,
1871,
633,
12,
559,
618,
16,
11112,
2222,
1731,
16,
25083,
225,
3049,
4956,
4097,
1137,
16,
25083,
225,
12830,
1871,
633,
7380,
13,
288,
377,
327,
... |
if ((req.getParameter("add")).equals("add")){ | if (req.getParameter("add")!=null){ | public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException{ // Lets get the server this request was aimed for String host = req.getHeader("Host") ; String imcServer = Utility.getDomainPref("adminserver",host) ; HttpSession session = req.getSession(); imcode.server.User user ; // Check if the user logged on if ( (user = Check.userLoggedOn(req,res,"StartDoc" )) == null ) { return ; } res.setContentType("text/html"); PrintWriter out = res.getWriter(); String whichFile = (String)session.getAttribute("file") ; if (req.getParameter("back")!=null) { res.sendRedirect("AdminQuestions") ; return; } List lines = (List)session.getAttribute("lines"); String date1 = ""; String date2 = ""; String text = ""; if (req.getParameter("save")!=null) { addLineToList(req,lines); IMCServiceRMI.setPollList(imcServer, whichFile+".poll.txt", lines); //tillbaks till res.sendRedirect("AdminQuestions") ; return; }else{ String options = IMCServiceRMI.parseExternalDoc(imcServer, null, OPTION_LINE , user.getLangPrefix(),DOCTYPE_FORTUNES+""); String errMsgDate = IMCServiceRMI.parseExternalDoc(imcServer, null, DATE_ERROR , user.getLangPrefix(), DOCTYPE_FORTUNES+""); String errMsgTxt = IMCServiceRMI.parseExternalDoc(imcServer, null, TEXT_ERROR , user.getLangPrefix(), DOCTYPE_FORTUNES+""); date1 = ""; date2 = ""; text = ""; if ((req.getParameter("add")).equals("add")){ //hmta parametrar date1 = (req.getParameter("date1")).trim(); date2 = (req.getParameter("date2")).trim(); text = (req.getParameter("text")).trim(); boolean ok = true; if( !checkDate(date1) ) { date1=errMsgDate; ok = false; } if( !checkDate(date2) ) { date2=errMsgDate; ok = false; } if( text.length()<1 ){ text=errMsgTxt; ok = false; } if( ok ){ addLineToList(req,lines); date1 = ""; date2 = ""; text = ""; } } if (req.getParameter("edit")!=null){ //hmta raden som r markerad String row = req.getParameter("AdminFile") ; //lgg till en eventuellt redan uppflyttad rad addLineToList(req,lines); if (!row.equals("No_Choice")){ Integer theRow = Integer.decode(row); Poll poll = (Poll)lines.get(theRow.intValue()); DateRange dates = poll.getDateRange(); date1 = dateForm.format(dates.getStartDate()); date2 = dateForm.format(dates.getEndDate()); text = poll.getQuestion(); lines.remove(poll); } } if (req.getParameter("remove")!=null){ //hmta de rader som ska tas bort String rows[] = req.getParameterValues("AdminFile") ; //ta bort de som ska raderas for(int i=0;i<rows.length;i++){ if (!rows[i].equals("No_Choice")){ lines.remove( lines.get(Integer.parseInt(rows[i])) ); } } } //this part is always done its the creation and sending of the page to the browser session.setAttribute("lines",lines); StringBuffer buff = createOptionList(req,lines, imcServer, user ); //Add info for parsing to a Vector and parse it with a template to a htmlString that is printed Vector values = new Vector(); values.add("#date1#"); values.add(date1); values.add("#date2#"); values.add(date2); values.add("#text#"); values.add(text); values.add("#file#"); values.add(whichFile); values.add("#options#"); values.add(buff.toString()); String parsed = IMCServiceRMI.parseExternalDoc(imcServer, values, ADMIN_TEMPLATE, user.getLangPrefix(), DOCTYPE_FORTUNES+""); out.print(parsed); return; } }//end doPost() | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/7c08439e633ade9fd1b35d27e55611d3c71d2e7f/AdminQuestionsFile.java/buggy/servlets/AdminQuestionsFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
3349,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
202,
15069,
16517,
16,
1860,
95,
202,
202,
759,
511,
2413,
336,
326,
1438,
333,
590,
1703,
279,
381,
329,
364,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
3349,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
202,
15069,
16517,
16,
1860,
95,
202,
202,
759,
511,
2413,
336,
326,
1438,
333,
590,
1703,
279,
381,
329,
364,
202,
... |
assertTrue(rs.getUnicodeStream(1) == null); assertTrue(rs.wasNull()); | assertTrue(rs2.getUnicodeStream(1) == null); assertTrue(rs2.wasNull()); | public void testClobSetNull12() throws Exception { Statement stmt = con.createStatement(); stmt.execute("CREATE TABLE #clobsetnull12 (id NUMERIC IDENTITY, data TEXT, " + "CONSTRAINT pk_clobsetnull12 PRIMARY KEY CLUSTERED (id))"); stmt.close(); stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE); ResultSet rs = stmt.executeQuery("SELECT id, data FROM #clobsetnull12"); rs.moveToInsertRow(); // Test ResultSet.updateObject() rs.updateObject(2, null); rs.insertRow(); stmt.close(); rs.close(); Statement stmt2 = con.createStatement(); ResultSet rs2 = stmt2.executeQuery("SELECT data FROM #clobsetnull12"); assertTrue(rs2.next()); // Test ResultSet.getAsciiStream() assertTrue(rs.getAsciiStream(1) == null); assertTrue(rs.wasNull()); // Test ResultSet.getCharacterStream() assertTrue(rs.getCharacterStream(1) == null); assertTrue(rs.wasNull()); // Test ResultSet.getClob() assertTrue(rs.getClob(1) == null); assertTrue(rs.wasNull()); // Test ResultSet.getObject() assertTrue(rs.getObject(1) == null); assertTrue(rs.wasNull()); // Test ResultSet.getString() assertTrue(rs.getString(1) == null); assertTrue(rs.wasNull()); // Test ResultSet.getUnicodeStream() assertTrue(rs.getUnicodeStream(1) == null); assertTrue(rs.wasNull()); assertTrue(!rs2.next()); stmt2.close(); rs2.close(); } | 439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/c48c25bb38a5ee111490064c0098957f3dea379b/LOBTest.java/buggy/trunk/jtds/src/test/net/sourceforge/jtds/test/LOBTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
39,
1295,
694,
2041,
2138,
1435,
1216,
1185,
288,
3639,
8056,
3480,
273,
356,
18,
2640,
3406,
5621,
3639,
3480,
18,
8837,
2932,
9344,
7567,
468,
71,
1295,
542,
2011,
2138... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
39,
1295,
694,
2041,
2138,
1435,
1216,
1185,
288,
3639,
8056,
3480,
273,
356,
18,
2640,
3406,
5621,
3639,
3480,
18,
8837,
2932,
9344,
7567,
468,
71,
1295,
542,
2011,
2138... |
!outputExtensionsSet.contains(bufferForExtension.toString())) { | !getOutputExtentions().contains(bufferForExtension.toString())) { | private StringBuffer addSources(IContainer module) throws CoreException { // Calculate the new directory relative to the build output IPath moduleRelativePath = module.getProjectRelativePath(); String relativePath = moduleRelativePath.toString(); relativePath += relativePath.length() == 0 ? "" : SEPARATOR; //$NON-NLS-1$ // get the target for this project ITarget myTarget = info.getDefaultTarget(); // get the list of tools associated with our target ITool toolArray[] = myTarget.getTools(); // For each tool for the target, lookup the kinds of sources it can handle and // create a map which will map its extension to a string which holds its list of sources. HashMap extensionToRuleStringMap = new HashMap(); // get the set of output extensions for all tools Set outputExtensionsSet = getOutputExtentions(); // put in rules if the file type is not a generated file for(int k = 0; k < toolArray.length; k++) { List extensionsList = toolArray[k].getInputExtensions(); // iterate over all extensions that the tool knows how to handle Iterator exListIterator = extensionsList.iterator(); while(exListIterator.hasNext()) { // create a macro of the form "EXTENSION_SRCS := " String extensionName = exListIterator.next().toString(); if(!extensionToRuleStringMap.containsKey(extensionName) && // do we already have a map entry? !outputExtensionsSet.contains(extensionName)) { // is the file generated? // Get the name in the proper macro format StringBuffer macroName = getMacroName(extensionName); // there is no entry in the map, so create a buffer for this extension StringBuffer tempBuffer = new StringBuffer(); tempBuffer.append(macroName + WHITESPACE + "+=" + WHITESPACE + LINEBREAK); //$NON-NLS-1$ tempBuffer.append("${addprefix $(ROOT)/" + relativePath + "," + LINEBREAK); //$NON-NLS-1$ //$NON-NLS-2$ // have to store the buffer in String form as StringBuffer is not a sublcass of Object extensionToRuleStringMap.put(extensionName, tempBuffer.toString()); } } } // String buffers StringBuffer buffer = new StringBuffer(); StringBuffer ruleBuffer = new StringBuffer(COMMENT_SYMBOL + WHITESPACE + ManagedMakeMessages.getResourceString(MOD_RULES) + NEWLINE); // Visit the resources in this folder IResource[] resources = module.members(); for (int i = 0; i < resources.length; i++) { IResource resource = resources[i]; if (resource.getType() == IResource.FILE) { String ext = resource.getFileExtension(); if (info.buildsFileType(ext)) { // look for the extension in the map StringBuffer bufferForExtension = new StringBuffer(); bufferForExtension.append(extensionToRuleStringMap.get(ext).toString()); if(bufferForExtension != null && !outputExtensionsSet.contains(bufferForExtension.toString())) { bufferForExtension.append(resource.getName() + WHITESPACE + LINEBREAK); // re-insert string in the map extensionToRuleStringMap.put(ext, bufferForExtension.toString()); // Try to add the rule for the file addRule(relativePath, ruleBuffer, resource); } } } } // Write out the source info to the buffer Collection bufferCollection = extensionToRuleStringMap.values(); Iterator collectionIterator = bufferCollection.iterator(); while(collectionIterator.hasNext()) { // close off the rule and put two newlines to the buffer StringBuffer currentBuffer = new StringBuffer(); currentBuffer.append(collectionIterator.next().toString()); currentBuffer.append("}" + NEWLINE + NEWLINE); //$NON-NLS-1$ // append the contents of the buffer to the master buffer for the whole file buffer.append(currentBuffer); } return buffer.append(ruleBuffer + NEWLINE); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/a089f769a11ae0326c4adb8c0cff646e3cb68ead/GnuMakefileGenerator.java/buggy/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/makegen/gnu/GnuMakefileGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6674,
527,
8628,
12,
45,
2170,
1605,
13,
1216,
30015,
288,
202,
202,
759,
9029,
326,
394,
1867,
3632,
358,
326,
1361,
876,
202,
202,
45,
743,
1605,
16519,
273,
1605,
18,
588,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6674,
527,
8628,
12,
45,
2170,
1605,
13,
1216,
30015,
288,
202,
202,
759,
9029,
326,
394,
1867,
3632,
358,
326,
1361,
876,
202,
202,
45,
743,
1605,
16519,
273,
1605,
18,
588,... |
DebugLog.log("entry name: " + name); | private SVNStatusType propertiesChanged(String path, String name, Map baseProps, Map propDiff) throws SVNException { if (propDiff == null || propDiff.isEmpty()) { return SVNStatusType.UNCHANGED; } SVNDirectory dir = myWCAccess.getDirectory(path); if (dir == null) { return SVNStatusType.MISSING; } SVNStatusType result = null; SVNLog log = null; if (!myIsDryRun) { log = dir.getLog(0); } // 1. convert props to diff (need we?), just use remote diff // -> // 2. get local mods. DebugLog.log("entry name: " + name); SVNProperties localBaseProps = dir.getBaseProperties(name, false); SVNProperties localWCProps = dir.getProperties(name, false); // will contain all deleted and added, but not unchanged. Map wcProps = localWCProps.asMap(); Map localDiff = localBaseProps.compareTo(localWCProps); // now add all non-null from wc to localDiff. DebugLog.log("all wc props: " + wcProps); /* * for(Iterator wcPropsNames = wcProps.keySet().iterator(); * wcPropsNames.hasNext();) { String wcPropName = (String) * wcPropsNames.next(); DebugLog.log("wc prop: " + wcPropName); if * (!localDiff.containsKey(wcPropName)) { DebugLog.log("not modified: " + * wcProps.get(wcPropName)); localDiff.put(wcPropName, * wcProps.get(wcPropName)); } } */ // 3. merge DebugLog.log("merging props, remote diff:" + propDiff); DebugLog.log("merging props, local diff:" + localDiff); result = dir.mergeProperties(name, propDiff, localDiff, false, log); DebugLog.log("running log: " + log); if (log != null) { log.save(); dir.runLogs(); } // to make python tests pass. if (result == SVNStatusType.MERGED || result == SVNStatusType.CONFLICTED) { result = SVNStatusType.CHANGED; } return result; } | 2776 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2776/48b673a4eeae723c90a2ec8a9e48e886212b2109/SVNMerger.java/buggy/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNMerger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
29537,
50,
1482,
559,
1790,
5033,
12,
780,
589,
16,
514,
508,
16,
5411,
1635,
1026,
5047,
16,
1635,
2270,
5938,
13,
1216,
29537,
50,
503,
288,
3639,
309,
261,
5986,
5938,
422,
446... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
29537,
50,
1482,
559,
1790,
5033,
12,
780,
589,
16,
514,
508,
16,
5411,
1635,
1026,
5047,
16,
1635,
2270,
5938,
13,
1216,
29537,
50,
503,
288,
3639,
309,
261,
5986,
5938,
422,
446... | |
dispose(); | JmsUtils.closeQuietly(replyToProducer); JmsUtils.closeQuietly(session); | public void processReplyTo(UMOEvent event, UMOMessage returnMessage, Object replyTo) throws UMOException { Destination replyToDestination = null; try { // now we need to send the response if (replyTo instanceof Destination) { replyToDestination = (Destination) replyTo; } if (replyToDestination == null) { super.processReplyTo(event, returnMessage, replyTo); return; } Object payload = returnMessage.getPayload(); if (getTransformer() != null) { payload = getTransformer().transform(payload); } Message replyToMessage = JmsMessageUtils.getMessageForObject(payload, session); if (logger.isDebugEnabled()) { logger.debug("Sending jms reply to: " + replyToDestination + "(" + replyToDestination.getClass().getName() + ")"); } if (replyToProducer == null) { replyToProducer = ((JmsConnector) connector).getJmsSupport().createProducer(session, replyToDestination); } //QoS support String ttlString = (String) event.removeProperty("TimeToLive"); String priorityString = (String) event.removeProperty("Priority"); String persistentDeliveryString = (String) event.removeProperty("PersistentDelivery"); if (ttlString == null && priorityString == null && persistentDeliveryString == null) { connector.getJmsSupport().send(replyToProducer, replyToMessage); } else { long ttl = Message.DEFAULT_TIME_TO_LIVE; int priority = Message.DEFAULT_PRIORITY; boolean persistent = Message.DEFAULT_DELIVERY_MODE == DeliveryMode.PERSISTENT; if (ttlString != null) ttl = Long.parseLong(ttlString); if (priorityString != null) priority = Integer.parseInt(priorityString); if (persistentDeliveryString != null) persistent = Boolean.valueOf(persistentDeliveryString).booleanValue(); connector.getJmsSupport().send(replyToProducer, replyToMessage, persistent, priority, ttl); } //connector.getJmsSupport().send(replyToProducer, replyToMessage, replyToDestination); logger.info("Reply Message sent to: " + replyToDestination); ((MuleComponent) event.getComponent()).getStatistics().incSentReplyToEvent(); } catch (Exception e) { throw new DispatchException(new org.mule.config.i18n.Message("jms", 8, replyToDestination), returnMessage, null); } finally { dispose(); } } | 2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/de9fa56bece98b11b89015d6d4761b4dba3bf461/JmsReplyToHandler.java/clean/providers/jms/src/java/org/mule/providers/jms/JmsReplyToHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1207,
7817,
774,
12,
2799,
51,
1133,
871,
16,
587,
5980,
1079,
327,
1079,
16,
1033,
30934,
13,
1216,
587,
5980,
503,
565,
288,
3639,
10691,
30934,
5683,
273,
446,
31,
3639,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1207,
7817,
774,
12,
2799,
51,
1133,
871,
16,
587,
5980,
1079,
327,
1079,
16,
1033,
30934,
13,
1216,
587,
5980,
503,
565,
288,
3639,
10691,
30934,
5683,
273,
446,
31,
3639,
7... |
boolean nil = false; | if (fCurrentElemDecl != null && !fCurrentElemDecl.isNillable()) reportSchemaError("cvc-elt.3.1", new Object[]{element.rawname, URI_XSI+","+XSI_NIL}); | void getXsiNil(QName element, String xsiNil) { // get nil: true or false boolean nil = false; if (xsiNil.equals(SchemaSymbols.ATTVAL_TRUE) || xsiNil.equals(SchemaSymbols.ATTVAL_TRUE_1)) { if (fCurrentElemDecl == null || fCurrentElemDecl.isNillable()) { nil = true; } else { reportGenericSchemaError("xsi:nil must not be specified for the element '"+ element.rawname + "' with {nillable} equals 'false'"); } } else if (!xsiNil.equals(SchemaSymbols.ATTVAL_FALSE) && !xsiNil.equals(SchemaSymbols.ATTVAL_FALSE_0)) { reportGenericSchemaError("value '" + xsiNil + "' of xsi:nil attribute is not a valid boolean value"); } // REVISIT: have a stack to hold it, because it's checked at endElement } | 1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/b60209cd0e659f3f28f1cbc8aab764f76c320894/SchemaValidator.java/clean/src/org/apache/xerces/impl/v2/SchemaValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
6538,
7722,
12616,
12,
13688,
930,
16,
514,
619,
7722,
12616,
13,
288,
3639,
368,
336,
515,
30,
638,
578,
629,
1850,
309,
261,
74,
3935,
7498,
3456,
480,
446,
597,
401,
74,
3935,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
6538,
7722,
12616,
12,
13688,
930,
16,
514,
619,
7722,
12616,
13,
288,
3639,
368,
336,
515,
30,
638,
578,
629,
1850,
309,
261,
74,
3935,
7498,
3456,
480,
446,
597,
401,
74,
3935,
... |
} else if (contentType == XMLElementDecl.TYPE_MIXED || contentType == XMLElementDecl.TYPE_CHILDREN) { | } else if (contentType == XMLElementDecl.TYPE_MIXED || contentType == XMLElementDecl.TYPE_CHILDREN) { | private int checkContent(int elementIndex, QName[] children, int childOffset, int childCount) throws XNIException { fDTDGrammar.getElementDecl(elementIndex, fTempElementDecl); // Get the element name index from the element final String elementType = fCurrentElement.rawname; // Get out the content spec for this element final int contentType = fCurrentContentSpecType; // // Deal with the possible types of content. We try to optimized here // by dealing specially with content models that don't require the // full DFA treatment. // if (contentType == XMLElementDecl.TYPE_EMPTY) { // // If the child count is greater than zero, then this is // an error right off the bat at index 0. // if (childCount != 0) { return 0; } } else if (contentType == XMLElementDecl.TYPE_ANY) { // // This one is open game so we don't pass any judgement on it // at all. Its assumed to fine since it can hold anything. // } else if (contentType == XMLElementDecl.TYPE_MIXED || contentType == XMLElementDecl.TYPE_CHILDREN) { // Get the content model for this element, faulting it in if needed ContentModelValidator cmElem = null; cmElem = fTempElementDecl.contentModelValidator; int result = cmElem.validate(children, childOffset, childCount); return result; } else if (contentType == -1) { //REVISIT /**** reportRecoverableXMLError(XMLMessages.MSG_ELEMENT_NOT_DECLARED, XMLMessages.VC_ELEMENT_VALID, elementType); /****/ } else if (contentType == XMLElementDecl.TYPE_SIMPLE) { //REVISIT // this should never be reached in the case of DTD validation. } else { //REVISIT /**** fErrorReporter.reportError(fErrorReporter.getLocator(), ImplementationMessages.XERCES_IMPLEMENTATION_DOMAIN, ImplementationMessages.VAL_CST, 0, null, XMLErrorReporter.ERRORTYPE_FATAL_ERROR); /****/ } // We succeeded return -1; } // checkContent(int,int,QName[]):int | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/ee3cf4ff9e64a0ae2d3c850b7c9b40e51771781d/XMLDTDValidator.java/buggy/src/org/apache/xerces/impl/dtd/XMLDTDValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
866,
1350,
12,
474,
930,
1016,
16,
17311,
16723,
8526,
2325,
16,
11794,
509,
1151,
2335,
16,
17311,
509,
31492,
13,
1216,
1139,
50,
45,
503,
288,
3639,
284,
25728,
18576,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
866,
1350,
12,
474,
930,
1016,
16,
17311,
16723,
8526,
2325,
16,
11794,
509,
1151,
2335,
16,
17311,
509,
31492,
13,
1216,
1139,
50,
45,
503,
288,
3639,
284,
25728,
18576,
18,
... |
moduleHandle.includeLibrary( getRelativedPath(moduleHandle.getFileName(),filename), (String) importDialog.getResult( ) ); | moduleHandle.includeLibrary( getRelativedPath( moduleHandle.getFileName( ), filename ), (String) importDialog.getResult( ) ); | public void run( ) { FileDialog dialog = new FileDialog( UIUtil.getDefaultShell( ), SWT.OPEN ); dialog.setFilterExtensions( new String[]{ "*.rptlibrary" //$NON-NLS-1$ } ); String filename; try { filename = dialog.open( ); } catch ( Throwable e ) { return; } if ( filename != null ) { String defaultName = new File( filename ).getName( ).split( "\\." )[0]; ImportLibraryDialog importDialog = new ImportLibraryDialog( defaultName ); //$NON-NLS-1$ if ( importDialog.open( ) == Dialog.OK ) { ModuleHandle moduleHandle = SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ); try { moduleHandle.includeLibrary( getRelativedPath(moduleHandle.getFileName(),filename), (String) importDialog.getResult( ) ); ExceptionHandler.openMessageBox( MSG_DIALOG_TITLE, MessageFormat.format( MSG_DIALOG_MSG, new String[]{ filename } ), SWT.ICON_INFORMATION ); } catch ( Exception e ) { ExceptionHandler.handle( e ); } } } } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/54a65dd73bba1effaa68099dfb54509007fcdc8b/ImportLibraryAction.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/views/actions/ImportLibraryAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
12,
262,
202,
95,
202,
202,
812,
6353,
6176,
273,
394,
1387,
6353,
12,
6484,
1304,
18,
588,
1868,
13220,
12,
262,
16,
348,
8588,
18,
11437,
11272,
202,
202,
12730,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
12,
262,
202,
95,
202,
202,
812,
6353,
6176,
273,
394,
1387,
6353,
12,
6484,
1304,
18,
588,
1868,
13220,
12,
262,
16,
348,
8588,
18,
11437,
11272,
202,
202,
12730,
... |
Account account = catalog.getAccounts()[0]; | Account account = catalog.getAccounts()[0]; | public void test_ROCombo_SWTList() { // Create a list of Strings for the countries IObservableList list = new WritableList(); for (int i = 0; i < catalog.getAccounts().length; i++) list.add(catalog.getAccounts()[i].getCountry()); org.eclipse.swt.widgets.List swtlist = new org.eclipse.swt.widgets.List(getComposite(), SWT.READ_ONLY | SWT.SINGLE); // Bind the combo's content to that of the String based list getDbc().bindList(SWTObservables.observeItems(swtlist), list, null); assertEquals(Arrays.asList(swtlist.getItems()), list); Account account = catalog.getAccounts()[0]; // simple Combo's selection bound to the Account's country property IObservableValue listSelection = SWTObservables.observeSelection(swtlist); getDbc().bindValue(listSelection, BeansObservables.observeValue(account, "country"), null); String selection = (String) list.get(2); swtlist.select(2); // this should drive the selection swtlist.notifyListeners(SWT.Selection, null); // Force notification assertEquals(account.getCountry(), selection); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/a469cb14d7815f1d5dea6c4a44ea9ea80e229bed/ComboScenarios.java/clean/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/scenarios/ComboScenarios.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
67,
1457,
16156,
67,
55,
8588,
682,
1435,
288,
3639,
368,
1788,
279,
666,
434,
8139,
364,
326,
17603,
3639,
1665,
3745,
682,
666,
273,
394,
14505,
682,
5621,
3639,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
67,
1457,
16156,
67,
55,
8588,
682,
1435,
288,
3639,
368,
1788,
279,
666,
434,
8139,
364,
326,
17603,
3639,
1665,
3745,
682,
666,
273,
394,
14505,
682,
5621,
3639,
364,
... |
public String newProductline(String adminPassword, String nameOfProductline, RepositoryDescriptor repositoryDescriptor){ // 1.) check the password if (!checkAdministrability(adminPassword).equals(RETURN_OK)){ return IKoboldServerAdministration.RETURN_FAIL; } // 2.) create the new pl ProductlineManager plm = ProductlineManager.getInstance(); Productline pl = new Productline(nameOfProductline, repositoryDescriptor); plm.addProductline(pl); // TODO: fetch return when there will be one return IKoboldServerAdministration.RETURN_OK; } | 9773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9773/f0174d675a80c3290a5cc92d823e081799d54030/SecureKoboldWebServer.java/buggy/kobold/src/kobold.server/src/kobold/server/SecureKoboldWebServer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
780,
2704,
4133,
1369,
12,
780,
3666,
3913,
16,
780,
529,
951,
4133,
1369,
16,
3305,
3187,
9071,
3187,
15329,
759,
21,
12998,
1893,
451,
881,
2234,
430,
12,
5,
1893,
4446,
3337,
2967,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
780,
2704,
4133,
1369,
12,
780,
3666,
3913,
16,
780,
529,
951,
4133,
1369,
16,
3305,
3187,
9071,
3187,
15329,
759,
21,
12998,
1893,
451,
881,
2234,
430,
12,
5,
1893,
4446,
3337,
2967,
... | ||
public IChemFormat getFormat() { | public IResourceFormat getFormat() { | public IChemFormat getFormat() { return new GaussianInputFormat(); } | 45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/c20f0a656b069d8a3e653822a8741d3aedc2b0f2/GaussianInputWriter.java/clean/src/org/openscience/cdk/io/program/GaussianInputWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
1420,
1630,
10959,
1435,
288,
3639,
327,
394,
23079,
1210,
1630,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
1420,
1630,
10959,
1435,
288,
3639,
327,
394,
23079,
1210,
1630,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
notifyAll(); | private synchronized void completeLayout() { // Uu.p("layout thread ending"); done = true; graphics = null; panel.repaint(); // Uu.p("body box = " + panel.body_box ); } | 8125 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8125/a821099cb0ae20c2cf9015c8152b89c95600f113/LayoutThread.java/buggy/src/java/org/xhtmlrenderer/swing/LayoutThread.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
5066,
1595,
5621,
225,
5066,
1595,
5621,
225,
5066,
1595,
5621,
225,
5066,
1595,
5621,
225,
6015,
270,
275,
352,
1164,
1595,
5621,
225,
3852,
12336,
1595,
5621,
225,
918,
12336,
1595,
5621,
225,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
5066,
1595,
5621,
225,
5066,
1595,
5621,
225,
5066,
1595,
5621,
225,
5066,
1595,
5621,
225,
6015,
270,
275,
352,
1164,
1595,
5621,
225,
3852,
12336,
1595,
5621,
225,
918,
12336,
1595,
5621,
225,... | |
super (limit, limit, offset, position); | super (bb.remaining () >> 1, bb.remaining () >> 1, bb.position (), 0); | public CharViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly) { super (limit, limit, offset, position); this.bb = bb; this.readOnly = readOnly; // FIXME: What if this is called from CharViewBufferImpl and ByteBuffer has changed its endianess ? this.endian = bb.order (); } | 25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/23364f5f5d1d269375d0651b0b04862710ed87b7/CharViewBufferImpl.java/buggy/libjava/gnu/java/nio/CharViewBufferImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3703,
1767,
1892,
2828,
261,
12242,
7129,
16,
509,
1384,
16,
509,
7519,
16,
1171,
9079,
509,
1800,
16,
509,
1754,
16,
509,
2267,
16,
1171,
9079,
1250,
15075,
13,
225,
288,
565,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3703,
1767,
1892,
2828,
261,
12242,
7129,
16,
509,
1384,
16,
509,
7519,
16,
1171,
9079,
509,
1800,
16,
509,
1754,
16,
509,
2267,
16,
1171,
9079,
1250,
15075,
13,
225,
288,
565,
22... |
public void ruleAction(int ruleNumber) { switch (ruleNumber) { // // Rule 1: TypeName ::= TypeName . ErrorId // case 1: { //#line 6 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name TypeName = (Name) getRhsSym(1); //#line 8 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, "*")); break; } // // Rule 2: PackageName ::= PackageName . ErrorId // case 2: { //#line 16 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name PackageName = (Name) getRhsSym(1); //#line 18 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, "*")); break; } // // Rule 3: ExpressionName ::= AmbiguousName . ErrorId // case 3: { //#line 26 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 28 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 4: MethodName ::= AmbiguousName . ErrorId // case 4: { //#line 36 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 38 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 5: PackageOrTypeName ::= PackageOrTypeName . ErrorId // case 5: { //#line 46 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 48 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, "*")); break; } // // Rule 6: AmbiguousName ::= AmbiguousName . ErrorId // case 6: { //#line 56 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 58 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 7: FieldAccess ::= Primary . ErrorId // case 7: { //#line 66 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 68 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(), Primary, "*")); break; } // // Rule 8: FieldAccess ::= super . ErrorId // case 8: { //#line 73 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), "*")); break; } // // Rule 9: FieldAccess ::= ClassName . super$sup . ErrorId // case 9: { //#line 76 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 76 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 78 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), "*")); break; } // // Rule 10: MethodInvocation ::= MethodPrimaryPrefix ( ArgumentListopt ) // case 10: { //#line 82 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object MethodPrimaryPrefix = (Object) getRhsSym(1); //#line 82 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 84 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) ((Object[]) MethodPrimaryPrefix)[0]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodPrimaryPrefix)[1]; setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 11: MethodInvocation ::= MethodSuperPrefix ( ArgumentListopt ) // case 11: { //#line 89 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier MethodSuperPrefix = (polyglot.lex.Identifier) getRhsSym(1); //#line 89 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 91 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier identifier = MethodSuperPrefix; setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 12: MethodInvocation ::= MethodClassNameSuperPrefix ( ArgumentListopt ) // case 12: { //#line 95 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object MethodClassNameSuperPrefix = (Object) getRhsSym(1); //#line 95 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 97 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) ((Object[]) MethodClassNameSuperPrefix)[0]; JPGPosition super_pos = (JPGPosition) ((Object[]) MethodClassNameSuperPrefix)[1]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodClassNameSuperPrefix)[2]; setResult(nf.Call(pos(), nf.Super(super_pos, ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 13: MethodPrimaryPrefix ::= Primary . ErrorId$ErrorId // case 13: { //#line 104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 106 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[2]; a[0] = Primary; a[1] = id(getRhsFirstTokenIndex(3)); setResult(a); break; } // // Rule 14: MethodSuperPrefix ::= super . ErrorId$ErrorId // case 14: { //#line 112 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(id(getRhsFirstTokenIndex(3))); break; } // // Rule 15: MethodClassNameSuperPrefix ::= ClassName . super$sup . ErrorId$ErrorId // case 15: { //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(5); //#line 119 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[3]; a[0] = ClassName; a[1] = pos(getRhsFirstTokenIndex(3)); a[2] = id(getRhsFirstTokenIndex(5)); setResult(a); break; } // // Rule 16: identifier ::= IDENTIFIER$ident // case 16: { //#line 94 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken ident = (IToken) getRhsIToken(1); //#line 96 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ident.setKind(X10Parsersym.TK_IDENTIFIER); setResult(id(getRhsFirstTokenIndex(1))); break; } // // Rule 19: IntegralType ::= byte // case 19: { //#line 121 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 20: IntegralType ::= char // case 20: { //#line 126 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 21: IntegralType ::= short // case 21: { //#line 131 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 22: IntegralType ::= int // case 22: { //#line 136 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 23: IntegralType ::= long // case 23: { //#line 141 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 24: FloatingPointType ::= float // case 24: { //#line 147 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 25: FloatingPointType ::= double // case 25: { //#line 152 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 28: TypeName ::= identifier // case 28: { //#line 175 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 177 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 29: TypeName ::= TypeName . identifier // case 29: { //#line 180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(1); //#line 180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 182 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, identifier.getIdentifier())); break; } // // Rule 31: ArrayType ::= Type [ ] // case 31: { //#line 194 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 196 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.array(Type, pos(), 1)); break; } // // Rule 32: PackageName ::= identifier // case 32: { //#line 241 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 243 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 33: PackageName ::= PackageName . identifier // case 33: { //#line 246 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageName = (Name) getRhsSym(1); //#line 246 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 248 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, identifier.getIdentifier())); break; } // // Rule 34: ExpressionName ::= identifier // case 34: { //#line 262 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 264 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 35: ExpressionName ::= AmbiguousName . identifier // case 35: { //#line 267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 269 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 36: MethodName ::= identifier // case 36: { //#line 277 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 279 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 37: MethodName ::= AmbiguousName . identifier // case 37: { //#line 282 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 282 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 284 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 38: PackageOrTypeName ::= identifier // case 38: { //#line 292 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 294 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 39: PackageOrTypeName ::= PackageOrTypeName . identifier // case 39: { //#line 297 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 297 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 299 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, identifier.getIdentifier())); break; } // // Rule 40: AmbiguousName ::= identifier // case 40: { //#line 307 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 309 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 41: AmbiguousName ::= AmbiguousName . identifier // case 41: { //#line 312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 314 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 42: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 42: { //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" PackageNode PackageDeclarationopt = (PackageNode) getRhsSym(1); //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarationsopt = (List) getRhsSym(2); //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarationsopt = (List) getRhsSym(3); //#line 326 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // Add import x10.lang.* by default. Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); int token_pos = (ImportDeclarationsopt.size() == 0 ? TypeDeclarationsopt.size() == 0 ? super.getSize() - 1 : getPrevious(getRhsFirstTokenIndex(3)) : getRhsLastTokenIndex(2) ); Import x10LangImport = nf.Import(pos(token_pos), Import.PACKAGE, x10Lang.toString()); ImportDeclarationsopt.add(x10LangImport); setResult(nf.SourceFile(pos(getLeftSpan(), getRightSpan()), PackageDeclarationopt, ImportDeclarationsopt, TypeDeclarationsopt)); break; } // // Rule 43: ImportDeclarations ::= ImportDeclaration // case 43: { //#line 342 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(1); //#line 344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Import.class, false); l.add(ImportDeclaration); setResult(l); break; } // // Rule 44: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 44: { //#line 349 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarations = (List) getRhsSym(1); //#line 349 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(2); //#line 351 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (ImportDeclaration != null) ImportDeclarations.add(ImportDeclaration); //setResult(l); break; } // // Rule 45: TypeDeclarations ::= TypeDeclaration // case 45: { //#line 357 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(1); //#line 359 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); if (TypeDeclaration != null) l.add(TypeDeclaration); setResult(l); break; } // // Rule 46: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 46: { //#line 365 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarations = (List) getRhsSym(1); //#line 365 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(2); //#line 367 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (TypeDeclaration != null) TypeDeclarations.add(TypeDeclaration); //setResult(l); break; } // // Rule 49: SingleTypeImportDeclaration ::= import TypeName ; // case 49: { //#line 380 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(2); //#line 382 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.CLASS, TypeName.toString())); break; } // // Rule 50: TypeImportOnDemandDeclaration ::= import PackageOrTypeName . * ; // case 50: { //#line 386 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(2); //#line 388 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.PACKAGE, PackageOrTypeName.toString())); break; } // // Rule 53: TypeDeclaration ::= ; // case 53: { //#line 402 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(null); break; } // // Rule 56: ClassModifiers ::= ClassModifiers ClassModifier // case 56: { //#line 414 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifiers = (Flags) getRhsSym(1); //#line 414 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifier = (Flags) getRhsSym(2); //#line 416 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassModifiers.set(ClassModifier)); break; } // // Rule 57: ClassModifier ::= public // case 57: { //#line 424 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 58: ClassModifier ::= protected // case 58: { //#line 429 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 59: ClassModifier ::= private // case 59: { //#line 434 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 60: ClassModifier ::= abstract // case 60: { //#line 439 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 61: ClassModifier ::= static // case 61: { //#line 444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 62: ClassModifier ::= final // case 62: { //#line 449 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 63: ClassModifier ::= strictfp // case 63: { //#line 454 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 64: Super ::= extends ClassType // case 64: { //#line 466 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ClassType = (TypeNode) getRhsSym(2); //#line 468 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassType); break; } // // Rule 65: Interfaces ::= implements InterfaceTypeList // case 65: { //#line 477 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(2); //#line 479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceTypeList); break; } // // Rule 66: InterfaceTypeList ::= InterfaceType // case 66: { //#line 483 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(1); //#line 485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 67: InterfaceTypeList ::= InterfaceTypeList , InterfaceType // case 67: { //#line 490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(1); //#line 490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 492 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceTypeList.add(InterfaceType); setResult(InterfaceTypeList); break; } // // Rule 68: ClassBody ::= { ClassBodyDeclarationsopt } // case 68: { //#line 502 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarationsopt = (List) getRhsSym(2); //#line 504 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(getLeftSpan(), getRightSpan()), ClassBodyDeclarationsopt)); break; } // // Rule 70: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 70: { //#line 509 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarations = (List) getRhsSym(1); //#line 509 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclaration = (List) getRhsSym(2); //#line 511 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassBodyDeclarations.addAll(ClassBodyDeclaration); // setResult(a); break; } // // Rule 72: ClassBodyDeclaration ::= InstanceInitializer // case 72: { //#line 517 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block InstanceInitializer = (Block) getRhsSym(1); //#line 519 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.NONE, InstanceInitializer)); setResult(l); break; } // // Rule 73: ClassBodyDeclaration ::= StaticInitializer // case 73: { //#line 524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block StaticInitializer = (Block) getRhsSym(1); //#line 526 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.STATIC, StaticInitializer)); setResult(l); break; } // // Rule 74: ClassBodyDeclaration ::= ConstructorDeclaration // case 74: { //#line 531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ConstructorDecl ConstructorDeclaration = (ConstructorDecl) getRhsSym(1); //#line 533 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ConstructorDeclaration); setResult(l); break; } // // Rule 76: ClassMemberDeclaration ::= MethodDeclaration // case 76: { //#line 540 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodDeclaration = (MethodDecl) getRhsSym(1); //#line 542 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(MethodDeclaration); setResult(l); break; } // // Rule 77: ClassMemberDeclaration ::= ClassDeclaration // case 77: { //#line 547 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 549 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 78: ClassMemberDeclaration ::= InterfaceDeclaration // case 78: { //#line 554 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 556 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 79: ClassMemberDeclaration ::= ; // case 79: { //#line 563 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); setResult(l); break; } // // Rule 80: VariableDeclarators ::= VariableDeclarator // case 80: { //#line 571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(1); //#line 573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), X10VarDeclarator.class, false); l.add(VariableDeclarator); setResult(l); break; } // // Rule 81: VariableDeclarators ::= VariableDeclarators , VariableDeclarator // case 81: { //#line 578 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(1); //#line 578 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(3); //#line 580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclarators.add(VariableDeclarator); // setResult(VariableDeclarators); break; } // // Rule 83: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 83: { //#line 586 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 586 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 588 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclaratorId.init = VariableInitializer; VariableDeclaratorId.position(pos()); // setResult(VariableDeclaratorId); break; } // // Rule 84: TraditionalVariableDeclaratorId ::= identifier // case 84: { //#line 594 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 596 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier())); break; } // // Rule 85: TraditionalVariableDeclaratorId ::= TraditionalVariableDeclaratorId [ ] // case 85: { //#line 599 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator TraditionalVariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 601 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TraditionalVariableDeclaratorId.dims++; TraditionalVariableDeclaratorId.position(pos()); // setResult(a); break; } // // Rule 87: VariableDeclaratorId ::= identifier [ IdentifierList ] // case 87: { //#line 608 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 608 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(3); //#line 610 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier(), IdentifierList)); break; } // // Rule 88: VariableDeclaratorId ::= [ IdentifierList ] // case 88: { //#line 613 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(2); //#line 615 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), IdentifierList)); break; } // // Rule 92: FieldModifiers ::= FieldModifiers FieldModifier // case 92: { //#line 623 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifiers = (Flags) getRhsSym(1); //#line 623 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifier = (Flags) getRhsSym(2); //#line 625 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(FieldModifiers.set(FieldModifier)); break; } // // Rule 93: FieldModifier ::= public // case 93: { //#line 633 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 94: FieldModifier ::= protected // case 94: { //#line 638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 95: FieldModifier ::= private // case 95: { //#line 643 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 96: FieldModifier ::= static // case 96: { //#line 648 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 97: FieldModifier ::= final // case 97: { //#line 653 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 98: FieldModifier ::= transient // case 98: { //#line 658 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.TRANSIENT); break; } // // Rule 99: MethodDeclaration ::= MethodHeader MethodBody // case 99: { //#line 667 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodHeader = (MethodDecl) getRhsSym(1); //#line 667 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block MethodBody = (Block) getRhsSym(2); //#line 669 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" JPGPosition old_pos = (JPGPosition) MethodHeader.position(); setResult(MethodHeader.body(MethodBody) .position(pos(old_pos.getLeftIToken().getTokenIndex(), getRightSpan()))); break; } // // Rule 101: ResultType ::= void // case 101: { //#line 680 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 102: FormalParameterList ::= LastFormalParameter // case 102: { //#line 700 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(1); //#line 702 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(LastFormalParameter); setResult(l); break; } // // Rule 103: FormalParameterList ::= FormalParameters , LastFormalParameter // case 103: { //#line 707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(3); //#line 709 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(LastFormalParameter); // setResult(FormalParameters); break; } // // Rule 104: FormalParameters ::= FormalParameter // case 104: { //#line 714 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(1); //#line 716 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(FormalParameter); setResult(l); break; } // // Rule 105: FormalParameters ::= FormalParameters , FormalParameter // case 105: { //#line 721 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 721 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 723 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(FormalParameter); // setResult(FormalParameters); break; } // // Rule 106: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 106: { //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(3); //#line 730 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableDeclaratorId != null) setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); else setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), 1), "", new AmbExpr[0])); break; } // // Rule 108: VariableModifiers ::= VariableModifiers VariableModifier // case 108: { //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiers = (Flags) getRhsSym(1); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifier = (Flags) getRhsSym(2); //#line 740 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(VariableModifiers.set(VariableModifier)); break; } // // Rule 109: VariableModifier ::= final // case 109: { //#line 746 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 110: LastFormalParameter ::= VariableModifiersopt Type ...opt$opt VariableDeclaratorId // case 110: { //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(4); //#line 754 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" assert(opt == null); setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); break; } // // Rule 112: MethodModifiers ::= MethodModifiers MethodModifier // case 112: { //#line 766 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifiers = (Flags) getRhsSym(1); //#line 766 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifier = (Flags) getRhsSym(2); //#line 768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(MethodModifiers.set(MethodModifier)); break; } // // Rule 113: MethodModifier ::= public // case 113: { //#line 776 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 114: MethodModifier ::= protected // case 114: { //#line 781 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 115: MethodModifier ::= private // case 115: { //#line 786 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 116: MethodModifier ::= abstract // case 116: { //#line 791 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 117: MethodModifier ::= static // case 117: { //#line 796 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 118: MethodModifier ::= final // case 118: { //#line 801 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 119: MethodModifier ::= native // case 119: { //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NATIVE); break; } // // Rule 120: MethodModifier ::= strictfp // case 120: { //#line 816 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 121: Throws ::= throws ExceptionTypeList // case 121: { //#line 820 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(2); //#line 822 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExceptionTypeList); break; } // // Rule 122: ExceptionTypeList ::= ExceptionType // case 122: { //#line 826 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(1); //#line 828 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(ExceptionType); setResult(l); break; } // // Rule 123: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 123: { //#line 833 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(1); //#line 833 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(3); //#line 835 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExceptionTypeList.add(ExceptionType); // setResult(ExceptionTypeList); break; } // // Rule 126: MethodBody ::= ; // case 126: setResult(null); break; // // Rule 128: StaticInitializer ::= static Block // case 128: { //#line 855 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 857 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 129: SimpleTypeName ::= identifier // case 129: { //#line 872 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 874 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 131: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 131: { //#line 879 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifiers = (Flags) getRhsSym(1); //#line 879 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifier = (Flags) getRhsSym(2); //#line 881 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstructorModifiers.set(ConstructorModifier)); break; } // // Rule 132: ConstructorModifier ::= public // case 132: { //#line 889 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 133: ConstructorModifier ::= protected // case 133: { //#line 894 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 134: ConstructorModifier ::= private // case 134: { //#line 899 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 135: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 135: { //#line 903 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt ExplicitConstructorInvocationopt = (Stmt) getRhsSym(2); //#line 903 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(3); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l; if (ExplicitConstructorInvocationopt == null) l = BlockStatementsopt; else { l = new TypedList(new LinkedList(), Stmt.class, false); l.add(ExplicitConstructorInvocationopt); l.addAll(BlockStatementsopt); } setResult(nf.Block(pos(), l)); break; } // // Rule 136: Arguments ::= ( ArgumentListopt ) // case 136: { //#line 936 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(2); //#line 938 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ArgumentListopt); break; } // // Rule 139: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 139: { //#line 954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifiers = (Flags) getRhsSym(1); //#line 954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifier = (Flags) getRhsSym(2); //#line 956 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceModifiers.set(InterfaceModifier)); break; } // // Rule 140: InterfaceModifier ::= public // case 140: { //#line 964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 141: InterfaceModifier ::= protected // case 141: { //#line 969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 142: InterfaceModifier ::= private // case 142: { //#line 974 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 143: InterfaceModifier ::= abstract // case 143: { //#line 979 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 144: InterfaceModifier ::= static // case 144: { //#line 984 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 145: InterfaceModifier ::= strictfp // case 145: { //#line 989 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 146: ExtendsInterfaces ::= extends InterfaceType // case 146: { //#line 993 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(2); //#line 995 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 147: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 147: { //#line 1000 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExtendsInterfaces = (List) getRhsSym(1); //#line 1000 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExtendsInterfaces.add(InterfaceType); // setResult(ExtendsInterfaces); break; } // // Rule 148: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 148: { //#line 1012 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarationsopt = (List) getRhsSym(2); //#line 1014 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(), InterfaceMemberDeclarationsopt)); break; } // // Rule 150: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 150: { //#line 1019 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarations = (List) getRhsSym(1); //#line 1019 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclaration = (List) getRhsSym(2); //#line 1021 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceMemberDeclarations.addAll(InterfaceMemberDeclaration); // setResult(l); break; } // // Rule 152: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 152: { //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl AbstractMethodDeclaration = (MethodDecl) getRhsSym(1); //#line 1029 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(AbstractMethodDeclaration); setResult(l); break; } // // Rule 153: InterfaceMemberDeclaration ::= ClassDeclaration // case 153: { //#line 1034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1036 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 154: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 154: { //#line 1041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 1043 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 155: InterfaceMemberDeclaration ::= ; // case 155: { //#line 1050 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Collections.EMPTY_LIST); break; } // // Rule 156: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 156: { //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiersopt = (Flags) getRhsSym(1); //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1056 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); l.add(nf.FieldDecl(pos(getRhsFirstTokenIndex(2), getRightSpan()), ConstantModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), d.dims), d.name, d.init)); } setResult(l); break; } // // Rule 158: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 158: { //#line 1074 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiers = (Flags) getRhsSym(1); //#line 1074 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifier = (Flags) getRhsSym(2); //#line 1076 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstantModifiers.set(ConstantModifier)); break; } // // Rule 159: ConstantModifier ::= public // case 159: { //#line 1084 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 160: ConstantModifier ::= static // case 160: { //#line 1089 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 161: ConstantModifier ::= final // case 161: { //#line 1094 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 163: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 163: { //#line 1101 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifiers = (Flags) getRhsSym(1); //#line 1101 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifier = (Flags) getRhsSym(2); //#line 1103 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(AbstractMethodModifiers.set(AbstractMethodModifier)); break; } // // Rule 164: AbstractMethodModifier ::= public // case 164: { //#line 1111 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 165: AbstractMethodModifier ::= abstract // case 165: { //#line 1116 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 166: SimpleName ::= identifier // case 166: { //#line 1172 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1174 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 167: ArrayInitializer ::= { VariableInitializersopt ,opt$opt } // case 167: { //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializersopt = (List) getRhsSym(2); //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 1203 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableInitializersopt == null) setResult(nf.ArrayInit(pos())); else setResult(nf.ArrayInit(pos(), VariableInitializersopt)); break; } // // Rule 168: VariableInitializers ::= VariableInitializer // case 168: { //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(1); //#line 1211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(VariableInitializer); setResult(l); break; } // // Rule 169: VariableInitializers ::= VariableInitializers , VariableInitializer // case 169: { //#line 1216 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializers = (List) getRhsSym(1); //#line 1216 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 1218 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableInitializers.add(VariableInitializer); //setResult(VariableInitializers); break; } // // Rule 170: Block ::= { BlockStatementsopt } // case 170: { //#line 1237 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(2); //#line 1239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Block(pos(), BlockStatementsopt)); break; } // // Rule 171: BlockStatements ::= BlockStatement // case 171: { //#line 1243 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(1); //#line 1245 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.addAll(BlockStatement); setResult(l); break; } // // Rule 172: BlockStatements ::= BlockStatements BlockStatement // case 172: { //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(1); //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(2); //#line 1252 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" BlockStatements.addAll(BlockStatement); //setResult(l); break; } // // Rule 174: BlockStatement ::= ClassDeclaration // case 174: { //#line 1258 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), ClassDeclaration)); setResult(l); break; } // // Rule 175: BlockStatement ::= Statement // case 175: { //#line 1265 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(1); //#line 1267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(Statement); setResult(l); break; } // // Rule 177: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 177: { //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1277 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), LocalDecl.class, false); List s = new TypedList(new LinkedList(), Stmt.class, false); if (VariableDeclarators != null) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext(); ) { X10VarDeclarator d = (X10VarDeclarator) i.next(); d.setFlag(VariableModifiersopt); // use d.flags below and not flags, setFlag may change it. l.add(nf.LocalDecl(d.pos, d.flags, nf.array(Type, pos(d), d.dims), d.name, d.init)); // [IP] TODO: Add X10Local with exploded variables if (d.hasExplodedVars()) s.addAll(X10Formal_c.explode(nf, ts, d.name, pos(d), d.flags, d.names())); } } l.addAll(s); setResult(l); break; } // // Rule 201: IfThenStatement ::= if ( Expression ) Statement // case 201: { //#line 1338 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1338 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1340 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, Statement)); break; } // // Rule 202: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 202: { //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(7); //#line 1346 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, StatementNoShortIf, Statement)); break; } // // Rule 203: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf$true_stmt else StatementNoShortIf$false_stmt // case 203: { //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt true_stmt = (Stmt) getRhsSym(5); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt false_stmt = (Stmt) getRhsSym(7); //#line 1352 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, true_stmt, false_stmt)); break; } // // Rule 204: EmptyStatement ::= ; // case 204: { //#line 1358 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Empty(pos())); break; } // // Rule 205: LabeledStatement ::= identifier : Statement // case 205: { //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(3); //#line 1364 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), Statement)); break; } // // Rule 206: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 206: { //#line 1368 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1368 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(3); //#line 1370 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), StatementNoShortIf)); break; } // // Rule 207: ExpressionStatement ::= StatementExpression ; // case 207: { //#line 1373 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1375 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Eval(pos(), StatementExpression)); break; } // // Rule 215: AssertStatement ::= assert Expression ; // case 215: { //#line 1396 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1398 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), Expression)); break; } // // Rule 216: AssertStatement ::= assert Expression$expr1 : Expression$expr2 ; // case 216: { //#line 1401 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr1 = (Expr) getRhsSym(2); //#line 1401 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr2 = (Expr) getRhsSym(4); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), expr1, expr2)); break; } // // Rule 217: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 217: { //#line 1407 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1407 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlock = (List) getRhsSym(5); //#line 1409 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Switch(pos(), Expression, SwitchBlock)); break; } // // Rule 218: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 218: { //#line 1413 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroupsopt = (List) getRhsSym(2); //#line 1413 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabelsopt = (List) getRhsSym(3); //#line 1415 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroupsopt.addAll(SwitchLabelsopt); setResult(SwitchBlockStatementGroupsopt); break; } // // Rule 220: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 220: { //#line 1421 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroups = (List) getRhsSym(1); //#line 1421 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroup = (List) getRhsSym(2); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroups.addAll(SwitchBlockStatementGroup); // setResult(SwitchBlockStatementGroups); break; } // // Rule 221: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 221: { //#line 1428 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1428 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(2); //#line 1430 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), SwitchElement.class, false); l.addAll(SwitchLabels); l.add(nf.SwitchBlock(pos(), BlockStatements)); setResult(l); break; } // // Rule 222: SwitchLabels ::= SwitchLabel // case 222: { //#line 1437 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(1); //#line 1439 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Case.class, false); l.add(SwitchLabel); setResult(l); break; } // // Rule 223: SwitchLabels ::= SwitchLabels SwitchLabel // case 223: { //#line 1444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(2); //#line 1446 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchLabels.add(SwitchLabel); //setResult(SwitchLabels); break; } // // Rule 224: SwitchLabel ::= case ConstantExpression : // case 224: { //#line 1451 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConstantExpression = (Expr) getRhsSym(2); //#line 1453 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Case(pos(), ConstantExpression)); break; } // // Rule 225: SwitchLabel ::= default : // case 225: { //#line 1460 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Default(pos())); break; } // // Rule 226: WhileStatement ::= while ( Expression ) Statement // case 226: { //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1469 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, Statement)); break; } // // Rule 227: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 227: { //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1475 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, StatementNoShortIf)); break; } // // Rule 228: DoStatement ::= do Statement while ( Expression ) ; // case 228: { //#line 1479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(2); //#line 1479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(5); //#line 1481 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Do(pos(), Statement, Expression)); break; } // // Rule 231: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 231: { //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(9); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, Statement)); break; } // // Rule 232: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 232: { //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(9); //#line 1496 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, StatementNoShortIf)); break; } // // Rule 234: ForInit ::= LocalVariableDeclaration // case 234: { //#line 1501 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List LocalVariableDeclaration = (List) getRhsSym(1); //#line 1503 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ForInit.class, false); l.addAll(LocalVariableDeclaration); //setResult(l); break; } // // Rule 236: StatementExpressionList ::= StatementExpression // case 236: { //#line 1511 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1513 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Eval.class, false); l.add(nf.Eval(pos(), StatementExpression)); setResult(l); break; } // // Rule 237: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 237: { //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List StatementExpressionList = (List) getRhsSym(1); //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(3); //#line 1520 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" StatementExpressionList.add(nf.Eval(pos(), StatementExpression)); //setResult(StatementExpressionList); break; } // // Rule 238: BreakStatement ::= break identifieropt ; // case 238: { //#line 1528 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1530 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Break(pos())); else setResult(nf.Break(pos(), identifieropt.toString())); break; } // // Rule 239: ContinueStatement ::= continue identifieropt ; // case 239: { //#line 1536 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1538 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Continue(pos())); else setResult(nf.Continue(pos(), identifieropt.toString())); break; } // // Rule 240: ReturnStatement ::= return Expressionopt ; // case 240: { //#line 1544 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(2); //#line 1546 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Return(pos(), Expressionopt)); break; } // // Rule 241: ThrowStatement ::= throw Expression ; // case 241: { //#line 1550 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1552 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Throw(pos(), Expression)); break; } // // Rule 242: TryStatement ::= try Block Catches // case 242: { //#line 1562 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1562 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(3); //#line 1564 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catches)); break; } // // Rule 243: TryStatement ::= try Block Catchesopt Finally // case 243: { //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catchesopt = (List) getRhsSym(3); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Finally = (Block) getRhsSym(4); //#line 1569 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catchesopt, Finally)); break; } // // Rule 244: Catches ::= CatchClause // case 244: { //#line 1573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(1); //#line 1575 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Catch.class, false); l.add(CatchClause); setResult(l); break; } // // Rule 245: Catches ::= Catches CatchClause // case 245: { //#line 1580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(1); //#line 1580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(2); //#line 1582 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catches.add(CatchClause); //setResult(Catches); break; } // // Rule 246: CatchClause ::= catch ( FormalParameter ) Block // case 246: { //#line 1587 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1587 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(5); //#line 1589 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Catch(pos(), FormalParameter, Block)); break; } // // Rule 247: Finally ::= finally Block // case 247: { //#line 1593 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 251: PrimaryNoNewArray ::= Type . class // case 251: { //#line 1613 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1615 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 252: PrimaryNoNewArray ::= void . class // case 252: { //#line 1634 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 253: PrimaryNoNewArray ::= this // case 253: { //#line 1640 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos())); break; } // // Rule 254: PrimaryNoNewArray ::= ClassName . this // case 254: { //#line 1643 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1645 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 255: PrimaryNoNewArray ::= ( Expression ) // case 255: { //#line 1648 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1650 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ParExpr(pos(), Expression)); break; } // // Rule 260: Literal ::= IntegerLiteral$IntegerLiteral // case 260: { //#line 1658 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken IntegerLiteral = (IToken) getRhsIToken(1); //#line 1660 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.IntegerLiteral a = int_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 261: Literal ::= LongLiteral$LongLiteral // case 261: { //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken LongLiteral = (IToken) getRhsIToken(1); //#line 1666 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.LongLiteral a = long_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 262: Literal ::= FloatingPointLiteral$FloatLiteral // case 262: { //#line 1670 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken FloatLiteral = (IToken) getRhsIToken(1); //#line 1672 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.FloatLiteral a = float_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 263: Literal ::= DoubleLiteral$DoubleLiteral // case 263: { //#line 1676 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken DoubleLiteral = (IToken) getRhsIToken(1); //#line 1678 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.DoubleLiteral a = double_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 264: Literal ::= BooleanLiteral // case 264: { //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.BooleanLiteral BooleanLiteral = (polyglot.lex.BooleanLiteral) getRhsSym(1); //#line 1684 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.BooleanLit(pos(), BooleanLiteral.getValue().booleanValue())); break; } // // Rule 265: Literal ::= CharacterLiteral$CharacterLiteral // case 265: { //#line 1687 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken CharacterLiteral = (IToken) getRhsIToken(1); //#line 1689 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.CharacterLiteral a = char_lit(getRhsFirstTokenIndex(1)); setResult(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 266: Literal ::= StringLiteral$str // case 266: { //#line 1693 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken str = (IToken) getRhsIToken(1); //#line 1695 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.StringLiteral a = string_lit(getRhsFirstTokenIndex(1)); setResult(nf.StringLit(pos(), a.getValue())); break; } // // Rule 267: Literal ::= null // case 267: { //#line 1701 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.NullLit(pos())); break; } // // Rule 268: BooleanLiteral ::= true$trueLiteral // case 268: { //#line 1705 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken trueLiteral = (IToken) getRhsIToken(1); //#line 1707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 269: BooleanLiteral ::= false$falseLiteral // case 269: { //#line 1710 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken falseLiteral = (IToken) getRhsIToken(1); //#line 1712 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 270: ArgumentList ::= Expression // case 270: { //#line 1725 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(1); //#line 1727 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Expression); setResult(l); break; } // // Rule 271: ArgumentList ::= ArgumentList , Expression // case 271: { //#line 1732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentList = (List) getRhsSym(1); //#line 1732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1734 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ArgumentList.add(Expression); //setResult(ArgumentList); break; } // // Rule 272: DimExprs ::= DimExpr // case 272: { //#line 1768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(1); //#line 1770 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); setResult(l); break; } // // Rule 273: DimExprs ::= DimExprs DimExpr // case 273: { //#line 1775 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List DimExprs = (List) getRhsSym(1); //#line 1775 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(2); //#line 1777 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" DimExprs.add(DimExpr); //setResult(DimExprs); break; } // // Rule 274: DimExpr ::= [ Expression ] // case 274: { //#line 1782 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1784 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Expression.position(pos())); break; } // // Rule 275: Dims ::= [ ] // case 275: { //#line 1790 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(1)); break; } // // Rule 276: Dims ::= Dims [ ] // case 276: { //#line 1793 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Integer Dims = (Integer) getRhsSym(1); //#line 1795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(Dims.intValue() + 1)); break; } // // Rule 277: FieldAccess ::= Primary . identifier // case 277: { //#line 1799 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Primary = (Expr) getRhsSym(1); //#line 1799 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1801 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(), Primary, identifier.getIdentifier())); break; } // // Rule 278: FieldAccess ::= super . identifier // case 278: { //#line 1804 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1806 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 279: FieldAccess ::= ClassName . super$sup . identifier // case 279: { //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken sup = (IToken) getRhsIToken(3); //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 280: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 280: { //#line 1815 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name MethodName = (Name) getRhsSym(1); //#line 1815 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 1817 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Call(pos(), MethodName.prefix == null ? null : MethodName.prefix.toReceiver(), MethodName.name, ArgumentListopt)); break; } // // Rule 282: PostfixExpression ::= ExpressionName // case 282: { //#line 1840 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 1842 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 285: PostIncrementExpression ::= PostfixExpression ++ // case 285: { //#line 1848 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_INC)); break; } // // Rule 286: PostDecrementExpression ::= PostfixExpression -- // case 286: { //#line 1854 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_DEC)); break; } // // Rule 289: UnaryExpression ::= + UnaryExpression // case 289: { //#line 1862 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1864 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.POS, UnaryExpression)); break; } // // Rule 290: UnaryExpression ::= - UnaryExpression // case 290: { //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1869 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NEG, UnaryExpression)); break; } // // Rule 292: PreIncrementExpression ::= ++ UnaryExpression // case 292: { //#line 1874 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1876 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_INC, UnaryExpression)); break; } // // Rule 293: PreDecrementExpression ::= -- UnaryExpression // case 293: { //#line 1880 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1882 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_DEC, UnaryExpression)); break; } // // Rule 295: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 295: { //#line 1887 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1889 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.BIT_NOT, UnaryExpression)); break; } // // Rule 296: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 296: { //#line 1892 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1894 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NOT, UnaryExpression)); break; } // // Rule 299: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 299: { //#line 1906 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1906 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1908 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MUL, UnaryExpression)); break; } // // Rule 300: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 300: { //#line 1911 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1911 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.DIV, UnaryExpression)); break; } // // Rule 301: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 301: { //#line 1916 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1916 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1918 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MOD, UnaryExpression)); break; } // // Rule 303: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 303: { //#line 1923 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1923 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1925 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.ADD, MultiplicativeExpression)); break; } // // Rule 304: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 304: { //#line 1928 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1928 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1930 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.SUB, MultiplicativeExpression)); break; } // // Rule 306: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 306: { //#line 1935 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1935 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(3); //#line 1937 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ShiftExpression, Binary.SHL, AdditiveExpression)); break; } // // Rule 307: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 307: { //#line 1940 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1940 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(4); //#line 1942 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.SHR, AdditiveExpression)); break; } // // Rule 308: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 308: { //#line 1946 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1946 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(5); //#line 1948 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.USHR, AdditiveExpression)); break; } // // Rule 310: RelationalExpression ::= RelationalExpression < ShiftExpression // case 310: { //#line 1954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1956 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LT, ShiftExpression)); break; } // // Rule 311: RelationalExpression ::= RelationalExpression > ShiftExpression // case 311: { //#line 1959 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1959 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1961 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.GT, ShiftExpression)); break; } // // Rule 312: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 312: { //#line 1964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1966 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LE, ShiftExpression)); break; } // // Rule 313: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 313: { //#line 1969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(4); //#line 1971 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), RelationalExpression, Binary.GE, ShiftExpression)); break; } // // Rule 315: EqualityExpression ::= EqualityExpression == RelationalExpression // case 315: { //#line 1985 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1985 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1987 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.EQ, RelationalExpression)); break; } // // Rule 316: EqualityExpression ::= EqualityExpression != RelationalExpression // case 316: { //#line 1990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1992 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.NE, RelationalExpression)); break; } // // Rule 318: AndExpression ::= AndExpression & EqualityExpression // case 318: { //#line 1997 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(1); //#line 1997 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(3); //#line 1999 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AndExpression, Binary.BIT_AND, EqualityExpression)); break; } // // Rule 320: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 320: { //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(1); //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(3); //#line 2006 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ExclusiveOrExpression, Binary.BIT_XOR, AndExpression)); break; } // // Rule 322: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 322: { //#line 2011 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(1); //#line 2011 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(3); //#line 2013 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), InclusiveOrExpression, Binary.BIT_OR, ExclusiveOrExpression)); break; } // // Rule 324: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 324: { //#line 2018 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(1); //#line 2018 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(3); //#line 2020 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalAndExpression, Binary.COND_AND, InclusiveOrExpression)); break; } // // Rule 326: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 326: { //#line 2025 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2025 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(3); //#line 2027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalOrExpression, Binary.COND_OR, ConditionalAndExpression)); break; } // // Rule 328: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 328: { //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalExpression = (Expr) getRhsSym(5); //#line 2034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Conditional(pos(), ConditionalOrExpression, Expression, ConditionalExpression)); break; } // // Rule 331: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 331: { //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr LeftHandSide = (Expr) getRhsSym(1); //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Assign.Operator AssignmentOperator = (Assign.Operator) getRhsSym(2); //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AssignmentExpression = (Expr) getRhsSym(3); //#line 2043 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assign(pos(), LeftHandSide, AssignmentOperator, AssignmentExpression)); break; } // // Rule 332: LeftHandSide ::= ExpressionName // case 332: { //#line 2047 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 2049 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 335: AssignmentOperator ::= = // case 335: { //#line 2057 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ASSIGN); break; } // // Rule 336: AssignmentOperator ::= *= // case 336: { //#line 2062 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MUL_ASSIGN); break; } // // Rule 337: AssignmentOperator ::= /= // case 337: { //#line 2067 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.DIV_ASSIGN); break; } // // Rule 338: AssignmentOperator ::= %= // case 338: { //#line 2072 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MOD_ASSIGN); break; } // // Rule 339: AssignmentOperator ::= += // case 339: { //#line 2077 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ADD_ASSIGN); break; } // // Rule 340: AssignmentOperator ::= -= // case 340: { //#line 2082 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SUB_ASSIGN); break; } // // Rule 341: AssignmentOperator ::= <<= // case 341: { //#line 2087 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SHL_ASSIGN); break; } // // Rule 342: AssignmentOperator ::= > > = // case 342: { //#line 2092 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.SHR_ASSIGN); break; } // // Rule 343: AssignmentOperator ::= > > > = // case 343: { //#line 2098 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.USHR_ASSIGN); break; } // // Rule 344: AssignmentOperator ::= &= // case 344: { //#line 2104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_AND_ASSIGN); break; } // // Rule 345: AssignmentOperator ::= ^= // case 345: { //#line 2109 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_XOR_ASSIGN); break; } // // Rule 346: AssignmentOperator ::= |= // case 346: { //#line 2114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_OR_ASSIGN); break; } // // Rule 349: Dimsopt ::= $Empty // case 349: { //#line 2127 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(0)); break; } // // Rule 351: Catchesopt ::= $Empty // case 351: { //#line 2134 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 353: identifieropt ::= $Empty // case 353: setResult(null); break; // // Rule 354: identifieropt ::= identifier // case 354: { //#line 2141 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2143 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 355: ForUpdateopt ::= $Empty // case 355: { //#line 2149 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 357: Expressionopt ::= $Empty // case 357: setResult(null); break; // // Rule 359: ForInitopt ::= $Empty // case 359: { //#line 2160 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 361: SwitchLabelsopt ::= $Empty // case 361: { //#line 2167 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 363: SwitchBlockStatementGroupsopt ::= $Empty // case 363: { //#line 2174 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 365: VariableModifiersopt ::= $Empty // case 365: { //#line 2181 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 367: VariableInitializersopt ::= $Empty // case 367: setResult(null); break; // // Rule 369: AbstractMethodModifiersopt ::= $Empty // case 369: { //#line 2211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 371: ConstantModifiersopt ::= $Empty // case 371: { //#line 2218 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 373: InterfaceMemberDeclarationsopt ::= $Empty // case 373: { //#line 2225 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 375: ExtendsInterfacesopt ::= $Empty // case 375: { //#line 2232 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 377: InterfaceModifiersopt ::= $Empty // case 377: { //#line 2239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 379: ClassBodyopt ::= $Empty // case 379: setResult(null); break; // // Rule 381: Argumentsopt ::= $Empty // case 381: setResult(null); break; // // Rule 382: Argumentsopt ::= Arguments // case 382: throw new Error("No action specified for rule " + 382); // // Rule 383: ,opt ::= $Empty // case 383: setResult(null); break; // // Rule 385: ArgumentListopt ::= $Empty // case 385: { //#line 2269 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 387: BlockStatementsopt ::= $Empty // case 387: { //#line 2276 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 389: ExplicitConstructorInvocationopt ::= $Empty // case 389: setResult(null); break; // // Rule 391: ConstructorModifiersopt ::= $Empty // case 391: { //#line 2287 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 393: ...opt ::= $Empty // case 393: setResult(null); break; // // Rule 395: FormalParameterListopt ::= $Empty // case 395: { //#line 2298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 397: Throwsopt ::= $Empty // case 397: { //#line 2305 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 399: MethodModifiersopt ::= $Empty // case 399: { //#line 2312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 401: FieldModifiersopt ::= $Empty // case 401: { //#line 2319 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 403: ClassBodyDeclarationsopt ::= $Empty // case 403: { //#line 2326 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 405: Interfacesopt ::= $Empty // case 405: { //#line 2333 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 407: Superopt ::= $Empty // case 407: { //#line 2340 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), "x10.lang.Object").toType()); break; } // // Rule 409: ClassModifiersopt ::= $Empty // case 409: { //#line 2351 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 411: TypeDeclarationsopt ::= $Empty // case 411: { //#line 2363 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 413: ImportDeclarationsopt ::= $Empty // case 413: { //#line 2370 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 415: PackageDeclarationopt ::= $Empty // case 415: setResult(null); break; // // Rule 417: ClassType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 417: { //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 717 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 418: InterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 418: { //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 726 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 419: PackageDeclaration ::= package PackageName ; // case 419: { //#line 732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name PackageName = (Name) getRhsSym(2); //#line 734 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(PackageName.toPackage()); break; } // // Rule 420: NormalClassDeclaration ::= X10ClassModifiersopt class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 420: { //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 740 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(X10Flags.isValue(X10ClassModifiersopt) ? nf.ValueClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody) : nf.ClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 422: X10ClassModifiers ::= X10ClassModifiers X10ClassModifier // case 422: { //#line 753 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiers = (X10Flags) getRhsSym(1); //#line 753 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifier = (X10Flags) getRhsSym(2); //#line 755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags result = X10ClassModifiers.setX(X10ClassModifier); setResult(result); break; } // // Rule 423: X10ClassModifier ::= ClassModifier // case 423: { //#line 761 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags ClassModifier = (Flags) getRhsSym(1); //#line 763 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(ClassModifier)); break; } // // Rule 424: X10ClassModifier ::= safe // case 424: { //#line 768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 425: PropertyList ::= ( Properties WhereClauseopt ) // case 425: { //#line 772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(2); //#line 772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(3); //#line 774 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = Properties; result[1] = WhereClauseopt; setResult(result); break; } // // Rule 426: PropertyList ::= ( WhereClause ) // case 426: { //#line 779 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(2); //#line 781 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = null; result[1] = WhereClause; setResult(result); break; } // // Rule 427: Properties ::= Property // case 427: { //#line 788 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(1); //#line 790 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), PropertyDecl.class, false); l.add(Property); setResult(l); break; } // // Rule 428: Properties ::= Properties , Property // case 428: { //#line 795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(1); //#line 795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(3); //#line 797 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Properties.add(Property); // setResult(FormalParameters); break; } // // Rule 429: Property ::= Type identifier // case 429: { //#line 803 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 803 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(2); //#line 805 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.PropertyDecl(pos(), Flags.PUBLIC.Final(), Type, identifier.getIdentifier())); break; } // // Rule 430: MethodHeader ::= ThisClauseopt MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 430: { //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags MethodModifiersopt = (Flags) getRhsSym(2); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 813 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name c = (MethodDeclarator != null) ? (Name) MethodDeclarator[0] : null; List d = (MethodDeclarator != null) ? (List) MethodDeclarator[1] : null; Integer e = (MethodDeclarator != null) ? (Integer) MethodDeclarator[2] : null; Expr where = (MethodDeclarator != null) ? (Expr) MethodDeclarator[3] : null; if (ResultType.type() == ts.Void() && e != null && e.intValue() > 0) { // TODO: error!!! System.err.println("Fix me - encountered method returning void but with non-zero rank?"); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, MethodModifiersopt, nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e != null ? e.intValue() : 1), c != null ? c.toString() : "", d, where, Throwsopt, null)); break; } // // Rule 431: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 431: { //#line 835 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), ArgumentListopt)); break; } // // Rule 432: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 432: { //#line 840 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 842 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), ArgumentListopt)); break; } // // Rule 433: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 433: { //#line 845 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 845 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 847 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 434: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 434: { //#line 850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 852 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 435: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier PropertyListopt ExtendsInterfacesopt InterfaceBody // case 435: { //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags InterfaceModifiersopt = (Flags) getRhsSym(1); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ExtendsInterfacesopt = (List) getRhsSym(5); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody InterfaceBody = (ClassBody) getRhsSym(6); //#line 858 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(nf.ClassDecl(pos(), InterfaceModifiersopt.Interface(), identifier.getIdentifier(), props, ci, null, ExtendsInterfacesopt, InterfaceBody)); break; } // // Rule 436: AbstractMethodDeclaration ::= ThisClauseopt AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 436: { //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags AbstractMethodModifiersopt = (Flags) getRhsSym(2); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 875 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name c = (Name) MethodDeclarator[0]; List d = (List) MethodDeclarator[1]; Integer e = (Integer) MethodDeclarator[2]; Expr where = (Expr) MethodDeclarator[3]; if (ResultType.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, AbstractMethodModifiersopt , nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e.intValue()), c.toString(), d, where, Throwsopt, null)); break; } // // Rule 437: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 437: { //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ClassOrInterfaceType = (TypeNode) getRhsSym(2); //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(4); //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(6); //#line 900 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ClassBodyopt == null) setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt)); else setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt, ClassBodyopt)); break; } // // Rule 438: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 438: { //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 907 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 439: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 439: { //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name AmbiguousName = (Name) getRhsSym(1); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 915 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 440: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 440: { //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 924 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 441: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 441: { //#line 927 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 927 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 442: MethodInvocation ::= ClassName . super$sup . identifier ( ArgumentListopt ) // case 442: { //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(7); //#line 934 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 444: AssignPropertyCall ::= property ( ArgumentList ) // case 444: { //#line 939 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 941 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AssignPropertyCall(pos(), ArgumentList)); break; } // // Rule 445: Type ::= DataType // case 445: { //#line 950 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(1); //#line 952 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 446: Type ::= nullable < Type > DepParametersopt // case 446: { //#line 955 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 955 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(5); //#line 957 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode t = nf.Nullable(pos(), Type); setResult(DepParametersopt == null ? t : t.dep(null, DepParametersopt)); break; } // // Rule 447: Type ::= future < Type > // case 447: { //#line 963 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 965 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 451: PrimitiveType ::= NumericType DepParametersopt // case 451: { //#line 980 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode NumericType = (TypeNode) getRhsSym(1); //#line 980 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 982 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parser: parsed PrimitiveType |" + NumericType + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? NumericType : ((X10TypeNode) NumericType).dep(null, DepParametersopt)); break; } // // Rule 452: PrimitiveType ::= boolean DepParametersopt // case 452: { //#line 988 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode res = (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.Boolean()); setResult(DepParametersopt==null ? res : res.dep(null, DepParametersopt)); break; } // // Rule 457: ClassOrInterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 457: { //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 1004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode type; if (ts.isPrimitiveTypeName(TypeName.name)) { try { type= (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.primitiveForName(TypeName.name)); } catch (SemanticException e) { throw new InternalCompilerError("Unable to create primitive type for '" + TypeName.name + "'!"); } } else type= (X10TypeNode) TypeName.toType(); // System.out.println("Parser: parsed ClassOrInterfaceType |" + TypeName + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? type : type.dep(null, DepParametersopt)); break; } // // Rule 458: DepParameters ::= ( DepParameterExpr ) // case 458: { //#line 1021 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(2); //#line 1023 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParameterExpr); break; } // // Rule 459: DepParameterExpr ::= ArgumentList WhereClauseopt // case 459: { //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(1); //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(2); //#line 1029 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), ArgumentList, WhereClauseopt)); break; } // // Rule 460: DepParameterExpr ::= WhereClause // case 460: { //#line 1032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(1); //#line 1034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), Collections.EMPTY_LIST, WhereClause)); break; } // // Rule 461: WhereClause ::= : ConstExpression // case 461: { //#line 1038 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1040 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 462: ConstPrimary ::= Literal // case 462: { //#line 1045 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.ast.Lit Literal = (polyglot.ast.Lit) getRhsSym(1); //#line 1047 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Literal); break; } // // Rule 463: ConstPrimary ::= Type . class // case 463: { //#line 1050 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1052 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 464: ConstPrimary ::= void . class // case 464: { //#line 1071 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 465: ConstPrimary ::= this // case 465: { //#line 1077 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos())); break; } // // Rule 466: ConstPrimary ::= here // case 466: { //#line 1082 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Here(pos())); break; } // // Rule 467: ConstPrimary ::= ClassName . this // case 467: { //#line 1085 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1087 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 468: ConstPrimary ::= ( ConstExpression ) // case 468: { //#line 1090 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1092 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 470: ConstPrimary ::= self // case 470: { //#line 1098 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Self(pos())); break; } // // Rule 471: ConstPostfixExpression ::= ConstPrimary // case 471: { //#line 1104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1106 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstPrimary); break; } // // Rule 472: ConstPostfixExpression ::= ExpressionName // case 472: { //#line 1109 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1111 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ExpressionName.toExpr()); break; } // // Rule 473: ConstUnaryExpression ::= ConstPostfixExpression // case 473: { //#line 1114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPostfixExpression = (Expr) getRhsSym(1); //#line 1116 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstPostfixExpression); break; } // // Rule 474: ConstUnaryExpression ::= + ConstUnaryExpression // case 474: { //#line 1119 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1121 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.POS, ConstUnaryExpression)); break; } // // Rule 475: ConstUnaryExpression ::= - ConstUnaryExpression // case 475: { //#line 1124 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1126 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NEG, ConstUnaryExpression)); break; } // // Rule 476: ConstUnaryExpression ::= ! ConstUnaryExpression // case 476: { //#line 1129 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1131 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NOT, ConstUnaryExpression)); break; } // // Rule 477: ConstMultiplicativeExpression ::= ConstUnaryExpression // case 477: { //#line 1135 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(1); //#line 1137 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstUnaryExpression); break; } // // Rule 478: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression * ConstUnaryExpression // case 478: { //#line 1140 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1140 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1142 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MUL, ConstUnaryExpression)); break; } // // Rule 479: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression / ConstUnaryExpression // case 479: { //#line 1145 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1145 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1147 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.DIV, ConstUnaryExpression)); break; } // // Rule 480: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression % ConstUnaryExpression // case 480: { //#line 1150 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1150 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1152 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MOD, ConstUnaryExpression)); break; } // // Rule 481: ConstAdditiveExpression ::= ConstMultiplicativeExpression // case 481: { //#line 1156 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1158 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstMultiplicativeExpression); break; } // // Rule 482: ConstAdditiveExpression ::= ConstAdditiveExpression + ConstMultiplicativeExpression // case 482: { //#line 1161 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1161 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1163 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.ADD, ConstMultiplicativeExpression)); break; } // // Rule 483: ConstAdditiveExpression ::= ConstAdditiveExpression - ConstMultiplicativeExpression // case 483: { //#line 1166 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1166 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1168 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.SUB, ConstMultiplicativeExpression)); break; } // // Rule 484: ConstRelationalExpression ::= ConstAdditiveExpression // case 484: { //#line 1173 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1175 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstAdditiveExpression); break; } // // Rule 485: ConstRelationalExpression ::= ConstRelationalExpression < ConstAdditiveExpression // case 485: { //#line 1178 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1178 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LT, ConstAdditiveExpression)); break; } // // Rule 486: ConstRelationalExpression ::= ConstRelationalExpression > ConstAdditiveExpression // case 486: { //#line 1183 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1183 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1185 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GT, ConstAdditiveExpression)); break; } // // Rule 487: ConstRelationalExpression ::= ConstRelationalExpression <= ConstAdditiveExpression // case 487: { //#line 1188 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1188 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1190 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LE, ConstAdditiveExpression)); break; } // // Rule 488: ConstRelationalExpression ::= ConstRelationalExpression > = ConstAdditiveExpression // case 488: { //#line 1193 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1193 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(4); //#line 1195 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GE, ConstAdditiveExpression)); break; } // // Rule 489: ConstEqualityExpression ::= ConstRelationalExpression // case 489: { //#line 1199 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstRelationalExpression); break; } // // Rule 490: ConstEqualityExpression ::= ConstEqualityExpression == ConstRelationalExpression // case 490: { //#line 1204 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1204 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1206 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.EQ, ConstRelationalExpression)); break; } // // Rule 491: ConstEqualityExpression ::= ConstEqualityExpression != ConstRelationalExpression // case 491: { //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.NE, ConstRelationalExpression)); break; } // // Rule 492: ConstAndExpression ::= ConstEqualityExpression // case 492: { //#line 1215 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1217 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstEqualityExpression); break; } // // Rule 493: ConstAndExpression ::= ConstAndExpression && ConstEqualityExpression // case 493: { //#line 1220 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1220 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(3); //#line 1222 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAndExpression, Binary.COND_AND, ConstEqualityExpression)); break; } // // Rule 494: ConstExclusiveOrExpression ::= ConstAndExpression // case 494: { //#line 1226 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1228 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstAndExpression); break; } // // Rule 495: ConstExclusiveOrExpression ::= ConstExclusiveOrExpression ^ ConstAndExpression // case 495: { //#line 1231 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1231 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(3); //#line 1233 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstExclusiveOrExpression, Binary.BIT_XOR, ConstAndExpression)); break; } // // Rule 496: ConstInclusiveOrExpression ::= ConstExclusiveOrExpression // case 496: { //#line 1237 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExclusiveOrExpression); break; } // // Rule 497: ConstInclusiveOrExpression ::= ConstInclusiveOrExpression || ConstExclusiveOrExpression // case 497: { //#line 1242 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1242 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(3); //#line 1244 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstInclusiveOrExpression, Binary.COND_OR, ConstExclusiveOrExpression)); break; } // // Rule 498: ConstExpression ::= ConstInclusiveOrExpression // case 498: { //#line 1248 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstInclusiveOrExpression); break; } // // Rule 499: ConstExpression ::= ConstInclusiveOrExpression ? ConstExpression$first : ConstExpression // case 499: { //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr first = (Expr) getRhsSym(3); //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(5); //#line 1255 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Conditional(pos(), ConstInclusiveOrExpression, first, ConstExpression)); break; } // // Rule 500: ConstFieldAccess ::= ConstPrimary . identifier // case 500: { //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1262 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(), ConstPrimary, identifier.getIdentifier())); break; } // // Rule 501: ConstFieldAccess ::= super . identifier // case 501: { //#line 1265 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 502: ConstFieldAccess ::= ClassName . super$sup . identifier // case 502: { //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1272 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 504: X10ArrayType ::= Type [ . ] // case 504: { //#line 1288 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1290 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, null)); break; } // // Rule 505: X10ArrayType ::= Type value [ . ] // case 505: { //#line 1293 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1295 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, null)); break; } // // Rule 506: X10ArrayType ::= Type [ DepParameterExpr ] // case 506: { //#line 1298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(3); //#line 1300 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, DepParameterExpr)); break; } // // Rule 507: X10ArrayType ::= Type value [ DepParameterExpr ] // case 507: { //#line 1303 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1303 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(4); //#line 1305 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, DepParameterExpr)); break; } // // Rule 508: ObjectKind ::= value // case 508: throw new Error("No action specified for rule " + 508); // // Rule 509: ObjectKind ::= reference // case 509: throw new Error("No action specified for rule " + 509); // // Rule 510: MethodModifier ::= atomic // case 510: { //#line 1319 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.ATOMIC); break; } // // Rule 511: MethodModifier ::= extern // case 511: { //#line 1324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Flags.NATIVE); break; } // // Rule 512: MethodModifier ::= safe // case 512: { //#line 1329 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 513: MethodModifier ::= sequential // case 513: { //#line 1334 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SEQUENTIAL); break; } // // Rule 514: MethodModifier ::= local // case 514: { //#line 1339 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.LOCAL); break; } // // Rule 515: MethodModifier ::= nonblocking // case 515: { //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.NON_BLOCKING); break; } // // Rule 517: ValueClassDeclaration ::= X10ClassModifiersopt value identifier PropertyListopt Superopt Interfacesopt ClassBody // case 517: { //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 1352 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 518: ValueClassDeclaration ::= X10ClassModifiersopt value class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 518: { //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(5); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(6); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(7); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(8); //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 519: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 519: { //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags ConstructorModifiersopt = (Flags) getRhsSym(1); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] ConstructorDeclarator = (Object[]) getRhsSym(2); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(3); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block ConstructorBody = (Block) getRhsSym(4); //#line 1373 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name a = (Name) ConstructorDeclarator[1]; DepParameterExpr c = (DepParameterExpr) ConstructorDeclarator[2]; List b = (List) ConstructorDeclarator[3]; Expr e = (Expr) ConstructorDeclarator[4]; setResult(nf.ConstructorDecl(pos(), ConstructorModifiersopt, a.toString(), c, b, e, Throwsopt, ConstructorBody)); break; } // // Rule 520: ConstructorDeclarator ::= SimpleTypeName DepParametersopt ( FormalParameterListopt WhereClauseopt ) // case 520: { //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name SimpleTypeName = (Name) getRhsSym(1); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(4); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(5); //#line 1383 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] a = new Object[5]; a[1] = SimpleTypeName; a[2] = DepParametersopt; a[3] = FormalParameterListopt; a[4] = WhereClauseopt; setResult(a); break; } // // Rule 521: ThisClause ::= this DepParameters // case 521: { //#line 1391 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameters = (DepParameterExpr) getRhsSym(2); //#line 1393 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParameters); break; } // // Rule 522: Super ::= extends DataType // case 522: { //#line 1397 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(2); //#line 1399 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 523: MethodDeclarator ::= identifier ( FormalParameterListopt WhereClauseopt ) // case 523: { //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(3); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(4); //#line 1405 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parsing methoddeclarator..."); Object[] a = new Object[5]; a[0] = new Name(nf, ts, pos(), identifier.getIdentifier()); a[1] = FormalParameterListopt; a[2] = new Integer(0); a[3] = WhereClauseopt; setResult(a); break; } // // Rule 524: MethodDeclarator ::= MethodDeclarator [ ] // case 524: { //#line 1415 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(1); //#line 1417 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" MethodDeclarator[2] = new Integer(((Integer) MethodDeclarator[2]).intValue() + 1); // setResult(MethodDeclarator); break; } // // Rule 525: FieldDeclaration ::= ThisClauseopt FieldModifiersopt Type VariableDeclarators ; // case 525: { //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags FieldModifiersopt = (Flags) getRhsSym(2); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List VariableDeclarators = (List) getRhsSym(4); //#line 1425 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), ClassMember.class, false); if (VariableDeclarators != null && VariableDeclarators.size() > 0) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); d.setFlag(FieldModifiersopt); l.add(nf.FieldDecl(d.position(), ThisClauseopt, d.flags, nf.array(Type, Type.position(), d.dims), d.name, d.init)); } } setResult(l); break; } // // Rule 526: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt Dims ArrayInitializer // case 526: { //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(4); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ArrayInit ArrayInitializer = (ArrayInit) getRhsSym(5); //#line 1461 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Dims.intValue(), ArrayInitializer)); break; } // // Rule 527: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr Dims // case 527: { //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(5); //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Collections.singletonList(DimExpr), Dims.intValue())); break; } // // Rule 528: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr DimExprs Dimsopt // case 528: { //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List DimExprs = (List) getRhsSym(5); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dimsopt = (Integer) getRhsSym(6); //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); l.addAll(DimExprs); setResult(nf.NewArray(pos(), ArrayBaseType, l, Dimsopt.intValue())); break; } // // Rule 529: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] // case 529: { //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1482 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, null)); break; } // // Rule 530: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression$distr ] Expression$initializer // case 530: { //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr distr = (Expr) getRhsSym(6); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr initializer = (Expr) getRhsSym(8); //#line 1487 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, distr, initializer)); break; } // // Rule 531: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] ($lparen FormalParameter ) MethodBody // case 531: { //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken lparen = (IToken) getRhsIToken(8); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(9); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(11); //#line 1492 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr initializer = makeInitializer( pos(getRhsFirstTokenIndex(8), getRightSpan()), ArrayBaseType, FormalParameter, MethodBody ); setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, initializer)); break; } // // Rule 532: Valueopt ::= $Empty // case 532: setResult(null); break; // // Rule 533: Valueopt ::= value // case 533: { //#line 1501 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 536: ArrayBaseType ::= nullable < Type > // case 536: { //#line 1508 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1510 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Nullable(pos(), Type)); break; } // // Rule 537: ArrayBaseType ::= future < Type > // case 537: { //#line 1513 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1515 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 538: ArrayBaseType ::= ( Type ) // case 538: { //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1520 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Type); break; } // // Rule 539: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 539: { //#line 1524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1526 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), ExpressionName.toExpr(), (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), ExpressionName.toExpr(), ArgumentList)); break; } // // Rule 540: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 540: { //#line 1531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PrimaryNoNewArray = (Expr) getRhsSym(1); //#line 1531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1533 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), PrimaryNoNewArray, (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), PrimaryNoNewArray, ArgumentList)); break; } // // Rule 557: NowStatement ::= now ( Clock ) Statement // case 557: { //#line 1559 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1559 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1561 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, Statement)); break; } // // Rule 558: ClockedClause ::= clocked ( ClockList ) // case 558: { //#line 1565 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(3); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ClockList); break; } // // Rule 559: AsyncStatement ::= async PlaceExpressionSingleListopt ClockedClauseopt Statement // case 559: { //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(4); //#line 1573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, Statement)); break; } // // Rule 560: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 560: { //#line 1581 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1581 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(3); //#line 1583 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Statement)); break; } // // Rule 561: WhenStatement ::= when ( Expression ) Statement // case 561: { //#line 1590 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1590 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1592 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, Statement)); break; } // // Rule 562: WhenStatement ::= WhenStatement or$or ( Expression ) Statement // case 562: { //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(6); //#line 1597 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, Statement); setResult(WhenStatement); break; } // // Rule 563: ForEachStatement ::= foreach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 563: { //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1604 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 564: AtEachStatement ::= ateach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 564: { //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1614 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 565: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 565: { //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(7); //#line 1624 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, Statement)); break; } // // Rule 566: FinishStatement ::= finish Statement // case 566: { //#line 1631 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(2); //#line 1633 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), Statement)); break; } // // Rule 567: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 567: { //#line 1638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1640 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, StatementNoShortIf)); break; } // // Rule 568: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt ClockedClauseopt StatementNoShortIf // case 568: { //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(4); //#line 1646 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 569: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 569: { //#line 1653 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1655 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), nf.Here(pos(getLeftSpan())), StatementNoShortIf)); break; } // // Rule 570: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 570: { //#line 1659 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1659 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1661 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, StatementNoShortIf)); break; } // // Rule 571: WhenStatementNoShortIf ::= WhenStatement or$or ( Expression ) StatementNoShortIf // case 571: { //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(6); //#line 1666 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, StatementNoShortIf); setResult(WhenStatement); break; } // // Rule 572: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 572: { //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1673 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 573: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 573: { //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1684 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 574: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 574: { //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(7); //#line 1694 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, StatementNoShortIf)); break; } // // Rule 575: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 575: { //#line 1701 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1703 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), StatementNoShortIf)); break; } // // Rule 576: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 576: { //#line 1708 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpression = (Expr) getRhsSym(2); //#line 1710 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(PlaceExpression); break; } // // Rule 578: NextStatement ::= next ; // case 578: { //#line 1718 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Next(pos())); break; } // // Rule 579: AwaitStatement ::= await Expression ; // case 579: { //#line 1722 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(2); //#line 1724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Await(pos(), Expression)); break; } // // Rule 580: ClockList ::= Clock // case 580: { //#line 1728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(1); //#line 1730 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Clock); setResult(l); break; } // // Rule 581: ClockList ::= ClockList , Clock // case 581: { //#line 1735 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(1); //#line 1735 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1737 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClockList.add(Clock); setResult(ClockList); break; } // // Rule 582: Clock ::= Expression // case 582: { //#line 1743 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(1); //#line 1745 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Expression); break; } // // Rule 583: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 583: { //#line 1755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(4); //#line 1757 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Cast(pos(), Type, UnaryExpressionNotPlusMinus)); break; } // // Rule 584: CastExpression ::= ( @ Expression ) UnaryExpressionNotPlusMinus // case 584: { //#line 1760 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1760 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(5); //#line 1762 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.PlaceCast(pos(), Expression, UnaryExpressionNotPlusMinus)); break; } // // Rule 585: RelationalExpression ::= RelationalExpression instanceof Type // case 585: { //#line 1772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1774 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Instanceof(pos(), RelationalExpression, Type)); break; } // // Rule 586: IdentifierList ::= identifier // case 586: { //#line 1780 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1782 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Name.class, false); l.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(l); break; } // // Rule 587: IdentifierList ::= IdentifierList , identifier // case 587: { //#line 1787 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List IdentifierList = (List) getRhsSym(1); //#line 1787 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1789 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IdentifierList.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(IdentifierList); break; } // // Rule 588: Primary ::= here // case 588: { //#line 1796 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(((X10NodeFactory) nf).Here(pos()));//// A "here" expression used to be treated as an ExpressionName instead// of as a primary.//// setResult(new Name(nf, ts, pos(), "here"){// public Expr toExpr() {// return ((X10NodeFactory) nf).Here(pos);// }// }); break; } // // Rule 591: RegionExpression ::= Expression$expr1 : Expression$expr2 // case 591: { //#line 1812 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1812 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1814 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" /*Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(expr1); l.add(expr2); Call regionCall = nf.Call( pos(), x10LangRegionFactoryRegion.prefix.toReceiver(), "region", l ); */ Call regionCall = nf.RegionMaker(pos(), expr1, expr2); setResult(regionCall); break; } // // Rule 592: RegionExpressionList ::= RegionExpression // case 592: { //#line 1830 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(1); //#line 1832 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(RegionExpression); setResult(l); break; } // // Rule 593: RegionExpressionList ::= RegionExpressionList , RegionExpression // case 593: { //#line 1837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(1); //#line 1837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(3); //#line 1839 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" RegionExpressionList.add(RegionExpression); //setResult(RegionExpressionList); break; } // // Rule 594: Primary ::= [ RegionExpressionList ] // case 594: { //#line 1844 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(2); //#line 1846 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); Name x10LangPoint = new Name(nf, ts, pos(), x10Lang, "point"); Name x10LangPointFactory = new Name(nf, ts, pos(), x10LangPoint, "factory"); Name x10LangPointFactoryPoint = new Name(nf, ts, pos(), x10LangPointFactory, "point"); Tuple tuple = nf.Tuple(pos(), x10LangPointFactoryPoint, x10LangRegionFactoryRegion, RegionExpressionList); setResult(tuple); break; } // // Rule 595: AssignmentExpression ::= Expression$expr1 -> Expression$expr2 // case 595: { //#line 1860 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1860 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1862 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ConstantDistMaker call = nf.ConstantDistMaker(pos(), expr1, expr2); setResult(call); break; } // // Rule 596: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 596: { //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1869 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Expression)); break; } // // Rule 597: FieldModifier ::= mutable // case 597: { //#line 1877 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.MUTABLE); break; } // // Rule 598: FieldModifier ::= const // case 598: { //#line 1882 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 599: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 599: throw new Error("No action specified for rule " + 599); // // Rule 600: MethodInvocation ::= MethodName ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 600: throw new Error("No action specified for rule " + 600); // // Rule 601: MethodInvocation ::= Primary . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 601: throw new Error("No action specified for rule " + 601); // // Rule 602: MethodInvocation ::= super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 602: throw new Error("No action specified for rule " + 602); // // Rule 603: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 603: throw new Error("No action specified for rule " + 603); // // Rule 604: MethodInvocation ::= TypeName . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 604: throw new Error("No action specified for rule " + 604); // // Rule 605: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 605: throw new Error("No action specified for rule " + 605); // // Rule 606: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 606: throw new Error("No action specified for rule " + 606); // // Rule 607: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 607: throw new Error("No action specified for rule " + 607); // // Rule 608: MethodModifier ::= synchronized // case 608: { //#line 1913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "\"synchronized\" is an invalid X10 Method Modifier"); setResult(Flags.SYNCHRONIZED); break; } // // Rule 609: FieldModifier ::= volatile // case 609: { //#line 1922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "\"volatile\" is an invalid X10 Field Modifier"); setResult(Flags.VOLATILE); break; } // // Rule 610: SynchronizedStatement ::= synchronized ( Expression ) Block // case 610: { //#line 1929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block Block = (Block) getRhsSym(5); //#line 1931 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "Synchronized Statement is invalid in X10"); setResult(nf.Synchronized(pos(), Expression, Block)); break; } // // Rule 611: ThisClauseopt ::= $Empty // case 611: setResult(null); break; // // Rule 613: PlaceTypeSpecifieropt ::= $Empty // case 613: setResult(null); break; // // Rule 615: DepParametersopt ::= $Empty // case 615: setResult(null); break; // // Rule 617: PropertyListopt ::= $Empty // case 617: setResult(null); break; // // Rule 619: WhereClauseopt ::= $Empty // case 619: setResult(null); break; // // Rule 621: ObjectKindopt ::= $Empty // case 621: setResult(null); break; // // Rule 623: ArrayInitializeropt ::= $Empty // case 623: setResult(null); break; // // Rule 625: PlaceExpressionSingleListopt ::= $Empty // case 625: setResult(null); break; // // Rule 627: ArgumentListopt ::= $Empty // case 627: setResult(null); break; // // Rule 629: X10ClassModifiersopt ::= $Empty // case 629: { //#line 1977 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(Flags.NONE)); break; } // // Rule 631: DepParametersopt ::= $Empty // case 631: setResult(null); break; // // Rule 633: Unsafeopt ::= $Empty // case 633: setResult(null); break; // // Rule 634: Unsafeopt ::= unsafe // case 634: { //#line 1989 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 635: ParamIdopt ::= $Empty // case 635: setResult(null); break; // // Rule 636: ParamIdopt ::= identifier // case 636: { //#line 1996 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1998 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 637: ClockedClauseopt ::= $Empty // case 637: { //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(new TypedList(new LinkedList(), Expr.class, false)); break; } default: break; } return; } | 1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/13a8963410bb8c85885791a761267a089892a2fc/X10Parser.java/clean/x10.compiler/src/x10/parser/X10Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1720,
1803,
12,
474,
1720,
1854,
13,
565,
288,
3639,
1620,
261,
5345,
1854,
13,
3639,
288,
2398,
368,
5411,
368,
6781,
404,
30,
225,
21036,
493,
33,
21036,
263,
1068,
548,
54... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1720,
1803,
12,
474,
1720,
1854,
13,
565,
288,
3639,
1620,
261,
5345,
1854,
13,
3639,
288,
2398,
368,
5411,
368,
6781,
404,
30,
225,
21036,
493,
33,
21036,
263,
1068,
548,
54... | ||
public void run() { ISelection selection = viewer.getSelection(); Object element = ((IStructuredSelection) selection).getFirstElement(); if (element instanceof ITask || element instanceof AbstractQueryHit || element instanceof DateRangeActivityDelegate) { final ITask task; if (element instanceof AbstractQueryHit) { task = ((AbstractQueryHit) element).getOrCreateCorrespondingTask(); } else if (element instanceof DateRangeActivityDelegate) { task = ((DateRangeActivityDelegate)element).getCorrespondingTask(); } else { task = (ITask) element; } //element instanceof IQueryHit; boolean forceUpdate = false; final AbstractRepositoryConnector connector = MylarTaskListPlugin.getRepositoryManager().getRepositoryConnector( task.getRepositoryKind()); if (task instanceof AbstractRepositoryTask && connector != null) { Job refreshJob = connector.synchronize((AbstractRepositoryTask)task, forceUpdate, new IJobChangeListener() { public void done(IJobChangeEvent event) { TaskListUiUtil.openEditor(task); } public void aboutToRun(IJobChangeEvent event) { // ignore } public void awake(IJobChangeEvent event) { // ignore } public void running(IJobChangeEvent event) { // ignore } public void scheduled(IJobChangeEvent event) { // ignore } public void sleeping(IJobChangeEvent event) { // ignore } }); if (refreshJob == null) { TaskListUiUtil.openEditor(task); } } else { TaskListUiUtil.openEditor(task); } } else if (element instanceof TaskCategory) { TaskListUiUtil.openEditor((AbstractTaskContainer) element); } else if (element instanceof AbstractRepositoryQuery) { AbstractRepositoryQuery query = (AbstractRepositoryQuery) element; AbstractRepositoryConnector client = MylarTaskListPlugin.getRepositoryManager().getRepositoryConnector( query.getRepositoryKind()); client.openEditQueryDialog(query); } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/8ba4e10fba2d7bab6bf6e37531e9f325d5b5040b/OpenTaskListElementAction.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/actions/OpenTaskListElementAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
288,
202,
202,
45,
6233,
4421,
273,
14157,
18,
588,
6233,
5621,
202,
202,
921,
930,
273,
14015,
45,
30733,
6233,
13,
4421,
2934,
588,
3759,
1046,
5621,
202,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
288,
202,
202,
45,
6233,
4421,
273,
14157,
18,
588,
6233,
5621,
202,
202,
921,
930,
273,
14015,
45,
30733,
6233,
13,
4421,
2934,
588,
3759,
1046,
5621,
202,
2... | ||
{ if (!ServerManagement.isRemote()) { sc.stop(); sc = null; } pm.stop(); tr.stop(); ms.stop(); | { | public void tearDown() throws Exception { if (!ServerManagement.isRemote()) { sc.stop(); sc = null; } pm.stop(); tr.stop(); ms.stop(); super.tearDown(); } | 3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/2b61d9fbbca582fac92082be84c3aef171a649e9/DefaultPostOfficeTest.java/buggy/tests/src/org/jboss/test/messaging/core/plugin/postoffice/DefaultPostOfficeTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
268,
2091,
4164,
1435,
1216,
1185,
282,
288,
5411,
309,
16051,
2081,
10998,
18,
291,
5169,
10756,
1377,
288,
540,
888,
18,
5681,
5621,
540,
888,
273,
446,
31,
1377,
289,
1377,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
268,
2091,
4164,
1435,
1216,
1185,
282,
288,
5411,
309,
16051,
2081,
10998,
18,
291,
5169,
10756,
1377,
288,
540,
888,
18,
5681,
5621,
540,
888,
273,
446,
31,
1377,
289,
1377,
... |
private void zoom(){ checkZoomIndex(); scale = ZOOM_FACTORS[zoomIndex]; GUIPreferences.getInstance().setMapZoomIndex(zoomIndex); hex_size = new Dimension((int)(HEX_W*scale), (int)(HEX_H*scale)); final Dimension size = getSize(); //Coords c = getCoordsAt(new Point((int)(size.width/2), (int)(size.height/2))); boardGraph=null; backGraph=null; hasZoomed=true; updateBoardSize(); view.setLocation(scroll); view.setSize(getOptimalView(size)); offset.setLocation(getOptimalOffset(size)); updateFontSizes(); updateBoardImage(); update(this.getGraphics()); } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/7a25e0a17fc302d6d4451d4b880b81d7763bb7d5/BoardView1.java/clean/megamek/src/megamek/client/ui/AWT/BoardView1.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
6459,
14932,
1435,
95,
1893,
11497,
1016,
5621,
5864,
33,
62,
51,
1872,
67,
11625,
14006,
63,
14932,
1016,
15533,
43,
5370,
12377,
18,
588,
1442,
7675,
542,
863,
11497,
1016,
12,
14932,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
6459,
14932,
1435,
95,
1893,
11497,
1016,
5621,
5864,
33,
62,
51,
1872,
67,
11625,
14006,
63,
14932,
1016,
15533,
43,
5370,
12377,
18,
588,
1442,
7675,
542,
863,
11497,
1016,
12,
14932,
... | ||
disconnectButton.setVisible(false); | void initGUI() { tabbedPane = new STabbedPane(); getFrame().getContentPane().setLayout(new SFlowLayout()); getFrame().getContentPane().add(tabbedPane); settingsForm = new SForm(new SGridLayout(2)); tabbedPane.add(settingsForm, "Connection Settings"); SLabel descServer = new SLabel("sever:port"); final STextField server = new STextField(""); server.setColumns(30); server.setText(((PropertyService)getSession()).getProperty("ldap.server.host")); settingsForm.add(descServer); settingsForm.add(server); SLabel descBaseDN = new SLabel("base DN"); final STextField baseDN = new STextField(); baseDN.setColumns(30); baseDN.setText(((PropertyService)getSession()).getProperty("ldap.server.basedn")); settingsForm.add(descBaseDN); settingsForm.add(baseDN); SLabel descBindDN = new SLabel("bind DN"); final STextField bindDN= new STextField(); bindDN.setText(((PropertyService)getSession()).getProperty("ldap.server.binddn")); bindDN.setColumns(30); settingsForm.add(descBindDN); settingsForm.add(bindDN); SLabel descBindDNPassword = new SLabel("password"); final SPasswordField bindDNPassword= new SPasswordField(); bindDNPassword.setColumns(30); settingsForm.add(descBindDNPassword); settingsForm.add(bindDNPassword); final SButton connectButton = new SButton("connect"); //final SButton disconnectButton = new SButton("disconnect"); //disconnectButton.setVisible(false); settingsForm.add(connectButton); //settingsForm.add(disconnectButton); try { mainPanel = new SForm(new STemplateLayout(getClass().getResource("ldapclientlayout.html"))); mainPanel.setEncodingType("multipart/form-data"); } catch(Exception e) { System.err.println("LdapClientSession::initGUI() -> " + e); } //mainPanel.setEncodingType("multipart/form-data"); Image img = Toolkit.getDefaultToolkit().createImage(getClass().getResource("images/LDAPworm.gif")); mainPanel.add(new SImage( img ) ,"BOTTOMIMAGE"); tabbedPane.add(mainPanel, "Browser"); createTreeModel(null); createTree(); mainPanel.add(tree,"TREE"); //attrPanel.setLayout(new SGridLayout(2)); existentAttrsF = new SForm(new SGridLayout(2)); existentAttrsF.setEncodingType("multipart/form-data"); otherAttrsF = new SForm(new SFlowDownLayout()); addAttribute = new SButton("add Attribute"); addAttribute.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { int i = 0; ArrayList remElements = new ArrayList(); while (obj!=null && i< obj.size()) { System.out.println(obj.get(i)); String o = (String)obj.get(i); remElements.add(o); SComponent attrField; if (!((String)o).equals("jpegPhoto")) { attrField = new STextField(""); ((STextField)attrField).setColumns(columns); textHashtable.put(o,"uu"); } else { attrField = new SLabel(""); } componentTable.put(o,attrField); i++; } existentAttrsF.removeAll(); Enumeration compEnum; compEnum = componentTable.keys(); addEditableComponents(componentTable); System.out.println("groesse " + remElements.size()); for (int l = 0;l<remElements.size();l++) { int j = obj.indexOf(remElements.get(l)); System.out.println("ausgesucht " + remElements.get(l)); objectAttributes.remove(j); } otherAttrsL.setListData(objectAttributes); } }); mainPanel.add(existentAttrsF,"OBJECTATTRIBUTES"); mainPanel.add(otherAttrsF,"ATTRIBUTELIST"); commitButton = new SButton("Commit"); commitButton.addActionListener(this); removeButton = new SButton("Remove entry"); removeButton.addActionListener(this); addPanel = new AddObjectsPanel(); tabbedPane.add(addPanel, "Add new Object"); disconnectButton = new SButton(); tabbedPane.add(disconnectButton,"Disconnect"); disconnectButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { tabbedPane.setSelectedIndex(1); System.out.println("disconnect"); } }); connectButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { worker = new LdapWorker(server.getText(), baseDN.getText(), bindDN.getText(), bindDNPassword.getText()); boolean success = worker.getSuccess(); if (success) { System.out.println("visible false"); settingsForm.setVisible(false); settingsForm.removeAll(); //connectButton.setVisible(false); //disconnectButton.setVisible(true); tabbedPane.setSelectedIndex(1); } else { connectButton.setVisible(true); //disconnectButton.setVisible(false); } if (success) { setLdapWorker(worker); createTreeModel(worker); tree.setModel(treeModel); addPanel.setWorker(worker); addPanel.setTree(tree); } } }); /*disconnectButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { createTreeModel(null); tree.setModel(treeModel); //attrPanel.removeAll(); bindDNPassword.setText(""); disconnectButton.setVisible(false); connectButton.setVisible(true); } });*/ } | 3911 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3911/bf0019de0fce589fd7359eb8ecfbc6ecef340319/LdapClientSession.java/clean/wings/demo/ldap/LdapClientSession.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
9479,
3616,
18,
542,
6207,
12,
5743,
1769,
9479,
3616,
18,
542,
6207,
12,
5743,
1769,
9479,
3616,
18,
542,
6207,
12,
5743,
1769,
9479,
3616,
18,
542,
6207,
12,
5743,
1769,
918,
20177,
3616,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
9479,
3616,
18,
542,
6207,
12,
5743,
1769,
9479,
3616,
18,
542,
6207,
12,
5743,
1769,
9479,
3616,
18,
542,
6207,
12,
5743,
1769,
9479,
3616,
18,
542,
6207,
12,
5743,
1769,
918,
20177,
3616,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.