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 |
|---|---|---|---|---|---|---|
composite.setLayoutData( new GridData(GridData.VERTICAL_ALIGN_FILL | GridData.HORIZONTAL_ALIGN_FILL)); | protected Control createContents(Composite parent) { WorkbenchHelp.setHelp(parent, IHelpContextIds.VIEWS_PREFERENCE_PAGE); IPreferenceStore store = WorkbenchPlugin.getDefault().getPreferenceStore(); editorAlignment = store.getInt(IPreferenceConstants.EDITOR_TAB_POSITION); viewAlignment = store.getInt(IPreferenceConstants.VIEW_TAB_POSITION); Composite composite = new Composite(parent, SWT.NULL); GridLayout layout = new GridLayout(); layout.marginWidth = 0; layout.marginHeight = 0; composite.setLayout(layout); composite.setLayoutData( new GridData(GridData.VERTICAL_ALIGN_FILL | GridData.HORIZONTAL_ALIGN_FILL)); createEditorTabButtonGroup(composite); createViewTabButtonGroup(composite); Composite messageComposite = new Composite(composite, SWT.NONE); GridLayout messageLayout = new GridLayout(); messageLayout.numColumns = 2; messageLayout.marginWidth = 0; messageLayout.marginHeight = 0; messageComposite.setLayout(messageLayout); messageComposite.setLayoutData( new GridData(GridData.HORIZONTAL_ALIGN_FILL)); final Label noteLabel = new Label(messageComposite,SWT.BOLD); noteLabel.setText(NOTE_LABEL); noteLabel.setFont(JFaceResources.getBannerFont()); noteLabel.setLayoutData( new GridData(GridData.VERTICAL_ALIGN_BEGINNING)); final IPropertyChangeListener fontListener = new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if(JFaceResources.BANNER_FONT.equals(event.getProperty())) { noteLabel.setFont(JFaceResources.getFont(JFaceResources.BANNER_FONT)); } } }; noteLabel.addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent event) { JFaceResources.getFontRegistry().removeListener(fontListener); } }); Label messageLabel = new Label(messageComposite,SWT.NONE); messageLabel.setText(APPLY_MESSAGE); createSpacer(composite); JFaceResources.getFontRegistry().addListener(fontListener); Group colorComposite = new Group(composite,SWT.NULL); colorComposite.setLayout(new GridLayout()); colorComposite.setText(WorkbenchMessages.getString("ViewsPreference.ColorsTitle")); //$NON-NLS-1$ GridData data = new GridData(GridData.GRAB_HORIZONTAL | GridData.FILL_HORIZONTAL); data.horizontalSpan = 2; colorComposite.setLayoutData(data); //Add in an intermediate composite to allow for spacing Composite spacingComposite = new Composite(colorComposite,SWT.NULL); spacingComposite.setLayout(new GridLayout()); errorColorEditor = new ColorFieldEditor( JFacePreferences.ERROR_COLOR, WorkbenchMessages.getString("ViewsPreference.ErrorText"), //$NON-NLS-1$, spacingComposite); errorColorEditor.setPreferenceStore(doGetPreferenceStore()); errorColorEditor.load(); hyperlinkColorEditor = new ColorFieldEditor( JFacePreferences.HYPERLINK_COLOR, WorkbenchMessages.getString("ViewsPreference.HyperlinkText"), //$NON-NLS-1$ spacingComposite); hyperlinkColorEditor.setPreferenceStore(doGetPreferenceStore()); hyperlinkColorEditor.load(); activeHyperlinkColorEditor = new ColorFieldEditor( JFacePreferences.ACTIVE_HYPERLINK_COLOR, WorkbenchMessages.getString("ViewsPreference.ActiveHyperlinkText"), //$NON-NLS-1$ spacingComposite); activeHyperlinkColorEditor.setPreferenceStore(doGetPreferenceStore()); activeHyperlinkColorEditor.load(); return composite;} | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/fc1786cb8b7bd42a8c051485ff2e4571ce1d901d/ViewsPreferencePage.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/dialogs/ViewsPreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
8888,
752,
6323,
12,
9400,
982,
13,
288,
202,
2421,
22144,
6696,
18,
542,
6696,
12,
2938,
16,
467,
6696,
1042,
2673,
18,
4136,
41,
2651,
67,
3670,
10830,
67,
11219,
1769,
202,
45,
9624... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4750,
8888,
752,
6323,
12,
9400,
982,
13,
288,
202,
2421,
22144,
6696,
18,
542,
6696,
12,
2938,
16,
467,
6696,
1042,
2673,
18,
4136,
41,
2651,
67,
3670,
10830,
67,
11219,
1769,
202,
45,
9624... | |
public void init(CommonActionProviderConfig aConfig) { | public void init(ICommonActionExtensionSite aConfig) { | public void init(CommonActionProviderConfig aConfig) { if (aConfig.getViewSite() instanceof ICommonViewerWorkbenchSite) { viewSite = (ICommonViewerWorkbenchSite) aConfig.getViewSite(); openFileAction = new OpenFileAction(viewSite.getPage()); contribute = true; } } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/aa8664756ad43f4cca8fb1d64f5c180694088a19/OpenActionProvider.java/buggy/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/actions/OpenActionProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1208,
12,
6517,
1803,
2249,
809,
279,
809,
13,
288,
202,
202,
430,
261,
69,
809,
18,
588,
1767,
4956,
1435,
1276,
467,
6517,
18415,
2421,
22144,
4956,
13,
288,
1082,
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,
1208,
12,
6517,
1803,
2249,
809,
279,
809,
13,
288,
202,
202,
430,
261,
69,
809,
18,
588,
1767,
4956,
1435,
1276,
467,
6517,
18415,
2421,
22144,
4956,
13,
288,
1082,
202,... |
ICElement[] e= getSourceElementsAtOffset(pos); | ICElement[] e = getSourceElementsAtOffset(pos); | public ICElement[] getElementsAtOffset(int pos) throws CModelException { ICElement[] e= getSourceElementsAtOffset(pos); if (e.length == 1 && e[0] == this) { return CElement.NO_ELEMENTS; } return e; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/f5a4ba1d7638b16bde80c2f1086c78aa03af1f90/TranslationUnit.java/buggy/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/TranslationUnit.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
26899,
1046,
8526,
8886,
861,
2335,
12,
474,
949,
13,
1216,
385,
1488,
503,
288,
202,
202,
2871,
1046,
8526,
425,
33,
7889,
3471,
861,
2335,
12,
917,
1769,
202,
202,
430,
261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26899,
1046,
8526,
8886,
861,
2335,
12,
474,
949,
13,
1216,
385,
1488,
503,
288,
202,
202,
2871,
1046,
8526,
425,
33,
7889,
3471,
861,
2335,
12,
917,
1769,
202,
202,
430,
261,... |
if (this == getRuntime().getClasses().getClassClass()) { | if (this == getRuntime().getClass("Class")) { | public void defineConstant(String name, IRubyObject value) { assert value != null; if (this == getRuntime().getClasses().getClassClass()) { getRuntime().secure(4); } if (!IdUtil.isConstant(name)) { throw new NameError(getRuntime(), "bad constant name " + name); } setConstant(name, value); } | 45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/ca6b16e996ea9af83ce593594b9c69b9364a9924/RubyModule.java/clean/src/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4426,
6902,
12,
780,
508,
16,
15908,
10340,
921,
460,
13,
288,
3639,
1815,
460,
480,
446,
31,
3639,
309,
261,
2211,
422,
18814,
7675,
588,
797,
2932,
797,
6,
3719,
288,
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,
377,
1071,
918,
4426,
6902,
12,
780,
508,
16,
15908,
10340,
921,
460,
13,
288,
3639,
1815,
460,
480,
446,
31,
3639,
309,
261,
2211,
422,
18814,
7675,
588,
797,
2932,
797,
6,
3719,
288,
5411,... |
protected void openProposalPopup() { | private void openProposalPopup(boolean autoActivated) { | protected void openProposalPopup() { if (isValid()) { if (popup == null) { recordCursorPosition(); popup = new ContentProposalPopup(null); popup.open(); popup.getShell().addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent event) { popup = null; } }); } } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/19894e08ac37485fa5e4a0cb73479f40928aae6b/ContentProposalAdapter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1696,
14592,
13770,
1435,
288,
202,
202,
430,
261,
26810,
10756,
288,
1082,
202,
430,
261,
16086,
422,
446,
13,
288,
9506,
202,
3366,
6688,
2555,
5621,
9506,
202,
16086,
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,
1117,
918,
1696,
14592,
13770,
1435,
288,
202,
202,
430,
261,
26810,
10756,
288,
1082,
202,
430,
261,
16086,
422,
446,
13,
288,
9506,
202,
3366,
6688,
2555,
5621,
9506,
202,
16086,
2... |
setProperty(null); | 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 { 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 { 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 { 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); } } | 54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/db064e19656421b94aaf753550935d95f44bd5f9/ELButtonTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELButtonTag.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 Collection getRawCollection() { Collection raw = null; Object target = getTarget(); if(target instanceof MClassifier) { raw = ((MClassifier) target).getFeatures(); } return raw; } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/9663cad98990b6239664b0fcac6e603c62613e48/UMLAttributesListModel.java/clean/src_new/org/argouml/uml/ui/UMLAttributesListModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
2532,
588,
4809,
2532,
1435,
95,
2532,
1899,
33,
2011,
31,
921,
3299,
33,
588,
2326,
5621,
430,
12,
3299,
1336,
792,
49,
13860,
15329,
1899,
33,
12443,
49,
13860,
13,
3299,
2934,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
2532,
588,
4809,
2532,
1435,
95,
2532,
1899,
33,
2011,
31,
921,
3299,
33,
588,
2326,
5621,
430,
12,
3299,
1336,
792,
49,
13860,
15329,
1899,
33,
12443,
49,
13860,
13,
3299,
2934,
588,
... | ||
if (BoolUtils.isTrue(test)) { | if(BoolUtils.isTrue(test)){ | private static boolean forStatementMustAssignVariableOrFail(PsiVariable field, PsiForStatement forStatement, Set<MethodSignature> checkedMethods) { final PsiStatement initialization = forStatement.getInitialization(); if (statementMustAssignVariableOrFail(field, initialization, checkedMethods)) { return true; } final PsiExpression test = forStatement.getCondition(); if (expressionMustAssignVariableOrFail(field, test, checkedMethods)) { return true; } if (BoolUtils.isTrue(test)) { final PsiStatement body = forStatement.getBody(); if (statementMustAssignVariableOrFail(field, body, checkedMethods)) { return true; } final PsiStatement update = forStatement.getUpdate(); if (statementMustAssignVariableOrFail(field, update, checkedMethods)) { return true; } } return false; } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/fc3fc1341db4aa6d26930bf45116ec44c28fc569/InitializationUtils.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/InitializationUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
364,
3406,
10136,
4910,
3092,
18492,
12,
52,
7722,
3092,
652,
16,
453,
7722,
1290,
3406,
364,
3406,
16,
1000,
32,
1305,
5374,
34,
5950,
4712,
13,
288,
3639,
727,
453,
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,
3238,
760,
1250,
364,
3406,
10136,
4910,
3092,
18492,
12,
52,
7722,
3092,
652,
16,
453,
7722,
1290,
3406,
364,
3406,
16,
1000,
32,
1305,
5374,
34,
5950,
4712,
13,
288,
3639,
727,
453,
7... |
result = new Boolean(true); | result = Boolean.valueOf (true); | public void doit () throws ProcessingException { // We need the glyphs that result from extraction if (firstSymbolId == -1) { firstSymbolId = getGlyphBuilder().buildInfo(); } result = new Boolean(true); // Accept consistent votes GlyphInspector inspector = getGlyphInspector(); inspector.evaluateGlyphs(inspector.getSymbolMaxGrade()); } | 37458 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37458/2cbc00b17e722bb49651c1066c448d334e61ad1f/Sheet.java/clean/src/main/omr/sheet/Sheet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
741,
305,
1832,
13491,
1216,
19652,
503,
7734,
288,
10792,
368,
1660,
1608,
326,
23404,
716,
563,
628,
18752,
10792,
309,
261,
3645,
5335,
548,
422,
300,
21,
13,
288,
13491,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1171,
1071,
918,
741,
305,
1832,
13491,
1216,
19652,
503,
7734,
288,
10792,
368,
1660,
1608,
326,
23404,
716,
563,
628,
18752,
10792,
309,
261,
3645,
5335,
548,
422,
300,
21,
13,
288,
13491,
1... |
Tools.getConnection()); | conn); | public void setUp() throws Exception { Tools.start(); Tools.dropAndCreateSomething(); h = new BasicHandle(new LocalTransactionHandler(), new NamedParameterStatementRewriter(), Tools.getConnection()); } | 1175 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1175/b099bcb488456e49e7ce88fba837765a4568af28/TestPositionalParameterBinding.java/clean/src/test/org/skife/jdbi/v2/TestPositionalParameterBinding.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
24292,
1435,
1216,
1185,
565,
288,
3639,
19089,
18,
1937,
5621,
3639,
19089,
18,
7285,
1876,
1684,
24332,
5621,
3639,
366,
273,
394,
7651,
3259,
12,
2704,
3566,
3342,
1503,
9334,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
24292,
1435,
1216,
1185,
565,
288,
3639,
19089,
18,
1937,
5621,
3639,
19089,
18,
7285,
1876,
1684,
24332,
5621,
3639,
366,
273,
394,
7651,
3259,
12,
2704,
3566,
3342,
1503,
9334,... |
if(rule.name.toLowerCase().startsWith(partialWord)) | if(rule.name.toLowerCase().startsWith(partialWord) && !matchingRules.contains(rule.name)) | public List autoCompletionMenuGetMatchingWordsForPartialWord(String partialWord) { if(parser == null || parser.getRules() == null) return null; partialWord = partialWord.toLowerCase(); List matchingRules = new ArrayList(); if(rules.isRuleAtIndex(getCaretPosition())) { // Inside a rule - show all rules in alphabetical order List sortedRules = Collections.list(Collections.enumeration(parser.getRules())); Collections.sort(sortedRules); for(Iterator iterator = sortedRules.iterator(); iterator.hasNext(); ) { Parser.Rule rule = (Parser.Rule)iterator.next(); if(rule.name.toLowerCase().startsWith(partialWord)) matchingRules.add(rule.name); } } else { // Not inside rule - show only undefined rules List sortedUndefinedRules = Collections.list(Collections.enumeration(rules.getUndefinedTokens())); Collections.sort(sortedUndefinedRules); for(Iterator iterator = sortedUndefinedRules.iterator(); iterator.hasNext(); ) { Token t = (Token)iterator.next(); if(t.getAttribute().toLowerCase().startsWith(partialWord) && !t.getAttribute().equals(partialWord)) matchingRules.add(t.getAttribute()); } } return matchingRules; } | 4430 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4430/521349dd1a9926576df63aea095ccfda8667eb35/EditorWindow.java/clean/src/org/antlr/works/editor/EditorWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
3656,
11238,
4599,
967,
9517,
7363,
1290,
9447,
3944,
12,
780,
4702,
3944,
13,
288,
3639,
309,
12,
4288,
422,
446,
747,
2082,
18,
588,
4478,
1435,
422,
446,
13,
5411,
327,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3656,
11238,
4599,
967,
9517,
7363,
1290,
9447,
3944,
12,
780,
4702,
3944,
13,
288,
3639,
309,
12,
4288,
422,
446,
747,
2082,
18,
588,
4478,
1435,
422,
446,
13,
5411,
327,
44... |
public void run() { ProActiveRuntime[] part = null; try { part = service.startService(); nodeCount = nodeCount + ((part != null) ? part.length : 0); if (part != null) { notifyVirtualNode(part); } if (service.getServiceName().equals(P2PConstants.P2P_NODE_NAME)) { // Start asking nodes P2PService p2pService = ((P2PDescriptorService) service).getP2PService(); P2PNodesLookup p2pNodesLookup = p2pService.getNodes(((P2PDescriptorService) service).getNodeNumber(), this.vn.getName(), this.vn.getJobID()); this.P2Ptimeout = Long.parseLong(System.getProperty( P2PConstants.PROPERTY_NODES_ACQUISITION_T0)); this.nodeRequested = ((P2PDescriptorService) service).getNodeNumber(); // if the timeout of the service is longer than the vn's one // then adjust the vn's timeout. long vnTimeout = vn.getTimeout(); if (vnTimeout < P2Ptimeout) { ((VirtualNodeImpl) vn).setTimeout(P2Ptimeout, false); } while (!timeoutExpired() && askForNodes()) { Vector future = p2pNodesLookup.getAndRemoveNodes(); Vector nodes = (Vector) ProActive.getFutureValue(future); for (int i = 0; i < nodes.size(); i++) { Node node = (Node) nodes.get(i); nodeCount++; ((VirtualNodeImpl) vn).nodeCreated(new NodeCreationEvent( vn, NodeCreationEvent.NODE_CREATED, node, nodeCount)); } if (askForNodes() && (nodeCount != 0)) { Thread.sleep(LOOK_UP_FREQ); } else if (askForNodes()) { Thread.sleep(100); } } } } catch (ProActiveException e) { loggerDeployment.error( "An exception occured while starting the service " + service.getServiceName() + " for the VirtualNode " + vn.getName() + " \n" + e.getMessage()); } catch (InterruptedException e) { e.printStackTrace(); } } | 50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/1279458d52679339839158611daec34b4baf800a/ServiceThread.java/clean/src/org/objectweb/proactive/core/descriptor/services/ServiceThread.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1086,
1435,
288,
565,
1186,
3896,
5576,
8526,
1087,
273,
446,
31,
565,
775,
288,
1377,
1087,
273,
1156,
18,
1937,
1179,
5621,
1377,
756,
1380,
273,
756,
1380,
397,
14015,
2680,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
1435,
288,
565,
1186,
3896,
5576,
8526,
1087,
273,
446,
31,
565,
775,
288,
1377,
1087,
273,
1156,
18,
1937,
1179,
5621,
1377,
756,
1380,
273,
756,
1380,
397,
14015,
2680,... | ||
protected static boolean isLetter(char c) { short m; m = map(c); return TidyUtils.toBoolean(m & LETTER); } | 53077 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53077/f5b707db94e66866c4161ee1fca176f94d172d30/Lexer.java/clean/jtidy/src/main/org/w3c/tidy/Lexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
3845,
6494,
291,
13938,
12,
3001,
71,
15329,
6620,
81,
31,
81,
33,
1458,
12,
71,
1769,
2463,
56,
29609,
1989,
18,
869,
5507,
12,
81,
10,
26379,
1769,
97,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
3845,
6494,
291,
13938,
12,
3001,
71,
15329,
6620,
81,
31,
81,
33,
1458,
12,
71,
1769,
2463,
56,
29609,
1989,
18,
869,
5507,
12,
81,
10,
26379,
1769,
97,
2,
-100,
-100,
-100,
-100,
-... | ||
bNeedsUpdate |= loadMechsFromDirectory(vMechs, sKnownFiles, lLastCheck, f); continue; } if (f.getName().indexOf('.') == -1) { continue; } if (f.getName().toLowerCase().endsWith(".txt")) { continue; } if (f.getName().toLowerCase().endsWith(".log")) { continue; } if (f.getName().equals("UnitVerifierOptions.xml")) { continue; } if (f.getName().toLowerCase().endsWith(".zip")) { bNeedsUpdate |= loadMechsFromZipFile(vMechs, sKnownFiles, lLastCheck, f); continue; } if (f.lastModified() < lLastCheck && sKnownFiles.contains(f.toString())) { continue; } try { MechFileParser mfp = new MechFileParser(f); Entity e = mfp.getEntity(); MechSummary ms = getSummary(e, f, null); vMechs.addElement(ms); sKnownFiles.add(f.toString()); bNeedsUpdate = true; thisDirectoriesFileCount++; fileCount++; Enumeration failedEquipment = e.getFailedEquipment(); if (failedEquipment.hasMoreElements()) { loadReport.append(" Loading from ").append(f) .append("\n"); while (failedEquipment.hasMoreElements()) { loadReport.append(" Failed to load equipment: ") .append(failedEquipment.nextElement()) | if (f.isDirectory()) { if (f.getName().toLowerCase().equals("unsupported")) { continue; } bNeedsUpdate |= loadMechsFromDirectory(vMechs, sKnownFiles, lLastCheck, f); continue; } if (f.getName().indexOf('.') == -1) { continue; } if (f.getName().toLowerCase().endsWith(".txt")) { continue; } if (f.getName().toLowerCase().endsWith(".log")) { continue; } if (f.getName().equals("UnitVerifierOptions.xml")) { continue; } if (f.getName().toLowerCase().endsWith(".zip")) { bNeedsUpdate |= loadMechsFromZipFile(vMechs, sKnownFiles, lLastCheck, f); continue; } if (f.lastModified() < lLastCheck && sKnownFiles.contains(f.toString())) { continue; } try { MechFileParser mfp = new MechFileParser(f); Entity e = mfp.getEntity(); MechSummary ms = getSummary(e, f, null); vMechs.addElement(ms); sKnownFiles.add(f.toString()); bNeedsUpdate = true; thisDirectoriesFileCount++; fileCount++; Enumeration failedEquipment = e.getFailedEquipment(); if (failedEquipment.hasMoreElements()) { loadReport.append(" Loading from ").append(f) | private boolean loadMechsFromDirectory(Vector vMechs, Set sKnownFiles, long lLastCheck, File fDir) { boolean bNeedsUpdate = false; loadReport.append(" Looking in ").append(fDir.getPath()) .append("...\n"); int thisDirectoriesFileCount = 0; String[] sa = fDir.list(); for (int x = 0; x < sa.length; x++) { File f = new File(fDir, sa[x]); if (f.equals(CACHE)) { continue; } if (f.isDirectory()) { if (f.getName().toLowerCase().equals("unsupported")) { // Mechs in this directory are ignored because // they have features not implemented in MM yet. continue; } // recursion is fun bNeedsUpdate |= loadMechsFromDirectory(vMechs, sKnownFiles, lLastCheck, f); continue; } if (f.getName().indexOf('.') == -1) { continue; } if (f.getName().toLowerCase().endsWith(".txt")) { continue; } if (f.getName().toLowerCase().endsWith(".log")) { continue; } if (f.getName().equals("UnitVerifierOptions.xml")) { continue; } if (f.getName().toLowerCase().endsWith(".zip")) { bNeedsUpdate |= loadMechsFromZipFile(vMechs, sKnownFiles, lLastCheck, f); continue; } if (f.lastModified() < lLastCheck && sKnownFiles.contains(f.toString())) { continue; } try { MechFileParser mfp = new MechFileParser(f); Entity e = mfp.getEntity(); MechSummary ms = getSummary(e, f, null); vMechs.addElement(ms); sKnownFiles.add(f.toString()); bNeedsUpdate = true; thisDirectoriesFileCount++; fileCount++; Enumeration failedEquipment = e.getFailedEquipment(); if (failedEquipment.hasMoreElements()) { loadReport.append(" Loading from ").append(f) .append("\n"); while (failedEquipment.hasMoreElements()) { loadReport.append(" Failed to load equipment: ") .append(failedEquipment.nextElement()) .append("\n"); } } } catch (EntityLoadingException ex) { loadReport.append(" Loading from ") .append(f).append("\n"); loadReport.append("*** Unable to load file: ") .append(ex.getMessage()).append("\n"); hFailedFiles.put(f.toString(), ex.getMessage()); continue; } } loadReport.append(" ...loaded ").append(thisDirectoriesFileCount) .append(" files.\n"); return bNeedsUpdate; } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/ffc7d7fe9ac9380eb3b98cf9522909c592905d46/MechSummaryCache.java/clean/megamek/src/megamek/common/MechSummaryCache.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
1262,
4667,
343,
87,
1265,
2853,
12,
5018,
331,
4667,
343,
87,
16,
1000,
272,
11925,
2697,
16,
1525,
328,
3024,
1564,
16,
1387,
284,
1621,
13,
288,
3639,
1250,
324,
26419,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1262,
4667,
343,
87,
1265,
2853,
12,
5018,
331,
4667,
343,
87,
16,
1000,
272,
11925,
2697,
16,
1525,
328,
3024,
1564,
16,
1387,
284,
1621,
13,
288,
3639,
1250,
324,
26419,
1... |
System.out.println("Launching JSDebugger..."); | out.println("Launching JSDebugger..."); | public static void main(String args[]) { Context cx = Context.enter(); errorReporter = new ToolErrorReporter(false); cx.setErrorReporter(errorReporter); // A bit of shorthand: since Main extends ScriptableObject, // we can make it the global object. // We create a shared global with sealed properties that // we can share with other threads (see spawn). sharedGlobal = new SharedGlobal(); // Create the "global" object where top-level variables will live. // Set its prototype to the sharedGlobal where all the standard // functions and objects live. global = new Main(); global.setPrototype(sharedGlobal); args = processOptions(cx, args); // Set up "arguments" in the global scope to contain the command // line arguments after the name of the script to execute Object[] array = args; if (args.length > 0) { int length = args.length - 1; array = new Object[length]; System.arraycopy(args, 1, array, 0, length); } Scriptable argsObj = cx.newArray(global, array); global.defineProperty("arguments", argsObj, ScriptableObject.DONTENUM); // Set up "environment" in the global scope to provide access to the // System environment variables. Environment.defineClass(sharedGlobal); Environment environment = new Environment(global); global.defineProperty("environment", environment, ScriptableObject.DONTENUM); global.history = (NativeArray) cx.newArray(global, 0); global.defineProperty("history", global.history, ScriptableObject.DONTENUM); /* TODO: enable debugger if (global.debug) { global.debug_dm = new DebugManager(); global.debug_stm = new SourceTextManagerImpl(); global.debug_dm.setSourceTextManager(global.debug_stm); cx.setSourceTextManager(global.debug_stm); global.debug_dm.createdContext(cx); if (global.showDebuggerUI) { System.out.println("Launching JSDebugger..."); try { Class clazz = Class.forName( "com.netscape.jsdebugging.ifcui.launcher.rhino.LaunchNetscapeJavaScriptDebugger"); ILaunchableDebugger debugger = (ILaunchableDebugger) clazz.newInstance(); debugger.launch(global.debug_dm, global.debug_stm, false); } catch (Exception e) { // eat it... System.out.println(e); System.out.println("Failed to launch the JSDebugger"); } } System.out.println("Debug level set to "+cx.getDebugLevel()); } */ if (global.processStdin) processSource(cx, args.length == 0 ? null : args[0]); cx.exit(); } | 19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/71a1000c874f81dbc73bc785723ff6b70ae6d787/Main.java/buggy/toolsrc/org/mozilla/javascript/tools/shell/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
833,
63,
5717,
288,
3639,
1772,
9494,
273,
1772,
18,
2328,
5621,
3639,
555,
13289,
273,
394,
13288,
668,
13289,
12,
5743,
1769,
3639,
9494,
18,
542,
668,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
2774,
12,
780,
833,
63,
5717,
288,
3639,
1772,
9494,
273,
1772,
18,
2328,
5621,
3639,
555,
13289,
273,
394,
13288,
668,
13289,
12,
5743,
1769,
3639,
9494,
18,
542,
668,
... |
protected IASTExpression primaryExpression(IASTScope scope, CompletionKind kind, Key key) throws EndOfFileException, BacktrackException { | protected IASTExpression primaryExpression(IASTScope scope, CompletionKind kind, KeywordSetKey key) throws EndOfFileException, BacktrackException { | protected IASTExpression primaryExpression(IASTScope scope, CompletionKind kind, Key key) throws EndOfFileException, BacktrackException { IToken t = null; switch (LT(1)) { // TO DO: we need more literals... case IToken.tINTEGER : t = consume(); try { return astFactory.createExpression( scope, IASTExpression.Kind.PRIMARY_INTEGER_LITERAL, null, null, null, null, null, t.getImage(), null ); } catch (ASTSemanticException e1) { throw backtrack; } catch (Exception e) { logException( "primaryExpression_1::createExpression()", e ); //$NON-NLS-1$ throw backtrack; } case IToken.tFLOATINGPT : t = consume(); try { return astFactory.createExpression( scope, IASTExpression.Kind.PRIMARY_FLOAT_LITERAL, null, null, null, null, null, t.getImage(), null); } catch (ASTSemanticException e2) { throw backtrack; } catch (Exception e) { logException( "primaryExpression_2::createExpression()", e ); //$NON-NLS-1$ throw backtrack; } case IToken.tSTRING : case IToken.tLSTRING : t = consume(); try { return astFactory.createExpression( scope, IASTExpression.Kind.PRIMARY_STRING_LITERAL, null, null, null, null, null, t.getImage(), null ); } catch (ASTSemanticException e5) { throw backtrack; } catch (Exception e) { logException( "primaryExpression_3::createExpression()", e ); //$NON-NLS-1$ throw backtrack; } case IToken.t_false : case IToken.t_true : t = consume(); try { return astFactory.createExpression( scope, IASTExpression.Kind.PRIMARY_BOOLEAN_LITERAL, null, null, null, null, null, t.getImage(), null); } catch (ASTSemanticException e3) { throw backtrack; } catch (Exception e) { logException( "primaryExpression_4::createExpression()", e ); //$NON-NLS-1$ throw backtrack; } case IToken.tCHAR : case IToken.tLCHAR : t = consume(); try { return astFactory.createExpression( scope, IASTExpression.Kind.PRIMARY_CHAR_LITERAL, null, null, null, null, null, t.getImage(), null); } catch (ASTSemanticException e4) { throw backtrack; } catch (Exception e) { logException( "primaryExpression_5::createExpression()", e ); //$NON-NLS-1$ throw backtrack; } case IToken.t_this : consume(IToken.t_this); try { return astFactory.createExpression( scope, IASTExpression.Kind.PRIMARY_THIS, null, null, null, null, null, EMPTY_STRING, null); } catch (ASTSemanticException e7) { throw backtrack; } catch (Exception e) { logException( "primaryExpression_6::createExpression()", e ); //$NON-NLS-1$ throw backtrack; } case IToken.tLPAREN : consume(); if( templateIdScopes != null ){ templateIdScopes.push( new Integer( IToken.tLPAREN ) ); } IASTExpression lhs = expression(scope, kind, key); consume(IToken.tRPAREN); if( templateIdScopes != null ){ templateIdScopes.pop(); } try { return astFactory.createExpression( scope, IASTExpression.Kind.PRIMARY_BRACKETED_EXPRESSION, lhs, null, null, null, null, EMPTY_STRING, null); } catch (ASTSemanticException e6) { throw backtrack; } catch (Exception e) { logException( "primaryExpression_7::createExpression()", e ); //$NON-NLS-1$ throw backtrack; } case IToken.tIDENTIFIER : case IToken.tCOLONCOLON : case IToken.t_operator : case IToken.tCOMPL: ITokenDuple duple = null; try { duple = name(scope, kind, key); } catch( BacktrackException bt ) { IToken mark = mark(); Declarator d = new Declarator( new DeclarationWrapper(scope, mark.getOffset(), mark.getLineNumber(), null) ); if (LT(1) == IToken.tCOLONCOLON || LT(1) == IToken.tIDENTIFIER) { IToken start = consume(); IToken end = null; if (start.getType() == IToken.tIDENTIFIER) end = consumeTemplateParameters(end); while (LT(1) == IToken.tCOLONCOLON || LT(1) == IToken.tIDENTIFIER) { end = consume(); if (end.getType() == IToken.tIDENTIFIER) end = consumeTemplateParameters(end); } if (LT(1) == IToken.t_operator) operatorId(d, start, null, kind); else { backup(mark); throw backtrack; } } else if( LT(1) == IToken.t_operator ) operatorId( d, null, null, kind); duple = d.getNameDuple(); } try { return astFactory.createExpression( scope, IASTExpression.Kind.ID_EXPRESSION, null, null, null, null, duple, EMPTY_STRING, null); } catch (ASTSemanticException e8) { throw backtrack; } catch (Exception e) { logException( "primaryExpression_8::createExpression()", e ); //$NON-NLS-1$ throw backtrack; } default : if( !queryLookaheadCapability(2) ) { if( LA(1).canBeAPrefix() ) { consume(); checkEndOfFile(); } } IASTExpression empty = null; try { empty = astFactory.createExpression( scope, IASTExpression.Kind.PRIMARY_EMPTY, null, null, null, null, null, EMPTY_STRING, null); } catch (ASTSemanticException e9) { // TODO Auto-generated catch block e9.printStackTrace(); } catch( Exception e ) { logException( "primaryExpression_9::createExpression()", e ); //$NON-NLS-1$ throw backtrack; } return empty; } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/fb57293d470c0087b6edd9673084d38ceb95e5c2/ExpressionParser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ExpressionParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
467,
9053,
2300,
3354,
2300,
12,
45,
9053,
3876,
2146,
16,
20735,
5677,
3846,
16,
1929,
498,
13,
1216,
4403,
951,
812,
503,
16,
4297,
4101,
503,
288,
202,
565,
467,
1345,
268... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
9053,
2300,
3354,
2300,
12,
45,
9053,
3876,
2146,
16,
20735,
5677,
3846,
16,
1929,
498,
13,
1216,
4403,
951,
812,
503,
16,
4297,
4101,
503,
288,
202,
565,
467,
1345,
268... |
else if (evt.getKeyCode() == KeyEvent.VK_UP) | else if ((evt.getKeyCode() == KeyEvent.VK_UP) || (evt.getKeyCode() == KeyEvent.VK_KP_UP)) | public void keyPressed( KeyEvent evt ) { if (evt.getKeyCode() == KeyEvent.VK_DOWN) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); int max = BasicListUI.this.list.getModel().getSize() - 1; if (!evt.isShiftDown()) { BasicListUI.this.list.clearSelection(); BasicListUI.this.list.setSelectedIndex(Math.min(lead+1,max)); } else { BasicListUI.this.list.getSelectionModel(). setLeadSelectionIndex(Math.min(lead+1,max)); } } else if (evt.getKeyCode() == KeyEvent.VK_UP) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); if (!evt.isShiftDown()) { BasicListUI.this.list.clearSelection(); BasicListUI.this.list.setSelectedIndex(Math.max(lead-1,0)); } else { BasicListUI.this.list.getSelectionModel(). setLeadSelectionIndex(Math.max(lead-1,0)); } } } | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/b84de612b47edf167d1a205db1270610dfb06eb8/BasicListUI.java/clean/libraries/javalib/javax/swing/plaf/basic/BasicListUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
498,
24624,
12,
23737,
6324,
262,
377,
288,
1377,
309,
261,
73,
11734,
18,
588,
653,
1085,
1435,
422,
23737,
18,
58,
47,
67,
12711,
13,
3639,
288,
1850,
509,
5871,
273,
7651,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
498,
24624,
12,
23737,
6324,
262,
377,
288,
1377,
309,
261,
73,
11734,
18,
588,
653,
1085,
1435,
422,
23737,
18,
58,
47,
67,
12711,
13,
3639,
288,
1850,
509,
5871,
273,
7651,... |
if (!writtenOutsideOfConstructor.contains(f)) { couldBeFinal++; continue; | if (!localLocks.contains(f)) { if (DEBUG) System.out.println("No local locks of " + f); noLocalLocks++; continue; | public void report() { int noLocked = 0; int noUnlocked = 0; int isPublic = 0; int couldBeFinal = 0; int noLocalLocks = 0; int volatileOrFinalCount = 0; int mostlyUnlocked = 0; for(Iterator<Map.Entry<FieldAnnotation, int[]>> i = stats.entrySet().iterator(); i.hasNext(); ) { Map.Entry<FieldAnnotation, int[]> e = i.next(); FieldAnnotation f = e.getKey(); int [] theseStats = e.getValue(); int locked = theseStats[READ_LOCKED] + theseStats[WRITTEN_LOCKED]; int biasedLocked = theseStats[READ_LOCKED] + 2*theseStats[WRITTEN_LOCKED]; int unlocked = theseStats[READ_UNLOCKED] + theseStats[WRITTEN_UNLOCKED]; int biasedUnlocked = theseStats[READ_UNLOCKED] + 2*theseStats[WRITTEN_UNLOCKED]; int writes = theseStats[WRITTEN_LOCKED] + theseStats[WRITTEN_UNLOCKED]; if (locked == 0) { noLocked++; continue; } if (unlocked == 0) { noUnlocked++; continue; } if (theseStats[READ_UNLOCKED] > 0 && 2*biasedUnlocked > biasedLocked) { if (DEBUG) System.out.println("Mostly unlocked for " + f + ":"); int freq = (100 * locked) / (locked + unlocked); if (DEBUG) { System.out.print(freq + " "); for(int j = 0; j < 4; j++) System.out.print(theseStats[j] + " "); System.out.println(f); } mostlyUnlocked++; continue; } if (publicFields.contains(f)) { isPublic++; continue; } if (volatileOrFinalFields.contains(f)) { volatileOrFinalCount++; continue; } if (!writtenOutsideOfConstructor.contains(f)) { couldBeFinal++; continue; } if (!localLocks.contains(f)) { if (DEBUG) System.out.println("No local locks of " + f); noLocalLocks++; continue; } int freq = (100 * locked) / (locked + unlocked); bugReporter.reportBug(new BugInstance("IS_INCONSISTENT_SYNC", NORMAL_PRIORITY) .addClass(f.getClassName()) .addField(f) .addInt(freq).describe("INT_SYNC_PERCENT")); if (DEBUG) { System.out.print(freq + " "); for(int j = 0; j < 4; j++) System.out.print(theseStats[j] + " "); System.out.println(f); } } if (DEBUG) { int total = stats.size(); System.out.println(" Total fields: " + total); System.out.println(" No locked accesses: " + noLocked); System.out.println("No unlocked accesses: " + noUnlocked); System.out.println(" Mostly unlocked: " + mostlyUnlocked); System.out.println(" public fields: " + isPublic); if (couldBeFinal > 0) System.out.println(" could be Final: " + couldBeFinal); System.out.println(" volatile or final: " + volatileOrFinalCount); System.out.println(" no local locks: " + noLocalLocks); System.out.println(" questionable fields: " + (total - noLocked - noUnlocked - isPublic - volatileOrFinalCount - couldBeFinal - noLocalLocks - mostlyUnlocked)); } } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1d541964940eaa91b52b21469dc5b763fef1d8d1/LockedFields.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/LockedFields.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
2605,
1435,
288,
202,
474,
1158,
8966,
273,
374,
31,
202,
474,
1158,
7087,
329,
273,
374,
31,
202,
474,
19620,
273,
374,
31,
202,
474,
3377,
1919,
7951,
273,
374,
31,
202,
474,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
2605,
1435,
288,
202,
474,
1158,
8966,
273,
374,
31,
202,
474,
1158,
7087,
329,
273,
374,
31,
202,
474,
19620,
273,
374,
31,
202,
474,
3377,
1919,
7951,
273,
374,
31,
202,
474,
... |
if ( !validDuplicate( prefix, ext, UNIQUE_COUNTER, pjs[i] ) ) | if ( !validDuplicate( prefix, ext, UNIQUE_COUNTER, pjs[i] ) ) | int getCounter( String prefix, String ext ) { IProject[] pjs = ResourcesPlugin.getWorkspace( ) .getRoot( ) .getProjects( ); resetUniqueCount( ); boolean goon = true; while ( goon ) { goon = false; for ( int i = 0; i < pjs.length; i++ ) { if ( pjs[i].isAccessible( ) ) { if ( !validDuplicate( prefix, ext, UNIQUE_COUNTER, pjs[i] ) ) { UNIQUE_COUNTER++; goon = true; break; } } } } return UNIQUE_COUNTER; } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/d99dacb66a1a83c9b92f03acef4adfb1206373a0/NewReportWizard.java/buggy/UI/org.eclipse.birt.report.designer.ui.ide/src/org/eclipse/birt/report/designer/ui/ide/wizards/NewReportWizard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
474,
31107,
12,
514,
1633,
16,
514,
1110,
262,
202,
95,
202,
202,
45,
4109,
8526,
293,
2924,
273,
8128,
3773,
18,
588,
8241,
12,
262,
9506,
202,
18,
588,
2375,
12,
262,
9506,
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,
474,
31107,
12,
514,
1633,
16,
514,
1110,
262,
202,
95,
202,
202,
45,
4109,
8526,
293,
2924,
273,
8128,
3773,
18,
588,
8241,
12,
262,
9506,
202,
18,
588,
2375,
12,
262,
9506,
202... |
int []wordGlyph = wordGlyphs[i]; int prev = wordGlyph[0]; int start = 0; for (int j=1; j<wordGlyph.length; j++) { if (prev+1 != wordGlyph[j]) { int end = j-1; | int []glyphs = wordGlyphs[i]; int prev = glyphs[0]; int start = prev; for (int j=1; j<glyphs.length; j++) { if (prev+1 != glyphs[j]) { int end = glyphs[j-1]; | static WordInfo[] doWordAnalysis(GVTGlyphVector gv, AttributedCharacterIterator aci, int numWords, FontRenderContext frc) { int numGlyphs = gv.getNumGlyphs(); int [] glyphWords = new int[numGlyphs]; int [] wordMap = allocWordMap(null, 10); int maxWord = 0; int aciIdx = aci.getBeginIndex(); // First we go through the glyphs seeing if any two ajacent // words need to be collapsed because of a ligature. This // would be an odd case. If it happens we consider the // two words to be one. for (int i=0; i<numGlyphs; i++) { int cnt = gv.getCharacterCount(i,i); aci.setIndex(aciIdx); Integer integer = (Integer)aci.getAttribute(WORD_LIMIT); int minWord = integer.intValue()-numWords; if (minWord > maxWord) { maxWord = minWord; wordMap = allocWordMap(wordMap, maxWord+1); } aciIdx++; for (int c=1; c<cnt; c++) { aci.setIndex(aciIdx); integer = (Integer)aci.getAttribute(WORD_LIMIT); int cWord = integer.intValue()-numWords; if (cWord > maxWord) { maxWord = cWord; wordMap = allocWordMap(wordMap, maxWord+1); } // We always want to use the min word as the main // index for the new composite word. if (cWord < minWord) { wordMap[minWord] = cWord; minWord = cWord; } else if (cWord > minWord) { wordMap[cWord] = minWord; } aciIdx++; } glyphWords[i] = minWord; } int words=0; WordInfo [] cWordMap = new WordInfo[maxWord+1]; for (int i=0; i<=maxWord; i++) { int nw = wordMap[i]; if (nw == -1) { // new word so give it a number. cWordMap[i] = new WordInfo(words++); } else { int word = nw; nw = wordMap[i]; while (nw != -1) { word = nw; nw = wordMap[word]; } wordMap[i] = word; // help the next guy out cWordMap[i] = cWordMap[word]; } } wordMap = null; WordInfo [] wordInfos = new WordInfo[words]; for (int i=0; i<=maxWord; i++) { WordInfo wi = cWordMap[i]; wordInfos[wi.getIndex()] = cWordMap[i]; } aciIdx = aci.getBeginIndex(); int aciEnd = aci.getEndIndex(); char ch = aci.setIndex(aciIdx); int aciWordStart = aciIdx; GVTFont gvtFont = (GVTFont)aci.getAttribute(GVT_FONT); float lineHeight = ((Float)aci.getAttribute(LINE_HEIGHT)).floatValue(); int runLimit = aci.getRunLimit(szAtts); WordInfo prevWI = null; float [] lastAdvAdj = new float [numGlyphs]; float [] advAdj = new float [numGlyphs]; boolean [] hideLast = new boolean[numGlyphs]; boolean [] hide = new boolean[numGlyphs]; boolean [] space = new boolean[numGlyphs]; float [] glyphPos = gv.getGlyphPositions(0, numGlyphs+1, null); for (int i=0; i<numGlyphs; i++) { char pch = ch; ch = aci.setIndex(aciIdx); Integer integer = (Integer)aci.getAttribute(WORD_LIMIT); WordInfo theWI = cWordMap[integer.intValue()-numWords]; if (theWI.getFlowLine() == null) theWI.setFlowLine(aci.getAttribute(FLOW_LINE_BREAK)); if (prevWI == null) { prevWI = theWI; } else if (prevWI != theWI) { GVTLineMetrics lm = gvtFont.getLineMetrics (aci, aciWordStart, aciIdx, frc); prevWI.addLineMetrics(gvtFont, lm); prevWI.addLineHeight(lineHeight); aciWordStart = aciIdx; prevWI = theWI; } int chCnt = gv.getCharacterCount(i,i); if (chCnt == 1) { char nch; float kern; switch(ch) { case SOFT_HYPHEN: hideLast[i] = true; nch = aci.next(); aci.previous(); kern = gvtFont.getHKern(pch, nch); advAdj[i] = -(glyphPos[2*i+2]-glyphPos[2*i]+kern); break; case ZERO_WIDTH_JOINER: hide[i] = true; break; case ZERO_WIDTH_SPACE: hide[i] = true; break; case SPACE: space[i] = true; nch = aci.next(); aci.previous(); kern = gvtFont.getHKern(pch, nch); lastAdvAdj[i] = -(glyphPos[2*i+2]-glyphPos[2*i]+kern); default: } } aciIdx += chCnt; if ((aciIdx > runLimit) && (aciIdx < aciEnd)) { // Possible font size/style change so record current // line metrics and start fresh. GVTLineMetrics lm = gvtFont.getLineMetrics (aci,aciWordStart, runLimit, frc); prevWI.addLineMetrics(gvtFont, lm); prevWI.addLineHeight(lineHeight); prevWI = null; aciWordStart = aciIdx; aci.setIndex(aciIdx); gvtFont = (GVTFont)aci.getAttribute(GVT_FONT); Float f = (Float)aci.getAttribute(LINE_HEIGHT); lineHeight = f.floatValue(); runLimit = aci.getRunLimit(szAtts); } } GVTLineMetrics lm = gvtFont.getLineMetrics (aci,aciWordStart, runLimit, frc); prevWI.addLineMetrics(gvtFont, lm); prevWI.addLineHeight(lineHeight); int [] wordGlyphCounts = new int[words]; // Build a mapping from words to glyphs. for (int i=0; i<numGlyphs; i++) { int word = glyphWords[i]; int cWord = cWordMap[word].getIndex(); glyphWords[i] = cWord; wordGlyphCounts[cWord]++; } cWordMap = null; int [][]wordGlyphs = new int [words][]; int []wordGlyphGroupsCounts = new int [words]; for (int i=0; i<numGlyphs; i++) { int cWord = glyphWords[i]; int [] wgs = wordGlyphs[cWord]; if (wgs == null) { wgs = wordGlyphs[cWord] = new int[wordGlyphCounts[cWord]]; // We use this to track where the next // glyph should go in wordGlyphs // by the time we are done it should be correct again. wordGlyphCounts[cWord] =0; } int cnt = wordGlyphCounts[cWord]; wgs[cnt] = i; // Track the number of glyph groups in this word. if (cnt==0) { wordGlyphGroupsCounts[cWord]++; } else { if (wgs[cnt-1] != i-1) wordGlyphGroupsCounts[cWord]++; } wordGlyphCounts[cWord]++; } for (int i=0; i<words; i++) { int cnt = wordGlyphGroupsCounts[i]; GlyphGroupInfo []wordGlyphGroups = new GlyphGroupInfo[cnt]; if (cnt == 1) { int [] glyphs = wordGlyphs[i]; int start = glyphs[0]; int end = glyphs[glyphs.length-1]; wordGlyphGroups[0] = new GlyphGroupInfo (gv, start, end, hide, hideLast[end], glyphPos, advAdj, lastAdvAdj, space); } else { int glyphGroup = 0; int []wordGlyph = wordGlyphs[i]; int prev = wordGlyph[0]; int start = 0; for (int j=1; j<wordGlyph.length; j++) { if (prev+1 != wordGlyph[j]) { int end = j-1; wordGlyphGroups[glyphGroup] = new GlyphGroupInfo (gv, start, end, hide, hideLast[end], glyphPos, advAdj, lastAdvAdj, space); start = j; glyphGroup++; } prev = wordGlyph[j]; } int end = wordGlyph.length-1; wordGlyphGroups[glyphGroup] = new GlyphGroupInfo (gv, start, end, hide, hideLast[end], glyphPos, advAdj, lastAdvAdj, space); } wordInfos[i].setGlyphGroups(wordGlyphGroups); } return wordInfos; } | 45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/aa40d952c4f9dbe58db0a378fa7be6766acb5c27/FlowGlyphLayout.java/clean/sources/org/apache/batik/gvt/flow/FlowGlyphLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
9926,
966,
8526,
741,
3944,
9418,
12,
25269,
56,
15141,
5018,
11404,
16,
19694,
2380,
11050,
7069,
3198,
1721,
77,
16,
4766,
565,
509,
818,
7363,
16,
4766,
565,
10063,
3420,
1042,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9926,
966,
8526,
741,
3944,
9418,
12,
25269,
56,
15141,
5018,
11404,
16,
19694,
2380,
11050,
7069,
3198,
1721,
77,
16,
4766,
565,
509,
818,
7363,
16,
4766,
565,
10063,
3420,
1042,
28... |
protected NodeProxy getFirstParent(NodeProxy node, long gid, boolean includeSelf) { return getFirstParent(node, null, includeSelf, 0); | protected NodeProxy getFirstParent( NodeProxy node, long gid, boolean includeSelf) { return getFirstParent(node, null, includeSelf, true, 0); | protected NodeProxy getFirstParent(NodeProxy node, long gid, boolean includeSelf) { return getFirstParent(node, null, includeSelf, 0); } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/9213c6cbe60f2fdddbcc00739ed738e023d7f1e7/VirtualNodeSet.java/clean/src/org/exist/dom/VirtualNodeSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
2029,
3886,
7521,
3054,
12,
907,
3886,
756,
16,
1525,
11399,
16,
1250,
2341,
10084,
13,
288,
202,
202,
2463,
7521,
3054,
12,
2159,
16,
446,
16,
2341,
10084,
16,
374,
1769,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
2029,
3886,
7521,
3054,
12,
907,
3886,
756,
16,
1525,
11399,
16,
1250,
2341,
10084,
13,
288,
202,
202,
2463,
7521,
3054,
12,
2159,
16,
446,
16,
2341,
10084,
16,
374,
1769,
20... |
return new DatagramSocket(); } | return new DatagramSocket(); } | public DatagramSocket createDatagramSocket() throws SocketException { return new DatagramSocket(); } | 7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/d3bce65e49e71ee7df15bd72fd338535d4501bc1/DefaultNetworkLayer.java/clean/trunk/src/gov/nist/core/net/DefaultNetworkLayer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6168,
17049,
4534,
752,
5139,
17049,
4534,
1435,
1216,
8758,
503,
288,
3639,
327,
394,
6168,
17049,
4534,
5621,
565,
289,
2,
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,
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,
6168,
17049,
4534,
752,
5139,
17049,
4534,
1435,
1216,
8758,
503,
288,
3639,
327,
394,
6168,
17049,
4534,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
return comp.compareTo( context.extractor.getValue( right ) ) >= 0; | return comp.compareTo( context.getFieldExtractor().getValue( right ) ) >= 0; | public boolean evaluateCachedLeft(final VariableContextEntry context, final Object right) { final Comparable comp = (Comparable) ((ObjectVariableContextEntry) context).left; return comp.compareTo( context.extractor.getValue( right ) ) >= 0; } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/b6d27b51773c616f04e39b7d6c5e3cd95aeab255/ObjectFactory.java/clean/drools-core/src/main/java/org/drools/base/evaluators/ObjectFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1250,
5956,
9839,
3910,
12,
6385,
7110,
1042,
1622,
819,
16,
4766,
1850,
727,
1033,
2145,
13,
288,
5411,
727,
13633,
1161,
273,
261,
799,
10207,
13,
14015,
921,
3092,
1042,
1622,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
5956,
9839,
3910,
12,
6385,
7110,
1042,
1622,
819,
16,
4766,
1850,
727,
1033,
2145,
13,
288,
5411,
727,
13633,
1161,
273,
261,
799,
10207,
13,
14015,
921,
3092,
1042,
1622,
13... |
log.fatal( "Error while persisting collection " + col, e ); | log.fatal( "Error while persisting collection: ", e ); | public Collection<Object> persist( Collection<Object> col ) { try { int count = 0; log.debug( "Entering + " + this.getClass().getName() + ".persist() with " + col.size() + " objects." ); for ( Object entity : col ) { persist( entity ); // if ( ++count % 20 == 0 ) { // this.flushAndClearSession(); // } if ( ++count % 1000 == 0 ) { log.info( "Persisted " + count + " objects in collection" ); } } } catch ( Exception e ) { log.fatal( "Error while persisting collection " + col, e ); throw new RuntimeException( e ); } return col; } | 4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/85cf475300f16f128c42f9c9d67c23ce61ad3778/AbstractPersister.java/buggy/gemma-core/src/main/java/ubic/gemma/loader/util/persister/AbstractPersister.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2200,
32,
921,
34,
3898,
12,
2200,
32,
921,
34,
645,
262,
288,
3639,
775,
288,
5411,
509,
1056,
273,
374,
31,
5411,
613,
18,
4148,
12,
315,
10237,
310,
397,
315,
397,
333,
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,
2200,
32,
921,
34,
3898,
12,
2200,
32,
921,
34,
645,
262,
288,
3639,
775,
288,
5411,
509,
1056,
273,
374,
31,
5411,
613,
18,
4148,
12,
315,
10237,
310,
397,
315,
397,
333,
18,
... |
return numChannels; | return numChannels[series]; | public int getSizeC(String id) throws FormatException, IOException { if (!id.equals(currentId) && !DataTools.samePrefix(id, currentId)) { initFile(id); } return numChannels; } | 46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/7e4d2f34455817883836e0b3f10b9319208ae5e6/LeicaReader.java/clean/loci/formats/in/LeicaReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
9950,
39,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
309,
16051,
350,
18,
14963,
12,
2972,
548,
13,
597,
401,
751,
10348,
18,
14307,
2244,
12,
350,
16,
783,
548... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9950,
39,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
309,
16051,
350,
18,
14963,
12,
2972,
548,
13,
597,
401,
751,
10348,
18,
14307,
2244,
12,
350,
16,
783,
548... |
this.hostname = slaveServer.name; | this.hostname = slaveServer.hostname; | public void replaceMeta(SlaveServer slaveServer) { this.name = slaveServer.name; this.hostname = slaveServer.name; this.port = slaveServer.port; this.username = slaveServer.username; this.password = slaveServer.password; this.proxyHostname = slaveServer.proxyHostname; this.proxyPort = slaveServer.proxyPort; this.nonProxyHosts = slaveServer.nonProxyHosts; this.id = slaveServer.id; this.shared = slaveServer.shared; this.setChanged(true); } | 9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/a5f6e4c82fb338960057beaf50f59ed01f3c2cfc/SlaveServer.java/clean/src/be/ibridge/kettle/cluster/SlaveServer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1453,
2781,
12,
20302,
2081,
11735,
2081,
13,
565,
288,
3639,
333,
18,
529,
273,
11735,
2081,
18,
529,
31,
3639,
333,
18,
10358,
273,
11735,
2081,
18,
10358,
31,
3639,
333,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1453,
2781,
12,
20302,
2081,
11735,
2081,
13,
565,
288,
3639,
333,
18,
529,
273,
11735,
2081,
18,
529,
31,
3639,
333,
18,
10358,
273,
11735,
2081,
18,
10358,
31,
3639,
333,
1... |
runtime.getRubyClass()); | threadContext.getRubyClass()); | public void visitDefnNode(DefnNode iVisited) { RubyModule rubyClass = threadContext.getRubyClass(); if (rubyClass == null) { throw new TypeError(runtime, "No class to add method."); } String name = iVisited.getName(); if (rubyClass == runtime.getClasses().getObjectClass() && name.equals("initialize")) { runtime.getWarnings().warn("redefining Object#initialize may cause infinite loop"); } Visibility visibility = threadContext.getCurrentVisibility(); if (name.equals("initialize") || visibility.isModuleFunction()) { visibility = Visibility.PRIVATE; } else if (visibility.isPublic() && rubyClass == runtime.getClasses().getObjectClass()) { visibility = iVisited.getVisibility(); } DefaultMethod newMethod = new DefaultMethod(iVisited.getBodyNode(), (ArgsNode) iVisited.getArgsNode(), visibility, runtime.getRubyClass()); iVisited.getBodyNode().accept(new CreateJumpTargetVisitor(newMethod)); rubyClass.addMethod(name, newMethod); if (threadContext.getCurrentVisibility().isModuleFunction()) { rubyClass.getSingletonClass().addMethod(name, new WrapperCallable(newMethod, Visibility.PUBLIC)); rubyClass.callMethod("singleton_method_added", builtins.toSymbol(name)); } rubyClass.callMethod("method_added", builtins.toSymbol(name)); } | 50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/43e9fa2839b5fdb050b372d628601d8a4bcc43a4/EvaluateVisitor.java/clean/src/org/jruby/evaluator/EvaluateVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
3262,
82,
907,
12,
3262,
82,
907,
277,
30019,
13,
288,
3639,
19817,
3120,
22155,
797,
273,
2650,
1042,
18,
588,
54,
10340,
797,
5621,
3639,
309,
261,
27768,
797,
422,
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,
1071,
918,
3757,
3262,
82,
907,
12,
3262,
82,
907,
277,
30019,
13,
288,
3639,
19817,
3120,
22155,
797,
273,
2650,
1042,
18,
588,
54,
10340,
797,
5621,
3639,
309,
261,
27768,
797,
422,
4... |
if (isStopped()) | if (isStarted()) | protected void init(Request request, Response response) { // Check if the Handler was started if (isStopped()) { try { start(); response.setStatus(Status.SUCCESS_OK); } catch (Exception e) { getContext().getLogger().log(Level.WARNING, UNABLE_TO_START, e); response.setStatus(Status.SERVER_ERROR_INTERNAL); } if (isStopped()) { getContext().getLogger().log(Level.WARNING, UNABLE_TO_START); response.setStatus(Status.SERVER_ERROR_INTERNAL); } else { response.setStatus(Status.SERVER_ERROR_NOT_IMPLEMENTED); } } } | 14172 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14172/b2149ce69aa85abc01e0e3cc6ae1a36523eda49b/Handler.java/clean/plugins/internal/org.restlet/src/org/restlet/Handler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1208,
12,
691,
590,
16,
2306,
766,
13,
202,
95,
565,
202,
759,
2073,
309,
326,
4663,
1703,
5746,
202,
202,
430,
261,
291,
15294,
10756,
202,
202,
95,
1082,
202,
698,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1208,
12,
691,
590,
16,
2306,
766,
13,
202,
95,
565,
202,
759,
2073,
309,
326,
4663,
1703,
5746,
202,
202,
430,
261,
291,
15294,
10756,
202,
202,
95,
1082,
202,
698,
1... |
|| tmpContainer instanceof Theme ) | || tmpContainer instanceof Theme || tmpContainer instanceof MasterPage ) | public final boolean canContain( Module module, int slotId, DesignElement element ) { boolean retValue = canContainInRom( slotId, element.getDefn( ) ); if ( !retValue ) return false; // if this element can not be contained in the module, return false; // such // as, template elements can not be contained in the libraries, so // either a template table or a real tabel with a template image in one // cell of it can never be contained in a libraries if ( !canContainTemplateElement( module, slotId, element ) ) return false; // if the root of element is included by report/library. Do not allow // drop. if ( isRootIncludedByModule( ) ) return false; // Can not change the structure of child element or a virtual element( // inside the child ). if ( isVirtualElement( ) || getExtendsElement( ) != null ) return false; // special cases check table header containment. DesignElement tmpContainer = this; while ( tmpContainer != null ) { if ( tmpContainer instanceof ListingElement || tmpContainer instanceof Theme ) { List errors = tmpContainer.checkContent( module, this, slotId, element ); return errors.isEmpty( ); } tmpContainer = tmpContainer.getContainer( ); } return retValue; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/18bf7238399ca3dd3acc35a986fa8965fae6c7be/DesignElement.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/core/DesignElement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
1250,
848,
22928,
12,
5924,
1605,
16,
509,
4694,
548,
16,
1082,
202,
15478,
1046,
930,
262,
202,
95,
202,
202,
6494,
21236,
273,
848,
22928,
382,
54,
362,
12,
4694,
548,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
1250,
848,
22928,
12,
5924,
1605,
16,
509,
4694,
548,
16,
1082,
202,
15478,
1046,
930,
262,
202,
95,
202,
202,
6494,
21236,
273,
848,
22928,
382,
54,
362,
12,
4694,
548,
... |
Domain.lookupAny(Department.class); | (IRuntimeDomainClass<Department>)lookupAny(Department.class); | public void testCanPersistThroughDomainObject() { IRuntimeDomainClass<Department> domainClass = Domain.lookupAny(Department.class); IDomainObject<Department> domainObject = (IDomainObject<Department>)session.createTransient(domainClass); domainObject.persist(); assertTrue(domainObject.isPersistent()); } | 13434 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13434/2bcdc080ac9f1eea3bc282a3c127b0d5df465d11/TestDomainObjectPersist.java/clean/trunk/workspace/de.berlios.rcpviewer.domain.tests/test/de/berlios/rcpviewer/session/TestDomainObjectPersist.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
2568,
12771,
14287,
3748,
921,
1435,
288,
202,
202,
45,
5576,
3748,
797,
32,
30358,
34,
2461,
797,
273,
1875,
202,
3748,
18,
8664,
2961,
12,
30358,
18,
1106,
1769,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2568,
12771,
14287,
3748,
921,
1435,
288,
202,
202,
45,
5576,
3748,
797,
32,
30358,
34,
2461,
797,
273,
1875,
202,
3748,
18,
8664,
2961,
12,
30358,
18,
1106,
1769,
... |
if (jj_3R_63()) return true; if (jj_3R_262()) return true; while (true) { xsp = jj_scanpos; if (jj_3R_298()) { jj_scanpos = xsp; break; } } | final private boolean jj_3R_155() { Token xsp; xsp = jj_scanpos; if (jj_3R_190()) jj_scanpos = xsp; if (jj_3R_63()) return true; if (jj_3R_262()) return true; while (true) { xsp = jj_scanpos; if (jj_3R_298()) { jj_scanpos = xsp; break; } } return false; } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/2c4cc3303f04cdb3883f34b25cfe841b0bdf1fb5/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
23643,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
30454,
10756,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23643,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
30454,
10756,... | |
return generateRatioQuery(numQuery, denQuery); | return generateRatioQuery(numQuery, denQuery, metricInt); | private String generateRatioQuery(VariableInterfaceManager vim, String varName, TreeNode tn, String numMetric, String denMetric) { String numQuery = generateQueryUsingRootNode(vim, varName, tn, numMetric); String denQuery = generateQueryUsingRootNode(vim, "Org", tn, denMetric); return generateRatioQuery(numQuery, denQuery); } | 7169 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7169/8f34e50cf14ce5685760a6a849e206ac24bf6928/QueryGenerator.java/buggy/uiframework/src/mil/darpa/log/alpine/blackjack/assessui/client/QueryGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
2103,
8541,
1138,
12,
3092,
1358,
1318,
18727,
16,
4766,
282,
514,
13722,
16,
20270,
16002,
16,
4766,
282,
514,
818,
5396,
16,
514,
5545,
5396,
13,
565,
288,
3639,
514,
818,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
2103,
8541,
1138,
12,
3092,
1358,
1318,
18727,
16,
4766,
282,
514,
13722,
16,
20270,
16002,
16,
4766,
282,
514,
818,
5396,
16,
514,
5545,
5396,
13,
565,
288,
3639,
514,
818,
... |
public org.quickfix.field.UnderlyingCPProgram getUnderlyingCPProgram() throws FieldNotFound { org.quickfix.field.UnderlyingCPProgram value = new org.quickfix.field.UnderlyingCPProgram(); | public quickfix.field.UnderlyingCPProgram getUnderlyingCPProgram() throws FieldNotFound { quickfix.field.UnderlyingCPProgram value = new quickfix.field.UnderlyingCPProgram(); | public org.quickfix.field.UnderlyingCPProgram getUnderlyingCPProgram() throws FieldNotFound { org.quickfix.field.UnderlyingCPProgram value = new org.quickfix.field.UnderlyingCPProgram(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderCross.java/buggy/src/java/src/quickfix/fix44/NewOrderCross.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4258,
9459,
10833,
765,
6291,
4258,
9459,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4258,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14655,
6291,
4258,
9459,
10833,
765,
6291,
4258,
9459,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4258,
9... |
public static Element getVersionElement(){ | public static Element getVersionElement() { | public static Element getVersionElement(){ Element olfs = new Element("OLFS"); Element lib = new Element("lib"); Element name = new Element("name"); Element ver = new Element("version"); name.addContent(new Text("olfs")); lib.addContent(name); ver.addContent(new Text(version)); lib.addContent(ver); olfs.addContent(lib); olfs.addContent(opendap.Version.getVersionElement()); return (olfs); } | 1283 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1283/0c547718a34127a8728d7fdcc6cd65e3912be445/Version.java/buggy/src/opendap/olfs/Version.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
3010,
8343,
1046,
1435,
288,
3639,
3010,
8793,
2556,
273,
394,
3010,
2932,
1741,
4931,
8863,
3639,
3010,
2561,
273,
394,
3010,
2932,
2941,
8863,
3639,
3010,
508,
273,
394,
3010,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3010,
8343,
1046,
1435,
288,
3639,
3010,
8793,
2556,
273,
394,
3010,
2932,
1741,
4931,
8863,
3639,
3010,
2561,
273,
394,
3010,
2932,
2941,
8863,
3639,
3010,
508,
273,
394,
3010,
... |
gdGRPScale.widthHint = 200; | public Composite getComponent( Composite parent ) { GridLayout glContent = new GridLayout( 2, true ); glContent.marginHeight = 7; glContent.marginWidth = 7; glContent.horizontalSpacing = 2; glContent.verticalSpacing = 5; cmpContent = new Composite( parent, SWT.NONE ); cmpContent.setLayout( glContent ); if ( isAxisX( ) ) { Composite cmpLeftPane = new Composite( cmpContent, SWT.NONE ); { GridLayout glLeftPane = new GridLayout( 3, false ); glLeftPane.horizontalSpacing = 2; glLeftPane.verticalSpacing = 5; glLeftPane.marginHeight = 0; glLeftPane.marginWidth = 2; cmpLeftPane.setLayout( glLeftPane ); GridData gd = new GridData( GridData.FILL_HORIZONTAL ); cmpLeftPane.setLayoutData( gd ); } Label lblType = new Label( cmpLeftPane, SWT.NONE ); GridData gdLBLType = new GridData( ); lblType.setLayoutData( gdLBLType ); lblType.setText( Messages.getString( "BaseAxisDataSheetImpl.Lbl.Type" ) ); //$NON-NLS-1$ cmbTypes = new Combo( cmpLeftPane, SWT.DROP_DOWN | SWT.READ_ONLY ); GridData gdCMBTypes = new GridData( GridData.FILL_HORIZONTAL ); cmbTypes.setLayoutData( gdCMBTypes ); cmbTypes.addSelectionListener( this ); btnFormatSpecifier = new Button( cmpLeftPane, SWT.PUSH ); GridData gdBTNFormatSpecifier = new GridData( GridData.VERTICAL_ALIGN_END ); gdBTNFormatSpecifier.widthHint = 20; gdBTNFormatSpecifier.heightHint = 20; btnFormatSpecifier.setLayoutData( gdBTNFormatSpecifier ); btnFormatSpecifier.setImage( UIHelper.getImage( "icons/obj16/formatbuilder.gif" ) ); //$NON-NLS-1$ btnFormatSpecifier.setToolTipText( Messages.getString( "Shared.Tooltip.FormatSpecifier" ) ); //$NON-NLS-1$ btnFormatSpecifier.addSelectionListener( this ); btnFormatSpecifier.getImage( ) .setBackground( btnFormatSpecifier.getBackground( ) ); Composite cmpRightPane = new Composite( cmpContent, SWT.NONE ); { GridLayout glRightPane = new GridLayout( 2, false ); glRightPane.marginHeight = 0; cmpRightPane.setLayout( glRightPane ); GridData gd = new GridData( GridData.FILL_BOTH ); cmpRightPane.setLayoutData( gd ); } Label lblOrigin = new Label( cmpLeftPane, SWT.NONE ); GridData gdLBLOrigin = new GridData( ); lblOrigin.setLayoutData( gdLBLOrigin ); lblOrigin.setText( Messages.getString( "BaseAxisDataSheetImpl.Lbl.Origin" ) ); //$NON-NLS-1$ cmbOrigin = new Combo( cmpLeftPane, SWT.DROP_DOWN | SWT.READ_ONLY ); { GridData gd = new GridData( GridData.FILL_HORIZONTAL ); gd.horizontalSpan = 2; gd.widthHint = 120; cmbOrigin.setLayoutData( gd ); cmbOrigin.addSelectionListener( this ); } boolean bValueOrigin = false; if ( getAxisForProcessing( ).getOrigin( ) != null ) { if ( getAxisForProcessing( ).getOrigin( ) .getType( ) .equals( IntersectionType.VALUE_LITERAL ) ) { bValueOrigin = true; } } lblValue = new Label( cmpRightPane, SWT.NONE ); { GridData gd = new GridData( ); // gd.grabExcessVerticalSpace = true; gd.verticalAlignment = SWT.END; lblValue.setLayoutData( gd ); lblValue.setText( Messages.getString( "BaseAxisDataSheetImpl.Lbl.Value" ) ); //$NON-NLS-1$ lblValue.setEnabled( bValueOrigin ); } txtValue = new TextEditorComposite( cmpRightPane, SWT.BORDER | SWT.SINGLE ); { GridData gd = new GridData( GridData.FILL_HORIZONTAL ); gd.grabExcessVerticalSpace = true; gd.verticalAlignment = SWT.END; gd.widthHint = 120; txtValue.setLayoutData( gd ); txtValue.addListener( this ); txtValue.setEnabled( bValueOrigin ); } } Group grpScale = new Group( cmpContent, SWT.NONE ); { GridData gdGRPScale = new GridData( GridData.FILL_BOTH ); gdGRPScale.widthHint = 200; gdGRPScale.horizontalSpan = 4; grpScale.setLayoutData( gdGRPScale ); GridLayout glScale = new GridLayout( ); glScale.numColumns = 4; glScale.horizontalSpacing = 5; glScale.verticalSpacing = 5; glScale.marginHeight = 2; glScale.marginWidth = 7; grpScale.setLayout( glScale ); grpScale.setText( Messages.getString( "BaseAxisDataSheetImpl.Lbl.Scale" ) ); //$NON-NLS-1$ } lblMin = new Label( grpScale, SWT.NONE ); GridData gdLBLMin = new GridData( ); lblMin.setLayoutData( gdLBLMin ); lblMin.setText( Messages.getString( "BaseAxisDataSheetImpl.Lbl.Minimum" ) ); //$NON-NLS-1$ txtScaleMin = new TextEditorComposite( grpScale, SWT.BORDER | SWT.SINGLE ); GridData gdTXTScaleMin = new GridData( GridData.HORIZONTAL_ALIGN_FILL ); txtScaleMin.setLayoutData( gdTXTScaleMin ); txtScaleMin.setText( getValue( getAxisForProcessing( ).getScale( ) .getMin( ) ) ); txtScaleMin.addListener( this ); lblMax = new Label( grpScale, SWT.NONE ); GridData gdLBLMax = new GridData( ); lblMax.setLayoutData( gdLBLMax ); lblMax.setText( Messages.getString( "BaseAxisDataSheetImpl.Lbl.Maximum" ) ); //$NON-NLS-1$ txtScaleMax = new TextEditorComposite( grpScale, SWT.BORDER | SWT.SINGLE ); GridData gdTXTScaleMax = new GridData( GridData.HORIZONTAL_ALIGN_FILL ); txtScaleMax.setLayoutData( gdTXTScaleMax ); txtScaleMax.setText( getValue( getAxisForProcessing( ).getScale( ) .getMax( ) ) ); txtScaleMax.addListener( this ); boolean bDateTimeAxisType = getAxisForProcessing( ).getType( ) .equals( AxisType.DATE_TIME_LITERAL ); lblStep = new Label( grpScale, SWT.NONE ); GridData gdLBLStep = new GridData( ); lblStep.setLayoutData( gdLBLStep ); lblStep.setText( Messages.getString( "BaseAxisDataSheetImpl.Lbl.Step" ) ); //$NON-NLS-1$ lblStep.setEnabled( !bDateTimeAxisType ); txtScaleStep = new TextEditorComposite( grpScale, SWT.BORDER | SWT.SINGLE ); GridData gdTXTScaleStep = new GridData( GridData.FILL_HORIZONTAL ); txtScaleStep.setLayoutData( gdTXTScaleStep ); String str = ""; //$NON-NLS-1$ if ( getAxisForProcessing( ).getScale( ) .eIsSet( ComponentPackage.eINSTANCE.getScale_Step( ) ) ) { str = String.valueOf( getAxisForProcessing( ).getScale( ).getStep( ) ); } txtScaleStep.setText( str ); txtScaleStep.addListener( this ); txtScaleStep.setEnabled( !bDateTimeAxisType ); lblUnit = new Label( grpScale, SWT.NONE ); GridData gdLBLUnit = new GridData( ); lblUnit.setLayoutData( gdLBLUnit ); lblUnit.setText( Messages.getString( "BaseAxisDataSheetImpl.Lbl.Unit" ) ); //$NON-NLS-1$ lblUnit.setEnabled( false ); cmbScaleUnit = new Combo( grpScale, SWT.DROP_DOWN | SWT.READ_ONLY ); GridData gdCMBScaleUnit = new GridData( GridData.FILL_HORIZONTAL ); cmbScaleUnit.setLayoutData( gdCMBScaleUnit ); cmbScaleUnit.addSelectionListener( this ); cmbScaleUnit.setEnabled( false ); GridLayout glGridCount = new GridLayout( ); glGridCount.numColumns = 2; glGridCount.horizontalSpacing = 5; glGridCount.marginHeight = 0; glGridCount.marginWidth = 0; Composite cmpGridCount = new Composite( grpScale, SWT.NONE ); GridData gdCMPGridCount = new GridData( GridData.FILL_HORIZONTAL ); gdCMPGridCount.horizontalSpan = 4; cmpGridCount.setLayoutData( gdCMPGridCount ); cmpGridCount.setLayout( glGridCount ); lblGridCount = new Label( cmpGridCount, SWT.NONE ); GridData gdLBLGridCount = new GridData( ); lblGridCount.setLayoutData( gdLBLGridCount ); lblGridCount.setText( Messages.getString( "BaseAxisDataSheetImpl.Lbl.MinorGridCount" ) ); //$NON-NLS-1$ iscGridCount = new IntegerSpinControl( cmpGridCount, SWT.NONE, getAxisForProcessing( ).getScale( ).getMinorGridsPerUnit( ) ); GridData gdISCGridCount = new GridData( GridData.FILL_HORIZONTAL ); iscGridCount.setLayoutData( gdISCGridCount ); iscGridCount.addListener( this ); GridLayout glSeriesDefinitionCount = new GridLayout( ); glSeriesDefinitionCount.numColumns = 2; glSeriesDefinitionCount.marginHeight = 0; glSeriesDefinitionCount.marginWidth = 0; glSeriesDefinitionCount.horizontalSpacing = 5; populateLists( ); return cmpContent; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/7994cd7f420b3ec60d0929ca4ef318c2325cb633/AxisScaleSheet.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/format/popup/axis/AxisScaleSheet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14728,
10322,
12,
14728,
982,
262,
202,
95,
202,
202,
6313,
3744,
5118,
1350,
273,
394,
7145,
3744,
12,
576,
16,
638,
11272,
202,
202,
7043,
1350,
18,
10107,
2686,
273,
2371,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14728,
10322,
12,
14728,
982,
262,
202,
95,
202,
202,
6313,
3744,
5118,
1350,
273,
394,
7145,
3744,
12,
576,
16,
638,
11272,
202,
202,
7043,
1350,
18,
10107,
2686,
273,
2371,
... | |
org.openscience.cdk.interfaces.Atom[] neighboors = ac.getConnectedAtoms(atom); | org.openscience.cdk.interfaces.Atom[] neighbours = ac.getConnectedAtoms(atom); | private int getDoubleBondedOxygenCount(AtomContainer ac, org.openscience.cdk.interfaces.Atom atom) { org.openscience.cdk.interfaces.Atom[] neighboors = ac.getConnectedAtoms(atom); Bond bond = null; int odbcounter = 0; for (int i = 0; i < neighboors.length; i++) { if (neighboors[i].getSymbol().equals("O")) { bond = ac.getBond(neighboors[i], atom); if (!neighboors[i].getFlag(CDKConstants.ISAROMATIC)) { if (bond.getOrder() == 2.0) { odbcounter += 1; } } } } return odbcounter; } | 1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/11cd872c3dbcc51a117ad375706e7a5334b88daa/XLogPDescriptor.java/clean/src/org/openscience/cdk/qsar/XLogPDescriptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
16097,
38,
265,
785,
51,
1698,
4507,
1380,
12,
3641,
2170,
1721,
16,
2358,
18,
20346,
71,
6254,
18,
71,
2883,
18,
15898,
18,
3641,
3179,
13,
288,
202,
202,
3341,
18,
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,
1152,
509,
16097,
38,
265,
785,
51,
1698,
4507,
1380,
12,
3641,
2170,
1721,
16,
2358,
18,
20346,
71,
6254,
18,
71,
2883,
18,
15898,
18,
3641,
3179,
13,
288,
202,
202,
3341,
18,
2... |
_stereoLineBlinder = new FigRect(11, 10+STEREOHEIGHT, 58, 2, Color.white, Color.white); _stereoLineBlinder.setLineWidth(1); _stereoLineBlinder.setDisplayed(true); | _stereoLineBlinder = new FigRect(11, 10 + STEREOHEIGHT, 58, 2, Color.white, Color.white); _stereoLineBlinder.setLineWidth(1); _stereoLineBlinder.setDisplayed(true); | public FigInterface() { // Set name box. Note the upper line will be blanked out if there is // eventually a stereotype above. _name.setLineWidth(1); _name.setFilled(true); // this rectangle marks the operation section; all operations are inside it: _operBigPort = new FigRect(10, 31+ROWHEIGHT, 60, ROWHEIGHT+2, Color.black, Color.white); _operBigPort.setFilled(true); _operBigPort.setLineWidth(1); _operVec = new FigGroup(); _operVec.setFilled(true); _operVec.setLineWidth(1); _operVec.addFig(_operBigPort); // Set properties of the stereotype box. Make it 1 pixel higher than // before, so it overlaps the name box, and the blanking takes out both // lines. Initially not set to be displayed, but this will be changed // when we try to render it, if we find we have a stereotype. _stereo.setText(NotationHelper.getLeftGuillemot()+"Interface"+NotationHelper.getRightGuillemot()); _stereo.setExpandOnly(true); _stereo.setFilled(true); _stereo.setLineWidth(1); _stereo.setEditable(false); _stereo.setHeight(STEREOHEIGHT+1); // +1 to have 1 pixel overlap with _name _stereo.setDisplayed(true); // A thin rectangle to overlap the boundary line between stereotype // and name. This is just 2 pixels high, and we rely on the line // thickness, so the rectangle does not need to be filled. Whether to // display is linked to whether to display the stereotype. _stereoLineBlinder = new FigRect(11, 10+STEREOHEIGHT, 58, 2, Color.white, Color.white); _stereoLineBlinder.setLineWidth(1); _stereoLineBlinder.setDisplayed(true); // Put all the bits together, suppressing bounds calculations until // we're all done for efficiency. enableSizeChecking(false); suppressCalcBounds = true; addFig(_bigPort); addFig(_stereo); addFig(_name); addFig(_stereoLineBlinder); addFig(_operVec); suppressCalcBounds = false; // Set the bounds of the figure to the total of the above (hardcoded) setBounds(10, 10, 60, 21+ROWHEIGHT); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/81987ae96ab1399b8d43a27c69be7d7a4c0b7b89/FigInterface.java/buggy/src_new/org/argouml/uml/diagram/static_structure/ui/FigInterface.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
478,
360,
1358,
1435,
288,
565,
368,
1000,
508,
3919,
18,
3609,
326,
3854,
980,
903,
506,
7052,
329,
596,
309,
1915,
353,
565,
368,
18011,
279,
22890,
10570,
5721,
18,
565,
389,
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,
282,
1071,
478,
360,
1358,
1435,
288,
565,
368,
1000,
508,
3919,
18,
3609,
326,
3854,
980,
903,
506,
7052,
329,
596,
309,
1915,
353,
565,
368,
18011,
279,
22890,
10570,
5721,
18,
565,
389,
5... |
parse(buffer.toString(), ParserLanguage.CPP, false, false); | parse(buffer.toString(), ParserLanguage.CPP, false, 0); | public void test14_6_3s1() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("void g(double);\n"); //$NON-NLS-1$ buffer.append("void h();\n"); //$NON-NLS-1$ buffer.append("template<class T> class Z {\n"); //$NON-NLS-1$ buffer.append("public:\n"); //$NON-NLS-1$ buffer.append("void f() {\n"); //$NON-NLS-1$ buffer.append("g(1); //calls g(double)\n"); //$NON-NLS-1$ buffer.append("h++; //illformed:\n"); //$NON-NLS-1$ buffer.append("cannot increment function;\n"); //$NON-NLS-1$ buffer.append("// this could be diagnosed either here or\n"); //$NON-NLS-1$ buffer.append("// at the point of instantiation\n"); //$NON-NLS-1$ buffer.append("}\n"); //$NON-NLS-1$ buffer.append("};\n"); //$NON-NLS-1$ buffer.append("void g(int); // not in scope at the point of the template\n"); //$NON-NLS-1$ buffer.append("// definition, not considered for the call g(1)\n"); //$NON-NLS-1$ parse(buffer.toString(), ParserLanguage.CPP, false, false); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/7d7fa374bfd169ce8924a5c15bd01444e6e6e445/AST2CPPSpecTest.java/buggy/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPSpecTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3461,
67,
26,
67,
23,
87,
21,
1435,
1216,
1185,
288,
202,
202,
780,
1892,
1613,
273,
394,
6674,
5621,
202,
202,
4106,
18,
6923,
2932,
6459,
314,
12,
9056,
20472,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3461,
67,
26,
67,
23,
87,
21,
1435,
1216,
1185,
288,
202,
202,
780,
1892,
1613,
273,
394,
6674,
5621,
202,
202,
4106,
18,
6923,
2932,
6459,
314,
12,
9056,
20472,
... |
if (readBufferOverflow > -1) { readBuffer [0] = (char) readBufferOverflow; readBufferOverflow = -1; readBufferPos = 1; sawCR = true; } else { readBufferPos = 0; sawCR = false; } | if (sourceType == INPUT_READER) { count = reader.read(readBuffer, readBufferPos, READ_BUFFER_MAX - readBufferPos); if (count < 0) { readBufferLength = readBufferPos; } else { readBufferLength = readBufferPos + count; } if (readBufferLength > 0) { filterCR(count >= 0); } sawCR = false; return; } count = is.read(rawReadBuffer, 0, READ_BUFFER_MAX); | private void readDataChunk () throws SAXException, IOException { int count; // See if we have any overflow (filterCR sets for CR at end) if (readBufferOverflow > -1) { readBuffer [0] = (char) readBufferOverflow; readBufferOverflow = -1; readBufferPos = 1; sawCR = true; } else { readBufferPos = 0; sawCR = false; } // input from a character stream. if (sourceType == INPUT_READER) { count = reader.read (readBuffer, readBufferPos, READ_BUFFER_MAX - readBufferPos); if (count < 0) readBufferLength = readBufferPos; else readBufferLength = readBufferPos + count; if (readBufferLength > 0) filterCR (count >= 0); sawCR = false; return; } // Read as many bytes as possible into the raw buffer. count = is.read (rawReadBuffer, 0, READ_BUFFER_MAX); // Dispatch to an encoding-specific reader method to populate // the readBuffer. In most parser speed profiles, these routines // show up at the top of the CPU usage chart. if (count > 0) { switch (encoding) { // one byte builtins case ENCODING_ASCII: copyIso8859_1ReadBuffer (count, (char) 0x0080); break; case ENCODING_UTF_8: copyUtf8ReadBuffer (count); break; case ENCODING_ISO_8859_1: copyIso8859_1ReadBuffer (count, (char) 0); break; // two byte builtins case ENCODING_UCS_2_12: copyUcs2ReadBuffer (count, 8, 0); break; case ENCODING_UCS_2_21: copyUcs2ReadBuffer (count, 0, 8); break; // four byte builtins case ENCODING_UCS_4_1234: copyUcs4ReadBuffer (count, 24, 16, 8, 0); break; case ENCODING_UCS_4_4321: copyUcs4ReadBuffer (count, 0, 8, 16, 24); break; case ENCODING_UCS_4_2143: copyUcs4ReadBuffer (count, 16, 24, 0, 8); break; case ENCODING_UCS_4_3412: copyUcs4ReadBuffer (count, 8, 0, 24, 16); break; } } else readBufferLength = readBufferPos; readBufferPos = 0; // Filter out all carriage returns if we've seen any // (including any saved from a previous read) if (sawCR) { filterCR (count >= 0); sawCR = false; // must actively report EOF, lest some CRs get lost. if (readBufferLength == 0 && count >= 0) readDataChunk (); } if (count > 0) currentByteCount += count; } | 1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/7fb7568e63c3fe14af521de4699cb37898923ca7/XmlParser.java/clean/libjava/gnu/xml/aelfred2/XmlParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
20913,
5579,
1832,
565,
1216,
14366,
16,
1860,
565,
288,
202,
474,
1056,
31,
202,
759,
2164,
309,
732,
1240,
1281,
9391,
261,
2188,
5093,
1678,
364,
6732,
622,
679,
13,
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,
377,
3238,
918,
20913,
5579,
1832,
565,
1216,
14366,
16,
1860,
565,
288,
202,
474,
1056,
31,
202,
759,
2164,
309,
732,
1240,
1281,
9391,
261,
2188,
5093,
1678,
364,
6732,
622,
679,
13,
202,
... |
diffControlsState(ch, null, children2, itemsetsFull1, itemsetsFull2, valueChangeControlIds); | diffControlsState(ch, containingDocument, null, children2, itemsetsFull1, itemsetsFull2, valueChangeControlIds); | public static void diffControlsState(ContentHandlerHelper ch, List state1, List state2, Map itemsetsFull1, Map itemsetsFull2, Map valueChangeControlIds) { // Trivial case if (state1 == null && state2 == null) return; // Both lists must have the same size if present; state1 can be null if ((state1 != null && state2 != null && state1.size() != state2.size()) || (state2 == null)) { throw new IllegalStateException("Illegal state when comparing controls."); } final AttributesImpl attributesImpl = new AttributesImpl(); final Iterator j = (state1 == null) ? null : state1.iterator(); for (Iterator i = state2.iterator(); i.hasNext();) { final XFormsControl xformsControl1 = (state1 == null) ? null : (XFormsControl) j.next(); final XFormsControl xformsControl2 = (XFormsControl) i.next(); // 1: Check current control if (!(xformsControl2 instanceof XFormsRepeatControl)) { // xforms:repeat doesn't need to be handled independently, iterations do it // Output diffs between controlInfo1 and controlInfo2 final boolean isValueChangeControl = valueChangeControlIds != null && valueChangeControlIds.get(xformsControl2.getEffectiveId()) != null; if (!xformsControl2.equals(xformsControl1) || isValueChangeControl) { // don't send anything if nothing has changed; but we force a change for controls whose values changed in the request attributesImpl.clear(); // Control id attributesImpl.addAttribute("", "id", "id", ContentHandlerHelper.CDATA, xformsControl2.getEffectiveId()); // Control children values if (!(xformsControl2 instanceof RepeatIterationControl)) { { final String labelValue1 = (xformsControl1 == null) ? null : xformsControl1.getLabel(); final String labelValue2 = xformsControl2.getLabel(); if (!((labelValue1 == null && labelValue2 == null) || (labelValue1 != null && labelValue2 != null && labelValue1.equals(labelValue2)))) { attributesImpl.addAttribute("", "label", "label", ContentHandlerHelper.CDATA, labelValue2 != null ? labelValue2 : ""); } } { final String helpValue1 = (xformsControl1 == null) ? null : xformsControl1.getHelp(); final String helpValue2 = xformsControl2.getHelp(); if (!((helpValue1 == null && helpValue2 == null) || (helpValue1 != null && helpValue2 != null && helpValue1.equals(helpValue2)))) { attributesImpl.addAttribute("", "help", "help", ContentHandlerHelper.CDATA, helpValue2 != null ? helpValue2 : ""); } } { final String hintValue1 = (xformsControl1 == null) ? null : xformsControl1.getHint(); final String hintValue2 = xformsControl2.getHint(); if (!((hintValue1 == null && hintValue2 == null) || (hintValue1 != null && hintValue2 != null && hintValue1.equals(hintValue2)))) { attributesImpl.addAttribute("", "hint", "hint", ContentHandlerHelper.CDATA, hintValue2 != null ? hintValue2 : ""); } } { final String alertValue1 = (xformsControl1 == null) ? null : xformsControl1.getAlert(); final String alertValue2 = xformsControl2.getAlert(); if (!((alertValue1 == null && alertValue2 == null) || (alertValue1 != null && alertValue2 != null && alertValue1.equals(alertValue2)))) { attributesImpl.addAttribute("", "alert", "alert", ContentHandlerHelper.CDATA, alertValue2 != null ? alertValue2 : ""); } } // Output xforms:output-specific information if (xformsControl2 instanceof XFormsOutputControl) { final XFormsOutputControl outputControlInfo1 = (XFormsOutputControl) xformsControl1; final XFormsOutputControl outputControlInfo2 = (XFormsOutputControl) xformsControl2; final String mediaTypeValue1 = (outputControlInfo1 == null) ? null : outputControlInfo1.getMediaTypeAttribute(); final String mediaTypeValue2 = outputControlInfo2.getMediaTypeAttribute(); if (!((mediaTypeValue1 == null && mediaTypeValue2 == null) || (mediaTypeValue1 != null && mediaTypeValue2 != null && mediaTypeValue1.equals(mediaTypeValue2)))) { attributesImpl.addAttribute("", "mediatype", "mediatype", ContentHandlerHelper.CDATA, mediaTypeValue2 != null ? mediaTypeValue2 : ""); } } } // Model item properties if (xformsControl1 == null || xformsControl1.isReadonly() != xformsControl2.isReadonly()) { attributesImpl.addAttribute("", XFormsConstants.XXFORMS_READONLY_ATTRIBUTE_NAME, XFormsConstants.XXFORMS_READONLY_ATTRIBUTE_NAME, ContentHandlerHelper.CDATA, Boolean.toString(xformsControl2.isReadonly())); } if (xformsControl1 == null || xformsControl1.isRequired() != xformsControl2.isRequired()) { attributesImpl.addAttribute("", XFormsConstants.XXFORMS_REQUIRED_ATTRIBUTE_NAME, XFormsConstants.XXFORMS_REQUIRED_ATTRIBUTE_NAME, ContentHandlerHelper.CDATA, Boolean.toString(xformsControl2.isRequired())); } if (xformsControl1 == null || xformsControl1.isRelevant() != xformsControl2.isRelevant()) { attributesImpl.addAttribute("", XFormsConstants.XXFORMS_RELEVANT_ATTRIBUTE_NAME, XFormsConstants.XXFORMS_RELEVANT_ATTRIBUTE_NAME, ContentHandlerHelper.CDATA, Boolean.toString(xformsControl2.isRelevant())); } if (xformsControl1 == null || xformsControl1.isValid() != xformsControl2.isValid()) { attributesImpl.addAttribute("", XFormsConstants.XXFORMS_VALID_ATTRIBUTE_NAME, XFormsConstants.XXFORMS_VALID_ATTRIBUTE_NAME, ContentHandlerHelper.CDATA, Boolean.toString(xformsControl2.isValid())); } final boolean isOutputControlWithValueAttribute = xformsControl2 instanceof XFormsOutputControl && ((XFormsOutputControl) xformsControl2).getValueAttribute() != null; if (!(xformsControl2 instanceof RepeatIterationControl) && !isOutputControlWithValueAttribute) { final String typeValue1 = (xformsControl1 == null) ? null : xformsControl1.getType(); final String typeValue2 = xformsControl2.getType(); if (xformsControl1 == null || !((typeValue1 == null && typeValue2 == null) || (typeValue1 != null && typeValue2 != null && typeValue1.equals(typeValue2)))) { attributesImpl.addAttribute("", XFormsConstants.XXFORMS_TYPE_ATTRIBUTE_NAME, XFormsConstants.XXFORMS_TYPE_ATTRIBUTE_NAME, ContentHandlerHelper.CDATA, typeValue2 != null ? typeValue2 : ""); } } if (!(xformsControl2 instanceof RepeatIterationControl)) { // Regular control // Get current value if possible for this control // NOTE: We issue the new value in all cases because we don't have yet a mechanism to tell the // client not to update the value, unlike with attributes which can be missing if (XFormsControls.isValueControl(xformsControl2.getName()) && !(xformsControl2 instanceof XFormsUploadControl)) { // Check if a "display-value" attribute must be added if (!isOutputControlWithValueAttribute) { final String displayValue = xformsControl2.getDisplayValue(); if (displayValue != null) attributesImpl.addAttribute("", "display-value", "display-value", ContentHandlerHelper.CDATA, displayValue); } // Create element with text value ch.startElement("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "control", attributesImpl); ch.text(xformsControl2.convertToExternalValue(xformsControl2.getValue())); ch.endElement(); } else if (!"case".equals(xformsControl2.getName())) { // No value, just output element with no content ch.element("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "control", attributesImpl); } } else { // Repeat iteration final RepeatIterationControl repeatIterationInfo = (RepeatIterationControl) xformsControl2; attributesImpl.addAttribute("", "iteration", "iteration", ContentHandlerHelper.CDATA, Integer.toString(repeatIterationInfo.getIteration())); ch.element("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "repeat-iteration", attributesImpl); } } // Handle itemsets if (xformsControl2 instanceof XFormsSelect1Control || xformsControl2 instanceof XFormsSelectControl) { final XFormsSelect1Control xformsSelect1Control1 = (XFormsSelect1Control) xformsControl1; final XFormsSelect1Control xformsSelect1Control2 = (XFormsSelect1Control) xformsControl2; if (itemsetsFull1 != null && xformsSelect1Control1 != null) { final Object items = xformsSelect1Control1.getItemset(); if (items != null) itemsetsFull1.put(xformsSelect1Control1.getEffectiveId(), items); } if (itemsetsFull2 != null && xformsSelect1Control2 != null) { final Object items = xformsSelect1Control2.getItemset(); if (items != null) itemsetsFull2.put(xformsSelect1Control2.getEffectiveId(), items); } } } // 2: Check children if any if (XFormsControls.isGroupingControl(xformsControl2.getName()) || xformsControl2 instanceof RepeatIterationControl) { final List children1 = (xformsControl1 == null) ? null : xformsControl1.getChildren(); final List children2 = (xformsControl2.getChildren() == null) ? Collections.EMPTY_LIST : xformsControl2.getChildren(); // Repeat grouping control if (xformsControl2 instanceof XFormsRepeatControl && children1 != null) { final XFormsRepeatControl repeatControlInfo = (XFormsRepeatControl) xformsControl2; // Special case of repeat update final int size1 = children1.size(); final int size2 = children2.size(); if (size1 == size2) { // No add or remove of children diffControlsState(ch, children1, xformsControl2.getChildren(), itemsetsFull1, itemsetsFull2, valueChangeControlIds); } else if (size2 > size1) { // Size has grown // Copy template instructions for (int k = size1 + 1; k <= size2; k++) { outputCopyRepeatTemplate(ch, repeatControlInfo, k); } // Diff the common subset diffControlsState(ch, children1, children2.subList(0, size1), itemsetsFull1, itemsetsFull2, valueChangeControlIds); // Issue new values for new iterations diffControlsState(ch, null, children2.subList(size1, size2), itemsetsFull1, itemsetsFull2, valueChangeControlIds); } else if (size2 < size1) { // Size has shrunk final String repeatControlId = xformsControl2.getEffectiveId(); final int indexOfRepeatHierarchySeparator = repeatControlId.indexOf(XFormsConstants.REPEAT_HIERARCHY_SEPARATOR_1); final String templateId = (indexOfRepeatHierarchySeparator == -1) ? repeatControlId : repeatControlId.substring(0, indexOfRepeatHierarchySeparator); final String parentIndexes = (indexOfRepeatHierarchySeparator == -1) ? "" : repeatControlId.substring(indexOfRepeatHierarchySeparator + 1); ch.element("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "delete-repeat-elements", new String[]{"id", templateId, "parent-indexes", parentIndexes, "count", "" + (size1 - size2)}); // Diff the remaining subset diffControlsState(ch, children1.subList(0, size2), children2, itemsetsFull1, itemsetsFull2, valueChangeControlIds); } } else if (xformsControl2 instanceof XFormsRepeatControl && xformsControl1 == null) { final XFormsRepeatControl repeatControlInfo = (XFormsRepeatControl) xformsControl2; // Handle new sub-xforms:repeat // Copy template instructions final int size2 = children2.size(); for (int k = 2; k <= size2; k++) { // don't copy the first template, which is already copied when the parent is copied outputCopyRepeatTemplate(ch, repeatControlInfo, k); } // Issue new values for the children diffControlsState(ch, null, children2, itemsetsFull1, itemsetsFull2, valueChangeControlIds); } else if (xformsControl2 instanceof XFormsRepeatControl && children1 == null) { final XFormsRepeatControl repeatControlInfo = (XFormsRepeatControl) xformsControl2; // Handle repeat growing from size 0 (case of instance replacement, for example) // Copy template instructions final int size2 = children2.size(); for (int k = 1; k <= size2; k++) { outputCopyRepeatTemplate(ch, repeatControlInfo, k); } // Issue new values for the children diffControlsState(ch, null, children2, itemsetsFull1, itemsetsFull2, valueChangeControlIds); } else { // Other grouping controls diffControlsState(ch, children1, children2, itemsetsFull1, itemsetsFull2, valueChangeControlIds); } } } } | 57229 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57229/b77e48ac478dde2410cddb17a52a564e2f570d0e/XFormsServer.java/buggy/src/java/org/orbeon/oxf/xforms/processor/XFormsServer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
3122,
16795,
1119,
12,
1350,
1503,
2276,
462,
16,
987,
919,
21,
16,
987,
919,
22,
16,
1635,
761,
4424,
5080,
21,
16,
1635,
761,
4424,
5080,
22,
16,
1635,
460,
3043,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
3122,
16795,
1119,
12,
1350,
1503,
2276,
462,
16,
987,
919,
21,
16,
987,
919,
22,
16,
1635,
761,
4424,
5080,
21,
16,
1635,
761,
4424,
5080,
22,
16,
1635,
460,
3043,
33... |
throws net.sourceforge.jtds.jdbc.TdsException { | throws net.sourceforge.jtds.jdbc.TdsException { | private int lookupBufferSize(byte nativeColumnType) throws net.sourceforge.jtds.jdbc.TdsException { switch (nativeColumnType) { case SYBINT1: { return 1; } case SYBINT2: { return 2; } case SYBINT4: { return 4; } case SYBREAL: { return 4; } case SYBFLT8: { return 8; } case SYBDATETIME: { return 8; } case SYBDATETIME4: { return 4; } case SYBBIT: { return 1; } case SYBMONEY: { return 8; } case SYBMONEY4: case SYBSMALLMONEY: { return 4; } default: { throw new TdsException("Not fixed size column " + nativeColumnType); } } } | 2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/961a45de8bf5d82c43254ac74e0e90a332e67845/Tds.java/clean/src/main/net/sourceforge/jtds/jdbc/Tds.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
3689,
15384,
12,
7229,
6448,
28149,
13,
2398,
1216,
2901,
18,
3168,
1884,
908,
18,
78,
88,
2377,
18,
24687,
18,
56,
2377,
503,
565,
288,
3639,
1620,
261,
13635,
28149,
13,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3689,
15384,
12,
7229,
6448,
28149,
13,
2398,
1216,
2901,
18,
3168,
1884,
908,
18,
78,
88,
2377,
18,
24687,
18,
56,
2377,
503,
565,
288,
3639,
1620,
261,
13635,
28149,
13,
28... |
+ ")"); | + ')'); | public static void main(String[] args) throws Throwable { System.out.println( "Freenet: " + nodeName + " " + nodeVersion + " (protocol " + protocolVersion + ") build " + buildNumber + " (last good build: " + lastGoodBuild() + ")"); } | 46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/62fd59041864b4ed1f43adc676de6bfb5ea977f3/Version.java/clean/src/freenet/node/Version.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
4206,
288,
202,
202,
3163,
18,
659,
18,
8222,
12,
1082,
202,
6,
42,
2842,
278,
30,
315,
9506,
202,
15,
7553,
9506,
202,
15,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
2774,
12,
780,
8526,
833,
13,
1216,
4206,
288,
202,
202,
3163,
18,
659,
18,
8222,
12,
1082,
202,
6,
42,
2842,
278,
30,
315,
9506,
202,
15,
7553,
9506,
202,
15,
3... |
public void visitChildEvent(SModelChildEvent event) { updateTreeWithRoot(event.getParent()); } | public void visitChildEvent(SModelChildEvent event) { updateTreeWithRoot(event.getParent()); } | public void run() { SModelEventVisitor visitor = new SModelEventVisitor() { public void visitRootEvent(SModelRootEvent event) { SModelTreeNode.this.update(); } public void visitChildEvent(SModelChildEvent event) { updateTreeWithRoot(event.getParent()); } public void visitPropertyEvent(SModelPropertyEvent event) { } public void visitReferenceEvent(SModelReferenceEvent event) { } }; for (SModelEvent event : events) { event.accept(visitor); }// ((DefaultTreeModel) myTree.getModel()).nodeStructureChanged(SModelTreeNode.this.getParent()); } | 14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/2dd2067bc2de54558dfc6bc92ca9d140d1d30035/SModelTreeNode.java/clean/source/jetbrains/mps/ide/projectPane/SModelTreeNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
6647,
1071,
918,
1086,
1435,
288,
5411,
348,
1488,
1133,
7413,
8000,
273,
394,
348,
1488,
1133,
7413,
1435,
288,
2868,
1071,
918,
3757,
2375,
1133,
12,
55,
1488,
2375,
1133,
871,
13,
288,
7734... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6647,
1071,
918,
1086,
1435,
288,
5411,
348,
1488,
1133,
7413,
8000,
273,
394,
348,
1488,
1133,
7413,
1435,
288,
2868,
1071,
918,
3757,
2375,
1133,
12,
55,
1488,
2375,
1133,
871,
13,
288,
7734... |
throw new MARSHAL("The " + value.getClass().getName() + " must implement either StreamableValue or CustomValue." ); | Method write = helperClass.getMethod("write", new Class[] { org.omg.CORBA.portable.OutputStream.class, value.getClass() } ); write.invoke(null, new Object[] { outObj, value }); ok = true; } catch (Exception ex) { ok = false; } if (!ok) throw new MARSHAL("The " + value.getClass().getName() + " must implement either StreamableValue" + " or CustomValue." ); } | private static void write_instance(OutputStream output, Serializable value, String id ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use // a codebase. int value_tag = vt_VALUE_TAG | vf_ID; OutputStream outObj; cdrBufOutput out = null; if (USE_CHUNKING) { out = new cdrBufOutput(); out.setOrb(output.orb()); outObj = out; value_tag |= vf_CHUNKING; } else outObj = output; output.write_long(value_tag); output.write_string(id); // User defince write method is present. if (value instanceof CustomMarshal) { try { ((CustomMarshal) value).marshal((DataOutputStream) outObj); } catch (ClassCastException ex) { incorrect_plug_in(ex); } } else if (value instanceof Streamable) { ((Streamable) value)._write(outObj); } else // Stating the interfaces that the USER should use. throw new MARSHAL("The " + value.getClass().getName() + " must implement either StreamableValue or CustomValue." ); if (USE_CHUNKING) { output.write_long(out.buffer.size()); try { out.buffer.writeTo(output); } catch (IOException ex) { MARSHAL m = new MARSHAL(); m.initCause(ex); throw m; } } // The end of record marker, required by OMG standard. output.write_long(-1); } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/36718ba08db6631df8ab9fb801d408ca98ad4420/Vio.java/buggy/gnu/CORBA/CDR/Vio.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
1045,
67,
1336,
12,
4632,
876,
16,
13687,
460,
16,
19694,
514,
612,
4766,
565,
262,
225,
288,
565,
368,
1220,
4471,
3712,
7262,
279,
2202,
3352,
612,
18,
565,
368,
2597,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
1045,
67,
1336,
12,
4632,
876,
16,
13687,
460,
16,
19694,
514,
612,
4766,
565,
262,
225,
288,
565,
368,
1220,
4471,
3712,
7262,
279,
2202,
3352,
612,
18,
565,
368,
2597,... |
if(!configFile.toFile().exists()) return; | if (!configFile.toFile().exists()) return; | public static void readRepositoryConfigurationFile() { IPath configFile = getProductConfigurationCachePath(); if(!configFile.toFile().exists()) return; ObjectInputStream in = null; try { in = new ObjectInputStream(new FileInputStream(configFile.toFile())); int size = in.readInt(); for (int nX = 0; nX < size; nX++) { RepositoryConfiguration item = (RepositoryConfiguration) in.readObject(); if (item != null) { repositoryConfigurations.put(item.getRepositoryUrl(), item); } } } catch (Exception e) { log(e); } finally { if (in != null) { try { in.close(); } catch (IOException e) { // ignore } } } } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/1e62ae37f5a52d2a0cde922f6845f2fccc73406f/BugzillaPlugin.java/clean/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
855,
3305,
1750,
812,
1435,
288,
202,
202,
45,
743,
12247,
273,
15880,
1750,
1649,
743,
5621,
202,
202,
430,
12,
5,
1425,
812,
18,
869,
812,
7675,
1808,
10756,
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,
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,
918,
855,
3305,
1750,
812,
1435,
288,
202,
202,
45,
743,
12247,
273,
15880,
1750,
1649,
743,
5621,
202,
202,
430,
12,
5,
1425,
812,
18,
869,
812,
7675,
1808,
10756,
327,
... |
new NoViableAltException("478:39: ( constraint[constraints] | predicate[constraints] )", 46, 0, input); | new NoViableAltException("584:39: ( constraint[constraints] | predicate[constraints] )", 46, 0, input); | public List constraints() throws RecognitionException { List constraints; constraints = new ArrayList(); try { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:476:17: ( opt_eol ( constraint[constraints] | predicate[constraints] ) ( opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) )* opt_eol ) // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:476:17: opt_eol ( constraint[constraints] | predicate[constraints] ) ( opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) )* opt_eol { following.push(FOLLOW_opt_eol_in_constraints1505); opt_eol(); following.pop(); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:477:17: ( constraint[constraints] | predicate[constraints] ) int alt45=2; int LA45_0 = input.LA(1); if ( LA45_0==EOL ) { alt45=1; } else if ( LA45_0==ID ) { int LA45_2 = input.LA(2); if ( LA45_2==30 ) { int LA45_3 = input.LA(3); if ( LA45_3==ID ) { int LA45_8 = input.LA(4); if ( LA45_8==49 ) { alt45=2; } else if ( LA45_8==EOL||(LA45_8>=22 && LA45_8<=23)||(LA45_8>=40 && LA45_8<=47) ) { alt45=1; } else { NoViableAltException nvae = new NoViableAltException("477:17: ( constraint[constraints] | predicate[constraints] )", 45, 8, input); throw nvae; } } else if ( LA45_3==EOL ) { alt45=1; } else { NoViableAltException nvae = new NoViableAltException("477:17: ( constraint[constraints] | predicate[constraints] )", 45, 3, input); throw nvae; } } else if ( LA45_2==EOL||(LA45_2>=22 && LA45_2<=23)||(LA45_2>=40 && LA45_2<=47) ) { alt45=1; } else { NoViableAltException nvae = new NoViableAltException("477:17: ( constraint[constraints] | predicate[constraints] )", 45, 2, input); throw nvae; } } else { NoViableAltException nvae = new NoViableAltException("477:17: ( constraint[constraints] | predicate[constraints] )", 45, 0, input); throw nvae; } switch (alt45) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:477:18: constraint[constraints] { following.push(FOLLOW_constraint_in_constraints1510); constraint(constraints); following.pop(); } break; case 2 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:477:42: predicate[constraints] { following.push(FOLLOW_predicate_in_constraints1513); predicate(constraints); following.pop(); } break; } // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:478:17: ( opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) )* loop47: do { int alt47=2; alt47 = dfa47.predict(input); switch (alt47) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:478:19: opt_eol ',' opt_eol ( constraint[constraints] | predicate[constraints] ) { following.push(FOLLOW_opt_eol_in_constraints1521); opt_eol(); following.pop(); match(input,22,FOLLOW_22_in_constraints1523); following.push(FOLLOW_opt_eol_in_constraints1525); opt_eol(); following.pop(); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:478:39: ( constraint[constraints] | predicate[constraints] ) int alt46=2; int LA46_0 = input.LA(1); if ( LA46_0==EOL ) { alt46=1; } else if ( LA46_0==ID ) { int LA46_2 = input.LA(2); if ( LA46_2==30 ) { int LA46_3 = input.LA(3); if ( LA46_3==ID ) { int LA46_8 = input.LA(4); if ( LA46_8==49 ) { alt46=2; } else if ( LA46_8==EOL||(LA46_8>=22 && LA46_8<=23)||(LA46_8>=40 && LA46_8<=47) ) { alt46=1; } else { NoViableAltException nvae = new NoViableAltException("478:39: ( constraint[constraints] | predicate[constraints] )", 46, 8, input); throw nvae; } } else if ( LA46_3==EOL ) { alt46=1; } else { NoViableAltException nvae = new NoViableAltException("478:39: ( constraint[constraints] | predicate[constraints] )", 46, 3, input); throw nvae; } } else if ( LA46_2==EOL||(LA46_2>=22 && LA46_2<=23)||(LA46_2>=40 && LA46_2<=47) ) { alt46=1; } else { NoViableAltException nvae = new NoViableAltException("478:39: ( constraint[constraints] | predicate[constraints] )", 46, 2, input); throw nvae; } } else { NoViableAltException nvae = new NoViableAltException("478:39: ( constraint[constraints] | predicate[constraints] )", 46, 0, input); throw nvae; } switch (alt46) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:478:40: constraint[constraints] { following.push(FOLLOW_constraint_in_constraints1528); constraint(constraints); following.pop(); } break; case 2 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:478:64: predicate[constraints] { following.push(FOLLOW_predicate_in_constraints1531); predicate(constraints); following.pop(); } break; } } break; default : break loop47; } } while (true); following.push(FOLLOW_opt_eol_in_constraints1539); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return constraints; } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/9c6423b7a31fdc4a1317e71a6d2850c94e2140e0/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
6237,
1435,
1216,
9539,
288,
6647,
987,
6237,
31,
1171,
202,
202,
11967,
273,
394,
2407,
5621,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6237,
1435,
1216,
9539,
288,
6647,
987,
6237,
31,
1171,
202,
202,
11967,
273,
394,
2407,
5621,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,... |
if (++index <length) { | if (++index < end) { | public void characters( char[] chars, int start, int length ) throws SAXException { ElementState state; try { state = content(); // Check if text should be print as CDATA section or unescaped // based on elements listed in the output format (the element // state) or whether we are inside a CDATA section or entity. if ( state.inCData || state.doCData ) { int saveIndent; // Print a CDATA section. The text is not escaped, but ']]>' // appearing in the code must be identified and dealt with. // The contents of a text node is considered space preserving. if ( ! state.inCData ) { _printer.printText( "<![CDATA[" ); state.inCData = true; } saveIndent = _printer.getNextIndent(); _printer.setNextIndent( 0 ); char ch; for ( int index = start ; index < length ; ++index ) { ch = chars[index]; if ( ch == ']' && index + 2 < length && chars[ index + 1 ] == ']' && chars[ index + 2 ] == '>' ) { _printer.printText("]]]]><![CDATA[>"); index +=2; continue; } if (!XMLChar.isValid(ch)) { // check if it is surrogate if (++index <length) { surrogates(ch, chars[index]); } else { fatalError("The character '"+(char)ch+"' is an invalid XML character"); } continue; } else { if ( ( ch >= ' ' && _encodingInfo.isPrintable((char)ch) && ch != 0xF7 ) || ch == '\n' || ch == '\r' || ch == '\t' ) { _printer.printText((char)ch); } else { // The character is not printable -- split CDATA section _printer.printText("]]>&#x"); _printer.printText(Integer.toHexString(ch)); _printer.printText(";<![CDATA["); } } } _printer.setNextIndent( saveIndent ); } else { int saveIndent; if ( state.preserveSpace ) { // If preserving space then hold of indentation so no // excessive spaces are printed at line breaks, escape // the text content without replacing spaces and print // the text breaking only at line breaks. saveIndent = _printer.getNextIndent(); _printer.setNextIndent( 0 ); printText( chars, start, length, true, state.unescaped ); _printer.setNextIndent( saveIndent ); } else { printText( chars, start, length, false, state.unescaped ); } } } catch ( IOException except ) { throw new SAXException( except ); } } | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/aa793edc3b4b668e6c4aa0da8287408167bac8f6/BaseMarkupSerializer.java/clean/src/org/apache/xml/serialize/BaseMarkupSerializer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3949,
12,
1149,
8526,
5230,
16,
509,
787,
16,
509,
769,
262,
3639,
1216,
14366,
565,
288,
3639,
3010,
1119,
919,
31,
3639,
775,
288,
3639,
919,
273,
913,
5621,
3639,
368,
207... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3949,
12,
1149,
8526,
5230,
16,
509,
787,
16,
509,
769,
262,
3639,
1216,
14366,
565,
288,
3639,
3010,
1119,
919,
31,
3639,
775,
288,
3639,
919,
273,
913,
5621,
3639,
368,
207... |
String[][] rolePermissions = imcref.sqlProcedureMulti( "RoleGetPermissionsByLanguage", new String[]{languagePrefix} ); | public void doPost( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { // Lets check if the user is an admin, otherwise throw him out. ImcmsServices imcref = Imcms.getServices(); UserDomainObject user = Utility.getLoggedOnUser( req ); if ( user.isSuperAdmin() == false ) { String header = "Error in AdminRoles."; Properties langproperties = imcref.getLanguageProperties( user ); String msg = langproperties.getProperty("error/servlet/global/no_administrator") + "<br>"; log.debug( header + "- user is not an administrator" ); new AdminError( req, res, header, msg ); return; } // *************** GENERATE THE ADMINISTRATE ROLES PAGE ***************** if ( req.getParameter( "VIEW_ADMIN_ROLES" ) != null ) { // Lets get all ROLES from DB String[] rolesArr = imcref.sqlProcedure( "RoleAdminGetAll", new String[0] ); Vector rolesV = new Vector( java.util.Arrays.asList( rolesArr ) ); // Lets generate the html page VariableManager vm = new VariableManager(); String opt = Html.createOptionList( "", rolesV ); vm.addProperty( "ROLES_MENU", opt ); this.sendHtml( req, res, vm, HTML_ADMIN_ROLES ); return; } // *************** GENERATE THE ADMIN ROLEBELONGIN PAGE ***************** if ( req.getParameter( "VIEW_ADMIN_ROLE_BELONGINGS" ) != null ) { res.sendRedirect( "AdminRoleBelongings" ); return; } // *************** RETURN TO ADMINMANAGER ***************** if ( req.getParameter( "CANCEL" ) != null ) { res.sendRedirect( "AdminManager" ); return; } // *************** RETURN TO ADMINROLE ***************** if ( req.getParameter( "CANCEL_ROLE" ) != null ) { this.doGet( req, res ); return; } // *************** RETURN TO ADMINROLE ***************** if ( req.getParameter( "CANCEL_ROLE_ADMIN" ) != null ) { this.doGet( req, res ); return; } // *************** GENERATE THE ADD NEW ROLE PAGE ********** if ( req.getParameter( "VIEW_ADD_NEW_ROLE" ) != null ) { String languagePrefix = user.getLanguageIso639_2(); String[][] rolePermissions = imcref.sqlProcedureMulti( "RoleGetPermissionsByLanguage", new String[]{languagePrefix} ); // lets adjust the list to fit method cal String[][] permissionList = new String[rolePermissions.length][]; for ( int i = 0; i < permissionList.length; i++ ) { permissionList[i] = new String[]{"0", rolePermissions[i][0], rolePermissions[i][1]}; log.debug( permissionList[i][1] ); } // lets get data on permissions and values String permissionComponent = createPermissionComponent( req, permissionList ); VariableManager vm = new VariableManager(); vm.addProperty( "ROLE_PERMISSIONS", permissionComponent ); this.sendHtml( req, res, vm, HTML_ADD_ROLE ); return; } // *************** GENERATE THE RENAME ROLE PAGE ********** if ( req.getParameter( "VIEW_RENAME_ROLE" ) != null ) { String roleId = req.getParameter( "ROLE_ID" ); if ( roleId == null ) { String header = "Roles error"; Properties langproperties = imcref.getLanguageProperties( user ); String msg = langproperties.getProperty("error/servlet/AdminRoles/rolename_missing") + "<BR>"; log.debug( "Error in rename roles, no role selected for rename" ); new AdminError( req, res, header, msg ); return; } String currRoleName = imcref.sqlProcedureStr( "RoleGetName", new String[]{roleId} ); VariableManager vm = new VariableManager(); vm.addProperty( "CURRENT_ROLE_ID", roleId ); vm.addProperty( "CURRENT_ROLE_NAME", "" + currRoleName ); this.sendHtml( req, res, vm, HTML_RENAME_ROLE ); return; } // *************** GENERATE THE EDIT ROLE PAGE ********** if ( req.getParameter( "VIEW_EDIT_ROLE" ) != null ) { String roleId = req.getParameter( "ROLE_ID" ); if ( roleId == null ) { String header = "Error in AdminRoles, edit role"; Properties langproperties = imcref.getLanguageProperties( user ); String msg = langproperties.getProperty("error/servlet/AdminRoles/role_missing") + "<br>"; log.debug( header + "- select the role to be changed" ); new AdminError( req, res, header, msg ); return; } // dont list superadmin permissions if ( roleId.equals( "0" ) ) { String header = "Error in AdminRoles, edit role"; String msg = "" + "<BR>"; log.debug( "Error in checking roles: Trying to look att superadmin permissions" ); new AdminError( req, res, header, msg ); return; } String languagePrefix = user.getLanguageIso639_2(); String sqlQ = "RoleGetPermissionsFromRole"; String[][] permissionList = imcref.sqlProcedureMulti( sqlQ, new String[]{roleId, languagePrefix} ); // lets get data on permissions and values String permissionComponent = createPermissionComponent( req, permissionList ); /* create output page */ VariableManager vm = new VariableManager(); vm.addProperty( "CURRENT_ROLE_NAME", imcref.sqlProcedureStr( "RoleGetName", new String[]{roleId} ) ); vm.addProperty( "CURRENT_ROLE_ID", roleId ); vm.addProperty( "ROLE_PERMISSIONS", permissionComponent ); this.sendHtml( req, res, vm, HTML_EDIT_ROLE ); return; } // *************** ADD NEW ROLE TO DB ********** if ( req.getParameter( "ADD_NEW_ROLE" ) != null ) { // Lets get the parameters from html page and validate them Properties params = this.getAddRoleParameters( req ); if ( super.assertNoEmptyStringsInPropertyValues( params ) == false ) { String header = "Error in AdminRoles "; Properties langproperties = imcref.getLanguageProperties( user ); String msg = langproperties.getProperty("error/servlet/AdminRoles/new_rolename_missing") + "<br>"; log.debug( header + "- new rolename missing" ); new AdminError( req, res, header, msg ); return; } // Lets check that the new rolename doesnt exists already in db String foundRoleName = imcref.sqlProcedureStr( "RoleFindName", new String[]{(String)params.get( "ROLE_NAME" )} ); if ( !foundRoleName.equalsIgnoreCase( "-1" ) ) { String header = "Error in AdminRoles."; Properties langproperties = imcref.getLanguageProperties( user ); String msg = langproperties.getProperty("error/servlet/AdminRoles/rolename_already_exists") + "<br>"; log.debug( header + "- role name already exists" ); new AdminError( req, res, header, msg ); return; } // lets colect permissions state String[] checkedPermissions = req.getParameterValues( "PERMISSION_CHECKBOX" ); int permissionValue = collectPermissionsState( checkedPermissions ); // Lets add the new role into db RoleDomainObject role = new RoleDomainObject( params.getProperty( "ROLE_NAME" ) ); role.addUnionOfPermissionIdsToRole(permissionValue); imcref.getImcmsAuthenticatorAndUserAndRoleMapper().saveRole( role ); this.doGet( req, res ); return; } // *************** RENAME A ROLE IN THE DB ********** if ( req.getParameter( "RENAME_ROLE" ) != null ) { // Lets get the parameters from html page and validate them Properties params = this.getRenameRoleParameters( req ); if ( super.assertNoEmptyStringsInPropertyValues( params ) == false ) { String header = "Error in AdminRoles, rename role "; Properties langproperties = imcref.getLanguageProperties( user ); String msg = langproperties.getProperty("error/servlet/AdminRoles/new_rolename_missing") + "<br>"; log.debug( header + "- new role name is missing" ); new AdminError( req, res, header, msg ); return; } // Lets check that the new rolename doesnt exists already in db String foundRoleName = imcref.sqlProcedureStr( "RoleFindName", new String[]{params.getProperty( "ROLE_NAME" )} ); if ( !foundRoleName.equalsIgnoreCase( "-1" ) ) { String header = "Error in AdminRoles."; Properties langproperties = imcref.getLanguageProperties( user ); String msg = langproperties.getProperty("error/servlet/AdminRoles/rolename_already_exists") + "<br>"; log.debug( header + "- rolename already exists" ); new AdminError( req, res, header, msg ); return; } // Lets add the new role into db String sqlQ = "RoleUpdateName"; log.debug( "Sql: " + sqlQ ); imcref.sqlUpdateProcedure( sqlQ, new String[]{params.getProperty( "ROLE_ID" ), params.getProperty( "ROLE_NAME" )} ); this.doGet( req, res ); return; } // ****** VIEW AFFECTED META ID:S WHICH WILL BE AFFECTED OF A DELETE ******** boolean warnDelRole = false; if ( req.getParameter( "VIEW_DELETE_ROLE" ) != null ) { // Lets get the parameters from html page and validate them Properties params = this.getDeleteRoleParameters( req ); if ( super.assertNoEmptyStringsInPropertyValues( params ) == false ) { String header = "Error in AdminRoles "; Properties langproperties = imcref.getLanguageProperties( user ); String msg = langproperties.getProperty("error/servlet/AdminRoles/role_to_delete_missing") + "<br>"; log.debug( header + "- no role was selected for delete" ); new AdminError( req, res, header, msg ); return; } // Lets get the top 50 metaid:s which will be affected if we delete the role String[] affectedMetaIds = imcref.sqlProcedure( "RoleDeleteViewAffectedMetaIds", new String[]{params.getProperty( "ROLE_ID" )} ); // Lets get nbr of affected metaid:s String roleCount = imcref.sqlProcedureStr( "RoleCount", new String[]{params.getProperty( "ROLE_ID" )} ); // Lets get the top 50 users:s which will be affected if we delete the role String[] affectedUsers = imcref.sqlProcedure( "RoleDeleteViewAffectedUsers", new String[]{params.getProperty( "ROLE_ID" )} ); // Lets get nbr of affected users int userCount = affectedUsers.length / 2; if ( affectedUsers.length != 0 || affectedMetaIds.length != 0 ) { // Lets generate the affected users & metaid warning html page String opt = Html.createOptionList( "", new Vector( java.util.Arrays.asList( affectedMetaIds ) ) ); String users = Html.createOptionList( "", new Vector( java.util.Arrays.asList( affectedUsers ) ) ); VariableManager vm = new VariableManager(); vm.addProperty( "META_ID_LIST", opt ); vm.addProperty( "USER_ID_LIST", users ); vm.addProperty( "USER_COUNT", "" + userCount ); vm.addProperty( "ROLE_COUNT", roleCount ); vm.addProperty( "CURRENT_ROLE_ID", params.get( "ROLE_ID" ) ); this.sendHtml( req, res, vm, HTML_DELETE_ROLE_1 ); return; } else { // Lets generate the last warning html page warnDelRole = true; } } // *************** GENERATE THE LAST DELETE ROLE WARNING PAGE ********** if ( req.getParameter( "WARN_DELETE_ROLE" ) != null || warnDelRole == true ) { // Lets get the parameters from html page and validate them Properties params = this.getDeleteRoleParameters( req ); if ( super.assertNoEmptyStringsInPropertyValues( params ) == false ) { String header = "Error in AdminRoles, delete "; Properties langproperties = imcref.getLanguageProperties( user ); String msg = langproperties.getProperty("error/servlet/AdminRoles/role_to_delete_missing") + "<br>"; log.debug( header + "- no role was selected for delete" ); new AdminError( req, res, header, msg ); return; } // Lets generate the last warning html page VariableManager vm = new VariableManager(); vm.addProperty( "CURRENT_ROLE_ID", params.get( "ROLE_ID" ) ); this.sendHtml( req, res, vm, HTML_DELETE_ROLE_2 ); return; } // ****** DELETE A ROLE ******** if ( req.getParameter( "DELETE_ROLE" ) != null ) { // Lets get the parameters from html page and validate them Properties params = this.getDeleteRoleParameters( req ); if ( super.assertNoEmptyStringsInPropertyValues( params ) == false ) { String header = "Error in AdminRoles, delete"; Properties langproperties = imcref.getLanguageProperties( user ); String msg = langproperties.getProperty("error/servlet/AdminRoles/role_to_delete_missing") + "<br>"; log.debug( header + "- no role was selected for delete" ); new AdminError( req, res, header, msg ); return; } imcref.sqlUpdateProcedure( "RoleDelete", new String[]{params.getProperty( "ROLE_ID" )} ); this.doGet( req, res ); return; } // ****** UPDATE ROLE PERMISSIONS ******** if ( req.getParameter( "UPDATE_ROLE_PERMISSIONS" ) != null ) { // Lets check that role_id is corect, not lost or manipulated Properties params = getEditRoleParameters( req ); String[] checkedPermissions = req.getParameterValues( "PERMISSION_CHECKBOX" ); if ( super.assertNoEmptyStringsInPropertyValues( params ) == false ) { String header = "Error in AdminRoles "; Properties langproperties = imcref.getLanguageProperties( user ); String msg = langproperties.getProperty("error/servlet/AdminRoles/role_to_delete_missing") + "<br>"; log.debug( header + "- no role was selected for delete" ); new AdminError( req, res, header, msg ); return; } int permissionValue = collectPermissionsState( checkedPermissions ); // lets update imcref.sqlUpdateProcedure( "RoleUpdatePermissions", new String[]{params.getProperty( "ROLE_ID" ), "" + permissionValue} ); this.doGet( req, res ); } } // end HTTP POST | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/df39b2fac8d665d499942bc7070f0f4171099e0f/AdminRoles.java/buggy/server/src/com/imcode/imcms/servlet/superadmin/AdminRoles.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
3349,
12,
9984,
1111,
16,
12446,
400,
262,
5411,
1216,
16517,
16,
1860,
288,
3639,
368,
511,
2413,
866,
309,
326,
729,
353,
392,
3981,
16,
3541,
604,
366,
381,
596,
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,
741,
3349,
12,
9984,
1111,
16,
12446,
400,
262,
5411,
1216,
16517,
16,
1860,
288,
3639,
368,
511,
2413,
866,
309,
326,
729,
353,
392,
3981,
16,
3541,
604,
366,
381,
596,
18,
... | |
originalIndex=i; | originalIndex=i; | private void updateComboBox(String newValue) { Vector items = new Vector(); StringTokenizer tokens = new StringTokenizer(newValue, ":"); String currentValue = (String) inputField.getSelectedItem(); String currentItem; for (int i=0; tokens.hasMoreTokens(); i++) { currentItem = tokens.nextToken(); String itemLabel = manager.getProperty(editorTemplate + ".listMapping." + currentItem.toString() + ".label", ""); if (itemLabel.equals("")) itemLabel = currentItem.toString(); String itemValue = manager.getProperty(editorTemplate + ".listMapping." + currentItem.toString() + ".value", ""); if (itemValue.equals("")) itemValue = currentItem.toString(); if (itemValue.equals(originalValue)) { originalIndex=i; } if (itemValue.equals(currentValue)) { currentIndex=i; } items.add(itemLabel); labelToValueMap.put(itemLabel, itemValue); } ComboBoxModel newModel = new DefaultComboBoxModel(items); newModel.setSelectedItem(currentValue); inputField.setModel(newModel); } | 967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/ad1d7a526540019e033079228544b3a802a556d3/ListEditorPane.java/clean/src/net/suberic/util/gui/propedit/ListEditorPane.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1089,
22199,
12,
780,
6129,
13,
288,
565,
5589,
1516,
273,
394,
5589,
5621,
565,
16370,
2430,
273,
394,
16370,
12,
2704,
620,
16,
6153,
1769,
565,
514,
14794,
273,
261,
780,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
1089,
22199,
12,
780,
6129,
13,
288,
565,
5589,
1516,
273,
394,
5589,
5621,
565,
16370,
2430,
273,
394,
16370,
12,
2704,
620,
16,
6153,
1769,
565,
514,
14794,
273,
261,
780,
... |
switch(areq) { case AUTH_REQ_OK: break; | switch(areq) { case AUTH_REQ_OK: break; | protected void openConnection(String host, int port, Properties info, String database, String url, Driver d) throws SQLException { // Throw an exception if the user or password properties are missing // This occasionally occurs when the client uses the properties version // of getConnection(), and is a common question on the email lists if(info.getProperty("user")==null) throw new PSQLException("postgresql.con.user"); if(info.getProperty("password")==null) throw new PSQLException("postgresql.con.pass"); this_driver = d; this_url = url; PG_DATABASE = database; PG_PASSWORD = info.getProperty("password"); PG_USER = info.getProperty("user"); PG_PORT = port; PG_HOST = host; PG_STATUS = CONNECTION_BAD; if(info.getProperty("compatible")==null) { compatible = d.getMajorVersion() + "." + d.getMinorVersion(); } else { compatible = info.getProperty("compatible"); } // Now make the initial connection try { pg_stream = new PG_Stream(host, port); } catch (ConnectException cex) { // Added by Peter Mount <peter@retep.org.uk> // ConnectException is thrown when the connection cannot be made. // we trap this an return a more meaningful message for the end user throw new PSQLException ("postgresql.con.refused"); } catch (IOException e) { throw new PSQLException ("postgresql.con.failed",e); } // Now we need to construct and send a startup packet try { // Ver 6.3 code pg_stream.SendInteger(4+4+SM_DATABASE+SM_USER+SM_OPTIONS+SM_UNUSED+SM_TTY,4); pg_stream.SendInteger(PG_PROTOCOL_LATEST_MAJOR,2); pg_stream.SendInteger(PG_PROTOCOL_LATEST_MINOR,2); pg_stream.Send(database.getBytes(),SM_DATABASE); // This last send includes the unused fields pg_stream.Send(PG_USER.getBytes(),SM_USER+SM_OPTIONS+SM_UNUSED+SM_TTY); // now flush the startup packets to the backend pg_stream.flush(); // Now get the response from the backend, either an error message // or an authentication request int areq = -1; // must have a value here do { int beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'E': // An error occured, so pass the error message to the // user. // // The most common one to be thrown here is: // "User authentication failed" // throw new SQLException(pg_stream.ReceiveString(encoding)); case 'R': // Get the type of request areq = pg_stream.ReceiveIntegerR(4); // Get the password salt if there is one if(areq == AUTH_REQ_CRYPT) { byte[] rst = new byte[2]; rst[0] = (byte)pg_stream.ReceiveChar(); rst[1] = (byte)pg_stream.ReceiveChar(); salt = new String(rst,0,2); DriverManager.println("Salt="+salt); } // now send the auth packet switch(areq) { case AUTH_REQ_OK: break; case AUTH_REQ_KRB4: DriverManager.println("postgresql: KRB4"); throw new PSQLException("postgresql.con.kerb4"); case AUTH_REQ_KRB5: DriverManager.println("postgresql: KRB5"); throw new PSQLException("postgresql.con.kerb5"); case AUTH_REQ_PASSWORD: DriverManager.println("postgresql: PASSWORD"); pg_stream.SendInteger(5+PG_PASSWORD.length(),4); pg_stream.Send(PG_PASSWORD.getBytes()); pg_stream.SendInteger(0,1); pg_stream.flush(); break; case AUTH_REQ_CRYPT: DriverManager.println("postgresql: CRYPT"); String crypted = UnixCrypt.crypt(salt,PG_PASSWORD); pg_stream.SendInteger(5+crypted.length(),4); pg_stream.Send(crypted.getBytes()); pg_stream.SendInteger(0,1); pg_stream.flush(); break; default: throw new PSQLException("postgresql.con.auth",new Integer(areq)); } break; default: throw new PSQLException("postgresql.con.authfail"); } } while(areq != AUTH_REQ_OK); } catch (IOException e) { throw new PSQLException("postgresql.con.failed",e); } // As of protocol version 2.0, we should now receive the cancellation key and the pid int beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'K': pid = pg_stream.ReceiveInteger(4); ckey = pg_stream.ReceiveInteger(4); break; case 'E': case 'N': throw new SQLException(pg_stream.ReceiveString(encoding)); default: throw new PSQLException("postgresql.con.setup"); } // Expect ReadyForQuery packet beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'Z': break; case 'E': case 'N': throw new SQLException(pg_stream.ReceiveString(encoding)); default: throw new PSQLException("postgresql.con.setup"); } firstWarning = null; // "pg_encoding_to_char(1)" will return 'EUC_JP' for a backend compiled with multibyte, // otherwise it's hardcoded to 'SQL_ASCII'. // If the backend doesn't know about multibyte we can't assume anything about the encoding // used, so we denote this with 'UNKNOWN'. final String encodingQuery = "case when pg_encoding_to_char(1) = 'SQL_ASCII' then 'UNKNOWN' else getdatabaseencoding() end"; // Set datestyle and fetch db encoding in a single call, to avoid making // more than one round trip to the backend during connection startup. java.sql.ResultSet resultSet = ExecSQL("set datestyle to 'ISO'; select version(), " + encodingQuery + ";"); if (! resultSet.next()) { throw new PSQLException("postgresql.con.failed", "failed getting backend encoding"); } String version = resultSet.getString(1); dbVersionNumber = extractVersionNumber(version); String dbEncoding = resultSet.getString(2); encoding = Encoding.getEncoding(dbEncoding, info.getProperty("charSet")); // Initialise object handling initObjectTypes(); // Mark the connection as ok, and cleanup firstWarning = null; PG_STATUS = CONNECTION_OK; } | 52522 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52522/839b9bc0117946afd62ee385a4c8a36c01b3053b/Connection.java/buggy/src/interfaces/jdbc/org/postgresql/Connection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24982,
12,
780,
1479,
16,
509,
1756,
16,
6183,
1123,
16,
514,
2063,
16,
514,
880,
16,
9396,
302,
13,
1216,
6483,
565,
288,
565,
368,
3743,
392,
1520,
309,
326,
729,
578,
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,
377,
4750,
918,
24982,
12,
780,
1479,
16,
509,
1756,
16,
6183,
1123,
16,
514,
2063,
16,
514,
880,
16,
9396,
302,
13,
1216,
6483,
565,
288,
565,
368,
3743,
392,
1520,
309,
326,
729,
578,
22... |
AuthorizeManager.authorizeAction(ourContext, this, Constants.WRITE); | if (! (is == null && AuthorizeManager.authorizeActionBoolean(ourContext, this, Constants.DELETE)) ) { canEdit(); } | public Bitstream setLogo(InputStream is) throws AuthorizeException, IOException, SQLException { // Check authorisation AuthorizeManager.authorizeAction(ourContext, this, Constants.WRITE); // First, delete any existing logo if (logo != null) { log.info(LogManager.getHeader(ourContext, "remove_logo", "community_id=" + getID())); communityRow.setColumnNull("logo_bitstream_id"); logo.delete(); logo = null; } if (is != null) { Bitstream newLogo = Bitstream.create(ourContext, is); communityRow.setColumn("logo_bitstream_id", newLogo.getID()); logo = newLogo; // now create policy for logo bitstream // to match our READ policy List policies = AuthorizeManager.getPoliciesActionFilter(ourContext, this, Constants.READ); AuthorizeManager.addPolicies(ourContext, policies, newLogo ); log.info(LogManager.getHeader(ourContext, "set_logo", "community_id=" + getID() + "logo_bitstream_id=" + newLogo.getID())); } return logo; } | 51882 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51882/44d920f6673301feb8b329391378fb326189f9de/Community.java/buggy/dspace/src/org/dspace/content/Community.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6539,
3256,
444,
26604,
12,
4348,
353,
13,
3639,
1216,
23859,
503,
16,
1860,
16,
6483,
565,
288,
3639,
368,
2073,
2869,
10742,
1850,
309,
16051,
261,
291,
422,
446,
597,
23859,
1318... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6539,
3256,
444,
26604,
12,
4348,
353,
13,
3639,
1216,
23859,
503,
16,
1860,
16,
6483,
565,
288,
3639,
368,
2073,
2869,
10742,
1850,
309,
16051,
261,
291,
422,
446,
597,
23859,
1318... |
public CommandlineParser(String[] arguments) { | public CommandlineParser(String[] arguments, PrintStream outStream) { | public CommandlineParser(String[] arguments) { this.arguments = arguments; processArguments(); } | 46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/f321a7dc6c9f0229cc5266d9c2923a04a755be60/CommandlineParser.java/buggy/src/org/jruby/util/CommandlineParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3498,
1369,
2678,
12,
780,
8526,
1775,
16,
21677,
28997,
13,
288,
3639,
333,
18,
7099,
273,
1775,
31,
3639,
1207,
4628,
5621,
565,
289,
2,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3498,
1369,
2678,
12,
780,
8526,
1775,
16,
21677,
28997,
13,
288,
3639,
333,
18,
7099,
273,
1775,
31,
3639,
1207,
4628,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (caldata == null) { caldata = new CalendarData(debug); } | private int processDoc(Document doc) throws WebdavException { try { WebdavNsIntf intf = getNsIntf(); Element root = doc.getDocumentElement(); /* Get hold of the PROPFIND method instance - we need it to process possible prop requests. */ PropFindMethod pm = (PropFindMethod)intf.findMethod( WebdavMethods.propFind); if (pm == null) { return HttpServletResponse.SC_INTERNAL_SERVER_ERROR; } if (nodeMatches(root, CaldavTags.calendarQuery)) { reportType = reportTypeQuery; } else if (nodeMatches(root, CaldavTags.calendarMultiget)) { reportType = reportTypeMultiGet; } else if (nodeMatches(root, CaldavTags.freeBusyQuery)) { reportType = reportTypeFreeBusy; freeBusy = new FreeBusyQuery(intf, debug); } else if (nodeMatches(root, WebdavTags.expandProperty)) { reportType = reportTypeExpandProperty; } else { throw new WebdavBadRequest(); } Element[] children = getChildren(root); for (int i = 0; i < children.length; i++) { Element curnode = children[i]; /** The names come through looking something like A:allprop etc. */ String nm = curnode.getLocalName(); String ns = curnode.getNamespaceURI(); if (debug) { trace("reqtype: " + nm + " ns: " + ns); } if (reportType == reportTypeFreeBusy) { freeBusy.parse(curnode); } else if (reportType == reportTypeExpandProperty) { } else { /* Two possibilities: <!ELEMENT calendar-multiget (DAV:allprop | DAV:propname | DAV:prop)? calendar-data? DAV:href+> <!ELEMENT calendar-query (DAV:allprop | DAV:propname | DAV:prop)? calendar-data? filter> */ /* First try for a property request */ PropFindMethod.PropRequest pr = pm.tryPropRequest(curnode); if (pr != null) { if (preq != null) { if (debug) { trace("REPORT: preq not null"); } throw new WebdavBadRequest(); } preq = pr; } else if (nodeMatches(curnode, CaldavTags.calendarData)) { if (caldata != null) { if (debug) { trace("REPORT: caldata not null"); } throw new WebdavBadRequest(); } caldata = new CalendarData(debug); caldata.parse(curnode); } else if ((reportType == reportTypeQuery) && nodeMatches(curnode, CaldavTags.filter)) { if (filter != null) { if (debug) { trace("REPORT: filter not null"); } throw new WebdavBadRequest(); } filter = new Filter(intf, debug); int st = filter.parse(curnode); if (st != HttpServletResponse.SC_OK) { return st; } } else if ((reportType == reportTypeMultiGet) && nodeMatches(curnode, WebdavTags.href)) { String href = XmlUtil.getElementContent(curnode); if ((href == null) || (href.length() == 0)) { throw new WebdavBadRequest(); } if (hrefs == null) { hrefs = new ArrayList(); } hrefs.add(href); } else { if (debug) { trace("REPORT: unexpected element"); } throw new WebdavBadRequest(); } } } // Final validation if (reportType == reportTypeMultiGet) { if (hrefs == null) { // need at least 1 throw new WebdavBadRequest(); } } else if (reportType == reportTypeQuery) { if (caldata == null) { // same as empty element? caldata = new CalendarData(debug); } if (filter == null) { // filter required throw new WebdavBadRequest(); } } if (debug) { trace("REPORT: "); if (reportType == reportTypeFreeBusy) { trace("free-busy"); freeBusy.dump(); } else if (reportType == reportTypeQuery) { // Query - optional props + optional calendar data + filter if (caldata != null) { caldata.dump(); } else { trace("No caldata"); } filter.dump(); } else if (reportType == reportTypeMultiGet) { // Multi-get - optional props + optional calendar data + one or more hrefs if (caldata != null) { caldata.dump(); } else { trace("No caldata"); } Iterator it = hrefs.iterator(); while (it.hasNext()) { String href = (String)it.next(); trace(" <DAV:href>" + href + "</DAV:href>"); } } else { } } return HttpServletResponse.SC_OK; } catch (WebdavException wde) { throw wde; } catch (Throwable t) { System.err.println(t.getMessage()); if (debug) { t.printStackTrace(); } throw new WebdavException(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); } } | 50848 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50848/8ed7b2a30596511b8dff591c1ffd26aba2d7af5d/ReportMethod.java/buggy/calendar3/caldav/src/edu/rpi/cct/uwcal/caldav/ReportMethod.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
509,
1207,
1759,
12,
2519,
997,
13,
1216,
2999,
20752,
503,
288,
565,
775,
288,
1377,
2999,
20752,
10386,
1702,
74,
17262,
273,
336,
10386,
1702,
74,
5621,
1377,
3010,
1365,
273,
99... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
1207,
1759,
12,
2519,
997,
13,
1216,
2999,
20752,
503,
288,
565,
775,
288,
1377,
2999,
20752,
10386,
1702,
74,
17262,
273,
336,
10386,
1702,
74,
5621,
1377,
3010,
1365,
273,
99... | |
if (namespaceElement.attributeValue("prefix").equals(prefix)) { namespaceURI = namespaceElement.attributeValue("uri"); | if (namespaceElement.attributeValue("prefix").equals(rootPrefix)) { tempNamespaceURI = namespaceElement.attributeValue("uri"); | public void readImpl(PipelineContext context, ContentHandler contentHandler) { try { // Read config Element config = readCacheInputAsDOM4J(context, INPUT_CONFIG).getRootElement(); String qname = config.element("root").getText(); String namespaceURI; String localName; // Get declared namespaces int columnPosition = qname.indexOf(':'); if (columnPosition == -1) { namespaceURI = ""; localName = qname; } else { String prefix = qname.substring(0, columnPosition); localName = qname.substring(columnPosition + 1); namespaceURI = null; for (Iterator i = config.elements("namespace").iterator(); i.hasNext();) { Element namespaceElement = (Element) i.next(); if (namespaceElement.attributeValue("prefix").equals(prefix)) { namespaceURI = namespaceElement.attributeValue("uri"); break; } } if (namespaceURI == null) throw new ValidationException("Undeclared namespace prefix '" + prefix + "'", (LocationData) config.getData()); } // Start document contentHandler.startDocument(); contentHandler.startElement(namespaceURI, localName, qname, XMLUtils.EMPTY_ATTRIBUTES); // Processor input processors for (Iterator i = getInputsByName(INPUT_DATA).iterator(); i.hasNext();) { ProcessorInput input = (ProcessorInput) i.next(); readInputAsSAX(context, input, new EmbeddedDocumentContentHandler(contentHandler)); } // End document contentHandler.endElement(namespaceURI, localName, qname); contentHandler.endDocument(); } catch (SAXException e) { throw new OXFException(e); } } | 54445 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54445/62eabac7eb1abdc6a8498b9a67e23ed69ae6ceb7/AggregatorProcessor.java/buggy/src/java/org/orbeon/oxf/processor/pipeline/AggregatorProcessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
855,
2828,
12,
8798,
1042,
819,
16,
3697,
1503,
913,
1503,
13,
288,
7734,
775,
288,
10792,
368,
2720,
642,
10792,
3010,
642,
273,
855,
1649,
1210,
1463,
8168,
24,
46,
12,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2398,
1071,
918,
855,
2828,
12,
8798,
1042,
819,
16,
3697,
1503,
913,
1503,
13,
288,
7734,
775,
288,
10792,
368,
2720,
642,
10792,
3010,
642,
273,
855,
1649,
1210,
1463,
8168,
24,
46,
12,
24... |
if (_sp != 0) return(_data[_sp-1]); else return(-1); } | if (_sp != 0) return(_data[_sp-1]); else return(-1); } | int get() { if (_sp != 0) return(_data[_sp-1]); else return(-1); } | 46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/264066e4e3d606d5167a1f5680c45669efd7e5c9/DOMImpl.java/clean/src/org/apache/xalan/xsltc/dom/DOMImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
565,
509,
336,
1435,
288,
202,
202,
430,
261,
67,
1752,
480,
374,
13,
1082,
565,
327,
24899,
892,
63,
67,
1752,
17,
21,
19226,
202,
202,
12107,
1082,
565,
327,
19236,
21,
1769,
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,
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,
3196,
565,
509,
336,
1435,
288,
202,
202,
430,
261,
67,
1752,
480,
374,
13,
1082,
565,
327,
24899,
892,
63,
67,
1752,
17,
21,
19226,
202,
202,
12107,
1082,
565,
327,
19236,
21,
1769,
202,
... |
private JToolBar buildBar() | private JPanel buildBar() | private JToolBar buildBar() { JToolBar bar = new JToolBar(); bar.setBorder(BorderFactory.createEtchedBorder()); bar.setFloatable(true); bar.putClientProperty("JToolBar.isRollover", Boolean.TRUE); bar.add(save); bar.add(Box.createRigidArea(HBOX)); bar.add(close); return bar; } | 13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/0f84715d97fb9bad35cd75d5c742a1473fe1f109/ROIStats.java/buggy/SRC/org/openmicroscopy/shoola/agents/roi/util/ROIStats.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
24048,
1361,
5190,
1435,
565,
288,
3639,
804,
6364,
5190,
4653,
273,
394,
804,
6364,
5190,
5621,
3639,
4653,
18,
542,
8107,
12,
8107,
1733,
18,
2640,
41,
88,
2049,
8107,
10663,
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,
3238,
24048,
1361,
5190,
1435,
565,
288,
3639,
804,
6364,
5190,
4653,
273,
394,
804,
6364,
5190,
5621,
3639,
4653,
18,
542,
8107,
12,
8107,
1733,
18,
2640,
41,
88,
2049,
8107,
10663,
3639... |
this.isInPaintMethod = true; | public final void paint(Graphics g) { //#if tmp.fullScreenInPaint if (!this.isInFullScreenMode) { super.setFullScreenMode( true ); this.isInFullScreenMode = true; //#ifdef polish.FullCanvasHeight:defined //#= this.fullScreenHeight = ${polish.FullCanvasHeight}; //#else this.fullScreenHeight = getHeight(); //#endif this.screenHeight = this.fullScreenHeight - this.menuBarHeight; this.originalScreenHeight = this.screenHeight; this.scrollIndicatorY = this.screenHeight - this.scrollIndicatorWidth - 1; } //#endif //#if polish.useFullScreen && polish.api.nokia-ui this.isInPaintMethod = true; //#endif //#ifdef polish.debug.error try { //#endif // paint background: if (this.background != null) { //#ifdef tmp.menuFullScreen this.background.paint(0, 0, this.screenWidth, this.fullScreenHeight, g); //#else this.background.paint(0, 0, this.screenWidth, this.screenHeight, g); //#endif } else { g.setColor( 0xFFFFFF ); //#ifdef tmp.menuFullScreen g.fillRect( 0, 0, this.screenWidth, this.fullScreenHeight ); //#else g.fillRect( 0, 0, this.screenWidth, this.screenHeight ); //#endif } int tHeight = 0; //#ifdef tmp.usingTitle // paint title: if (this.title != null && this.showTitleOrMenu) { this.title.paint(0, 0, 0, this.screenWidth, g); tHeight = this.titleHeight; } //#elif !tmp.menuFullScreen int translateY = g.getTranslateY(); if (translateY != 0 && this.screenHeight == this.originalScreenHeight) { this.screenHeight -= translateY; this.scrollIndicatorY -= translateY; //#debug System.out.println("Adjusting screenheight from " + this.originalScreenHeight + " to " + this.screenHeight ); if (this.container != null) { this.container.setVerticalDimensions(translateY, this.screenHeight); } } //#endif if (this.subTitle != null) { this.subTitle.paint( 0, tHeight, 0, this.screenWidth, g ); tHeight += this.subTitleHeight; } if (this.showInfoItem) { this.infoItem.paint( 0, tHeight, 0, this.screenWidth, g ); tHeight += this.infoHeight; } // protect the title, ticker and the full-screen-menu area: g.setClip(0, tHeight, this.screenWidth, this.screenHeight - tHeight ); g.translate( 0, tHeight ); // paint content: //System.out.println("starting to paint content of screen"); paintScreen( g ); //System.out.println("done painting content of screen"); g.translate( 0, - tHeight ); // allow painting outside of the screen again: //#ifdef tmp.menuFullScreen g.setClip(0, 0, this.screenWidth, this.fullScreenHeight ); //#else g.setClip(0, 0, this.screenWidth, this.originalScreenHeight ); //#endif //#ifndef polish.skipTicker if (this.ticker != null) { this.ticker.paint( 0, this.screenHeight, 0, this.screenWidth, g ); } //#endif // paint border: if (this.border != null) { this.border.paint(0, 0, this.screenWidth, this.screenHeight, g); } // paint menu in full-screen mode: //#ifdef tmp.menuFullScreen //#ifdef tmp.useExternalMenuBar this.menuBar.paint(0, this.screenHeight, 0, this.screenWidth, g); if (this.menuBar.isOpened) { this.paintScrollIndicator = this.menuBar.paintScrollIndicator; this.paintScrollIndicatorUp = this.menuBar.canScrollUpwards; this.paintScrollIndicatorDown = this.menuBar.canScrollDownwards; } //#else if (this.menuOpened) { tHeight -= this.infoHeight; int menuHeight = this.menuContainer.getItemHeight(this.menuMaxWidth, this.menuMaxWidth); int y = this.originalScreenHeight - menuHeight; if (y < tHeight) { this.paintScrollIndicator = true; this.paintScrollIndicatorUp = (this.menuContainer.yOffset != 0); this.paintScrollIndicatorDown = (this.menuContainer.yOffset + menuHeight > this.originalScreenHeight - tHeight); y = tHeight; this.menuContainer.setVerticalDimensions(y, this.originalScreenHeight); } else { this.paintScrollIndicator = false; } g.setClip(0, tHeight, this.screenWidth, this.originalScreenHeight - tHeight ); this.menuContainer.paint(0, y, 0, this.menuMaxWidth, g); g.setClip(0, 0, this.screenWidth, this.fullScreenHeight ); } if (this.showTitleOrMenu || this.menuOpened) { // clear menu-bar: if (this.menuBarColor != Item.TRANSPARENT) { g.setColor( this.menuBarColor ); g.fillRect(0, this.originalScreenHeight, this.screenWidth, this.menuBarHeight ); } if (this.menuContainer != null && this.menuContainer.size() > 0) { String menuText = null; if (this.menuOpened) { //#ifdef polish.command.select:defined //#= menuText = "${polish.command.select}"; //#else menuText = "Select"; //#endif } else { if (this.menuSingleLeftCommand != null) { menuText = this.menuSingleLeftCommand.getLabel(); } else { //#ifdef polish.command.options:defined //#= menuText = "${polish.command.options}"; //#else menuText = "Options"; //#endif } } //#ifdef polish.hasPointerEvents this.menuLeftCommandX = 2 + this.menuFont.stringWidth( menuText ); //#endif g.setColor( this.menuFontColor ); g.setFont( this.menuFont ); //#ifdef polish.Menu.MarginLeft:defined //#= int menuX = ${polish.Menu.MarginLeft}; //#else int menuX = 2; //#endif //#ifdef polish.Menu.MarginTop:defined //#= g.drawString(menuText, menuX, this.originalScreenHeight + ${polish.Menu.MarginTop}, Graphics.TOP | Graphics.LEFT ); //#else g.drawString(menuText, menuX, this.originalScreenHeight + 2, Graphics.TOP | Graphics.LEFT ); //#endif if ( this.menuOpened ) { // draw cancel string: //#ifdef polish.command.cancel:defined //#= menuText = "${polish.command.cancel}"; //#else menuText = "Cancel"; //#endif //#ifdef polish.Menu.MarginRight:defined //#= menuX = ${polish.Menu.MarginRight}; //#elifdef polish.Menu.MarginLeft:defined menuX = 2; //#endif //#ifdef polish.Menu.MarginTop:defined //#= g.drawString(menuText, this.screenWidth - menuX, this.originalScreenHeight + ${polish.Menu.MarginTop}, Graphics.TOP | Graphics.RIGHT ); //#else g.drawString(menuText, this.screenWidth - menuX, this.originalScreenHeight + 2, Graphics.TOP | Graphics.RIGHT ); //#endif //#ifdef polish.hasPointerEvents this.menuRightCommandX = this.screenWidth - 2 - this.menuFont.stringWidth( menuText ); //#endif } } if (this.menuSingleRightCommand != null && !this.menuOpened) { g.setColor( this.menuFontColor ); g.setFont( this.menuFont ); String menuText = this.menuSingleRightCommand.getLabel(); //#ifdef polish.Menu.MarginRight:defined //#= int menuX = ${polish.Menu.MarginRight}; //#else int menuX = 2; //#endif //#ifdef polish.Menu.MarginTop:defined //#= g.drawString(menuText, this.screenWidth - menuX, this.originalScreenHeight + ${polish.Menu.MarginTop}, Graphics.TOP | Graphics.RIGHT ); //#else g.drawString(menuText, this.screenWidth - menuX, this.originalScreenHeight + 2, Graphics.TOP | Graphics.RIGHT ); //#endif //#ifdef polish.hasPointerEvents this.menuRightCommandX = this.screenWidth - menuX - this.menuFont.stringWidth( menuText ); //#endif } } // if this.showTitleOrMenu || this.menuOpened //#endif //#endif // paint scroll-indicator in the middle of the menu: if (this.paintScrollIndicator) { g.setColor( this.scrollIndicatorColor ); int x = this.scrollIndicatorX; int y = this.scrollIndicatorY; int width = this.scrollIndicatorWidth; int halfWidth = width / 2; if (this.paintScrollIndicatorUp) { //#ifdef polish.midp2 g.fillTriangle(x, y + halfWidth-1, x + width, y + halfWidth-1, x + halfWidth, y ); //#else g.drawLine( x, y + halfWidth-1, x + width, y + halfWidth-1 ); g.drawLine( x, y + halfWidth-1, x + halfWidth, y ); g.drawLine( x + width, y + halfWidth-1, x + halfWidth, y ); //#endif } if (this.paintScrollIndicatorDown) { //#ifdef polish.midp2 g.fillTriangle(x, y + halfWidth+1, x + width, y + halfWidth+1, x + halfWidth, y + width ); //#else g.drawLine( x, y + halfWidth+1, x + width, y + halfWidth+1 ); g.drawLine( x, y + halfWidth+1, x + halfWidth, y + width ); g.drawLine(x + width, y + halfWidth+1, x + halfWidth, y + width ); //#endif } } //#ifdef polish.css.foreground-image if (this.foregroundImage != null) { g.drawImage( this.foregroundImage, this.foregroundX, this.foregroundY, Graphics.TOP | Graphics.LEFT ); } //#endif //#ifdef polish.debug.error } catch (RuntimeException e) { //#debug error Debug.debug( "unable to paint screen", e ); } //#endif //#if polish.useFullScreen && polish.api.nokia-ui this.lastPaintTime = System.currentTimeMillis(); this.isInPaintMethod = false; //#endif } | 9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/2d2ee1a8b2dd39fe6c831aded2568d110a1ee975/Screen.java/buggy/enough-polish-j2me/source/src/de/enough/polish/ui/Screen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
12574,
12,
17558,
314,
13,
288,
202,
202,
759,
7,
430,
1853,
18,
2854,
7956,
382,
12699,
1082,
202,
430,
16051,
2211,
18,
291,
382,
5080,
7956,
2309,
13,
288,
9506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
918,
12574,
12,
17558,
314,
13,
288,
202,
202,
759,
7,
430,
1853,
18,
2854,
7956,
382,
12699,
1082,
202,
430,
16051,
2211,
18,
291,
382,
5080,
7956,
2309,
13,
288,
9506,
... | |
else if (groupBy == GROUP_BY_BUG_TYPE) { | if (groupName.equals("")) groupName = "Unnamed package"; } else if (groupBy == GROUP_BY_BUG_TYPE) { | private void populateAnalysisRunTreeModel(AnalysisRun analysisRun, final String groupBy) { // Set busy cursor - this is potentially a time-consuming operation Cursor orig = this.getCursor(); this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); final DefaultTreeModel bugTreeModel = analysisRun.getTreeModel(); final DefaultMutableTreeNode bugRootNode = (DefaultMutableTreeNode) bugTreeModel.getRoot(); // Delete all children from root node bugRootNode.removeAllChildren(); // Sort the instances TreeSet sortedCollection = new TreeSet(getBugInstanceComparator(groupBy)); sortedCollection.addAll(analysisRun.getBugInstances()); // The grouper callback is what actually adds the group and bug // nodes to the tree. Grouper.Callback callback = new Grouper.Callback() { private BugInstanceGroup currentGroup; private DefaultMutableTreeNode currentGroupNode; public void startGroup(Object member_) { BugInstance member = (BugInstance) member_; String groupName; if (groupBy == GROUP_BY_CLASS) groupName = member.getPrimaryClass().getClassName(); else if (groupBy == GROUP_BY_PACKAGE) groupName = member.getPrimaryClass().getPackageName(); else if (groupBy == GROUP_BY_BUG_TYPE) { String desc = member.toString(); groupName = desc.substring(0, desc.indexOf(':')); } else throw new IllegalStateException("Unknown sort order: " + groupBy); currentGroup = new BugInstanceGroup(groupBy, groupName); currentGroupNode = new DefaultMutableTreeNode(currentGroup); bugTreeModel.insertNodeInto(currentGroupNode, bugRootNode, bugRootNode.getChildCount()); insertIntoGroup(member); } public void addToGroup(Object member_) { BugInstance member = (BugInstance) member_; insertIntoGroup(member); } private void insertIntoGroup(BugInstance member) { currentGroup.incrementMemberCount(); DefaultMutableTreeNode bugNode = new DefaultMutableTreeNode(member); bugTreeModel.insertNodeInto(bugNode, currentGroupNode, currentGroupNode.getChildCount()); // Insert annotations Iterator j = member.annotationIterator(); while (j.hasNext()) { BugAnnotation annotation = (BugAnnotation) j.next(); DefaultMutableTreeNode annotationNode = new DefaultMutableTreeNode(annotation); bugTreeModel.insertNodeInto(annotationNode, bugNode, bugNode.getChildCount()); } } }; // Create the grouper, and execute it to populate the bug tree Grouper grouper = new Grouper(callback); Comparator groupComparator = getGroupComparator(groupBy); grouper.group(sortedCollection, groupComparator); // Sort order is up to date now analysisRun.setSortOrder(groupBy); // Let the tree know it needs to update itself bugTreeModel.nodeStructureChanged(bugRootNode); // Now we're done this.setCursor(orig); } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1378d08d3f3c607fe10c74983e849f4b5d636ff3/FindBugsFrame.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
6490,
9418,
1997,
2471,
1488,
12,
9418,
1997,
6285,
1997,
16,
727,
514,
13197,
13,
288,
202,
759,
1000,
21697,
3347,
300,
333,
353,
13935,
279,
813,
17,
17664,
310,
1674,
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,
377,
3238,
918,
6490,
9418,
1997,
2471,
1488,
12,
9418,
1997,
6285,
1997,
16,
727,
514,
13197,
13,
288,
202,
759,
1000,
21697,
3347,
300,
333,
353,
13935,
279,
813,
17,
17664,
310,
1674,
202,
... |
EquipmentType.addType( createBAVibroClaws() ); | EquipmentType.addType( createBAVibroClaws1() ); EquipmentType.addType( createBAVibroClaws2() ); | public static void initializeTypes() { // all tech level 1 weapons EquipmentType.addType(createFlamer()); EquipmentType.addType(createVehicleFlamer()); EquipmentType.addType(createSmallLaser()); EquipmentType.addType(createMediumLaser()); EquipmentType.addType(createLargeLaser()); EquipmentType.addType(createPPC()); EquipmentType.addType(createAC2()); EquipmentType.addType(createAC5()); EquipmentType.addType(createAC10()); EquipmentType.addType(createAC20()); EquipmentType.addType(createMG()); EquipmentType.addType(createLRM5()); EquipmentType.addType(createLRM10()); EquipmentType.addType(createLRM15()); EquipmentType.addType(createLRM20()); EquipmentType.addType(createSRM2()); EquipmentType.addType(createSRM4()); EquipmentType.addType(createSRM6()); // Start of Infantry weapons (Level1) EquipmentType.addType(createInfRifle()); EquipmentType.addType(createInfMG()); EquipmentType.addType(createInfSRM()); EquipmentType.addType(createInfLRM()); EquipmentType.addType(createInfLaser()); EquipmentType.addType(createInfFlamer()); EquipmentType.addType(createInfInfernoSRM()); // Start of Inner Sphere Level2 weapons EquipmentType.addType(createISERPPC()); EquipmentType.addType(createISERLargeLaser()); EquipmentType.addType(createISERMediumLaser()); EquipmentType.addType(createISERSmallLaser()); EquipmentType.addType(createISLargePulseLaser()); EquipmentType.addType(createISMediumPulseLaser()); EquipmentType.addType(createISSmallPulseLaser()); EquipmentType.addType(createISLBXAC2()); EquipmentType.addType(createISLBXAC5()); EquipmentType.addType(createISLBXAC10()); EquipmentType.addType(createISLBXAC20()); EquipmentType.addType(createISGaussRifle()); EquipmentType.addType(createISLightGaussRifle()); EquipmentType.addType(createISHeavyGaussRifle()); EquipmentType.addType(createISUltraAC2()); EquipmentType.addType(createISUltraAC5()); EquipmentType.addType(createISUltraAC10()); EquipmentType.addType(createISUltraAC20()); EquipmentType.addType(createISRAC2()); EquipmentType.addType(createISRAC5()); EquipmentType.addType(createISStreakSRM2()); EquipmentType.addType(createISSRM2OS()); EquipmentType.addType(createISStreakSRM2OS()); EquipmentType.addType(createISStreakSRM4()); EquipmentType.addType(createISSRM4OS()); EquipmentType.addType(createISStreakSRM4OS()); EquipmentType.addType(createISStreakSRM6()); EquipmentType.addType(createISSRM6OS()); EquipmentType.addType(createISStreakSRM6OS()); EquipmentType.addType(createISMRM10()); EquipmentType.addType(createISMRM20()); EquipmentType.addType(createISMRM30()); EquipmentType.addType(createISMRM40()); EquipmentType.addType(createISMRM10OS()); EquipmentType.addType(createISMRM20OS()); EquipmentType.addType(createISMRM30OS()); EquipmentType.addType(createISMRM40OS()); EquipmentType.addType(createISLRM5OS()); EquipmentType.addType(createISLRM10OS()); EquipmentType.addType(createISLRM15OS()); EquipmentType.addType(createISLRM20OS()); EquipmentType.addType(createISAMS()); EquipmentType.addType(createISNarc()); EquipmentType.addType(createISNarcOS()); EquipmentType.addType(createISImprovedNarc()); EquipmentType.addType(createISImprovedNarcOS()); EquipmentType.addType(createISRL10()); EquipmentType.addType(createISRL15()); EquipmentType.addType(createISRL20()); EquipmentType.addType(createISArrowIVSystem()); EquipmentType.addType(createISLongTom()); EquipmentType.addType(createISSniper()); EquipmentType.addType(createISThumper()); // Start of Inner Sphere Level3 weapons EquipmentType.addType(createISLargeXPulseLaser()); EquipmentType.addType(createISMediumXPulseLaser()); EquipmentType.addType(createISSmallXPulseLaser()); EquipmentType.addType(createISLaserAMS()); EquipmentType.addType(createISLaserAMSTHB()); // Start of Clan Level2 weapons EquipmentType.addType(createCLERPPC()); EquipmentType.addType(createCLERLargeLaser()); EquipmentType.addType(createCLERMediumLaser()); EquipmentType.addType(createCLERSmallLaser()); EquipmentType.addType(createCLERMicroLaser()); EquipmentType.addType(createCLFlamer()); EquipmentType.addType(createCLVehicleFlamer()); EquipmentType.addType(createCLHeavyLargeLaser()); EquipmentType.addType(createCLHeavyMediumLaser()); EquipmentType.addType(createCLHeavySmallLaser()); EquipmentType.addType(createCLLargePulseLaser()); EquipmentType.addType(createCLMediumPulseLaser()); EquipmentType.addType(createCLSmallPulseLaser()); EquipmentType.addType(createCLMicroPulseLaser()); EquipmentType.addType(createCLLBXAC2()); EquipmentType.addType(createCLLBXAC5()); EquipmentType.addType(createCLLBXAC10()); EquipmentType.addType(createCLLBXAC20()); EquipmentType.addType(createCLMG()); EquipmentType.addType(createCLLightMG()); EquipmentType.addType(createCLHeavyMG()); EquipmentType.addType(createCLLRM5()); EquipmentType.addType(createCLLRM10()); EquipmentType.addType(createCLLRM15()); EquipmentType.addType(createCLLRM20()); EquipmentType.addType(createCLLRM5OS()); EquipmentType.addType(createCLLRM10OS()); EquipmentType.addType(createCLLRM15OS()); EquipmentType.addType(createCLLRM20OS()); EquipmentType.addType(createCLSRM2()); EquipmentType.addType(createCLSRM4()); EquipmentType.addType(createCLSRM6()); EquipmentType.addType(createCLSRM2OS()); EquipmentType.addType(createCLSRM4OS()); EquipmentType.addType(createCLSRM6OS()); EquipmentType.addType(createCLGaussRifle()); EquipmentType.addType(createCLUltraAC2()); EquipmentType.addType(createCLUltraAC5()); EquipmentType.addType(createCLUltraAC10()); EquipmentType.addType(createCLUltraAC20()); EquipmentType.addType(createCLStreakSRM2()); EquipmentType.addType(createCLStreakSRM4()); EquipmentType.addType(createCLStreakSRM6()); EquipmentType.addType(createCLStreakSRM2OS()); EquipmentType.addType(createCLStreakSRM4OS()); EquipmentType.addType(createCLStreakSRM6OS()); EquipmentType.addType(createCLATM3()); EquipmentType.addType(createCLATM6()); EquipmentType.addType(createCLATM9()); EquipmentType.addType(createCLATM12()); EquipmentType.addType(createCLAMS()); EquipmentType.addType(createCLNarc()); EquipmentType.addType(createCLNarcOS()); EquipmentType.addType(createCLArrowIVSystem()); EquipmentType.addType(createCLLongTom()); EquipmentType.addType(createCLSniper()); EquipmentType.addType(createCLThumper()); // Start of Clan Level3 weapons EquipmentType.addType(createCLERLargePulseLaser()); EquipmentType.addType(createCLERMediumPulseLaser()); EquipmentType.addType(createCLERSmallPulseLaser()); EquipmentType.addType(createCLRAC2()); EquipmentType.addType(createCLRAC5()); EquipmentType.addType(createCLRAC10()); EquipmentType.addType(createCLRAC20()); EquipmentType.addType(createCLStreakLRM5()); EquipmentType.addType(createCLStreakLRM10()); EquipmentType.addType(createCLStreakLRM15()); EquipmentType.addType(createCLStreakLRM20()); EquipmentType.addType(createCLLaserAMS()); //Protomech weapons EquipmentType.addType(createCLPROLRM1() ); EquipmentType.addType(createCLPROLRM2() ); EquipmentType.addType(createCLPROLRM3() ); EquipmentType.addType(createCLPROLRM4() ); //EquipmentType.addType(createCLPROLRM5() ); EquipmentType.addType(createCLPROLRM6() ); EquipmentType.addType(createCLPROLRM7() ); EquipmentType.addType(createCLPROLRM8() ); EquipmentType.addType(createCLPROLRM9() ); //EquipmentType.addType(createCLPROLRM10() ); EquipmentType.addType(createCLPROLRM11() ); EquipmentType.addType(createCLPROLRM12() ); EquipmentType.addType(createCLPROLRM13() ); EquipmentType.addType(createCLPROLRM14() ); //EquipmentType.addType(createCLPROLRM15() ); EquipmentType.addType(createCLPROLRM16() ); EquipmentType.addType(createCLPROLRM17() ); EquipmentType.addType(createCLPROLRM18() ); EquipmentType.addType(createCLPROLRM19() ); //EquipmentType.addType(createCLPROLRM20() ); EquipmentType.addType(createCLPROSRM1() ); EquipmentType.addType(createCLPROStreakSRM1() ); //EquipmentType.addType(createCLPROSRM2() ); //EquipmentType.addType(createCLPROStreakSRM2() ); EquipmentType.addType(createCLPROSRM3() ); EquipmentType.addType(createCLPROStreakSRM3() ); //EquipmentType.addType(createCLPROSRM4() ); //EquipmentType.addType(createCLPROStreakSRM4() ); EquipmentType.addType(createCLPROSRM5() ); EquipmentType.addType(createCLPROStreakSRM5() ); //EquipmentType.addType(createCLPROSRM6() ); //EquipmentType.addType(createCLPROStreakSRM6() ); // Anti-Mek attacks are weapon-like in nature. EquipmentType.addType( createLegAttack() ); EquipmentType.addType( createSwarmMek() ); EquipmentType.addType( createStopSwarm() ); // Start BattleArmor weapons EquipmentType.addType( createBAMG() ); EquipmentType.addType( createBASingleMG() ); EquipmentType.addType( createBASingleFlamer()); EquipmentType.addType( createBAFlamer() ); EquipmentType.addType( createBASmallLaser() ); EquipmentType.addType( createBACLERSmallLaser() ); EquipmentType.addType( createCLAdvancedSRM2() ); EquipmentType.addType( createBATwinFlamers() ); EquipmentType.addType( createBAInfernoSRM() ); EquipmentType.addType( createBACLMicroPulseLaser() ); EquipmentType.addType( createBAMicroBomb() ); EquipmentType.addType( createBACLERMicroLaser() ); EquipmentType.addType( createCLTorpedoLRM5() ); EquipmentType.addType( createBAISMediumPulseLaser() ); EquipmentType.addType( createTwinSmallPulseLaser() ); EquipmentType.addType( createTripleSmallLaser() ); EquipmentType.addType( createTripleMG() ); EquipmentType.addType( createFenrirSRM4() ); EquipmentType.addType( createBAAutoGL() ); EquipmentType.addType( createBAMagshotGR() ); EquipmentType.addType( createBAISMediumLaser() ); EquipmentType.addType( createBAISERSmallLaser() ); EquipmentType.addType( createBACompactNARC() ); EquipmentType.addType( createSlothSmallLaser() ); EquipmentType.addType( createBAMineLauncher() ); // Combat Operations Weapons EquipmentType.addType( createBAAdvancedSRM5() ); EquipmentType.addType( createBABearhunterAC() ); EquipmentType.addType( createBACLMediumPulseLaser() ); EquipmentType.addType( createBAIncendiaryNeedler() ); EquipmentType.addType( createBALightRecRifle() ); EquipmentType.addType( createBALightGaussRifle() ); EquipmentType.addType( createBAMediumRecRifle() ); EquipmentType.addType( createBAPlasmaRifle() ); EquipmentType.addType( createBASingleSmallPulseLaser() ); EquipmentType.addType( createBASRM4() ); EquipmentType.addType( createBASupportPPC() ); EquipmentType.addType( createBAVibroClaws() ); EquipmentType.addType( createPhalanxSRM4() ); // War Of 3039 prototype weapons EquipmentType.addType( createISGaussRiflePrototype() ); EquipmentType.addType( createISUltraAC5Prototype() ); EquipmentType.addType( createISERLargeLaserPrototype() ); EquipmentType.addType( createISMediumPulseLaserPrototype() ); } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/fc33c9d5385c1cb38125466b985604d2d1329717/WeaponType.java/buggy/megamek/src/megamek/common/WeaponType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
4046,
2016,
1435,
288,
3639,
368,
777,
13878,
1801,
404,
732,
438,
7008,
3639,
19008,
11568,
559,
18,
1289,
559,
12,
2640,
2340,
24458,
10663,
3639,
19008,
11568,
559,
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,
760,
918,
4046,
2016,
1435,
288,
3639,
368,
777,
13878,
1801,
404,
732,
438,
7008,
3639,
19008,
11568,
559,
18,
1289,
559,
12,
2640,
2340,
24458,
10663,
3639,
19008,
11568,
559,
18,
... |
throw new NullPointerException("the privateExponent is null"); | throw new NullPointerException(Messages.getString("security.83", "privateExponent")); | public RSAMultiPrimePrivateCrtKeySpec( BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient, RSAOtherPrimeInfo[] otherPrimeInfo) { super(modulus, privateExponent); // Perform checks specified if (modulus == null) { throw new NullPointerException("the modulus is null"); } if (privateExponent == null) { throw new NullPointerException("the privateExponent is null"); } if (publicExponent == null) { throw new NullPointerException("the publicExponent is null"); } if (primeP == null) { throw new NullPointerException("the primeP is null"); } if (primeQ == null) { throw new NullPointerException("the primeQ is null"); } if (primeExponentP == null) { throw new NullPointerException("the primeExponentP is null"); } if (primeExponentQ == null) { throw new NullPointerException("the primeExponentQ is null"); } if (crtCoefficient == null) { throw new NullPointerException("the crtCoefficient is null"); } if (otherPrimeInfo != null) { if (otherPrimeInfo.length == 0) { throw new IllegalArgumentException( "the otherPrimeInfo length is 0"); } // Clone array to prevent subsecuent modification this.otherPrimeInfo = new RSAOtherPrimeInfo[otherPrimeInfo.length]; System.arraycopy(otherPrimeInfo, 0, this.otherPrimeInfo, 0, this.otherPrimeInfo.length); } else { this.otherPrimeInfo = null; } this.publicExponent = publicExponent; this.primeP = primeP; this.primeQ = primeQ; this.primeExponentP = primeExponentP; this.primeExponentQ = primeExponentQ; this.crtCoefficient = crtCoefficient; } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/c7fdc88348ff6da63262b6309c2810876f42c6d8/RSAMultiPrimePrivateCrtKeySpec.java/buggy/modules/security/src/main/java/common/java/security/spec/RSAMultiPrimePrivateCrtKeySpec.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
14746,
2192,
2948,
23327,
6014,
39,
3797,
653,
1990,
12,
5411,
10246,
24770,
16,
5411,
10246,
1071,
17972,
16,
5411,
10246,
3238,
17972,
16,
5411,
10246,
17014,
52,
16,
5411,
10246,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14746,
2192,
2948,
23327,
6014,
39,
3797,
653,
1990,
12,
5411,
10246,
24770,
16,
5411,
10246,
1071,
17972,
16,
5411,
10246,
3238,
17972,
16,
5411,
10246,
17014,
52,
16,
5411,
10246,
1... |
setResult(Assign.MUL_ASSIGN); break; } | setResult(Assign.DIV_ASSIGN); break; } | 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... |
{ /* FIXME */ } | { textListener = AWTEventMulticaster.add (textListener, listener); } | public synchronized void addTextListener (TextListener listener) { /* FIXME */ } | 1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/708062224a502c41561e122dcde5accf23f77ad9/TextComponent.java/clean/libjava/java/awt/TextComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
25796,
2223,
261,
1528,
2223,
2991,
13,
225,
288,
1748,
9852,
1195,
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,
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,
282,
1071,
3852,
918,
25796,
2223,
261,
1528,
2223,
2991,
13,
225,
288,
1748,
9852,
1195,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
fw.write("\treturn temp;\n}\n"); | fw.write("\treturn *temp;\n}\n"); | private void createPushPopFunctions(SIRStructure[] structs, FileWriter fw, String network) throws Exception { assert network.equals("Static") || network.equals("Dynamic"); //which network we are using boolean dynamic = false; if (network.equals("Dynamic")) dynamic = true; //create the pop functions for (int i = 0; i < structs.length; i++) { SIRStructure current = structs[i]; fw.write("inline " + current.getIdent() + " pop" + network + current.getIdent() + "() {\n"); fw.write("\t" + current.getIdent() + " temp;\n"); for (int j = 0; j < current.getFields().length; j++) { fw.write("\t//" + current.getFields()[j].getType() + "\n"); if (current.getFields()[j].getType().isArrayType()) { //System.out.println(((CArrayType)current.getFields()[j].getType()).getDims()); //assert false; } else if (current.getFields()[j].getType().isClassType()) { fw.write("\ttemp." + current.getFields()[j].getVariable().getIdent() + " = pop" + network + current.getFields()[j].getType() + "();\n"); } else { fw.write("\t" + Util.networkReceivePrefix(dynamic)); fw.write("temp." + current.getFields()[j].getVariable().getIdent()); fw.write(Util.networkReceiveSuffix(dynamic, current.getFields()[j].getType()) + "\n"); } } fw.write("\treturn temp;\n}\n"); //create the pop functions that take a pointer argument //these are more efficent, we use these when we can fw.write("inline void " + RawExecutionCode.structReceivePrefix + network + current.getIdent() + "(" + current.getIdent() + "* temp) {\n"); for (int j = 0; j < current.getFields().length; j++) { if (current.getFields()[j].getType().isArrayType()) { //assert false; } else if (current.getFields()[j].getType().isClassType()) { //if this is struct field, call the struct's popPointer method fw.write("\t" + RawExecutionCode.structReceivePrefix + network + current.getFields()[j].getType() + "(&temp->" + current.getFields()[j].getVariable().getIdent() + ");\n"); } else { fw.write("\t" + Util.networkReceivePrefix(dynamic)); fw.write("temp->" + current.getFields()[j].getVariable().getIdent()); fw.write(Util.networkReceiveSuffix(dynamic, current.getFields()[j].getType()) + "\n"); } } fw.write("}\n"); //create the push functions fw.write("inline void push" + network + current.getIdent() + "(" + current.getIdent() + "* temp) {\n"); if (network.equals("Dynamic")) { //we must generate the header for the dynamic network send... fw.write(Util.CGNOINTVAR + " = " + FlatIRToC.DYNMSGHEADER + ";\n"); } for (int j = 0; j < current.getFields().length; j++) { //if this field is a struct type, use its method to push the field if (current.getFields()[j].getType().isArrayType()) { //System.out.println(((CArrayType)current.getFields()[j].getType()).getDims()[0]); //assert false; } else if (current.getFields()[j].getType().isClassType()) { fw.write("push" + network + current.getFields()[j].getType() + "(&temp->" + current.getFields()[j].getVariable().getIdent() + ");\n"); } else { fw.write("\t" + Util.networkSendPrefix(dynamic, current.getFields()[j].getType())); fw.write("temp->" + current.getFields()[j].getVariable().getIdent()); fw.write(Util.networkSendSuffix(dynamic) + ";\n"); } } fw.write("}\n"); } } | 47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/70695973d4e8f5c1e1a59ed6878deecc5259c8b3/StructureIncludeFile.java/clean/streams/src/at/dms/kjc/spacedynamic/StructureIncludeFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
7621,
7049,
7503,
12,
2320,
54,
6999,
8526,
8179,
16,
6862,
202,
812,
2289,
7600,
16,
6862,
202,
780,
2483,
13,
1216,
1185,
565,
288,
202,
11231,
2483,
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,
3238,
918,
752,
7621,
7049,
7503,
12,
2320,
54,
6999,
8526,
8179,
16,
6862,
202,
812,
2289,
7600,
16,
6862,
202,
780,
2483,
13,
1216,
1185,
565,
288,
202,
11231,
2483,
18,
14963,
2932,
... |
? evaluateExpression( ce.getOperand1( ), odiResult, scope, logger ) | ? evaluateExpression( ce.getOperand1( ), odiResult, scope ) | public static Object evaluateExpression( IBaseExpression dataExpr, IResultIterator odiResult, Scriptable scope, Logger logger ) throws BirtException { Object exprValue = null; //TODO here the dataExpr should not be null. //This is only a temporary solution. if( dataExpr == null ) throw new DataException(ResourceConstants.BAD_DATA_EXPRESSION); Object handle = dataExpr.getHandle( ); if ( handle instanceof CompiledExpression ) { CompiledExpression expr = (CompiledExpression) handle; Object value = evaluateCompiledExpression( expr, odiResult, scope ); try { exprValue = DataTypeUtil.convert( value, dataExpr.getDataType( ) ); } catch ( BirtException e ) { throw new DataException( ResourceConstants.INCONVERTIBLE_DATATYPE, new Object[]{ value, value.getClass( ), DataType.getClass( dataExpr.getDataType( ) ) } ); } } else if ( handle instanceof ConditionalExpression ) { ConditionalExpression ce = (ConditionalExpression) handle; Object resultExpr = evaluateExpression( ce.getExpression( ), odiResult, scope, logger ); Object resultOp1 = ce.getOperand1( ) != null ? evaluateExpression( ce.getOperand1( ), odiResult, scope, logger ) : null; Object resultOp2 = ce.getOperand2( ) != null ? evaluateExpression( ce.getOperand2( ), odiResult, scope, logger ) : null; String op1Text = ce.getOperand1( ) != null ? ce.getOperand1( ) .getText( ) : null; String op2Text = ce.getOperand2( ) != null ? ce.getOperand2( ) .getText( ) : null; exprValue = ScriptEvalUtil.evalConditionalExpr( resultExpr, ce.getOperator( ), ScriptEvalUtil.newExprInfo( op1Text, resultOp1 ), ScriptEvalUtil.newExprInfo( op2Text, resultOp2 ) ); } else { DataException e = new DataException( ResourceConstants.INVALID_EXPR_HANDLE ); logger.logp( Level.FINE, ResultIterator.class.getName( ), "getValue", "Invalid expression handle.", e ); throw e; } // the result might be a DataExceptionMocker. if ( exprValue instanceof DataExceptionMocker ) { throw ( (DataExceptionMocker) exprValue ).getCause( ); } return exprValue; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/9716b5cad49122eb07567dc6566978863e7a14dd/ExprEvaluateUtil.java/clean/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/expression/ExprEvaluateUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1033,
5956,
2300,
12,
467,
2171,
2300,
501,
4742,
16,
1082,
202,
45,
1253,
3198,
320,
3211,
1253,
16,
22780,
2146,
16,
4242,
1194,
262,
1082,
202,
15069,
605,
2714,
503,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
5956,
2300,
12,
467,
2171,
2300,
501,
4742,
16,
1082,
202,
45,
1253,
3198,
320,
3211,
1253,
16,
22780,
2146,
16,
4242,
1194,
262,
1082,
202,
15069,
605,
2714,
503,
... |
finally { try { | finally { try { | private void storeWorkbenchProperties() { //save properties to file OutputStream out = null; try { out = (OutputStream) new FileOutputStream( new File("workbench.properties")); workbenchProperties.store(out,"Workbench configuration"); } catch (Exception e) { //TODO deal with exception } finally { try { out.close(); } catch (IOException eIO) { //TODO deal with exception } } } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/d4a93c3315c8aa9b9d64e1c03577610a1dbca61d/Workbench.java/clean/src/main/mondrian/gui/Workbench.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1707,
2421,
22144,
2297,
1435,
288,
377,
202,
202,
759,
5688,
1790,
358,
585,
9506,
202,
4632,
596,
273,
446,
31,
202,
202,
698,
288,
1082,
202,
659,
273,
261,
4632,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1707,
2421,
22144,
2297,
1435,
288,
377,
202,
202,
759,
5688,
1790,
358,
585,
9506,
202,
4632,
596,
273,
446,
31,
202,
202,
698,
288,
1082,
202,
659,
273,
261,
4632,
13,... |
try { setValue((String) evalAttr("value", getValueExpr(), String.class)); } catch (NullAttributeException ex) { } | if ((string = EvalHelper.evalString("titleKey", getTitleKeyExpr(), this, pageContext)) != null) setTitleKey(string); if ((string = EvalHelper.evalString("value", getValueExpr(), this, pageContext)) != null) setValue(string); | private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAlt((String) evalAttr("alt", getAltExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAltKey((String) evalAttr("altKey", getAltKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setOnblur((String) evalAttr("onblur", getOnblurExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnchange((String) evalAttr("onchange", getOnchangeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnclick((String) evalAttr("onclick", getOnclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOndblclick((String) evalAttr("ondblclick", getOndblclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnfocus((String) evalAttr("onfocus", getOnfocusExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypressExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemoveExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseoutExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseoverExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setProperty((String) evalAttr("property", getPropertyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyle((String) evalAttr("style", getStyleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleClass((String) evalAttr("styleClass", getStyleClassExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleId((String) evalAttr("styleId", getStyleIdExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTabindex((String) evalAttr("tabindex", getTabindexExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitle((String) evalAttr("title", getTitleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitleKey((String) evalAttr("titleKey", getTitleKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setValue((String) evalAttr("value", getValueExpr(), String.class)); } catch (NullAttributeException ex) { } } | 54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/022bd23c954cf673e53731849d562b3c295473f1/ELResetTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELResetTag.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,
4742,
9334,
4766,
6647,
514,
18,
1106,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4742,
9334,
4766,
6647,
514,
18,
1106,
... |
recentEffects.clear(); KoLCharacter.getEffects().clear(); this.refreshSession(); this.resetSession(); | refreshSession(); resetSession(); | public void initialize( String username, boolean getBreakfast, boolean isQuickLogin ) { // Initialize the variables to their initial // states to avoid null pointers getting thrown // all over the place if ( !permitsContinue() ) { deinitialize(); return; } StaticEntity.setProperty( "lastUsername", username ); if ( !isQuickLogin ) { this.conditions.clear(); KoLCharacter.reset( username ); KoLmafia.openSessionStream(); } if ( isQuickLogin ) { (new AccountRequest( this )).run(); (new CharsheetRequest( this )).run(); CharpaneRequest.getInstance().run(); return; } StaticEntity.reloadSettings(); AdventureDatabase.refreshAdventureTable(); recentEffects.clear(); KoLCharacter.getEffects().clear(); this.refreshSession(); this.resetSession(); if ( refusesContinue() ) { deinitialize(); return; } // If the password hash is non-null, then that means you // might be mid-transition. if ( KoLRequest.passwordHash != null && KoLRequest.passwordHash.equals( "" ) ) return; registerPlayer( username, String.valueOf( KoLCharacter.getUserID() ) ); if ( getBreakfast ) { String today = DATED_FILENAME_FORMAT.format( new Date() ); String lastBreakfast = StaticEntity.getProperty( "lastBreakfast." + username.toLowerCase() ); StaticEntity.setProperty( "lastBreakfast." + username.toLowerCase(), today ); if ( lastBreakfast == null || !lastBreakfast.equals( today ) ) getBreakfast( true ); } String scriptSetting = StaticEntity.getProperty( "loginScript." + username.toLowerCase() ); if ( !scriptSetting.equals( "" ) ) DEFAULT_SHELL.executeLine( scriptSetting ); } | 50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/e62c220071db475c697de817376ca4486bbcebd6/KoLmafia.java/clean/src/net/sourceforge/kolmafia/KoLmafia.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4046,
12,
514,
2718,
16,
1250,
2882,
870,
8076,
16,
1250,
353,
13663,
5358,
262,
202,
95,
202,
202,
759,
9190,
326,
3152,
358,
3675,
2172,
202,
202,
759,
5493,
358,
4543,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4046,
12,
514,
2718,
16,
1250,
2882,
870,
8076,
16,
1250,
353,
13663,
5358,
262,
202,
95,
202,
202,
759,
9190,
326,
3152,
358,
3675,
2172,
202,
202,
759,
5493,
358,
4543,... |
String wordAlternate = pronunciations[i].getWord(); | String wordAlternate = pronunciations[i].getWord().getSpelling(); | private Graph buildWordGraph(Transcript transcript){ Graph graph; Dictionary transcriptDict = transcript.getDictionary(); // Make sure the dictionary is a TrainerDictionary before we cast assert transcriptDict.getClass().getName().endsWith("TrainerDictionary"); dictionary = (TrainerDictionary) transcriptDict; transcript.startWordIterator(); int numWords = transcript.numberOfWords(); /* Shouldn't node and edge be part of the graph class? */ /* The wordgraph must always begin with the <s> */ graph = new Graph(); Node initialNode = new Node(NodeType.UTTERANCE_BEGIN); graph.addNode(initialNode); graph.setInitialNode(initialNode); if (transcript.isExact()) { Node prevNode = initialNode; for (transcript.startWordIterator(); transcript.hasMoreWords(); ) { /* create a new node for the next word */ Node wordNode = new Node(NodeType.WORD, transcript.nextWord()); /* Link the new node into the graph */ graph.linkNodes(prevNode, wordNode); prevNode = wordNode; } /* All words are done. Just add the </s> */ Node wordNode = new Node(NodeType.UTTERANCE_END); graph.linkNodes(prevNode, wordNode); graph.setFinalNode(wordNode); } else { /* Begin the utterance with a loopy silence */ Node silLoopBack = new Node(NodeType.SILENCE_WITH_LOOPBACK); graph.linkNodes(initialNode, silLoopBack); Node prevNode = initialNode; // Create links with words from the transcript for (transcript.startWordIterator(); transcript.hasMoreWords(); ) { String word = transcript.nextWord(); Pronunciation[] pronunciations = dictionary.getPronunciations(word, null); int numberOfPronunciations = pronunciations.length; Node[] pronNode = new Node[numberOfPronunciations]; // Create node at the beginning of the word Node dummyWordBeginNode = new Node(NodeType.DUMMY); // Allow the silence to be skipped graph.linkNodes(prevNode, dummyWordBeginNode); // Link the latest silence to the dummy too graph.linkNodes(silLoopBack, dummyWordBeginNode); // Add word ending dummy node Node dummyWordEndNode = new Node(NodeType.DUMMY); // Update prevNode prevNode = dummyWordEndNode; for (int i = 0; i < numberOfPronunciations; i++){ String wordAlternate = pronunciations[i].getWord(); if (i > 0) { wordAlternate += "(" + i + ")"; } pronNode[i] = new Node(NodeType.WORD, wordAlternate); graph.linkNodes(dummyWordBeginNode, pronNode[i]); graph.linkNodes(pronNode[i], dummyWordEndNode); } /* Add silence */ silLoopBack = new Node(NodeType.SILENCE_WITH_LOOPBACK); graph.linkNodes(dummyWordEndNode, silLoopBack); } Node wordNode = new Node(NodeType.UTTERANCE_END); // Link previous node, a dummy word end node graph.linkNodes(prevNode, wordNode); // Link also the previous silence node graph.linkNodes(silLoopBack, wordNode); graph.setFinalNode(wordNode); } return graph; } | 8321 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8321/d6a8bf2ed203a56594add182c74447a5412be888/BuildTranscriptHMM.java/clean/sphinx4/edu/cmu/sphinx/trainer/BuildTranscriptHMM.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
5601,
1361,
3944,
4137,
12,
1429,
9118,
15194,
15329,
3639,
5601,
2667,
31,
202,
10905,
15194,
5014,
273,
15194,
18,
588,
10905,
5621,
202,
759,
4344,
3071,
326,
3880,
353,
279,
2197,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5601,
1361,
3944,
4137,
12,
1429,
9118,
15194,
15329,
3639,
5601,
2667,
31,
202,
10905,
15194,
5014,
273,
15194,
18,
588,
10905,
5621,
202,
759,
4344,
3071,
326,
3880,
353,
279,
2197,... |
{ | { | private void updatePreview( ) { String pattern = ""; //$NON-NLS-1$ String fmtStr = ""; //$NON-NLS-1$ if ( hasLoaded ) { setPatternFromControls( ); } FormatNumberPattern fmtPattern = getFmtPattern( ); setCategory( fmtPattern.getCategory( ) ); setPatternStr( fmtPattern.getPattern( ) ); pattern = fmtPattern.getPattern( ); double num = 123456; String displayName = typeChoicer.getText( ); String category = getCategoryForDisplayName( displayName ); if ( category.equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_GENERAL_NUMBER ) ) { fmtStr = new NumberFormatter( pattern ).format( num ); gPreviewLabel.setText( validateFmtStr( fmtStr ) ); return; } else if ( category.equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_CURRENCY ) ) { fmtStr = new NumberFormatter( pattern ).format( num ); cPreviewLabel.setText( validateFmtStr( fmtStr ) ); return; } else if ( category.equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_FIXED ) ) { fmtStr = new NumberFormatter( pattern ).format( num ); fPreviewLabel.setText( validateFmtStr( fmtStr ) ); return; } else if ( category.equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_PERCENT ) ) { fmtStr = new NumberFormatter( pattern ).format( num ); pPreviewLabel.setText( validateFmtStr( fmtStr ) ); return; } else if ( category.equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_SCIENTIFIC ) ) { fmtStr = new NumberFormatter( pattern ).format( num ); sPreviewLabel.setText( validateFmtStr( fmtStr ) ); return; } else if ( category.equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_CUSTOM ) ) { if ( StringUtil.isBlank( previewText.getText( ) ) ) { fmtStr = new NumberFormatter( pattern ).format( num ); } else if ( DEUtil.isValidNumber( previewText.getText( ) ) ) { num = Double.parseDouble( previewText.getText( ) ); fmtStr = new NumberFormatter( pattern ).format( num ); } else { fmtStr = Messages.getString( "FormatNumberPreferencePage.previewLabel.invalidNumberToPreview" ); //$NON-NLS-1$ } cusPreviewLabel.setText( validateFmtStr( fmtStr ) ); return; } } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/55c8c2023a7da8b3a75094379a566258928a5e83/FormatNumberPage.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/FormatNumberPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1089,
11124,
12,
262,
202,
95,
202,
202,
780,
1936,
273,
1408,
31,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
780,
1325,
1585,
273,
1408,
31,
4329,
3993,
17,
5106,
17,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
11124,
12,
262,
202,
95,
202,
202,
780,
1936,
273,
1408,
31,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
780,
1325,
1585,
273,
1408,
31,
4329,
3993,
17,
5106,
17,... |
protected void populateRequiredAttributes(SAMLObject samlObject) { Request req = (Request) samlObject; req.setID(expectedID); req.setIssueInstant(expectedIssueInstant); // NOTE: the SAML Version attribute is set automatically by the impl superclass } | 52539 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52539/708465e95ae5aac021c2a8b0f3f358665c09ab6e/RequestTestBase.java/buggy/test/org/opensaml/saml2/core/impl/RequestTestBase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
6490,
3705,
2498,
12,
21380,
921,
22835,
921,
13,
288,
3639,
1567,
1111,
273,
261,
691,
13,
22835,
921,
31,
7734,
1111,
18,
542,
734,
12,
3825,
734,
1769,
3639,
1111,
18,
542... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4750,
918,
6490,
3705,
2498,
12,
21380,
921,
22835,
921,
13,
288,
3639,
1567,
1111,
273,
261,
691,
13,
22835,
921,
31,
7734,
1111,
18,
542,
734,
12,
3825,
734,
1769,
3639,
1111,
18,
542... | ||
throw new SOAPProcessingException("Expecting SOAP 1.1 implementation of SOAP Fault Value. But received some other implementation"); | throw new SOAPProcessingException( "Expecting SOAP 1.1 implementation of SOAP Fault Value. " + "But received some other implementation"); | public void setValue(SOAPFaultValue soapFaultSubCodeValue) throws SOAPProcessingException { if (!(soapFaultSubCodeValue instanceof SOAP11FaultValueImpl)) { throw new SOAPProcessingException("Expecting SOAP 1.1 implementation of SOAP Fault Value. But received some other implementation"); } super.setValue(soapFaultSubCodeValue); } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/46a014bae8b3bdea6efef1d984a295027545ce0c/SOAP11FaultSubCodeImpl.java/clean/modules/doom/src/org/apache/axis2/soap/impl/dom/soap11/SOAP11FaultSubCodeImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5524,
12,
27952,
7083,
620,
9930,
7083,
1676,
1085,
620,
13,
1216,
16434,
23684,
288,
3639,
309,
16051,
12,
19215,
7083,
1676,
1085,
620,
1276,
16434,
2499,
7083,
620,
2828,
3719... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5524,
12,
27952,
7083,
620,
9930,
7083,
1676,
1085,
620,
13,
1216,
16434,
23684,
288,
3639,
309,
16051,
12,
19215,
7083,
1676,
1085,
620,
1276,
16434,
2499,
7083,
620,
2828,
3719... |
Block b2 = targetAst.newBlock(); b2.statements().add(result); | localAst.newExpressionStatement(result); | public ASTNode sample(AST targetAst, boolean parented) { Block result = targetAst.newBlock(); if (parented) { Block b2 = targetAst.newBlock(); b2.statements().add(result); } return result; } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/0e6d4fe5469565f21baa2fd0ec88d178818c619b/ASTTest.java/buggy/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
9183,
907,
3296,
12,
9053,
1018,
21385,
16,
1250,
982,
329,
13,
288,
9506,
202,
1768,
563,
273,
1018,
21385,
18,
2704,
1768,
5621,
9506,
202,
430,
261,
2938,
329,
13,
288,
68... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1875,
202,
482,
9183,
907,
3296,
12,
9053,
1018,
21385,
16,
1250,
982,
329,
13,
288,
9506,
202,
1768,
563,
273,
1018,
21385,
18,
2704,
1768,
5621,
9506,
202,
430,
261,
2938,
329,
13,
288,
68... |
protected String createJSRActionURI(PortletURL url) throws JspException { // Builds a URI containing the actin and associated params RenderResponse res = (RenderResponse) pageContext.getAttribute(SportletProperties.RENDER_RESPONSE, PageContext.REQUEST_SCOPE); this.actionURL = (PortletURLImpl) url; RenderRequest req = (RenderRequest) pageContext.getAttribute(SportletProperties.RENDER_REQUEST, PageContext.REQUEST_SCOPE); // action is a required attribute except for FormTag if (windowState == null) { windowState = req.getWindowState().toString(); } if (portletMode == null) { portletMode = req.getPortletMode().toString(); } if (label != null) { res.setProperty("label", label); actionURL.setComponentID(label); } if (windowState != null) { WindowState state = new WindowState(windowState); try { //actionURL = res.createRenderURL(); //System.err.println("set state to:" + state); actionURL.setWindowState(state); } catch (WindowStateException e) { throw new JspException("Unknown window state in renderURL tag: " + windowState); } } if (portletMode != null) { PortletMode mode = new PortletMode(portletMode); try { //actionURL = res.createRenderURL(); actionURL.setPortletMode(mode); //System.err.println("set mode to:" + mode); } catch (PortletModeException e) { throw new JspException("Unknown portlet mode in renderURL tag: " + portletMode); } } ServletRequest request = pageContext.getRequest(); String compId = (String) request.getAttribute(SportletProperties.GP_COMPONENT_ID); if (action != null) { if (compId == null) { actionURL.setAction(action); portletAction = new DefaultPortletAction(action); } else { actionURL.setAction(compId + "%" + action); portletAction = new DefaultPortletAction(compId + "%" + action); } } else { if (compId == null) { portletAction = new DefaultPortletAction(action); } else { portletAction = new DefaultPortletAction(compId + "%" + action); } } if (!paramBeans.isEmpty()) { String id = createUniquePrefix(2); Iterator it = paramBeans.iterator(); if (paramPrefixing) { actionURL.setParameter(SportletProperties.PREFIX, id); portletAction.addParameter(SportletProperties.PREFIX, id); } while (it.hasNext()) { ActionParamBean pbean = (ActionParamBean) it.next(); //System.err.println("have param bean name= " + pbean.getName() + " value= " + pbean.getValue()); if (paramPrefixing) { actionURL.setParameter(id + "_" + pbean.getName(), pbean.getValue()); portletAction.addParameter(id + "_" + pbean.getName(), pbean.getValue()); //actionURL.setParameter(pbean.getName(), pbean.getValue()); } else { actionURL.setParameter(pbean.getName(), pbean.getValue()); portletAction.addParameter(pbean.getName(), pbean.getValue()); } } } //System.err.println("printing action URL = " + actionURL.toString()); return actionURL.toString(); } | 49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/49160206f793102311146743fc9931966fc3e107/ActionTag.java/buggy/src/org/gridlab/gridsphere/provider/portletui/tags/ActionTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
780,
2640,
6479,
54,
1803,
3098,
12,
18566,
1785,
718,
13,
15069,
21796,
503,
95,
759,
7746,
69,
3098,
1213,
3280,
5787,
621,
267,
464,
28441,
2010,
3420,
607,
500,
550,
281,
28657,
3420... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4750,
780,
2640,
6479,
54,
1803,
3098,
12,
18566,
1785,
718,
13,
15069,
21796,
503,
95,
759,
7746,
69,
3098,
1213,
3280,
5787,
621,
267,
464,
28441,
2010,
3420,
607,
500,
550,
281,
28657,
3420... | ||
public void warn(Object message) { } | 6621 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6621/cc34204364349ccaf161351bdc86971b01963787/PluginLogger.java/clean/src/tiled/io/PluginLogger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
8935,
12,
921,
2150,
15329,
1082,
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,
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,
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,
482,
6459,
8935,
12,
921,
2150,
15329,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | ||
runQueryCheckResult( | assertQueryReturns( | public void testSolveOrderNonMeasure2() { runQueryCheckResult( "WITH" + nl + " MEMBER [Store].[StoreCalc] as '0', SOLVE_ORDER=0" + nl + " MEMBER [Product].[ProdCalc] as '1', SOLVE_ORDER=1" + nl + "SELECT" + nl + " { [Product].[ProdCalc] } ON columns," + nl + " { [Store].[StoreCalc] } ON rows" + nl + "FROM Sales", "Axis #0:" + nl + "{}" + nl + "Axis #1:" + nl + "{[Product].[ProdCalc]}" + nl + "Axis #2:" + nl + "{[Store].[StoreCalc]}" + nl + "Row #0: 1" + nl); } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/3041f930b5fc4bf6aa3339845b828801c1d8b366/BasicQueryTest.java/buggy/testsrc/main/mondrian/test/BasicQueryTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
55,
5390,
2448,
3989,
7197,
22,
1435,
288,
3639,
1815,
1138,
1356,
12,
7734,
315,
9147,
6,
397,
7741,
397,
7734,
315,
282,
18990,
6271,
306,
2257,
8009,
63,
2257,
25779,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
55,
5390,
2448,
3989,
7197,
22,
1435,
288,
3639,
1815,
1138,
1356,
12,
7734,
315,
9147,
6,
397,
7741,
397,
7734,
315,
282,
18990,
6271,
306,
2257,
8009,
63,
2257,
25779,
... |
return new Double(parseDouble(s)); | return new Double(val); | public static Double valueOf(String s) { return new Double(parseDouble(s)); } | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/4cfb23bf0c3cfbad22f148e981d49bf1ca6def84/Double.java/buggy/libraries/javalib/java/lang/Double.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
3698,
4323,
12,
780,
272,
13,
225,
288,
377,
327,
394,
3698,
12,
1125,
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,
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,
760,
3698,
4323,
12,
780,
272,
13,
225,
288,
377,
327,
394,
3698,
12,
1125,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
} else { | } else if (! (m_req instanceof CmsExportRequest)) { | public void initEncoding() { try { m_encoding = m_rb.readProperty(m_user, m_currentProject, getSiteRoot(m_req.getRequestedResource()), m_siteRoot, C_PROPERTY_CONTENT_ENCODING, true); } catch (CmsException e) { m_encoding = null; } if ((m_encoding != null) && ! "".equals(m_encoding)) { // encoding was read from resource property return; } else { if (A_OpenCms.C_LOGGING && A_OpenCms.isLogging(A_OpenCms.C_OPENCMS_DEBUG)) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_DEBUG, "[" + getClass().getName() + "] can't get encoding property for resource " + m_req.getRequestedResource() + ", trying to get it from session."); } I_CmsSession session = getSession(false); if (session != null) { m_encoding = (String)session.getValue(I_CmsConstants.C_SESSION_CONTENT_ENCODING); } } if (m_encoding == null || "".equals(m_encoding)) { // no encoding found - use default one if (A_OpenCms.C_LOGGING && A_OpenCms.isLogging(A_OpenCms.C_OPENCMS_DEBUG)) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_DEBUG, "[" + getClass().getName() + "] no encoding found - using default: " + A_OpenCms.getDefaultEncoding()); } m_encoding = A_OpenCms.getDefaultEncoding(); } } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/7600040f775e475a0c6d0f68c7591c202970a261/CmsRequestContext.java/clean/src/com/opencms/file/CmsRequestContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
4705,
1435,
288,
3639,
775,
288,
5411,
312,
67,
5999,
273,
312,
67,
6731,
18,
896,
1396,
12,
81,
67,
1355,
16,
312,
67,
2972,
4109,
16,
11021,
2375,
12,
81,
67,
3658,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1208,
4705,
1435,
288,
3639,
775,
288,
5411,
312,
67,
5999,
273,
312,
67,
6731,
18,
896,
1396,
12,
81,
67,
1355,
16,
312,
67,
2972,
4109,
16,
11021,
2375,
12,
81,
67,
3658,... |
wienerNumbers.add(wienerPathNumber); wienerNumbers.add(wienerPolarityNumber); return new DescriptorValue(getSpecification(), getParameterNames(), getParameters(), wienerNumbers); } | matr = connectionMatrix.getMatrix(atm.removeHydrogens(atomContainer)); int[][] distances = pathTools.computeFloydAPSP(matr); int partial = 0; for (int i = 0; i < distances.length; i++) { for (int j = 0; j < distances.length; j++) { partial = distances[i][j]; wienerPathNumber += partial; if (partial == 3) { wienerPolarityNumber += 1; } } } wienerPathNumber = wienerPathNumber / 2; wienerPolarityNumber = wienerPolarityNumber / 2; wienerNumbers.add(wienerPathNumber); wienerNumbers.add(wienerPolarityNumber); return new DescriptorValue(getSpecification(), getParameterNames(), getParameters(), wienerNumbers); } | public DescriptorValue calculate(AtomContainer atomContainer) throws CDKException { wienerNumbers = new DoubleArrayResult(2); double wienerPathNumber = 0; //weinerPath double wienerPolarityNumber = 0; //weinerPol // "matr" is the connection matrix matr = connectionMatrix.getMatrix(atm.removeHydrogens(atomContainer)); // and "distances" is ist matrix of int where // for example distance[1][2] = length of the shortest path // between atom at position 1 and atom at position 2. int[][] distances = pathTools.computeFloydAPSP(matr); int partial = 0; //wienerPolarityNumber = 0; for (int i = 0; i < distances.length; i++) { for (int j = 0; j < distances.length; j++) { partial = distances[i][j]; wienerPathNumber += partial; if (partial == 3) { wienerPolarityNumber += 1; } } } wienerPathNumber = wienerPathNumber / 2; wienerPolarityNumber = wienerPolarityNumber / 2; wienerNumbers.add(wienerPathNumber); wienerNumbers.add(wienerPolarityNumber); return new DescriptorValue(getSpecification(), getParameterNames(), getParameters(), wienerNumbers); } | 1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/e88aff6256434fd0d848e9691fb630fc9d73b3e7/WienerNumbersDescriptor.java/buggy/src/org/openscience/cdk/qsar/WienerNumbersDescriptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
12823,
620,
4604,
12,
3641,
2170,
22487,
13,
1216,
24570,
288,
202,
202,
91,
77,
708,
10072,
273,
394,
3698,
1076,
1253,
12,
22,
1769,
202,
202,
9056,
16138,
708,
743,
1854,
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,
12823,
620,
4604,
12,
3641,
2170,
22487,
13,
1216,
24570,
288,
202,
202,
91,
77,
708,
10072,
273,
394,
3698,
1076,
1253,
12,
22,
1769,
202,
202,
9056,
16138,
708,
743,
1854,
2... |
public boolean select(Viewer viewer, Object parent, Object element) { | public boolean select(Viewer viewer, Object parent, Object object) { | public boolean select(Viewer viewer, Object parent, Object element) { try { if (!(viewer instanceof StructuredViewer)) return true; if (!containsMylarInterestFilter((StructuredViewer) viewer)) return true; if (temporarilyUnfiltered != null && temporarilyUnfiltered.equals(parent)) return true; IMylarElement node = null; if (element instanceof IMylarElement) { node = (IMylarElement) element; } else { IMylarStructureBridge bridge = MylarPlugin.getDefault().getStructureBridge(element); if (!bridge.canFilter(element)) { return true; } if (isImplicitlyInteresting(element, bridge)) { return true; } if (!element.getClass().getName().equals("java.lang.Object")) { String handle = bridge.getHandleIdentifier(element); node = MylarPlugin.getContextManager().getElement(handle); } else { return true; } } if (node != null) { if (node.getInterest().isPredicted()) { return false; } else { return node.getInterest().getValue() > MylarContextManager.getScalingFactors().getInteresting(); } } } catch (Throwable t) { MylarStatusHandler.log(t, "interest filter failed on viewer: " + viewer.getClass()); } return false; } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/493d4943b68ff82183673436879f7d594418fd76/InterestFilter.java/buggy/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/provisional/ui/InterestFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
2027,
12,
18415,
14157,
16,
1033,
982,
16,
1033,
930,
13,
288,
202,
202,
698,
288,
1082,
202,
430,
16051,
12,
25256,
1276,
7362,
2862,
18415,
3719,
9506,
202,
2463,
638,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2027,
12,
18415,
14157,
16,
1033,
982,
16,
1033,
930,
13,
288,
202,
202,
698,
288,
1082,
202,
430,
16051,
12,
25256,
1276,
7362,
2862,
18415,
3719,
9506,
202,
2463,
638,
... |
boolean includeNodeQueries = false; | public PrefabGraph[] getAllQueries(String nodeOrDomain, boolean isNode) { if (nodeOrDomain == null) { throw new IllegalArgumentException("Cannot take null parameters."); } Category log = ThreadCategory.getInstance(this.getClass()); boolean includeNodeQueries = false; HashMap queryCount = new HashMap(); String mostFreqQuery = "none"; int mostFreqCount = 0; // get the full list of all possible queries PrefabGraph[] queries = getQueries(); File nodeOrDomainDir = new File(getRrdDirectory(), nodeOrDomain); // get each interface directory File[] intfDir = nodeOrDomainDir.listFiles(RrdFileConstants.INTERFACE_DIRECTORY_FILTER); // for each interface directory, get all available data sources for (int j = 0; j < intfDir.length; j++) { String dirName = intfDir[j].getName(); // List availDataSourceList = getDataSourceList(nodeOrDomain, dirName, includeNodeQueries, isNode); // for each query, see if all the required data sources are available // in the available data source list, if so, add that query to the // queryCount HashMap // for (int i = 0; i < queries.length; i++) { String qname = queries[i].getName(); List requiredList = Arrays.asList(queries[i].getColumns()); if (availDataSourceList.containsAll(requiredList)) { if(isNode || queries[i].getExternalValues().length == 0) { if(queryCount.containsKey(queries[i])) { int x = ( (Integer) queryCount.get(queries[i])).intValue(); queryCount.put(queries[i], new Integer(x++)); } else { queryCount.put(queries[i], new Integer(1)); } if(( (Integer) queryCount.get(queries[i])).intValue() > mostFreqCount) { mostFreqCount = ( (Integer) queryCount.get(queries[i])).intValue(); mostFreqQuery = qname; } } } } } // put the queries in queryCount keySet into an array PrefabGraph[] availQueries = (PrefabGraph[]) queryCount.keySet().toArray(new PrefabGraph[queryCount.size() + 1]); // determine working default graph and copy to end of array. It will be pulled // off again by the calling method. for(int i = 0; i < queryCount.size(); i++ ) { if(availQueries[i].getName().equals(getDefaultReport())) { availQueries[queryCount.size()] = availQueries[i]; break; } if(availQueries[i].getName().equals(mostFreqQuery)) { availQueries[queryCount.size()] = availQueries[i]; } } if (log.isDebugEnabled() && queryCount.size() > 0) { if(availQueries[queryCount.size()].getName().equals(getDefaultReport())) { log.debug("Found default report " + getDefaultReport() + " in list of available queries"); } else { log.debug("Default report " + getDefaultReport() + " not found in list of available queries. Using most frequent query " + mostFreqQuery + " as the default."); } } return availQueries; } | 11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/4dfa1b0a6361605a11fa0a1aff4926bbee3e6246/GraphModelAbstract.java/buggy/src/web/src/org/opennms/web/graph/GraphModelAbstract.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
28184,
378,
4137,
8526,
5514,
9592,
12,
780,
756,
1162,
3748,
16,
1250,
28452,
13,
288,
3639,
309,
261,
2159,
1162,
3748,
422,
446,
13,
288,
5411,
604,
394,
2754,
2932,
4515,
4862,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28184,
378,
4137,
8526,
5514,
9592,
12,
780,
756,
1162,
3748,
16,
1250,
28452,
13,
288,
3639,
309,
261,
2159,
1162,
3748,
422,
446,
13,
288,
5411,
604,
394,
2754,
2932,
4515,
4862,
... | |
Collection changeListenerCollection = (Collection) staleListeners; | Collection staleListenerCollection = (Collection) staleListeners; | protected void fireStale() { if (staleListeners == null) { return; } if (staleListeners instanceof IChangeListener) { ((IChangeListener) staleListeners).handleChange(this); return; } Collection changeListenerCollection = (Collection) staleListeners; IChangeListener[] listeners = (IChangeListener[]) (changeListenerCollection) .toArray(new IChangeListener[changeListenerCollection.size()]); for (int i = 0; i < listeners.length; i++) { listeners[i].handleChange(this); } } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/09ae5bf38368b4a07d2daab81a60821fe03e1ff5/AbstractObservable.java/buggy/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/provisional/observable/AbstractObservable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4452,
19155,
1435,
288,
202,
202,
430,
261,
334,
5349,
5583,
422,
446,
13,
288,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
430,
261,
334,
5349,
5583,
1276,
467,
15744,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4452,
19155,
1435,
288,
202,
202,
430,
261,
334,
5349,
5583,
422,
446,
13,
288,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
430,
261,
334,
5349,
5583,
1276,
467,
15744,... |
return defineModuleUnder(name, objectClass); | return defineModuleUnder(name, objectClass.getCRef()); | public RubyModule defineModule(String name) { return defineModuleUnder(name, objectClass); } | 46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/a1b8fc1d456e3d5c6e01579b88773383068aa85c/Ruby.java/buggy/src/org/jruby/Ruby.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
3120,
4426,
3120,
12,
780,
508,
13,
288,
3639,
327,
4426,
3120,
14655,
12,
529,
16,
23992,
18,
588,
39,
1957,
10663,
565,
289,
2,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
3120,
4426,
3120,
12,
780,
508,
13,
288,
3639,
327,
4426,
3120,
14655,
12,
529,
16,
23992,
18,
588,
39,
1957,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return contextID; | return myID; | public String getID() { return contextID; } | 45545 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45545/e5817d0232fa324d737a75370dab7be2b3032047/KJASAppletContext.java/buggy/khtml/java/org/kde/kjas/server/KJASAppletContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
14744,
1435,
565,
288,
3639,
327,
3399,
734,
31,
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,
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,
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,
377,
1071,
514,
14744,
1435,
565,
288,
3639,
327,
3399,
734,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (currentUrl.equals(url)) { if (currentPathFont == null) { Font defaultFont = JFaceResources.getDefaultFont(); FontData[] data = defaultFont.getFontData(); for (int i = 0; i < data.length; i++) { data[i].setStyle(SWT.BOLD); } currentPathFont = new Font(viewer.getTable().getDisplay(), data); } return currentPathFont; | if (currentPathFont == null) { Font defaultFont = JFaceResources.getDefaultFont(); FontData[] data = defaultFont.getFontData(); for (int i = 0; i < data.length; i++) { data[i].setStyle(SWT.BOLD); } currentPathFont = new Font(getControl().getDisplay(), data); | public Font getFont(Object element) { LogEntryChangePath changePath = (LogEntryChangePath)element; if (changePath == null) return null; SVNUrl url = changePath.getUrl(); if (url == null) { return null; } ISVNRemoteResource remoteResource = currentLogEntry.getRemoteResource(); if (remoteResource == null) { return null; } SVNUrl currentUrl = remoteResource.getUrl(); if (currentUrl == null) { return null; } if (currentUrl.equals(url)) { if (currentPathFont == null) { Font defaultFont = JFaceResources.getDefaultFont(); FontData[] data = defaultFont.getFontData(); for (int i = 0; i < data.length; i++) { data[i].setStyle(SWT.BOLD); } currentPathFont = new Font(viewer.getTable().getDisplay(), data); } return currentPathFont; } return null; } | 6016 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6016/3802873fa3a6a3dd1bff7aa70a056bf7e3c86beb/ChangePathsTableProvider.java/clean/subclipse/ui/src/org/tigris/subversion/subclipse/ui/history/ChangePathsTableProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
10063,
18776,
12,
921,
930,
13,
288,
5411,
30039,
3043,
743,
2549,
743,
273,
261,
25548,
3043,
743,
13,
2956,
31,
5411,
309,
261,
3427,
743,
422,
446,
13,
7734,
327,
446,
31,
1349... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10063,
18776,
12,
921,
930,
13,
288,
5411,
30039,
3043,
743,
2549,
743,
273,
261,
25548,
3043,
743,
13,
2956,
31,
5411,
309,
261,
3427,
743,
422,
446,
13,
7734,
327,
446,
31,
1349... |
public IRubyObject method_missing(IRubyObject symbol, IRubyObject[] args) { throw new NameError(getRuntime(), "Undefined local variable or method '" + symbol.toId() + "' for " + inspect().getValue()); | public IRubyObject method_missing(IRubyObject[] args) { if (args.length == 0) { throw new ArgumentError(getRuntime(), "no id given"); } String name = args[0].toId(); String description = callMethod("inspect").toString(); boolean noClass = description.charAt(0) == '#'; if (isNil()) { noClass = true; description = "nil"; } else if (this == ruby.getTrue()) { noClass = true; description = "true"; } else if (this == ruby.getFalse()) { noClass = true; description = "false"; } String format = "Undefined method '%s' for %s%s%s"; if (ruby.getLastCallStatus().isPrivate()) { format = "private method '%s' called for %s%s%s"; } else if (ruby.getLastCallStatus().isProtected()) { format = "protected method '%s' called for %s%s%s"; } else if (ruby.getLastCallStatus().isVariable()) { if (IdUtil.isLocal(name)) { format = "Undefined local variable or method '%s' for %s%s%s"; } } String msg = new PrintfFormat(format).sprintf( new Object[] { name, description, noClass ? "" : ":", noClass ? "" : getType().toName()}); ruby.getFrameStack().push(ruby.getFrameStack().getPrevious()); try { throw new NameError(getRuntime(), msg); } finally { ruby.getFrameStack().pop(); } | public IRubyObject method_missing(IRubyObject symbol, IRubyObject[] args) { throw new NameError(getRuntime(), "Undefined local variable or method '" + symbol.toId() + "' for " + inspect().getValue()); } | 47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/cfb1b4132c30e5186c41e9dbf0b92acca72fcf81/RubyObject.java/buggy/org/jruby/RubyObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
707,
67,
7337,
12,
7937,
10340,
921,
3273,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
604,
394,
25473,
12,
588,
5576,
9334,
18701,
315,
10317,
1191,
2190,
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,
1071,
15908,
10340,
921,
707,
67,
7337,
12,
7937,
10340,
921,
3273,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
604,
394,
25473,
12,
588,
5576,
9334,
18701,
315,
10317,
1191,
2190,
5... |
if (imageHandle == null) imageCache.put(mergedImageData, imageHandle = new ImageHandle(new Image(display, scaledImageData))); | if (imageHandle == null) { imageHandle = new ImageHandle(new Image(display, scaledImageData)); imageCache.put(mergedImageData, imageHandle); } | private ImageHandle getIconImage(Color background, String icon) { ImageHandle imageHandle = null; if (icon == null || icon.length() == 0) return null; ImageData scaledImageData = (ImageData) imageCache.get(icon); try { if (scaledImageData == null) { System.out.println("Loading image: " + icon); Image image = new Image(display, BaseResources.getResourceAsStream(icon)); ImageData imageData = image.getImageData(); image.dispose(); int scaledHeight = 20; imageCache.put(icon, scaledImageData = imageData.scaledTo( imageData.width * scaledHeight / imageData.height, scaledHeight)); } ImageData mergedImageData = imageMerger.merge(background, scaledImageData); imageHandle = (ImageHandle) imageCache.get(mergedImageData); if (imageHandle == null) imageCache.put(mergedImageData, imageHandle = new ImageHandle(new Image(display, scaledImageData))); return imageHandle; } catch (IOException e) { e.printStackTrace(); } return null; } | 11635 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11635/1910eb8d061c1ff5a507ad5297ee751ca634fbd2/TrackTable.java/buggy/trunk/irate/irate/swt/TrackTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
3421,
3259,
21724,
2040,
12,
2957,
5412,
16,
514,
4126,
13,
288,
565,
3421,
3259,
1316,
3259,
273,
446,
31,
565,
309,
261,
3950,
422,
446,
747,
4126,
18,
2469,
1435,
422,
374,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3421,
3259,
21724,
2040,
12,
2957,
5412,
16,
514,
4126,
13,
288,
565,
3421,
3259,
1316,
3259,
273,
446,
31,
565,
309,
261,
3950,
422,
446,
747,
4126,
18,
2469,
1435,
422,
374,
13,... |
this(method, '\0', language); | this(ClassType.make(className).getDeclaredMethod(methodName, numArgs)); | public PrimProcedure(Method method, Language language) { this(method, '\0', language); } | 36952 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36952/fd553b4da7bfe1543c40afbc054fca94f371e9fb/PrimProcedure.java/clean/gnu/expr/PrimProcedure.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2301,
381,
17213,
12,
1305,
707,
16,
9889,
2653,
13,
225,
288,
565,
333,
12,
18328,
18,
6540,
12,
12434,
2934,
588,
18888,
1305,
12,
2039,
461,
16,
818,
2615,
10019,
225,
289,
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,
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,
2301,
381,
17213,
12,
1305,
707,
16,
9889,
2653,
13,
225,
288,
565,
333,
12,
18328,
18,
6540,
12,
12434,
2934,
588,
18888,
1305,
12,
2039,
461,
16,
818,
2615,
10019,
225,
289,
2,
... |
checkParserState(xpp, 0, xpp.END_DOCUMENT, null, null, false, -1); | checkParserState(xpp, 0, XmlPullParser.END_DOCUMENT, null, null, false, -1); | public void testSimpleWriter() throws Exception { XmlSerializer ser = factory.newSerializer(); PackageTests.addNote("* default serializer "+ser.getClass()+"\n"); //assert there is error if trying to write //assert there is error if trying to write try { ser.startTag(null, "foo"); fail("exception was expected of serializer if no input was set on parser"); } catch(Exception ex) {} ser.setOutput(null); //assert there is error if trying to write try { ser.startTag(null, "foo"); fail("exception was expected of serializer if no input was set on parser"); } catch(Exception ex) {} StringWriter sw = new StringWriter(); ser.setOutput(sw); try { ser.setOutput(null, null); fail("exception was expected of setOutput() if output stream is null"); } catch(IllegalArgumentException ex) {} //check get property ser.setOutput(sw); //assertEquals(null, ser.getOutputEncoding()); ser.startDocument("ISO-8859-1", Boolean.TRUE); ser.startTag(null, "foo"); ser.endTag(null, "foo"); ser.endDocument(); // now validate that can be deserialzied //xpp.setInput(new StringReader("<foo></foo>")); String serialized = sw.toString(); xpp.setInput(new StringReader(serialized)); assertEquals(null, xpp.getInputEncoding()); checkParserState(xpp, 0, xpp.START_DOCUMENT, null, null, false, -1); xpp.next(); checkParserState(xpp, 1, xpp.START_TAG, "foo", null, xpp.isEmptyElementTag() /*empty*/, 0); xpp.next(); checkParserState(xpp, 1, xpp.END_TAG, "foo", null, false, -1); xpp.next(); checkParserState(xpp, 0, xpp.END_DOCUMENT, null, null, false, -1); } | 3949 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3949/25be6df80154469aacea3441a8e7758596d46574/TestSerialize.java/buggy/src/java/tests/org/xmlpull/v1/tests/TestSerialize.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5784,
2289,
1435,
1216,
1185,
288,
3639,
5714,
6306,
703,
273,
3272,
18,
2704,
6306,
5621,
3639,
7508,
14650,
18,
1289,
8067,
2932,
14,
805,
6340,
13773,
550,
18,
588,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5784,
2289,
1435,
1216,
1185,
288,
3639,
5714,
6306,
703,
273,
3272,
18,
2704,
6306,
5621,
3639,
7508,
14650,
18,
1289,
8067,
2932,
14,
805,
6340,
13773,
550,
18,
588,
79... |
super(frame, "Set Dimensions", true); | super(frame, Messages.getString("BoardEditor.SetDimentions"), true); | public BoardNewDialog(Frame frame, String[] hexList, int hexSelected) { super(frame, "Set Dimensions", true); xvalue = 0; yvalue = 0; labWidth = new Label("Width:", Label.RIGHT); labHeight = new Label("Height:", Label.RIGHT); texWidth = new TextField("16", 2); texHeight = new TextField("17", 2); butOkay = new Button("Okay"); butOkay.setActionCommand("done"); butOkay.addActionListener(this); butOkay.setSize(80, 24); butCancel = new Button("Cancel"); butCancel.setActionCommand("cancel"); butCancel.addActionListener(this); butCancel.setSize(80, 24); GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); setLayout(gridbag); c.fill = GridBagConstraints.NONE; c.weightx = 0.0; c.weighty = 0.0; c.insets = new Insets(5, 5, 1, 1); gridbag.setConstraints(labWidth, c); add(labWidth); c.gridwidth = GridBagConstraints.REMAINDER; gridbag.setConstraints(texWidth, c); add(texWidth); c.gridwidth = GridBagConstraints.RELATIVE; gridbag.setConstraints(labHeight, c); add(labHeight); c.gridwidth = GridBagConstraints.REMAINDER; gridbag.setConstraints(texHeight, c); add(texHeight); c.ipadx = 20; c.ipady = 5; c.gridwidth = GridBagConstraints.RELATIVE; gridbag.setConstraints(butOkay, c); add(butOkay); c.gridwidth = GridBagConstraints.REMAINDER; gridbag.setConstraints(butCancel, c); add(butCancel); pack(); setResizable(false); setLocation(frame.getLocation().x + frame.getSize().width/2 - getSize().width/2, frame.getLocation().y + frame.getSize().height/2 - getSize().height/2); } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/18ec0036f3c5df3d8fbef60e9dd53cc153fc889e/BoardEditor.java/clean/megamek/src/megamek/client/ui/AWT/BoardEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
17980,
1060,
1908,
6353,
12,
3219,
2623,
16,
514,
8526,
3827,
682,
16,
509,
3827,
7416,
13,
288,
3639,
2240,
12,
3789,
16,
4838,
18,
588,
780,
2932,
22233,
6946,
18,
694,
5225,
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,
377,
1071,
17980,
1060,
1908,
6353,
12,
3219,
2623,
16,
514,
8526,
3827,
682,
16,
509,
3827,
7416,
13,
288,
3639,
2240,
12,
3789,
16,
4838,
18,
588,
780,
2932,
22233,
6946,
18,
694,
5225,
22... |
public synchronized AEDesc execute() throws OSAException { | public AEDesc execute() throws OSAException, IllegalStateException { | public synchronized AEDesc execute() throws OSAException { int errorCode = ExecuteOSAScript(ptr); if (errorCode < 0) { throw (new OSAException(this, errorCode)); } AEDesc desc = new AEDesc(this); return (desc.getData() != null) ? desc : null; } | 5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/3b23cd7ffa5bf639a453013353d8e77b377d1325/OSAScript.java/buggy/components/gnutella-core/de/kapsi/util/OSAScript.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
432,
2056,
742,
1836,
1435,
1216,
531,
5233,
503,
288,
202,
202,
474,
12079,
273,
7903,
4618,
37,
3651,
12,
6723,
1769,
9506,
202,
430,
261,
27754,
411,
374,
13,
288,
1082,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3852,
432,
2056,
742,
1836,
1435,
1216,
531,
5233,
503,
288,
202,
202,
474,
12079,
273,
7903,
4618,
37,
3651,
12,
6723,
1769,
9506,
202,
430,
261,
27754,
411,
374,
13,
288,
1082,
... |
public void removeMenuKeyListener(MenuKeyListener listener) { } | public void removeMenuKeyListener(MenuKeyListener listener) { } | public void removeMenuKeyListener(MenuKeyListener listener) { // TODO } // removeMenuKeyListener() | 13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/14511e3ad21013e92c6399b2bd2ec09a8263e33a/JMenuItem.java/clean/libjava/javax/swing/JMenuItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1206,
4599,
653,
2223,
12,
4599,
653,
2223,
2991,
13,
288,
202,
202,
759,
2660,
202,
97,
368,
1206,
4599,
653,
2223,
1435,
2,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1206,
4599,
653,
2223,
12,
4599,
653,
2223,
2991,
13,
288,
202,
202,
759,
2660,
202,
97,
368,
1206,
4599,
653,
2223,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if (SchemaParticle.ELEMENT == parametersType.getParticleType()) { expectedInParams.add(parametersType.getName().getLocalPart()); } else if (SchemaParticle.SEQUENCE == parametersType.getParticleType()) { SchemaParticle[] parameters = parametersType.getParticleChildren(); for (int i = 0; i < parameters.length; i++) { expectedInParams.add(parameters[i].getName().getLocalPart()); | if (parametersType != null) { if (SchemaParticle.ELEMENT == parametersType.getParticleType()) { expectedInParams.add(parametersType.getName().getLocalPart()); } else if (SchemaParticle.SEQUENCE == parametersType.getParticleType()) { SchemaParticle[] parameters = parametersType.getParticleChildren(); for (int i = 0; i < parameters.length; i++) { expectedInParams.add(parameters[i].getName().getLocalPart()); } | public OperationDesc buildOperationDesc() throws DeploymentException { if (built) { return operationDesc; } built = true; operationDesc.setName(operationName); // Set to 'document', 'rpc' or 'wrapped' if (wrappedStyle) { operationDesc.setStyle(Style.WRAPPED); } else if (rpcStyle) { operationDesc.setStyle(Style.RPC); } else { operationDesc.setStyle(Style.DOCUMENT); } // Set to 'encoded' or 'literal' Use use = Use.getUse(soapBody.getUse()); operationDesc.setUse(use); MethodParamPartsMappingType[] paramMappings = methodMapping.getMethodParamPartsMappingArray(); /* Put the ParameterDesc instance in an array so they can be ordered properly * before they are added to the the OperationDesc. */ ParameterDesc[] parameterDescriptions = new ParameterDesc[paramMappings.length]; // MAP PARAMETERS for (int i = 0; i < paramMappings.length; i++) { MethodParamPartsMappingType paramMapping = paramMappings[i]; int position = paramMapping.getParamPosition().getBigIntegerValue().intValue(); ParameterDesc parameterDesc = mapParameter(paramMapping); parameterDescriptions[position] = parameterDesc; } if (wrappedStyle) { Part inputPart = getWrappedPart(input); QName name = inputPart.getElementName(); SchemaType operationType = (SchemaType) schemaInfoBuilder.getComplexTypesInWsdl().get(name); Set expectedInParams = new HashSet(); // schemaType should be complex using xsd:sequence compositor SchemaParticle parametersType = operationType.getContentModel(); if (SchemaParticle.ELEMENT == parametersType.getParticleType()) { expectedInParams.add(parametersType.getName().getLocalPart()); } else if (SchemaParticle.SEQUENCE == parametersType.getParticleType()) { SchemaParticle[] parameters = parametersType.getParticleChildren(); for (int i = 0; i < parameters.length; i++) { expectedInParams.add(parameters[i].getName().getLocalPart()); } } if (!inParamNames.equals(expectedInParams)) { throw new DeploymentException("Not all wrapper children were mapped for operation name" + operationName); } } else { //check that all input message parts are mapped if (!inParamNames.equals(input.getParts().keySet())) { throw new DeploymentException("Not all input message parts were mapped for operation name" + operationName); } } Class[] paramTypes = new Class[parameterDescriptions.length]; for (int i = 0; i < parameterDescriptions.length; i++) { ParameterDesc parameterDescription = parameterDescriptions[i]; if (parameterDescription == null) { throw new DeploymentException("There is no mapping for parameter number " + i + " for operation " + operationName); } operationDesc.addParameter(parameterDescription); paramTypes[i] = parameterDescription.getJavaType(); } String methodName = methodMapping.getJavaMethodName().getStringValue().trim(); Method method = null; try { method = serviceEndpointInterface.getMethod(methodName, paramTypes); } catch (NoSuchMethodException e) { String args = "("; for (int i = 0; i < paramTypes.length; i++) { args += paramTypes[i].getName(); if (i < paramTypes.length - 1) { args += ","; } } args += ")"; throw new DeploymentException("Mapping references non-existent method in service-endpoint: " + methodName + args); } operationDesc.setMethod(method); // MAP RETURN TYPE operationDesc.setMep(operation.getStyle()); if (methodMapping.isSetWsdlReturnValueMapping()) { mapReturnType(); } else if (operation.getStyle() == OperationType.REQUEST_RESPONSE) { //TODO WARNING THIS APPEARS TO SUBVERT THE COMMENT IN j2ee_jaxrpc_mapping_1_1.xsd IN service-endpoint-method-mappingType: //The wsdl-return-value-mapping is not specified for one-way operations. operationDesc.setReturnQName(null); //?? operationDesc.setReturnType(XMLType.AXIS_VOID); operationDesc.setReturnClass(void.class); } if (null != output && wrappedStyle) { Part inputPart = getWrappedPart(output); QName name = inputPart.getElementName(); SchemaType operationType = (SchemaType) schemaInfoBuilder.getComplexTypesInWsdl().get(name); Set expectedOutParams = new HashSet(); // schemaType should be complex using xsd:sequence compositor SchemaParticle parametersType = operationType.getContentModel(); if (SchemaParticle.ELEMENT == parametersType.getParticleType()) { expectedOutParams.add(parametersType.getName().getLocalPart()); } else if (SchemaParticle.SEQUENCE == parametersType.getParticleType()) { SchemaParticle[] parameters = parametersType.getParticleChildren(); for (int i = 0; i < parameters.length; i++) { expectedOutParams.add(parameters[i].getName().getLocalPart()); } } if (!outParamNames.equals(expectedOutParams)) { throw new DeploymentException("Not all wrapper children were mapped to parameters or a return value for operation " + operationName); } } else if (null != output) { if (!outParamNames.equals(output.getParts().keySet())) { throw new DeploymentException("Not all output message parts were mapped to parameters or a return value for operation " + operationName); } } Map faultMap = operation.getFaults(); for (Iterator iterator = faultMap.entrySet().iterator(); iterator.hasNext();) { Map.Entry entry = (Map.Entry) iterator.next(); String faultName = (String) entry.getKey(); Fault fault = (Fault) entry.getValue(); FaultDesc faultDesc = mapException(faultName, fault); operationDesc.addFault(faultDesc); } return operationDesc; } | 12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/9f5925821d4ce102c8f423fc491d363d8266386d/HeavyweightOperationDescBuilder.java/buggy/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/HeavyweightOperationDescBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4189,
4217,
1361,
2988,
4217,
1435,
1216,
8587,
503,
288,
3639,
309,
261,
12406,
13,
288,
5411,
327,
1674,
4217,
31,
3639,
289,
3639,
6650,
273,
638,
31,
3639,
1674,
4217,
18,
542,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4189,
4217,
1361,
2988,
4217,
1435,
1216,
8587,
503,
288,
3639,
309,
261,
12406,
13,
288,
5411,
327,
1674,
4217,
31,
3639,
289,
3639,
6650,
273,
638,
31,
3639,
1674,
4217,
18,
542,
... |
{ drop_candidate = getRealPosition(canvas, event.x, event.y); redraw(); } | { drop_candidate = getRealPosition(canvas, event.x, event.y); redraw(); } | public void dragOver(DropTargetEvent event) { drop_candidate = getRealPosition(canvas, event.x, event.y); redraw(); } | 58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/f108b91f23d3921477ab2d7b4095ab25776a5e11/SpoonGraph.java/clean/kettle/src/be/ibridge/kettle/spoon/SpoonGraph.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
8823,
4851,
12,
7544,
2326,
1133,
871,
13,
5411,
288,
7734,
3640,
67,
19188,
273,
12361,
2555,
12,
15424,
16,
871,
18,
92,
16,
871,
18,
93,
1769,
7734,
16540,
5621,
5411,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
8823,
4851,
12,
7544,
2326,
1133,
871,
13,
5411,
288,
7734,
3640,
67,
19188,
273,
12361,
2555,
12,
15424,
16,
871,
18,
92,
16,
871,
18,
93,
1769,
7734,
16540,
5621,
5411,
28... |
public void set(org.quickfix.field.EventType value) | public void set(quickfix.field.EventType value) | public void set(org.quickfix.field.EventType value) { setField(value); } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/MarketDataIncrementalRefresh.java/clean/src/java/src/quickfix/fix44/MarketDataIncrementalRefresh.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
12,
19525,
904,
18,
1518,
18,
16346,
460,
13,
225,
288,
16331,
12,
1132,
1769,
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,
918,
444,
12,
19525,
904,
18,
1518,
18,
16346,
460,
13,
225,
288,
16331,
12,
1132,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
logger.severe(localizer.format("ErrorHandler.Prompt")); | logger.severe(prompt); | protected String promptAndReadLine() throws IOException, HelpingException { logger.severe(localizer.format("ErrorHandler.Prompt")); StringBuffer sb = new StringBuffer(); for (int c = System.in.read(); c > 0; c = System.in.read()) { if (c == '\n') { sb.append((char) c); return sb.toString(); } else if (c != ' ' || sb.length() > 0) { sb.append((char) c); } } if (sb.length() > 0) { return sb.toString(); } throw new HelpingException(localizer, "TTP.EOFonTerm"); } | 9123 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9123/61d41588ac8e1489b89e3de88a9e3da30c1fdecd/ErrorHandlerImpl.java/clean/ExTeX/src/java/de/dante/extex/main/errorHandler/ErrorHandlerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
6866,
1876,
1994,
1670,
1435,
1216,
1860,
16,
670,
292,
1382,
503,
288,
3639,
1194,
18,
307,
502,
73,
12,
13325,
1769,
3639,
6674,
2393,
273,
394,
6674,
5621,
3639,
364,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4750,
514,
6866,
1876,
1994,
1670,
1435,
1216,
1860,
16,
670,
292,
1382,
503,
288,
3639,
1194,
18,
307,
502,
73,
12,
13325,
1769,
3639,
6674,
2393,
273,
394,
6674,
5621,
3639,
364,
261,
... |
if ((java.lang.Thread.currentThread() != null) && (java.lang.Thread.currentThread() instanceof RealtimeThread) && (currentRealtimeThread().mem != null)) { mem = currentRealtimeThread().mem; } else if (mem == null) { mem = HeapMemory.instance(); | if ((java.lang.Thread.currentThread() != null) && (java.lang.Thread.currentThread() instanceof RealtimeThread) && (currentRealtimeThread().mem != null)) { mem = currentRealtimeThread().mem; } else if (mem == null) { mem = HeapMemory.instance(); | public void run() { // When the run method is called, // RealtimeThread points to the current scope. if ((java.lang.Thread.currentThread() != null) && (java.lang.Thread.currentThread() instanceof RealtimeThread) && (currentRealtimeThread().mem != null)) { mem = currentRealtimeThread().mem; } else if (mem == null) { mem = HeapMemory.instance(); } super.run(); } | 2866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2866/7554baf2d9491fc92385a1c03f282b4e1d23bc72/RealtimeThread.java/clean/RealtimeThread.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1086,
1435,
288,
368,
5203,
326,
1086,
707,
353,
2566,
16,
15604,
368,
15987,
957,
3830,
3143,
358,
326,
783,
2146,
18,
565,
309,
14015,
6290,
18,
4936,
18,
3830,
18,
2972,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
1435,
288,
368,
5203,
326,
1086,
707,
353,
2566,
16,
15604,
368,
15987,
957,
3830,
3143,
358,
326,
783,
2146,
18,
565,
309,
14015,
6290,
18,
4936,
18,
3830,
18,
2972,
3... |
pushEnableBit(defineEvaluatedToTrue); | pushEnableBit(enabled() && defineEvaluatedToTrue == isIf); | private void handleIf(boolean isIf) throws IOException { //System.out.println("IN HANDLE_" + (isIf ? "IF" : "ELIF") + " file \"" + filename() + " line " + lineNumber()); debugPrint(true, (isIf ? "#if" : "#elif")); boolean defineEvaluatedToTrue = handleIfRecursive(true); if (!isIf) { popEnableBit(); } pushEnableBit(defineEvaluatedToTrue); //System.out.println("OUT HANDLE_" + (isIf ? "IF" : "ELIF") +" (evaluated to " + defineEvaluatedToTrue + ")"); } | 48987 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48987/23fdd9dbd509c921e1408f8c36caa57252118963/PCPP.java/buggy/src/java/com/sun/gluegen/pcpp/PCPP.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1640,
2047,
12,
6494,
353,
2047,
13,
1216,
1860,
288,
565,
368,
3163,
18,
659,
18,
8222,
2932,
706,
24166,
900,
9548,
397,
261,
291,
2047,
692,
315,
5501,
6,
294,
315,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
1640,
2047,
12,
6494,
353,
2047,
13,
1216,
1860,
288,
565,
368,
3163,
18,
659,
18,
8222,
2932,
706,
24166,
900,
9548,
397,
261,
291,
2047,
692,
315,
5501,
6,
294,
315,
41,
... |
throw newValue.getRuntime().newNameError(name + " is a read-only variable"); | throw newValue.getRuntime().newNameError(name + " is a read-only variable", name); | public IRubyObject setValue(IRubyObject newValue) { assert newValue != null; throw newValue.getRuntime().newNameError(name + " is a read-only variable"); } | 49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/1278c5bb3507a052d150d814f15453542ae41aed/ReadonlyAccessor.java/clean/src/org/jruby/internal/runtime/ReadonlyAccessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
5524,
12,
7937,
10340,
921,
6129,
13,
288,
3639,
1815,
6129,
480,
446,
31,
3639,
604,
6129,
18,
588,
5576,
7675,
2704,
461,
668,
12,
529,
397,
315,
353,
279,
85... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
15908,
10340,
921,
5524,
12,
7937,
10340,
921,
6129,
13,
288,
3639,
1815,
6129,
480,
446,
31,
3639,
604,
6129,
18,
588,
5576,
7675,
2704,
461,
668,
12,
529,
397,
315,
353,
279,
85... |
public boolean savePlugin(Description description) throws PlatformException | public boolean savePlugin(IPlugin plugin) throws PlatformException | public boolean savePlugin(Description description) throws PlatformException { return _currentPluginManager.savePlugin(description); } | 12741 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12741/8a2d01e4a747d2aea705ae972a8f84f07ee29183/PluginManagerHolder.java/clean/salomon/platform/trunk/src/salomon/engine/platform/holder/PluginManagerHolder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1923,
3773,
12,
3291,
2477,
13,
1216,
11810,
503,
202,
95,
3639,
327,
389,
2972,
3773,
1318,
18,
5688,
3773,
12,
3384,
1769,
202,
97,
2,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1923,
3773,
12,
3291,
2477,
13,
1216,
11810,
503,
202,
95,
3639,
327,
389,
2972,
3773,
1318,
18,
5688,
3773,
12,
3384,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-1... |
return (stringArray[index]); | return (stringIndexed[index]); | public String getStringIndexed(int index) { return (stringArray[index]); } | 48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/e2dd2444a8b3e24355352a068345621a879c7004/TestBean.java/clean/src/test/org/apache/struts/test/TestBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
4997,
15034,
12,
474,
770,
13,
288,
3639,
327,
261,
1080,
15034,
63,
1615,
19226,
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,... | [
1,
1,
1,
1,
1,
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,
377,
1071,
514,
4997,
15034,
12,
474,
770,
13,
288,
3639,
327,
261,
1080,
15034,
63,
1615,
19226,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.