rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
list
attention_mask
list
labels
list
else{ ClassView classView = getRepositoryManager().getClassView(); deprecated = classView.isDeprecated(getRepositoryId()); if (!deprecated && classView.mayBeDeprecatedByAnnotation(getRepositoryId())) { deprecated = getModifierList().findAnnotation("java.lang.Deprecated") != null; }
} else { ClassView classView = getRepositoryManager().getClassView(); deprecated = classView.isDeprecated(getRepositoryId()); if (!deprecated && classView.mayBeDeprecatedByAnnotation(getRepositoryId())) { deprecated = getModifierList().findAnnotation("java.lang.Deprecated") != null;
public boolean isDeprecated() { if (myCachedIsDeprecated == null){ boolean deprecated; if (getTreeElement() != null){ PsiDocComment docComment = getDocComment(); deprecated = docComment != null && docComment.findTagByName("deprecated") != null; if (!deprecated) { PsiModifierList modifierList = getModifierList(); if (modifierList != null) { deprecated = modifierList.findAnnotation("java.lang.Deprecated") != null; } } } else{ ClassView classView = getRepositoryManager().getClassView(); deprecated = classView.isDeprecated(getRepositoryId()); if (!deprecated && classView.mayBeDeprecatedByAnnotation(getRepositoryId())) { deprecated = getModifierList().findAnnotation("java.lang.Deprecated") != null; } } myCachedIsDeprecated = deprecated ? Boolean.TRUE : Boolean.FALSE; } return myCachedIsDeprecated.booleanValue(); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/284ddbdbfb5075a2e53d2b81a79a07fbcf319987/PsiClassImpl.java/buggy/source/com/intellij/psi/impl/source/PsiClassImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 353, 13534, 1435, 288, 1377, 309, 261, 4811, 9839, 2520, 13534, 422, 446, 15329, 3639, 1250, 6849, 31, 3639, 309, 261, 588, 2471, 1046, 1435, 480, 446, 15329, 1850, 453, 7722, 1759, 4469, 997, 4469, 273, 17999, 4469, 5621, 1850, 6849, 273, 997, 4469, 480, 446, 597, 997, 4469, 18, 4720, 1805, 5911, 2932, 14089, 7923, 480, 446, 31, 1850, 309, 16051, 14089, 13, 288, 5411, 453, 7722, 9829, 682, 9606, 682, 273, 336, 9829, 682, 5621, 5411, 309, 261, 20597, 682, 480, 446, 13, 288, 2868, 6849, 273, 9606, 682, 18, 4720, 3257, 2932, 6290, 18, 4936, 18, 13534, 7923, 480, 446, 31, 5411, 289, 1850, 289, 3639, 289, 3639, 469, 95, 1850, 1659, 1767, 667, 1767, 273, 8261, 1318, 7675, 588, 797, 1767, 5621, 1850, 6849, 273, 667, 1767, 18, 291, 13534, 12, 588, 3305, 548, 10663, 1850, 309, 16051, 14089, 597, 667, 1767, 18, 24877, 1919, 13534, 858, 3257, 12, 588, 3305, 548, 1435, 3719, 288, 5411, 6849, 273, 336, 9829, 682, 7675, 4720, 3257, 2932, 6290, 18, 4936, 18, 13534, 7923, 480, 446, 31, 1850, 289, 3639, 289, 3639, 3399, 9839, 2520, 13534, 273, 6849, 692, 3411, 18, 18724, 294, 3411, 18, 21053, 31, 1377, 289, 1377, 327, 3399, 9839, 2520, 13534, 18, 6494, 620, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 1250, 353, 13534, 1435, 288, 1377, 309, 261, 4811, 9839, 2520, 13534, 422, 446, 15329, 3639, 1250, 6849, 31, 3639, 309, 261, 588, 2471, 1046, 1435, 480, 446, 15329, 1850, 453, 7722, 1759, 4469, 997, 4469, 273, 17999, 4469, 5621, 1850, 6849, 273, 997, 4469, 480, 446, 597, 997, 4469, 18, 4720, 1805, 5911, 2932, 14089, 7923, 480, 446, 31, 1850, 309, 16051, 14089, 13, 288, 5411, 453, 7722, 9829, 682, 9606, 682, 273, 336, 9829, 682, 5621, 5411, 309, 261, 20597, 682, 480, 446, 13, 288, 2868, 6849, 273, 9606, 682, 18, 4720, 3257, 2932, 6290, 18, 4936, 18, 13534, 7923, 480, 446, 31, 5411, 289, 1850, 289, 3639, 289, 3639, 469, 95, 1850, 1659, 1767, 2 ]
Vector types = new Vector();
Vector types = new Vector();
protected Type parseType() { String name = token; Symbol s = getTVar(name); nextToken(); if (s != Symbol.NONE) return s.type(); Symbol clazz = parser.defs.getClass(Name.fromString(name)); if (token.equals("[")) { Vector types = new Vector(); do { nextToken(); types.add(parseType()); } while (token.equals(",")); assert "]".equals(token); nextToken(); Type[] args = new Type[types.size()]; types.toArray(args); return Type.TypeRef(clazz.owner().thisType(), clazz, args).unalias(); } else { return clazz.typeConstructor().unalias(); } }
9617 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9617/864e44452f82eb12036c65134f537efa4bd70e91/AttributeParser.java/clean/sources/scalac/symtab/classfile/AttributeParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 4750, 1412, 1109, 559, 1435, 288, 5411, 514, 508, 273, 1147, 31, 5411, 8565, 272, 273, 3181, 1537, 12, 529, 1769, 5411, 9617, 5621, 5411, 309, 261, 87, 480, 8565, 18, 9826, 13, 7734, 327, 272, 18, 723, 5621, 202, 565, 8565, 4003, 273, 2082, 18, 12537, 18, 588, 797, 12, 461, 18, 2080, 780, 12, 529, 10019, 5411, 309, 261, 2316, 18, 14963, 2932, 9614, 3719, 288, 202, 202, 5018, 1953, 273, 394, 5589, 5621, 7734, 741, 288, 10792, 9617, 5621, 10792, 1953, 18, 1289, 12, 2670, 559, 10663, 7734, 289, 1323, 261, 2316, 18, 14963, 2932, 16, 7923, 1769, 7734, 1815, 9870, 18, 14963, 12, 2316, 1769, 7734, 9617, 5621, 202, 202, 559, 8526, 833, 273, 394, 1412, 63, 2352, 18, 1467, 1435, 15533, 202, 202, 2352, 18, 31447, 12, 1968, 1769, 202, 202, 2463, 1412, 18, 25950, 12, 830, 3638, 18, 8443, 7675, 2211, 559, 9334, 4003, 16, 833, 2934, 318, 4930, 5621, 202, 565, 289, 469, 288, 202, 202, 2463, 4003, 18, 723, 6293, 7675, 318, 4930, 5621, 202, 565, 289, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 540, 4750, 1412, 1109, 559, 1435, 288, 5411, 514, 508, 273, 1147, 31, 5411, 8565, 272, 273, 3181, 1537, 12, 529, 1769, 5411, 9617, 5621, 5411, 309, 261, 87, 480, 8565, 18, 9826, 13, 7734, 327, 272, 18, 723, 5621, 202, 565, 8565, 4003, 273, 2082, 18, 12537, 18, 588, 797, 12, 461, 18, 2080, 780, 12, 529, 10019, 5411, 309, 261, 2316, 18, 14963, 2932, 9614, 3719, 288, 202, 202, 5018, 1953, 273, 394, 5589, 5621, 7734, 741, 288, 10792, 9617, 5621, 10792, 1953, 18, 1289, 12, 2670, 559, 10663, 7734, 289, 1323, 261, 2316, 18, 14963, 2932, 16, 7923, 1769, 7734, 1815, 9870, 18, 14963, 12, 2316, 1769, 7734, 9617, 5621, 202, 202, 559, 8526, 833, 273, 2 ]
file.setContents( stream, true, true, monitor );
handle.setStringProperty( ModuleHandle.COMMENTS_PROP, ReportPlugin.getDefault( ).getCommentPreference( ) );
private void doFinish( IPath containerName, String fileName, InputStream stream, String cheatSheetId, boolean showCheatSheet, IProgressMonitor monitor ) throws CoreException { // create a sample file monitor.beginTask( CREATING + fileName, 2 ); IResource resource = (IContainer) ResourcesPlugin.getWorkspace( ) .getRoot( ) .findMember( containerName ); IContainer container = null; if ( resource == null || !resource.exists( ) || !( resource instanceof IContainer ) ) { // create folder if not exist IFolder folder = createFolderHandle( containerName ); UIUtil.createFolder( folder, monitor ); container = folder; } else { container = (IContainer) resource; } final IFile file = container.getFile( new Path( fileName ) ); final String cheatId = cheatSheetId; final boolean showCheat = showCheatSheet; try { if ( file.exists( ) ) { file.setContents( stream, true, true, monitor ); } else { file.create( stream, true, monitor ); } stream.close( ); } catch ( Exception e ) { } monitor.worked( 1 ); monitor.setTaskName( OPENING_FILE_FOR_EDITING ); getShell( ).getDisplay( ).asyncExec( new Runnable( ) { public void run( ) { IWorkbench workbench = PlatformUI.getWorkbench( ); IWorkbenchWindow window = workbench.getActiveWorkbenchWindow( ); IWorkbenchPage page = window.getActivePage( ); try { IEditorPart editorPart = IDE.openEditor( page, file, true ); ModuleHandle model = SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ); if ( ReportPlugin.getDefault( ) .getEnableCommentPreference( ) ) { model.setStringProperty( ModuleHandle.COMMENTS_PROP, ReportPlugin.getDefault( ) .getCommentPreference( ) ); model.save( ); editorPart.doSave( null ); } // setReportSettings( ( (IDEReportEditor) editorPart // ).getModel( ) ); // editorPart.doSave( null ); BasicNewProjectResourceWizard.updatePerspective( configElement ); if ( showCheat && !cheatId.equals( "" ) ) //$NON-NLS-1$ { OpenCheatSheetAction action = null; // Temporary remark the choice page for that feature is // not supported in R1 // if ( choicePage.isCustom( ) ) // { // action = new OpenCheatSheetAction( file.getName( ), // file.getName( ), // new URL( cheatId ) ); //$NON-NLS-1$ // } // else // { action = new OpenCheatSheetAction( cheatId ); // } action.run( ); } } catch ( Exception e ) { ExceptionHandler.handle( e ); } } } ); monitor.worked( 1 ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/76ebe408a984f02b49cbaf1597c0c7a0213901fe/NewReportWizard.java/clean/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, 1152, 918, 741, 11641, 12, 467, 743, 20408, 16, 514, 3968, 16, 1082, 202, 4348, 1407, 16, 514, 19315, 270, 8229, 548, 16, 1250, 2405, 39, 580, 270, 8229, 16, 1082, 202, 45, 5491, 7187, 6438, 262, 1216, 30015, 202, 95, 202, 202, 759, 752, 279, 3296, 585, 202, 202, 10259, 18, 10086, 2174, 12, 9666, 28054, 397, 3968, 16, 576, 11272, 202, 202, 45, 1420, 1058, 273, 261, 45, 2170, 13, 8128, 3773, 18, 588, 8241, 12, 262, 9506, 202, 18, 588, 2375, 12, 262, 9506, 202, 18, 4720, 4419, 12, 20408, 11272, 202, 202, 45, 2170, 1478, 273, 446, 31, 202, 202, 430, 261, 1058, 422, 446, 9506, 202, 20081, 401, 3146, 18, 1808, 12, 262, 9506, 202, 20081, 401, 12, 1058, 1276, 467, 2170, 262, 262, 202, 202, 95, 1082, 202, 759, 752, 3009, 309, 486, 1005, 1082, 202, 45, 3899, 3009, 273, 752, 3899, 3259, 12, 20408, 11272, 1082, 202, 5370, 1304, 18, 2640, 3899, 12, 3009, 16, 6438, 11272, 1082, 202, 3782, 273, 3009, 31, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 3782, 273, 261, 45, 2170, 13, 1058, 31, 202, 202, 97, 202, 202, 6385, 467, 812, 585, 273, 1478, 18, 29925, 12, 394, 2666, 12, 3968, 262, 11272, 202, 202, 6385, 514, 19315, 270, 548, 273, 19315, 270, 8229, 548, 31, 202, 202, 6385, 1250, 2405, 39, 580, 270, 273, 2405, 39, 580, 270, 8229, 31, 202, 202, 698, 202, 202, 95, 1082, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 11641, 12, 467, 743, 20408, 16, 514, 3968, 16, 1082, 202, 4348, 1407, 16, 514, 19315, 270, 8229, 548, 16, 1250, 2405, 39, 580, 270, 8229, 16, 1082, 202, 45, 5491, 7187, 6438, 262, 1216, 30015, 202, 95, 202, 202, 759, 752, 279, 3296, 585, 202, 202, 10259, 18, 10086, 2174, 12, 9666, 28054, 397, 3968, 16, 576, 11272, 202, 202, 45, 1420, 1058, 273, 261, 45, 2170, 13, 8128, 3773, 18, 588, 8241, 12, 262, 9506, 202, 18, 588, 2375, 12, 262, 9506, 202, 18, 4720, 4419, 12, 20408, 11272, 202, 202, 45, 2170, 1478, 273, 446, 31, 202, 202, 430, 261, 1058, 422, 446, 9506, 202, 20081, 401, 3146, 18, 1808, 12, 2 ]
}
}
public Avail getDisabledAvail() throws IOException,FileNotFoundException { Properties props = new Properties(); props.load(new FileInputStream(MapPropertiesFactory.mapPropertiesFile)); String disableAvailId = props.getProperty("avail.enable.false.id"); if(disableAvailId ==null){ throw new IllegalStateException("Required Default Status not found."); } Iterator ite = availsMap.values().iterator(); while (ite.hasNext()) { Avail av = (Avail) ite.next(); if (av.getId() == Integer.parseInt(disableAvailId)) return av; } return null; }
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/069d0e7b3a96289b7c94aecc6c8a14fee3498895/MapPropertiesFactory.java/buggy/opennms-webapp/src/main/java/org/opennms/web/map/config/MapPropertiesFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8789, 671, 336, 8853, 3769, 671, 1435, 1216, 1860, 16, 812, 3990, 288, 3639, 6183, 3458, 273, 394, 6183, 5621, 3639, 3458, 18, 945, 12, 2704, 11907, 12, 863, 2297, 1733, 18, 1458, 2297, 812, 10019, 3639, 514, 4056, 3769, 671, 548, 273, 3458, 18, 588, 1396, 2932, 842, 671, 18, 7589, 18, 5743, 18, 350, 8863, 3639, 309, 12, 8394, 3769, 671, 548, 422, 2011, 15329, 540, 202, 12849, 394, 5477, 2932, 3705, 2989, 2685, 486, 1392, 1199, 1769, 3639, 289, 2398, 202, 3198, 518, 73, 273, 1712, 15208, 863, 18, 2372, 7675, 9838, 5621, 377, 202, 17523, 261, 1137, 18, 5332, 2134, 10756, 288, 377, 202, 202, 3769, 671, 1712, 273, 261, 3769, 671, 13, 518, 73, 18, 4285, 5621, 377, 202, 202, 430, 261, 842, 18, 26321, 1435, 422, 2144, 18, 2670, 1702, 12, 8394, 3769, 671, 548, 3719, 327, 1712, 31, 377, 202, 97, 377, 202, 2463, 446, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8789, 671, 336, 8853, 3769, 671, 1435, 1216, 1860, 16, 812, 3990, 288, 3639, 6183, 3458, 273, 394, 6183, 5621, 3639, 3458, 18, 945, 12, 2704, 11907, 12, 863, 2297, 1733, 18, 1458, 2297, 812, 10019, 3639, 514, 4056, 3769, 671, 548, 273, 3458, 18, 588, 1396, 2932, 842, 671, 18, 7589, 18, 5743, 18, 350, 8863, 3639, 309, 12, 8394, 3769, 671, 548, 422, 2011, 15329, 540, 202, 12849, 394, 5477, 2932, 3705, 2989, 2685, 486, 1392, 1199, 1769, 3639, 289, 2398, 202, 3198, 518, 73, 273, 1712, 15208, 863, 18, 2372, 7675, 9838, 5621, 377, 202, 17523, 261, 1137, 18, 5332, 2134, 10756, 288, 377, 202, 202, 3769, 671, 1712, 273, 261, 3769, 671, 13, 2 ]
.log("Unable to create action set " + actionSetDesc.getId());
.log("Unable to create action set " + actionSetDesc.getId(), ex);
private void buildMenusAndToolbarsFor(ActionSetDescriptor actionSetDesc) { String id = actionSetDesc.getId(); ActionSetActionBars bars = new ActionSetActionBars( customizeWorkbenchActionBars, id); PluginActionSetBuilder builder = new PluginActionSetBuilder(); PluginActionSet actionSet = null; try { actionSet = (PluginActionSet) actionSetDesc.createActionSet(); actionSet.init(null, bars); } catch (CoreException ex) { WorkbenchPlugin .log("Unable to create action set " + actionSetDesc.getId()); //$NON-NLS-1$ return; } builder.buildMenuAndToolBarStructure(actionSet, window); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/6d5bc21a1271b84a206c6b7fb658da51015489ce/CustomizePerspectiveDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/CustomizePerspectiveDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1361, 29755, 1876, 6364, 13518, 1290, 12, 1803, 694, 3187, 1301, 694, 4217, 13, 288, 3639, 514, 612, 273, 1301, 694, 4217, 18, 26321, 5621, 3639, 4382, 694, 1803, 5190, 87, 22252, 273, 394, 4382, 694, 1803, 5190, 87, 12, 7734, 20236, 2421, 22144, 1803, 5190, 87, 16, 612, 1769, 3639, 6258, 1803, 694, 1263, 2089, 273, 394, 6258, 1803, 694, 1263, 5621, 3639, 6258, 1803, 694, 1301, 694, 273, 446, 31, 3639, 775, 288, 5411, 1301, 694, 273, 261, 3773, 1803, 694, 13, 1301, 694, 4217, 18, 2640, 1803, 694, 5621, 5411, 1301, 694, 18, 2738, 12, 2011, 16, 22252, 1769, 3639, 289, 1044, 261, 25341, 431, 13, 288, 5411, 4147, 22144, 3773, 10792, 263, 1330, 2932, 3370, 358, 752, 1301, 444, 315, 397, 1301, 694, 4217, 18, 26321, 9334, 431, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 327, 31, 3639, 289, 3639, 2089, 18, 3510, 4599, 1876, 6364, 5190, 6999, 12, 1128, 694, 16, 2742, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 377, 3238, 918, 1361, 29755, 1876, 6364, 13518, 1290, 12, 1803, 694, 3187, 1301, 694, 4217, 13, 288, 3639, 514, 612, 273, 1301, 694, 4217, 18, 26321, 5621, 3639, 4382, 694, 1803, 5190, 87, 22252, 273, 394, 4382, 694, 1803, 5190, 87, 12, 7734, 20236, 2421, 22144, 1803, 5190, 87, 16, 612, 1769, 3639, 6258, 1803, 694, 1263, 2089, 273, 394, 6258, 1803, 694, 1263, 5621, 3639, 6258, 1803, 694, 1301, 694, 273, 446, 31, 3639, 775, 288, 5411, 1301, 694, 273, 261, 3773, 1803, 694, 13, 1301, 694, 4217, 18, 2640, 1803, 694, 5621, 5411, 1301, 694, 18, 2738, 12, 2011, 16, 22252, 1769, 3639, 289, 1044, 261, 25341, 431, 13, 288, 5411, 4147, 22144, 3773, 10792, 263, 2 ]
MessageHandler.logln("mif"); MessageHandler.logln("output file: " + outfile.toString());
log.debug("mif"); log.debug("output file: " + outfile.toString());
private void debug() { System.out.print("Input mode: "); switch (inputmode) { case NOT_SET: MessageHandler.logln("not set"); break; case FO_INPUT: MessageHandler.logln("FO "); MessageHandler.logln("fo input file: " + fofile.toString()); break; case XSLT_INPUT: MessageHandler.logln("xslt transformation"); MessageHandler.logln("xml input file: " + xmlfile.toString()); MessageHandler.logln("xslt stylesheet: " + xsltfile.toString()); break; default: MessageHandler.logln("unknown input type"); } System.out.print("Output mode: "); switch (outputmode) { case NOT_SET: MessageHandler.logln("not set"); break; case PDF_OUTPUT: MessageHandler.logln("pdf"); MessageHandler.logln("output file: " + outfile.toString()); break; case AWT_OUTPUT: MessageHandler.logln("awt on screen"); if (outfile != null) { MessageHandler.logln("ERROR: awt mode, but outfile is set:"); MessageHandler.logln("out file: " + outfile.toString()); } break; case MIF_OUTPUT: MessageHandler.logln("mif"); MessageHandler.logln("output file: " + outfile.toString()); break; case PRINT_OUTPUT: MessageHandler.logln("print directly"); if (outfile != null) { MessageHandler.logln("ERROR: print mode, but outfile is set:"); MessageHandler.logln("out file: " + outfile.toString()); } break; case PCL_OUTPUT: MessageHandler.logln("pcl"); MessageHandler.logln("output file: " + outfile.toString()); break; case PS_OUTPUT: MessageHandler.logln("PostScript"); MessageHandler.logln("output file: " + outfile.toString()); break; case TXT_OUTPUT: MessageHandler.logln("txt"); MessageHandler.logln("output file: " + outfile.toString()); break; default: MessageHandler.logln("unknown input type"); } MessageHandler.logln("OPTIONS"); if (userConfigFile != null) { MessageHandler.logln("user configuration file: " + userConfigFile.toString()); } else { MessageHandler.logln("no user configuration file is used [default]"); } if (errorDump != null) { MessageHandler.logln("debug mode on"); } else { MessageHandler.logln("debug mode off [default]"); } if (dumpConfiguration != null) { MessageHandler.logln("dump configuration"); } else { MessageHandler.logln("don't dump configuration [default]"); } if (quiet != null) { MessageHandler.logln("quiet mode on"); } else { MessageHandler.logln("quiet mode off [default]"); } }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/e3746112e7236596f4bd016a44c074a485c62628/CommandLineOptions.java/buggy/src/org/apache/fop/apps/CommandLineOptions.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1198, 1435, 288, 3639, 2332, 18, 659, 18, 1188, 2932, 1210, 1965, 30, 315, 1769, 3639, 1620, 261, 2630, 3188, 13, 288, 3639, 648, 4269, 67, 4043, 30, 5411, 2350, 1503, 18, 1330, 2370, 2932, 902, 444, 8863, 5411, 898, 31, 3639, 648, 17634, 67, 15934, 30, 5411, 2350, 1503, 18, 1330, 2370, 2932, 3313, 315, 1769, 5411, 2350, 1503, 18, 1330, 2370, 2932, 617, 810, 585, 30, 315, 397, 18261, 768, 18, 10492, 10663, 5411, 898, 31, 3639, 648, 20751, 67, 15934, 30, 5411, 2350, 1503, 18, 1330, 2370, 2932, 92, 14414, 8620, 8863, 5411, 2350, 1503, 18, 1330, 2370, 2932, 2902, 810, 585, 30, 315, 397, 2025, 768, 18, 10492, 10663, 5411, 2350, 1503, 18, 1330, 2370, 2932, 92, 14414, 13820, 30, 315, 397, 31399, 768, 18, 10492, 10663, 5411, 898, 31, 3639, 805, 30, 5411, 2350, 1503, 18, 1330, 2370, 2932, 8172, 810, 618, 8863, 3639, 289, 3639, 2332, 18, 659, 18, 1188, 2932, 1447, 1965, 30, 315, 1769, 3639, 1620, 261, 2844, 3188, 13, 288, 3639, 648, 4269, 67, 4043, 30, 5411, 2350, 1503, 18, 1330, 2370, 2932, 902, 444, 8863, 5411, 898, 31, 3639, 648, 12667, 67, 15527, 30, 5411, 2350, 1503, 18, 1330, 2370, 2932, 7699, 8863, 5411, 2350, 1503, 18, 1330, 2370, 2932, 2844, 585, 30, 315, 397, 8756, 18, 10492, 10663, 5411, 898, 31, 3639, 648, 432, 8588, 67, 15527, 30, 5411, 2350, 1503, 18, 1330, 2370, 2932, 2219, 88, 603, 5518, 8863, 5411, 309, 261, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1198, 1435, 288, 3639, 2332, 18, 659, 18, 1188, 2932, 1210, 1965, 30, 315, 1769, 3639, 1620, 261, 2630, 3188, 13, 288, 3639, 648, 4269, 67, 4043, 30, 5411, 2350, 1503, 18, 1330, 2370, 2932, 902, 444, 8863, 5411, 898, 31, 3639, 648, 17634, 67, 15934, 30, 5411, 2350, 1503, 18, 1330, 2370, 2932, 3313, 315, 1769, 5411, 2350, 1503, 18, 1330, 2370, 2932, 617, 810, 585, 30, 315, 397, 18261, 768, 18, 10492, 10663, 5411, 898, 31, 3639, 648, 20751, 67, 15934, 30, 5411, 2350, 1503, 18, 1330, 2370, 2932, 92, 14414, 8620, 8863, 5411, 2350, 1503, 18, 1330, 2370, 2932, 2902, 810, 585, 30, 315, 397, 2025, 768, 18, 10492, 10663, 5411, 2350, 1503, 2 ]
public boolean isSet(org.quickfix.field.QuoteSetID field)
public boolean isSet(quickfix.field.QuoteSetID field)
public boolean isSet(org.quickfix.field.QuoteSetID field) { return isSetField(field); }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/MassQuoteAcknowledgement.java/buggy/src/java/src/quickfix/fix43/MassQuoteAcknowledgement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 13532, 12, 19525, 904, 18, 1518, 18, 10257, 694, 734, 652, 13, 225, 288, 327, 13532, 974, 12, 1518, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 282, 1071, 1250, 13532, 12, 19525, 904, 18, 1518, 18, 10257, 694, 734, 652, 13, 225, 288, 327, 13532, 974, 12, 1518, 1769, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public org.quickfix.field.SecuritySubType getSecuritySubType() throws FieldNotFound { org.quickfix.field.SecuritySubType value = new org.quickfix.field.SecuritySubType();
public quickfix.field.SecuritySubType getSecuritySubType() throws FieldNotFound { quickfix.field.SecuritySubType value = new quickfix.field.SecuritySubType();
public org.quickfix.field.SecuritySubType getSecuritySubType() throws FieldNotFound { org.quickfix.field.SecuritySubType value = new org.quickfix.field.SecuritySubType(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/IndicationOfInterest.java/clean/src/java/src/quickfix/fix44/IndicationOfInterest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 30511, 19288, 30511, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 30511, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 30511, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 30511, 19288, 30511, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 30511, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 30511, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
manager.contextActivated(taskId, taskId);
manager.contextActivated(taskId);
public void testAutoOpen() throws JavaModelException, InvocationTargetException, InterruptedException { manager.contextDeleted(taskId, taskId); MylarIdePlugin.getDefault().getEditorManager().closeAllEditors(); assertEquals(0, page.getEditors().length); manager.contextActivated(taskId, taskId);// assertEquals(0, page.getEditors().length); IType typeA = project.createType(p1, "TypeA.java", "public class TypeA{ }" ); IType typeB = project.createType(p1, "TypeB.java", "public class TypeB{ }" ); monitor.selectionChanged(view, new StructuredSelection(typeA)); monitor.selectionChanged(view, new StructuredSelection(typeB)); manager.contextDeactivated(taskId, taskId); assertEquals(0, page.getEditors().length); manager.contextActivated(taskId, taskId); assertTrue("num editors: " + page.getEditors().length, page.getEditors().length == 2 || page.getEditors().length == 3); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/7d100b41d7eaa401e4972ad2611ee9b6f3c9ccdf/EditorManagementTest.java/clean/org.eclipse.mylyn.java.tests/src/org/eclipse/mylyn/java/tests/EditorManagementTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 4965, 3678, 1435, 1216, 5110, 1488, 503, 16, 15342, 16, 7558, 288, 202, 202, 4181, 18, 2472, 7977, 12, 4146, 548, 16, 15321, 1769, 202, 202, 12062, 7901, 45, 323, 3773, 18, 588, 1868, 7675, 588, 6946, 1318, 7675, 4412, 1595, 4666, 1383, 5621, 202, 202, 11231, 8867, 12, 20, 16, 1363, 18, 588, 4666, 1383, 7675, 2469, 1769, 9506, 202, 4181, 18, 2472, 28724, 12, 4146, 548, 16, 15321, 1769, 759, 202, 202, 11231, 8867, 12, 20, 16, 1363, 18, 588, 4666, 1383, 7675, 2469, 1769, 9506, 202, 45, 559, 618, 37, 273, 1984, 18, 2640, 559, 12, 84, 21, 16, 315, 559, 37, 18, 6290, 3113, 315, 482, 667, 1412, 37, 95, 22837, 11272, 202, 202, 45, 559, 618, 38, 273, 1984, 18, 2640, 559, 12, 84, 21, 16, 315, 559, 38, 18, 6290, 3113, 315, 482, 667, 1412, 38, 95, 22837, 11272, 202, 202, 10259, 18, 10705, 5033, 12, 1945, 16, 394, 7362, 2862, 6233, 12, 723, 37, 10019, 3639, 6438, 18, 10705, 5033, 12, 1945, 16, 394, 7362, 2862, 6233, 12, 723, 38, 10019, 3639, 3301, 18, 2472, 758, 18836, 12, 4146, 548, 16, 15321, 1769, 3639, 1815, 8867, 12, 20, 16, 1363, 18, 588, 4666, 1383, 7675, 2469, 1769, 7734, 3301, 18, 2472, 28724, 12, 4146, 548, 1769, 3639, 1815, 5510, 2932, 2107, 29431, 30, 315, 397, 1363, 18, 588, 4666, 1383, 7675, 2469, 16, 1363, 18, 588, 4666, 1383, 7675, 2469, 422, 576, 747, 1363, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4965, 3678, 1435, 1216, 5110, 1488, 503, 16, 15342, 16, 7558, 288, 202, 202, 4181, 18, 2472, 7977, 12, 4146, 548, 16, 15321, 1769, 202, 202, 12062, 7901, 45, 323, 3773, 18, 588, 1868, 7675, 588, 6946, 1318, 7675, 4412, 1595, 4666, 1383, 5621, 202, 202, 11231, 8867, 12, 20, 16, 1363, 18, 588, 4666, 1383, 7675, 2469, 1769, 9506, 202, 4181, 18, 2472, 28724, 12, 4146, 548, 16, 15321, 1769, 759, 202, 202, 11231, 8867, 12, 20, 16, 1363, 18, 588, 4666, 1383, 7675, 2469, 1769, 9506, 202, 45, 559, 618, 37, 273, 1984, 18, 2640, 559, 12, 84, 21, 16, 315, 559, 37, 18, 6290, 3113, 315, 482, 667, 1412, 37, 95, 2 ]
ExecSQL("begin;" + getIsolationLevelSQL());
execSQL("begin;" + getIsolationLevelSQL());
public void setAutoCommit(boolean autoCommit) throws SQLException { if (this.autoCommit == autoCommit) return ; if (autoCommit) { if (haveMinimumServerVersion("7.3")) { //We do the select to ensure a transaction is in process //before we do the commit to avoid warning messages //from issuing a commit without a transaction in process ExecSQL("select 1; commit; set autocommit = on;"); } else { ExecSQL("end"); } } else { if (haveMinimumServerVersion("7.3")) { ExecSQL("set autocommit = off; " + getIsolationLevelSQL()); } else if (haveMinimumServerVersion("7.1")) { ExecSQL("begin;" + getIsolationLevelSQL()); } else { ExecSQL("begin"); ExecSQL(getIsolationLevelSQL()); } } this.autoCommit = autoCommit; }
46312 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46312/16a30346c86590fbdcd83cacd2a0a9dbd2cd00dc/AbstractJdbc1Connection.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 21780, 5580, 12, 6494, 3656, 5580, 13, 1216, 6483, 202, 95, 202, 202, 430, 261, 2211, 18, 6079, 5580, 422, 3656, 5580, 13, 1082, 202, 2463, 274, 202, 202, 430, 261, 6079, 5580, 13, 202, 202, 95, 1082, 202, 430, 261, 21516, 13042, 2081, 1444, 2932, 27, 18, 23, 6, 3719, 1082, 202, 95, 7734, 368, 3218, 741, 326, 2027, 358, 3387, 279, 2492, 353, 316, 1207, 9506, 202, 759, 5771, 732, 741, 326, 3294, 358, 4543, 3436, 2743, 9506, 202, 759, 2080, 3385, 22370, 279, 3294, 2887, 279, 2492, 316, 1207, 9506, 202, 1905, 3997, 2932, 4025, 404, 31, 3294, 31, 444, 2059, 27159, 273, 603, 4868, 1769, 1082, 202, 97, 1082, 202, 12107, 1082, 202, 95, 9506, 202, 1905, 3997, 2932, 409, 8863, 6862, 1082, 202, 97, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 430, 261, 21516, 13042, 2081, 1444, 2932, 27, 18, 23, 6, 3719, 1082, 202, 95, 9506, 202, 1905, 3997, 2932, 542, 2059, 27159, 273, 3397, 31, 315, 397, 14279, 12255, 2355, 3997, 10663, 1082, 202, 97, 1082, 202, 12107, 309, 261, 21516, 13042, 2081, 1444, 2932, 27, 18, 21, 6, 3719, 1082, 202, 95, 9506, 202, 1905, 3997, 2932, 10086, 4868, 397, 14279, 12255, 2355, 3997, 10663, 1082, 202, 97, 1082, 202, 12107, 1082, 202, 95, 9506, 202, 1905, 3997, 2932, 10086, 8863, 9506, 202, 1905, 3997, 12, 588, 22982, 2355, 3997, 10663, 1082, 202, 97, 202, 202, 97, 202, 202, 2211, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21780, 5580, 12, 6494, 3656, 5580, 13, 1216, 6483, 202, 95, 202, 202, 430, 261, 2211, 18, 6079, 5580, 422, 3656, 5580, 13, 1082, 202, 2463, 274, 202, 202, 430, 261, 6079, 5580, 13, 202, 202, 95, 1082, 202, 430, 261, 21516, 13042, 2081, 1444, 2932, 27, 18, 23, 6, 3719, 1082, 202, 95, 7734, 368, 3218, 741, 326, 2027, 358, 3387, 279, 2492, 353, 316, 1207, 9506, 202, 759, 5771, 732, 741, 326, 3294, 358, 4543, 3436, 2743, 9506, 202, 759, 2080, 3385, 22370, 279, 3294, 2887, 279, 2492, 316, 1207, 9506, 202, 1905, 3997, 2932, 4025, 404, 31, 3294, 31, 444, 2059, 27159, 273, 603, 4868, 1769, 1082, 202, 97, 1082, 202, 12107, 2 ]
byte[] readdata;
int foff = (int)(fileOffset); System.arraycopy(data, foff,dest,off,len); /*byte[] readdata;
public void read(long fileOffset, byte[] dest, int off, int len){ refresh(); byte[] readdata; readdata = data.toString().getBytes(); for (long i=0 ; i < len ; i++ ) { int doff = new Long(off+i).intValue(); int foff = new Long(fileOffset+i).intValue(); dest[doff] = readdata[foff]; } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/a709fc7ce0163e5a663b7fb3dd687b4af3ac55e3/JIFSFile.java/buggy/fs/src/fs/org/jnode/fs/jifs/JIFSFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 855, 12, 5748, 585, 2335, 16, 1160, 8526, 1570, 16, 509, 3397, 16, 509, 562, 15329, 202, 202, 9144, 5621, 202, 202, 7229, 8526, 855, 892, 31, 202, 202, 896, 892, 273, 501, 18, 10492, 7675, 588, 2160, 5621, 202, 202, 1884, 261, 5748, 277, 33, 20, 274, 277, 411, 562, 274, 277, 9904, 262, 1082, 202, 95, 9506, 202, 474, 741, 1403, 273, 394, 3407, 12, 3674, 15, 77, 2934, 474, 620, 5621, 9506, 202, 474, 284, 3674, 273, 394, 3407, 12, 768, 2335, 15, 77, 2934, 474, 620, 5621, 9506, 202, 10488, 63, 72, 3674, 65, 273, 855, 892, 63, 617, 1403, 15533, 1082, 202, 97, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 855, 12, 5748, 585, 2335, 16, 1160, 8526, 1570, 16, 509, 3397, 16, 509, 562, 15329, 202, 202, 9144, 5621, 202, 202, 7229, 8526, 855, 892, 31, 202, 202, 896, 892, 273, 501, 18, 10492, 7675, 588, 2160, 5621, 202, 202, 1884, 261, 5748, 277, 33, 20, 274, 277, 411, 562, 274, 277, 9904, 262, 1082, 202, 95, 9506, 202, 474, 741, 1403, 273, 394, 3407, 12, 3674, 15, 77, 2934, 474, 620, 5621, 9506, 202, 474, 284, 3674, 273, 394, 3407, 12, 768, 2335, 15, 77, 2934, 474, 620, 5621, 9506, 202, 10488, 63, 72, 3674, 65, 273, 855, 892, 63, 617, 1403, 15533, 1082, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100 ]
List accountList = updateAccountsStatus(accountStatusActionForm.getAccountRecords(), accountStatusActionForm.getNewStatus(), accountStatusActionForm.getComments(), getUserContext(request));
List accountList = updateAccountsStatus(accountStatusActionForm .getAccountRecords(), accountStatusActionForm.getNewStatus(), accountStatusActionForm.getComments(), getUserContext(request));
public ActionForward update(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse httpservletresponse) throws Exception { AccountStatusActionForm accountStatusActionForm = (AccountStatusActionForm) form; List accountList = updateAccountsStatus(accountStatusActionForm.getAccountRecords(), accountStatusActionForm.getNewStatus(), accountStatusActionForm.getComments(), getUserContext(request)); SessionUtils.setAttribute("accountsList", accountList, request.getSession()); MifosLogManager.getLogger(LoggerConstants.CUSTOMERSEARCHLOGGER) .debug("inside change status function"); return mapping.findForward(ActionForwards.changeAccountStatusConfirmation_success.toString()); }
45468 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45468/53fa879786079e4854df7cd6e3bd19148babfad9/AccountStatusAction.java/buggy/mifos/src/org/mifos/application/accounts/loan/struts/action/AccountStatusAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 1089, 12, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 3639, 9984, 590, 16, 12446, 1062, 23231, 2740, 13, 3639, 1216, 1185, 288, 3639, 6590, 1482, 1803, 1204, 2236, 1482, 1803, 1204, 273, 261, 3032, 1482, 1803, 1204, 13, 646, 31, 3639, 987, 2236, 682, 273, 1089, 13971, 1482, 12, 4631, 1482, 1803, 1204, 18, 588, 3032, 6499, 9334, 7734, 2236, 1482, 1803, 1204, 18, 588, 1908, 1482, 9334, 7734, 2236, 1482, 1803, 1204, 18, 588, 9051, 9334, 4735, 1042, 12, 2293, 10019, 3639, 3877, 1989, 18, 542, 1499, 2932, 13739, 682, 3113, 2236, 682, 16, 5411, 590, 18, 588, 2157, 10663, 3639, 490, 430, 538, 1343, 1318, 18, 588, 3328, 12, 3328, 2918, 18, 15136, 654, 17251, 8757, 13, 15604, 263, 4148, 2932, 28091, 2549, 1267, 445, 8863, 3639, 327, 2874, 18, 4720, 8514, 12, 1803, 1290, 6397, 18, 3427, 3032, 1482, 17597, 67, 4768, 18, 10492, 10663, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 1089, 12, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 3639, 9984, 590, 16, 12446, 1062, 23231, 2740, 13, 3639, 1216, 1185, 288, 3639, 6590, 1482, 1803, 1204, 2236, 1482, 1803, 1204, 273, 261, 3032, 1482, 1803, 1204, 13, 646, 31, 3639, 987, 2236, 682, 273, 1089, 13971, 1482, 12, 4631, 1482, 1803, 1204, 18, 588, 3032, 6499, 9334, 7734, 2236, 1482, 1803, 1204, 18, 588, 1908, 1482, 9334, 7734, 2236, 1482, 1803, 1204, 18, 588, 9051, 9334, 4735, 1042, 12, 2293, 10019, 3639, 3877, 1989, 18, 542, 1499, 2932, 13739, 682, 3113, 2236, 682, 16, 5411, 590, 18, 588, 2157, 10663, 3639, 490, 430, 538, 1343, 1318, 18, 588, 3328, 12, 3328, 2918, 18, 2 ]
set(parameterIndex, x.toString());
bind(parameterIndex, "'"+x.toString()+"'", PG_NUMERIC);
public void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException { if (x == null) setNull(parameterIndex, Types.OTHER); else { set(parameterIndex, x.toString()); } }
46597 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46597/2232172e447db0224c4ececd148ddf6d6e1e5c84/AbstractJdbc1Statement.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 29436, 12, 474, 25412, 16, 8150, 619, 13, 1216, 6483, 202, 95, 202, 202, 430, 261, 92, 422, 446, 13, 1082, 202, 542, 2041, 12, 6775, 1016, 16, 7658, 18, 23940, 1769, 202, 202, 12107, 202, 202, 95, 1082, 565, 444, 12, 6775, 1016, 16, 619, 18, 10492, 10663, 202, 202, 97, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 444, 29436, 12, 474, 25412, 16, 8150, 619, 13, 1216, 6483, 202, 95, 202, 202, 430, 261, 92, 422, 446, 13, 1082, 202, 542, 2041, 12, 6775, 1016, 16, 7658, 18, 23940, 1769, 202, 202, 12107, 202, 202, 95, 1082, 565, 444, 12, 6775, 1016, 16, 619, 18, 10492, 10663, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
FormData progressData = new FormData(); progressData.top = new FormAttachment(IDialogConstants.VERTICAL_SPACING); progressData.left = new FormAttachment(jobImageLabel, IDialogConstants.HORIZONTAL_SPACING / 2); progressData.right = new FormAttachment(100); progressLabel.setLayoutData(progressData);
protected void createChildren() { normalCursor = new Cursor(getDisplay(), SWT.CURSOR_ARROW); FormLayout layout = new FormLayout(); setLayout(layout); jobImageLabel = new Label(this, SWT.NONE); jobImageLabel.setImage(getInfoImage()); FormData imageData = new FormData(); imageData.top = new FormAttachment(IDialogConstants.VERTICAL_SPACING); imageData.left = new FormAttachment( IDialogConstants.HORIZONTAL_SPACING / 2); jobImageLabel.setLayoutData(imageData); progressLabel = new Label(this, SWT.NONE); progressLabel.setFont(JFaceResources.getFontRegistry().getBold( JFaceResources.DEFAULT_FONT)); progressLabel.setText(getMainTitle()); FormData progressData = new FormData(); progressData.top = new FormAttachment(IDialogConstants.VERTICAL_SPACING); progressData.left = new FormAttachment(jobImageLabel, IDialogConstants.HORIZONTAL_SPACING / 2); progressData.right = new FormAttachment(100); progressLabel.setLayoutData(progressData); actionBar = new ToolBar(this, SWT.FLAT); actionBar.setCursor(normalCursor); // set cursor to overwrite any busy // cursor we might have actionButton = new ToolItem(actionBar, SWT.NONE); actionButton.setImage(getStopImage()); actionButton .setToolTipText(ProgressMessages.NewProgressView_CancelJobToolTip); actionButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { actionButton.setEnabled(false); cancelOrRemove(); } }); FormData buttonData = new FormData(); buttonData.top = new FormAttachment(progressLabel, IDialogConstants.VERTICAL_SPACING); buttonData.right = new FormAttachment(100, IDialogConstants.HORIZONTAL_SPACING * -1); actionBar.setLayoutData(buttonData); refresh(); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/22acb4bf8f1898dae9595345b74652c2e1b644be/ProgressInfoItem.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressInfoItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 752, 4212, 1435, 288, 202, 202, 6130, 6688, 273, 394, 13949, 12, 588, 4236, 9334, 348, 8588, 18, 7509, 55, 916, 67, 985, 11226, 1769, 202, 202, 1204, 3744, 3511, 273, 394, 2748, 3744, 5621, 202, 202, 542, 3744, 12, 6741, 1769, 202, 202, 4688, 2040, 2224, 273, 394, 5287, 12, 2211, 16, 348, 8588, 18, 9826, 1769, 202, 202, 4688, 2040, 2224, 18, 542, 2040, 12, 588, 966, 2040, 10663, 202, 202, 30079, 26229, 273, 394, 2748, 751, 5621, 202, 202, 2730, 751, 18, 3669, 273, 394, 2748, 6803, 12, 734, 3529, 2918, 18, 21654, 10109, 67, 3118, 2226, 1360, 1769, 202, 202, 2730, 751, 18, 4482, 273, 394, 2748, 6803, 12, 9506, 202, 734, 3529, 2918, 18, 44, 20344, 67, 3118, 2226, 1360, 342, 576, 1769, 202, 202, 4688, 2040, 2224, 18, 542, 3744, 751, 12, 2730, 751, 1769, 202, 202, 8298, 2224, 273, 394, 5287, 12, 2211, 16, 348, 8588, 18, 9826, 1769, 202, 202, 8298, 2224, 18, 542, 5711, 12, 46, 11824, 3805, 18, 588, 5711, 4243, 7675, 588, 38, 1673, 12, 9506, 202, 46, 11824, 3805, 18, 5280, 67, 25221, 10019, 202, 202, 8298, 2224, 18, 542, 1528, 12, 588, 6376, 4247, 10663, 202, 202, 30079, 4007, 751, 273, 394, 2748, 751, 5621, 202, 202, 8298, 751, 18, 3669, 273, 394, 2748, 6803, 12, 734, 3529, 2918, 18, 21654, 10109, 67, 3118, 2226, 1360, 1769, 202, 202, 8298, 751, 18, 4482, 273, 394, 2748, 6803, 12, 4688, 2040, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 4212, 1435, 288, 202, 202, 6130, 6688, 273, 394, 13949, 12, 588, 4236, 9334, 348, 8588, 18, 7509, 55, 916, 67, 985, 11226, 1769, 202, 202, 1204, 3744, 3511, 273, 394, 2748, 3744, 5621, 202, 202, 542, 3744, 12, 6741, 1769, 202, 202, 4688, 2040, 2224, 273, 394, 5287, 12, 2211, 16, 348, 8588, 18, 9826, 1769, 202, 202, 4688, 2040, 2224, 18, 542, 2040, 12, 588, 966, 2040, 10663, 202, 202, 30079, 26229, 273, 394, 2748, 751, 5621, 202, 202, 2730, 751, 18, 3669, 273, 394, 2748, 6803, 12, 734, 3529, 2918, 18, 21654, 10109, 67, 3118, 2226, 1360, 1769, 202, 202, 2730, 751, 18, 4482, 273, 394, 2748, 6803, 12, 9506, 202, 2 ]
if( bgColor != null ) {
if (bgColor != null) {
protected Color getBackgroundColor(Event event) { if( bgColor != null ) { return bgColor; } return super.getBackgroundColor(event); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/834fd62f7f66137ce069da1196168574b96681d9/ToolTipSupport.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ToolTipSupport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 5563, 336, 21699, 12, 1133, 871, 13, 288, 202, 202, 430, 12, 7611, 2957, 480, 446, 262, 288, 1082, 202, 2463, 7611, 2957, 31, 202, 202, 97, 202, 202, 2463, 2240, 18, 588, 21699, 12, 2575, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1117, 5563, 336, 21699, 12, 1133, 871, 13, 288, 202, 202, 430, 12, 7611, 2957, 480, 446, 262, 288, 1082, 202, 2463, 7611, 2957, 31, 202, 202, 97, 202, 202, 2463, 2240, 18, 588, 21699, 12, 2575, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public Object eGet( EStructuralFeature eFeature, boolean resolve )
public Object eGet( int featureID, boolean resolve, boolean coreType )
public Object eGet( EStructuralFeature eFeature, boolean resolve ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case DataPackage.ACTION__TYPE : return getType( ); case DataPackage.ACTION__VALUE : return getValue( ); } return eDynamicGet( eFeature, resolve ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/036e8c78765730b146e5854b9d6c397a296fed86/ActionImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/data/impl/ActionImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 15952, 12, 512, 14372, 4595, 425, 4595, 16, 1250, 2245, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 1082, 202, 3593, 1910, 2261, 18, 12249, 972, 2399, 294, 9506, 202, 2463, 3130, 12, 11272, 1082, 202, 3593, 1910, 2261, 18, 12249, 972, 4051, 294, 9506, 202, 2463, 2366, 12, 11272, 202, 202, 97, 202, 202, 2463, 425, 9791, 967, 12, 425, 4595, 16, 2245, 11272, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1033, 15952, 12, 512, 14372, 4595, 425, 4595, 16, 1250, 2245, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 1082, 202, 3593, 1910, 2261, 18, 12249, 972, 2399, 294, 9506, 202, 2463, 3130, 12, 11272, 1082, 202, 3593, 1910, 2261, 18, 12249, 972, 4051, 294, 9506, 202, 2463, 2366, 12, 11272, 202, 202, 97, 202, 202, 2463, 425, 9791, 967, 12, 425, 4595, 16, 2245, 11272, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Patch p = new Patch(sysex, this);
IPatch p = new Patch(sysex, this);
public Patch createNewPatch() { byte [] sysex = new byte[101]; sysex[0]=(byte)0xF0;sysex[1]=(byte)0x43;sysex[2]=(byte)0x00; sysex[3]=(byte)0x03;sysex[4]=(byte)0x00;sysex[5]=(byte)0x5D; sysex[100]=(byte)0xF7 ; Patch p = new Patch(sysex, this); setPatchName(p,"NewPatch"); calculateChecksum(p); return p; }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/b6e99a36d447b749f8ec1622f6d2477fcd586fcb/YamahaDX100SingleDriver.java/buggy/JSynthLib/synthdrivers/YamahaDX100/YamahaDX100SingleDriver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 12042, 15291, 7332, 1435, 288, 282, 1160, 5378, 1393, 20909, 273, 394, 1160, 63, 15168, 15533, 377, 1393, 20909, 63, 20, 65, 28657, 7229, 13, 20, 16275, 20, 31, 9009, 20909, 63, 21, 65, 28657, 7229, 13, 20, 92, 8942, 31, 9009, 20909, 63, 22, 65, 28657, 7229, 13, 20, 92, 713, 31, 377, 1393, 20909, 63, 23, 65, 28657, 7229, 13, 20, 92, 4630, 31, 9009, 20909, 63, 24, 65, 28657, 7229, 13, 20, 92, 713, 31, 9009, 20909, 63, 25, 65, 28657, 7229, 13, 20, 92, 25, 40, 31, 377, 1393, 20909, 63, 6625, 65, 28657, 7229, 13, 20, 16275, 27, 274, 225, 202, 7332, 293, 273, 394, 12042, 12, 9009, 20909, 16, 333, 1769, 202, 282, 444, 7332, 461, 12, 84, 10837, 1908, 7332, 8863, 202, 4604, 10723, 12, 84, 1769, 202, 3196, 327, 293, 31, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 12042, 15291, 7332, 1435, 288, 282, 1160, 5378, 1393, 20909, 273, 394, 1160, 63, 15168, 15533, 377, 1393, 20909, 63, 20, 65, 28657, 7229, 13, 20, 16275, 20, 31, 9009, 20909, 63, 21, 65, 28657, 7229, 13, 20, 92, 8942, 31, 9009, 20909, 63, 22, 65, 28657, 7229, 13, 20, 92, 713, 31, 377, 1393, 20909, 63, 23, 65, 28657, 7229, 13, 20, 92, 4630, 31, 9009, 20909, 63, 24, 65, 28657, 7229, 13, 20, 92, 713, 31, 9009, 20909, 63, 25, 65, 28657, 7229, 13, 20, 92, 25, 40, 31, 377, 1393, 20909, 63, 6625, 65, 28657, 7229, 13, 20, 16275, 27, 274, 225, 202, 7332, 293, 273, 394, 12042, 12, 9009, 20909, 16, 333, 1769, 202, 2 ]
ccController.parseConfigFileIfNecessary();
assertTrue(ccController.parseConfigFileIfNecessary());
public void testConfigReloadingWithXmlInclude() throws IOException, CruiseControlException { MyListener listener = new MyListener(); ccController = new CruiseControlController(); ccController.addListener(listener); FileWriter configOut2 = new FileWriter(configFile2); writeProjectDetails(configOut2, "testProject1"); writeProjectDetails(configOut2, "testProject2"); configOut2.close(); FileWriter wrapperConfigOut = new FileWriter(configFile); wrapperConfigOut.write("<?xml version=\"1.0\" ?>\n"); wrapperConfigOut.write("<!DOCTYPE cruisecontrol [ \n"); wrapperConfigOut.write("<!ENTITY projects SYSTEM \"" + configFile2.getName() + "\"> \n"); wrapperConfigOut.write("]> \n"); wrapperConfigOut.write("<cruisecontrol>\n"); wrapperConfigOut.write("&projects;"); writeFooterAndClose(wrapperConfigOut); ccController.setConfigFile(configFile); assertEquals(configFile, ccController.getConfigFile()); assertEquals(2, ccController.getProjects().size()); assertEquals(2, listener.added.size()); assertEquals(0, listener.removed.size()); listener.clear(); // no change - no reload ccController.parseConfigFileIfNecessary(); // nothing happened assertEquals(0, listener.added.size()); assertEquals(0, listener.removed.size()); // add a project: listener.clear(); sleep(1200); configOut2 = new FileWriter(configFile2); writeProjectDetails(configOut2, "testProject1"); writeProjectDetails(configOut2, "testProject2"); writeProjectDetails(configOut2, "testProject3"); configOut2.close(); ccController.parseConfigFileIfNecessary(); assertEquals(3, ccController.getProjects().size()); assertEquals(1, listener.added.size()); assertEquals(0, listener.removed.size()); // remove 2 projects listener.clear(); sleep(1200); configOut2 = new FileWriter(configFile2); writeProjectDetails(configOut2, "testProject3"); configOut2.close(); ccController.reloadConfigFile(); assertEquals(1, ccController.getProjects().size()); assertEquals(0, listener.added.size()); assertEquals(2, listener.removed.size()); }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/a5be57d8c6697f38d125c57cda0db87bf8c60a3a/CruiseControlControllerTest.java/clean/main/test/net/sourceforge/cruisecontrol/CruiseControlControllerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 809, 13013, 310, 1190, 4432, 8752, 1435, 1216, 1860, 16, 385, 8653, 784, 3367, 503, 288, 3639, 8005, 2223, 2991, 273, 394, 8005, 2223, 5621, 3639, 4946, 2933, 273, 394, 385, 8653, 784, 3367, 2933, 5621, 3639, 4946, 2933, 18, 1289, 2223, 12, 12757, 1769, 3639, 24639, 642, 1182, 22, 273, 394, 24639, 12, 1425, 812, 22, 1769, 3639, 1045, 4109, 3790, 12, 1425, 1182, 22, 16, 315, 3813, 4109, 21, 8863, 3639, 1045, 4109, 3790, 12, 1425, 1182, 22, 16, 315, 3813, 4109, 22, 8863, 3639, 642, 1182, 22, 18, 4412, 5621, 3639, 24639, 4053, 809, 1182, 273, 394, 24639, 12, 1425, 812, 1769, 3639, 4053, 809, 1182, 18, 2626, 2932, 12880, 2902, 1177, 5189, 21, 18, 20, 2412, 692, 5333, 82, 8863, 3639, 4053, 809, 1182, 18, 2626, 2932, 5586, 29824, 4422, 89, 291, 31313, 922, 306, 521, 82, 8863, 3639, 4053, 809, 1182, 18, 2626, 2932, 5586, 11101, 10137, 18786, 11843, 397, 12247, 22, 18, 17994, 1435, 397, 1548, 6441, 521, 82, 8863, 3639, 4053, 809, 1182, 18, 2626, 2932, 65, 34, 521, 82, 8863, 3639, 4053, 809, 1182, 18, 2626, 2932, 32, 3353, 89, 291, 31313, 922, 5333, 82, 8863, 3639, 4053, 809, 1182, 18, 2626, 2932, 10, 13582, 4868, 1769, 3639, 1045, 13787, 1876, 4605, 12, 8376, 809, 1182, 1769, 3639, 4946, 2933, 18, 542, 13705, 12, 1425, 812, 1769, 3639, 1815, 8867, 12, 1425, 812, 16, 4946, 2933, 18, 588, 13705, 10663, 3639, 1815, 8867, 12, 22, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 809, 13013, 310, 1190, 4432, 8752, 1435, 1216, 1860, 16, 385, 8653, 784, 3367, 503, 288, 3639, 8005, 2223, 2991, 273, 394, 8005, 2223, 5621, 3639, 4946, 2933, 273, 394, 385, 8653, 784, 3367, 2933, 5621, 3639, 4946, 2933, 18, 1289, 2223, 12, 12757, 1769, 3639, 24639, 642, 1182, 22, 273, 394, 24639, 12, 1425, 812, 22, 1769, 3639, 1045, 4109, 3790, 12, 1425, 1182, 22, 16, 315, 3813, 4109, 21, 8863, 3639, 1045, 4109, 3790, 12, 1425, 1182, 22, 16, 315, 3813, 4109, 22, 8863, 3639, 642, 1182, 22, 18, 4412, 5621, 3639, 24639, 4053, 809, 1182, 273, 394, 24639, 12, 1425, 812, 1769, 3639, 4053, 809, 1182, 18, 2626, 2932, 12880, 2902, 1177, 2 ]
SubString sub = interpretDollar(regExpImpl, da,
SubString sub = interpretDollar(cx, regExpImpl, da,
void doReplace(RegExpImpl regExpImpl, char[] charArray, int arrayIndex) { int cp = 0; char[] da = repstr; int dp = this.dollar; int bp = cp; if (dp != -1) { outer: for (;;) { int len = dp - cp; System.arraycopy(repstr, cp, charArray, arrayIndex, len); arrayIndex += len; cp = dp; int[] skip = { 0 }; SubString sub = interpretDollar(regExpImpl, da, dp, bp, skip); if (sub != null) { len = sub.length; if (len > 0) { System.arraycopy(sub.charArray, sub.index, charArray, arrayIndex, len); } arrayIndex += len; cp += skip[0]; dp += skip[0]; } else dp++; if (dp >= repstr.length) break; while (repstr[dp] != '$') { dp++; if (dp >= repstr.length) break outer; } } } if (repstr.length > cp) { System.arraycopy(repstr, cp, charArray, arrayIndex, repstr.length - cp); } }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/8b34980fb3adc3beae5bcea5913d426dc2e366c8/RegExpImpl.java/clean/js/rhino/src/org/mozilla/javascript/regexp/RegExpImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 741, 5729, 12, 13673, 2828, 31223, 2828, 16, 1149, 8526, 1149, 1076, 16, 10402, 509, 526, 1016, 13, 565, 288, 3639, 509, 3283, 273, 374, 31, 3639, 1149, 8526, 5248, 273, 2071, 701, 31, 3639, 509, 9986, 273, 333, 18, 72, 25442, 31, 3639, 509, 9107, 273, 3283, 31, 3639, 309, 261, 9295, 480, 300, 21, 13, 288, 1850, 6390, 30, 5411, 364, 261, 25708, 13, 288, 7734, 509, 562, 273, 9986, 300, 3283, 31, 7734, 2332, 18, 1126, 3530, 12, 14462, 701, 16, 3283, 16, 1149, 1076, 16, 526, 1016, 16, 4766, 562, 1769, 7734, 526, 1016, 1011, 562, 31, 7734, 3283, 273, 9986, 31, 7734, 509, 8526, 2488, 273, 288, 374, 289, 31, 7734, 2592, 780, 720, 273, 10634, 40, 25442, 12, 71, 92, 16, 31223, 2828, 16, 5248, 16, 4766, 7734, 9986, 16, 9107, 16, 2488, 1769, 7734, 309, 261, 1717, 480, 446, 13, 288, 10792, 562, 273, 720, 18, 2469, 31, 10792, 309, 261, 1897, 405, 374, 13, 288, 13491, 2332, 18, 1126, 3530, 12, 1717, 18, 3001, 1076, 16, 720, 18, 1615, 16, 1149, 1076, 16, 29159, 526, 1016, 16, 562, 1769, 10792, 289, 10792, 526, 1016, 1011, 562, 31, 10792, 3283, 1011, 2488, 63, 20, 15533, 10792, 9986, 1011, 2488, 63, 20, 15533, 7734, 289, 7734, 469, 10792, 9986, 9904, 31, 7734, 309, 261, 9295, 1545, 2071, 701, 18, 2469, 13, 898, 31, 7734, 1323, 261, 14462, 701, 63, 9295, 65, 480, 3365, 6134, 288, 10792, 9986, 9904, 31, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 741, 5729, 12, 13673, 2828, 31223, 2828, 16, 1149, 8526, 1149, 1076, 16, 10402, 509, 526, 1016, 13, 565, 288, 3639, 509, 3283, 273, 374, 31, 3639, 1149, 8526, 5248, 273, 2071, 701, 31, 3639, 509, 9986, 273, 333, 18, 72, 25442, 31, 3639, 509, 9107, 273, 3283, 31, 3639, 309, 261, 9295, 480, 300, 21, 13, 288, 1850, 6390, 30, 5411, 364, 261, 25708, 13, 288, 7734, 509, 562, 273, 9986, 300, 3283, 31, 7734, 2332, 18, 1126, 3530, 12, 14462, 701, 16, 3283, 16, 1149, 1076, 16, 526, 1016, 16, 4766, 562, 1769, 7734, 526, 1016, 1011, 562, 31, 7734, 3283, 273, 9986, 31, 7734, 509, 8526, 2488, 273, 288, 374, 289, 31, 7734, 2592, 2 ]
print("\t"); if (denominator > 0) print((int) ((((double) numerator) * 100.0) / ((double) denominator))); else print("0"); print("% of "); println(quantity); }
print("\t"); if (denominator > 0) print((int) ((((double) numerator) * 100.0) / ((double) denominator))); else print("0"); print("% of "); println(quantity); }
static void percentage (int numerator, int denominator, String quantity) { print("\t"); if (denominator > 0) print((int) ((((double) numerator) * 100.0) / ((double) denominator))); else print("0"); print("% of "); println(quantity); }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/4a987a25f93ceebb0f47a68989f48a184a7ef4ca/VM_Stats.java/buggy/rvm/src/vm/utility/VM_Stats.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 918, 11622, 261, 474, 16730, 16, 509, 15030, 16, 514, 10457, 13, 288, 202, 1188, 31458, 88, 8863, 202, 430, 261, 13002, 26721, 405, 374, 13, 3196, 565, 1172, 12443, 474, 13, 261, 12443, 12, 9056, 13, 16730, 13, 380, 2130, 18, 20, 13, 342, 14015, 9056, 13, 15030, 3719, 1769, 202, 12107, 202, 565, 1172, 2932, 20, 8863, 202, 1188, 27188, 434, 315, 1769, 202, 8222, 12, 16172, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 918, 11622, 261, 474, 16730, 16, 509, 15030, 16, 514, 10457, 13, 288, 202, 1188, 31458, 88, 8863, 202, 430, 261, 13002, 26721, 405, 374, 13, 3196, 565, 1172, 12443, 474, 13, 261, 12443, 12, 9056, 13, 16730, 13, 380, 2130, 18, 20, 13, 342, 14015, 9056, 13, 15030, 3719, 1769, 202, 12107, 202, 565, 1172, 2932, 20, 8863, 202, 1188, 27188, 434, 315, 1769, 202, 8222, 12, 16172, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH));
n.putIntProp(Node.ISNUMBER_PROP, Node.BOTH);
int rewriteForNumberVariables(Node n) { switch (n.getType()) { case TokenStream.POP : { Node child = n.getFirstChild(); int type = rewriteForNumberVariables(child); if (type == TypeEvent.NumberType) n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NoType; } case TokenStream.NUMBER : n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; case TokenStream.GETVAR : { OptLocalVariable theVar = (OptLocalVariable)(n.getProp(Node.VARIABLE_PROP)); if (theVar != null) { if (inDirectCallFunction && theVar.isParameter()) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; } else if (theVar.isNumber()) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; } } return TypeEvent.NoType; } case TokenStream.INC : case TokenStream.DEC : { Node child = n.getFirstChild(); // will be a GETVAR or GETPROP if (child.getType() == TokenStream.GETVAR) { OptLocalVariable theVar = (OptLocalVariable)(child.getProp(Node.VARIABLE_PROP)); if ((theVar != null) && theVar.isNumber()) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); markDCPNumberContext(child); return TypeEvent.NumberType; } else return TypeEvent.NoType; } else return TypeEvent.NoType; } case TokenStream.SETVAR : { Node lChild = n.getFirstChild(); Node rChild = lChild.getNextSibling(); int rType = rewriteForNumberVariables(rChild); OptLocalVariable theVar = (OptLocalVariable)(n.getProp(Node.VARIABLE_PROP)); if (inDirectCallFunction && theVar.isParameter()) { if (rType == TypeEvent.NumberType) { if (!convertParameter(rChild)) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; } markDCPNumberContext(rChild); return TypeEvent.NoType; } else return rType; } else { if ((theVar != null) && theVar.isNumber()) { if (rType != TypeEvent.NumberType) { n.removeChild(rChild); Node newRChild = new Node(TokenStream.CONVERT, rChild); newRChild.putProp(Node.TYPE_PROP, Double.class); n.addChildToBack(newRChild); } n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); markDCPNumberContext(rChild); return TypeEvent.NumberType; } else { if (rType == TypeEvent.NumberType) { if (!convertParameter(rChild)) { n.removeChild(rChild); Node newRChild = new Node(TokenStream.CONVERT, rChild); newRChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToBack(newRChild); } } return TypeEvent.NoType; } } } case TokenStream.RELOP : { Node lChild = n.getFirstChild(); Node rChild = lChild.getNextSibling(); int lType = rewriteForNumberVariables(lChild); int rType = rewriteForNumberVariables(rChild); markDCPNumberContext(lChild); markDCPNumberContext(rChild); if ((n.getInt() == TokenStream.INSTANCEOF) || (n.getInt() == TokenStream.IN)) { if (lType == TypeEvent.NumberType) { if (!convertParameter(lChild)) { n.removeChild(lChild); Node nuChild = new Node(TokenStream.CONVERT, lChild); nuChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToFront(nuChild); } } if (rType == TypeEvent.NumberType) { if (!convertParameter(rChild)) { n.removeChild(rChild); Node nuChild = new Node(TokenStream.CONVERT, rChild); nuChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToBack(nuChild); } } } else { if (convertParameter(lChild)) { if (convertParameter(rChild)) { return TypeEvent.NoType; } else { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.RIGHT)); } } } else { if (convertParameter(rChild)) { if (lType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.LEFT)); } } else { if (lType == TypeEvent.NumberType) { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); } else { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.LEFT)); } } else { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.RIGHT)); } } } } } // we actually build a boolean value return TypeEvent.NoType; } case TokenStream.ADD : { Node lChild = n.getFirstChild(); Node rChild = lChild.getNextSibling(); int lType = rewriteForNumberVariables(lChild); int rType = rewriteForNumberVariables(rChild); if (convertParameter(lChild)) { if (convertParameter(rChild)) { return TypeEvent.NoType; } else { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP,new Integer(Node.RIGHT)); } } } else { if (convertParameter(rChild)) { if (lType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP,new Integer(Node.LEFT)); } } else { if (lType == TypeEvent.NumberType) { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP,new Integer(Node.BOTH)); return TypeEvent.NumberType; } else { n.putProp(Node.ISNUMBER_PROP,new Integer(Node.LEFT)); } } else { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP,new Integer(Node.RIGHT)); } } } } return TypeEvent.NoType; } case TokenStream.BITXOR : case TokenStream.BITOR : case TokenStream.BITAND : case TokenStream.RSH : case TokenStream.LSH : case TokenStream.SUB : case TokenStream.MUL : case TokenStream.DIV : case TokenStream.MOD : { Node lChild = n.getFirstChild(); Node rChild = lChild.getNextSibling(); int lType = rewriteForNumberVariables(lChild); int rType = rewriteForNumberVariables(rChild); markDCPNumberContext(lChild); markDCPNumberContext(rChild); if (lType == TypeEvent.NumberType) { if (rType == TypeEvent.NumberType) { n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; } else { if (!convertParameter(rChild)) { n.removeChild(rChild); Node newRChild = new Node(TokenStream.CONVERT, rChild); newRChild.putProp(Node.TYPE_PROP, Double.class); n.addChildToBack(newRChild); n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); } return TypeEvent.NumberType; } } else { if (rType == TypeEvent.NumberType) { if (!convertParameter(lChild)) { n.removeChild(lChild); Node newLChild = new Node(TokenStream.CONVERT, lChild); newLChild.putProp(Node.TYPE_PROP, Double.class); n.addChildToFront(newLChild); n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); } return TypeEvent.NumberType; } else { if (!convertParameter(lChild)) { n.removeChild(lChild); Node newLChild = new Node(TokenStream.CONVERT, lChild); newLChild.putProp(Node.TYPE_PROP, Double.class); n.addChildToFront(newLChild); } if (!convertParameter(rChild)) { n.removeChild(rChild); Node newRChild = new Node(TokenStream.CONVERT, rChild); newRChild.putProp(Node.TYPE_PROP, Double.class); n.addChildToBack(newRChild); } n.putProp(Node.ISNUMBER_PROP, new Integer(Node.BOTH)); return TypeEvent.NumberType; } } } case TokenStream.SETELEM : { Node arrayBase = n.getFirstChild(); Node arrayIndex = arrayBase.getNextSibling(); Node rValue = arrayIndex.getNextSibling(); int baseType = rewriteForNumberVariables(arrayBase); if (baseType == TypeEvent.NumberType) {// can never happen ??? if (!convertParameter(arrayBase)) { n.removeChild(arrayBase); Node nuChild = new Node(TokenStream.CONVERT, arrayBase); nuChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToFront(nuChild); } } int indexType = rewriteForNumberVariables(arrayIndex); if (indexType == TypeEvent.NumberType) { // setting the ISNUMBER_PROP signals the codegen // to use the scriptRuntime.setElem that takes // a double index n.putProp(Node.ISNUMBER_PROP, new Integer(Node.LEFT)); markDCPNumberContext(arrayIndex); } int rValueType = rewriteForNumberVariables(rValue); if (rValueType == TypeEvent.NumberType) { if (!convertParameter(rValue)) { n.removeChild(rValue); Node nuChild = new Node(TokenStream.CONVERT, rValue); nuChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToBack(nuChild); } } return TypeEvent.NoType; } case TokenStream.GETELEM : { Node arrayBase = n.getFirstChild(); Node arrayIndex = arrayBase.getNextSibling(); int baseType = rewriteForNumberVariables(arrayBase); if (baseType == TypeEvent.NumberType) {// can never happen ??? if (!convertParameter(arrayBase)) { n.removeChild(arrayBase); Node nuChild = new Node(TokenStream.CONVERT, arrayBase); nuChild.putProp(Node.TYPE_PROP, Object.class); n.addChildToFront(nuChild); } } int indexType = rewriteForNumberVariables(arrayIndex); if (indexType == TypeEvent.NumberType) { // setting the ISNUMBER_PROP signals the codegen // to use the scriptRuntime.getElem that takes // a double index n.putProp(Node.ISNUMBER_PROP, new Integer(Node.RIGHT)); markDCPNumberContext(arrayIndex); } return TypeEvent.NoType; } case TokenStream.CALL : { FunctionNode target = (FunctionNode)n.getProp(Node.DIRECTCALL_PROP); if (target != null) {/* we leave each child as a Number if it can be. The codegen will handle moving the pairs of parameters.*/ Node child = n.getFirstChild(); // the function rewriteForNumberVariables(child); child = child.getNextSibling(); // the 'this' object rewriteForNumberVariables(child); child = child.getNextSibling(); // the first arg while (child != null) { int type = rewriteForNumberVariables(child); if (type == TypeEvent.NumberType) { markDCPNumberContext(child); } child = child.getNextSibling(); } return TypeEvent.NoType; } // else fall thru... } default : { Node child = n.getFirstChild(); while (child != null) { Node nextChild = child.getNextSibling(); int type = rewriteForNumberVariables(child); if (type == TypeEvent.NumberType) { if (!convertParameter(child)) { n.removeChild(child); Node nuChild = new Node(TokenStream.CONVERT, child); nuChild.putProp(Node.TYPE_PROP, Object.class); if (nextChild == null) n.addChildToBack(nuChild); else n.addChildBefore(nuChild, nextChild); } } child = nextChild; } return TypeEvent.NoType; } } }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/f6c346cc7699c007b0b9b27d9c3cdb5446052c64/Optimizer.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/Optimizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 509, 10738, 1290, 1854, 6158, 12, 907, 290, 13, 565, 288, 3639, 1620, 261, 82, 18, 588, 559, 10756, 288, 5411, 648, 3155, 1228, 18, 30374, 294, 288, 10792, 2029, 1151, 273, 290, 18, 588, 3759, 1763, 5621, 10792, 509, 618, 273, 10738, 1290, 1854, 6158, 12, 3624, 1769, 10792, 309, 261, 723, 422, 1412, 1133, 18, 1854, 559, 13, 13491, 290, 18, 458, 1702, 4658, 12, 907, 18, 5127, 9931, 67, 15811, 16, 2029, 18, 38, 18307, 1769, 5397, 327, 1412, 1133, 18, 2279, 559, 31, 7734, 289, 5411, 648, 3155, 1228, 18, 9931, 294, 7734, 290, 18, 458, 1702, 4658, 12, 907, 18, 5127, 9931, 67, 15811, 16, 2029, 18, 38, 18307, 1769, 7734, 327, 1412, 1133, 18, 1854, 559, 31, 5411, 648, 3155, 1228, 18, 3264, 7716, 294, 288, 10792, 12056, 2042, 3092, 326, 1537, 7682, 273, 261, 6179, 2042, 3092, 21433, 82, 18, 588, 4658, 12, 907, 18, 16444, 67, 15811, 10019, 10792, 309, 261, 5787, 1537, 480, 446, 13, 288, 13491, 309, 261, 267, 5368, 1477, 2083, 597, 326, 1537, 18, 291, 1662, 10756, 288, 18701, 290, 18, 458, 1702, 4658, 12, 907, 18, 5127, 9931, 67, 15811, 16, 2029, 18, 38, 18307, 1769, 18701, 327, 1412, 1133, 18, 1854, 559, 31, 13491, 289, 13491, 469, 18701, 309, 261, 5787, 1537, 18, 291, 1854, 10756, 288, 27573, 290, 18, 458, 1702, 4658, 12, 907, 18, 5127, 9931, 67, 15811, 16, 2029, 18, 38, 18307, 1769, 27573, 327, 1412, 1133, 18, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 10738, 1290, 1854, 6158, 12, 907, 290, 13, 565, 288, 3639, 1620, 261, 82, 18, 588, 559, 10756, 288, 5411, 648, 3155, 1228, 18, 30374, 294, 288, 10792, 2029, 1151, 273, 290, 18, 588, 3759, 1763, 5621, 10792, 509, 618, 273, 10738, 1290, 1854, 6158, 12, 3624, 1769, 10792, 309, 261, 723, 422, 1412, 1133, 18, 1854, 559, 13, 13491, 290, 18, 458, 1702, 4658, 12, 907, 18, 5127, 9931, 67, 15811, 16, 2029, 18, 38, 18307, 1769, 5397, 327, 1412, 1133, 18, 2279, 559, 31, 7734, 289, 5411, 648, 3155, 1228, 18, 9931, 294, 7734, 290, 18, 458, 1702, 4658, 12, 907, 18, 5127, 9931, 67, 15811, 16, 2029, 18, 38, 18307, 1769, 7734, 327, 1412, 2 ]
return (IScannerInfo) getBuildInfo(resource.getProject(), false);
return (IScannerInfo) getBuildInfo(resource.getProject());
public IScannerInfo getScannerInformation(IResource resource) { return (IScannerInfo) getBuildInfo(resource.getProject(), false); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/5f5b6bc0d76595e4b92f22fb99ae2c6a05ae6e12/ManagedBuildManager.java/buggy/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 11338, 966, 11971, 3818, 5369, 12, 45, 1420, 1058, 13, 288, 202, 202, 2463, 261, 45, 11338, 966, 13, 21122, 966, 12, 3146, 18, 588, 4109, 9334, 629, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 467, 11338, 966, 11971, 3818, 5369, 12, 45, 1420, 1058, 13, 288, 202, 202, 2463, 261, 45, 11338, 966, 13, 21122, 966, 12, 3146, 18, 588, 4109, 9334, 629, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public CmsPointerLinkValidatorThread(CmsObject cms) { super(cms, "test test"); initHtmlReport(cms.getRequestContext().getLocale()); m_cms = cms; m_cms.getRequestContext().setUpdateSessionEnabled(false); m_externLinkValidator = new CmsPointerLinkValidator(); m_externLinkValidator.setReport(getReport()); start(); }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/8e5ec1587622bcff5ef3c95201cc74d091b0a04c/CmsPointerLinkValidatorThread.java/buggy/src/org/opencms/workplace/threads/CmsPointerLinkValidatorThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2149, 4926, 2098, 5126, 3830, 12, 4747, 921, 6166, 13, 288, 2868, 2240, 12, 6851, 16, 315, 3813, 1842, 8863, 3639, 1208, 4353, 4820, 12, 6851, 18, 588, 21426, 7675, 588, 3916, 10663, 3639, 312, 67, 6851, 273, 6166, 31, 3639, 312, 67, 6851, 18, 588, 21426, 7675, 542, 1891, 2157, 1526, 12, 5743, 1769, 3639, 312, 67, 338, 798, 2098, 5126, 273, 394, 2149, 4926, 2098, 5126, 5621, 3639, 312, 67, 338, 798, 2098, 5126, 18, 542, 4820, 12, 588, 4820, 10663, 3639, 787, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2149, 4926, 2098, 5126, 3830, 12, 4747, 921, 6166, 13, 288, 2868, 2240, 12, 6851, 16, 315, 3813, 1842, 8863, 3639, 1208, 4353, 4820, 12, 6851, 18, 588, 21426, 7675, 588, 3916, 10663, 3639, 312, 67, 6851, 273, 6166, 31, 3639, 312, 67, 6851, 18, 588, 21426, 7675, 542, 1891, 2157, 1526, 12, 5743, 1769, 3639, 312, 67, 338, 798, 2098, 5126, 273, 394, 2149, 4926, 2098, 5126, 5621, 3639, 312, 67, 338, 798, 2098, 5126, 18, 542, 4820, 12, 588, 4820, 10663, 3639, 787, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
editor.setSize(editorSize);
editor.setSize(editorSize);
private void doLayout() { if (left == null && top == null) { Rectangle area = getClientArea(); if (!editor.getBounds().equals(area)) editor.setBounds(area); return; } int leftWidth, rightWidth, topHeight, bottomHeight; leftWidth = left == null ? 0 : left.getControl().computeSize(SWT.DEFAULT, SWT.DEFAULT).x; rightWidth = 0; topHeight = top == null ? 0 : top.getControl().computeSize(SWT.DEFAULT, SWT.DEFAULT).y; bottomHeight = 0; Point size = getSize(); Point editorSize = new Point(size.x - (leftWidth + rightWidth), size.y - (topHeight + bottomHeight)); if (!editor.getSize().equals(editorSize)) editor.setSize(editorSize); Point editorLocation = new Point(leftWidth, topHeight); if (!editor.getLocation().equals(editorLocation)) editor.setLocation(editorLocation); int vBarWidth = 0, hBarHeight = 0; Rectangle trim = editor.computeTrim(0, 0, 0, 0); /* * Fix for Bug# 67554 * Motif leaves a few pixels of space around the Canvas which * can cause the rulers to be misaligned. */ if (editor.getVerticalBar().getVisible()) vBarWidth = trim.width + ("motif".equals(SWT.getPlatform()) ? trim.x * 2 : 0); //$NON-NLS-1$ if (editor.getHorizontalBar().getVisible()) hBarHeight = trim.height + ("motif".equals(SWT.getPlatform()) ? trim.y * 2 : 0); //$NON-NLS-1$ if (left != null) { Rectangle leftBounds = new Rectangle( 0, topHeight - 1, leftWidth, editorSize.y - hBarHeight); if (!left.getControl().getBounds().equals(leftBounds)) left.getControl().setBounds(leftBounds); } if (top != null) { Rectangle topBounds = new Rectangle( leftWidth - 1, 0, editorSize.x - vBarWidth, topHeight); if (!top.getControl().getBounds().equals(topBounds)) top.getControl().setBounds(topBounds); }}
11225 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11225/334a0baf29e5022105c3c4a0ed673f2b5c26efac/RulerComposite.java/clean/org.eclipse.gef/src/org/eclipse/gef/ui/rulers/RulerComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 918, 741, 3744, 1435, 288, 202, 430, 261, 4482, 422, 446, 597, 1760, 422, 446, 13, 288, 202, 202, 19463, 5091, 273, 7635, 5484, 5621, 202, 202, 430, 16051, 9177, 18, 588, 5694, 7675, 14963, 12, 5036, 3719, 1082, 202, 9177, 18, 542, 5694, 12, 5036, 1769, 202, 202, 2463, 31, 202, 97, 202, 202, 474, 2002, 2384, 16, 2145, 2384, 16, 1760, 2686, 16, 5469, 2686, 31, 202, 4482, 2384, 273, 2002, 422, 446, 692, 374, 1875, 202, 30, 2002, 18, 588, 3367, 7675, 9200, 1225, 12, 55, 8588, 18, 5280, 16, 348, 8588, 18, 5280, 2934, 92, 31, 202, 4083, 2384, 273, 374, 31, 225, 202, 3669, 2686, 273, 1760, 422, 446, 692, 374, 1875, 202, 30, 1760, 18, 588, 3367, 7675, 9200, 1225, 12, 55, 8588, 18, 5280, 16, 348, 8588, 18, 5280, 2934, 93, 31, 202, 9176, 2686, 273, 374, 31, 225, 202, 2148, 963, 273, 9950, 5621, 202, 2148, 4858, 1225, 273, 394, 4686, 12, 1467, 18, 92, 300, 261, 4482, 2384, 397, 2145, 2384, 3631, 4697, 282, 963, 18, 93, 300, 261, 3669, 2686, 397, 5469, 2686, 10019, 202, 430, 16051, 9177, 18, 588, 1225, 7675, 14963, 12, 9177, 1225, 3719, 202, 202, 9177, 18, 542, 1225, 12, 9177, 1225, 1769, 1082, 202, 2148, 4858, 2735, 273, 394, 4686, 12, 4482, 2384, 16, 1760, 2686, 1769, 202, 430, 16051, 9177, 18, 588, 2735, 7675, 14963, 12, 9177, 2735, 3719, 202, 202, 9177, 18, 542, 2735, 12, 9177, 2735, 1769, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 918, 741, 3744, 1435, 288, 202, 430, 261, 4482, 422, 446, 597, 1760, 422, 446, 13, 288, 202, 202, 19463, 5091, 273, 7635, 5484, 5621, 202, 202, 430, 16051, 9177, 18, 588, 5694, 7675, 14963, 12, 5036, 3719, 1082, 202, 9177, 18, 542, 5694, 12, 5036, 1769, 202, 202, 2463, 31, 202, 97, 202, 202, 474, 2002, 2384, 16, 2145, 2384, 16, 1760, 2686, 16, 5469, 2686, 31, 202, 4482, 2384, 273, 2002, 422, 446, 692, 374, 1875, 202, 30, 2002, 18, 588, 3367, 7675, 9200, 1225, 12, 55, 8588, 18, 5280, 16, 348, 8588, 18, 5280, 2934, 92, 31, 202, 4083, 2384, 273, 374, 31, 225, 202, 3669, 2686, 273, 1760, 422, 446, 692, 374, 1875, 202, 2 ]
public LiteralConstraint(final FieldValue field, final FieldExtractor extractor, final Evaluator evaluator) { this.field = field;
public LiteralConstraint(final FieldExtractor extractor, final Evaluator evaluator, final FieldValue field) {
public LiteralConstraint(final FieldValue field, final FieldExtractor extractor, final Evaluator evaluator) { this.field = field; this.extractor = extractor; this.evaluator = evaluator; }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/ad5959519a3381e0d18f0c39e6a134da14b91b0e/LiteralConstraint.java/buggy/drools-core/src/main/java/org/drools/rule/LiteralConstraint.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 14392, 5806, 12, 6385, 2286, 620, 652, 16, 11794, 727, 2286, 10958, 14031, 16, 11794, 727, 31956, 18256, 13, 288, 3639, 333, 18, 1518, 273, 652, 31, 3639, 333, 18, 26108, 273, 14031, 31, 3639, 333, 18, 14168, 639, 273, 18256, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 14392, 5806, 12, 6385, 2286, 620, 652, 16, 11794, 727, 2286, 10958, 14031, 16, 11794, 727, 31956, 18256, 13, 288, 3639, 333, 18, 1518, 273, 652, 31, 3639, 333, 18, 26108, 273, 14031, 31, 3639, 333, 18, 14168, 639, 273, 18256, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
state.setResult(((RubyModule) state.getResult()).getConstantAtOrConstantMissing(iVisited.getName()));
state.setResult(((RubyModule) state.getResult()).getConstantFrom(iVisited.getName()));
public void execute(EvaluationState state, InstructionContext ctx) { Colon2Node iVisited = (Colon2Node)ctx; if (state.getResult() instanceof RubyModule) { state.setResult(((RubyModule) state.getResult()).getConstantAtOrConstantMissing(iVisited.getName())); } else { state.setResult(state.getResult().callMethod(iVisited.getName())); } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/EvaluateVisitor.java/buggy/src/org/jruby/evaluator/EvaluateVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 202, 482, 918, 1836, 12, 13468, 1119, 919, 16, 24605, 1042, 1103, 13, 288, 377, 202, 202, 19636, 22, 907, 277, 30019, 273, 261, 19636, 22, 907, 13, 5900, 31, 5411, 309, 261, 2019, 18, 588, 1253, 1435, 1276, 19817, 3120, 13, 288, 7734, 919, 18, 542, 1253, 12443, 12, 54, 10340, 3120, 13, 919, 18, 588, 1253, 1435, 2934, 588, 6902, 1265, 12, 77, 30019, 18, 17994, 1435, 10019, 5411, 289, 469, 288, 7734, 919, 18, 542, 1253, 12, 2019, 18, 588, 1253, 7675, 1991, 1305, 12, 77, 30019, 18, 17994, 1435, 10019, 5411, 289, 377, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1377, 202, 482, 918, 1836, 12, 13468, 1119, 919, 16, 24605, 1042, 1103, 13, 288, 377, 202, 202, 19636, 22, 907, 277, 30019, 273, 261, 19636, 22, 907, 13, 5900, 31, 5411, 309, 261, 2019, 18, 588, 1253, 1435, 1276, 19817, 3120, 13, 288, 7734, 919, 18, 542, 1253, 12443, 12, 54, 10340, 3120, 13, 919, 18, 588, 1253, 1435, 2934, 588, 6902, 1265, 12, 77, 30019, 18, 17994, 1435, 10019, 5411, 289, 469, 288, 7734, 919, 18, 542, 1253, 12, 2019, 18, 588, 1253, 7675, 1991, 1305, 12, 77, 30019, 18, 17994, 1435, 10019, 5411, 289, 377, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
int count = 3;
public void testgetByte() throws Exception { ResultSet rs = con.createStatement().executeQuery("select * from testnumeric"); boolean thrown = false; assertTrue(rs.next()); assertEquals(1,rs.getByte(1)); assertTrue(rs.next()); assertEquals(0,rs.getByte(1)); assertTrue(rs.next()); assertEquals(-1,rs.getByte(1)); int count = 3; while (rs.next()) { try { rs.getByte(1); } catch (Exception e) { thrown = true; } if (!thrown) fail("Exception expected."); count++; } if (count != 9) fail("Exception expected."); }
47288 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47288/618d56d09a272f1d74dcfadbd245ef4452064e4e/ResultSetTest.java/clean/src/interfaces/jdbc/org/postgresql/test/jdbc2/ResultSetTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3639, 1071, 918, 1842, 588, 3216, 1435, 1216, 1185, 4202, 288, 3639, 202, 202, 13198, 3597, 273, 356, 18, 2640, 3406, 7675, 8837, 1138, 2932, 4025, 380, 628, 1842, 5246, 8863, 202, 202, 6494, 6718, 273, 629, 31, 9506, 202, 11231, 5510, 12, 5453, 18, 4285, 10663, 202, 202, 11231, 8867, 12, 21, 16, 5453, 18, 588, 3216, 12, 21, 10019, 9506, 202, 11231, 5510, 12, 5453, 18, 4285, 10663, 202, 202, 11231, 8867, 12, 20, 16, 5453, 18, 588, 3216, 12, 21, 10019, 9506, 202, 11231, 5510, 12, 5453, 18, 4285, 10663, 202, 202, 11231, 8867, 19236, 21, 16, 5453, 18, 588, 3216, 12, 21, 10019, 202, 202, 474, 1056, 273, 890, 31, 9506, 202, 17523, 261, 5453, 18, 4285, 10756, 202, 202, 95, 1082, 202, 698, 1082, 202, 95, 9506, 202, 5453, 18, 588, 3216, 12, 21, 1769, 1082, 202, 97, 1082, 202, 14683, 261, 503, 425, 13, 1082, 202, 95, 9506, 202, 12849, 82, 273, 638, 31, 1082, 202, 97, 1082, 202, 430, 16051, 12849, 82, 13, 9506, 202, 6870, 2932, 503, 2665, 1199, 1769, 1082, 202, 1883, 9904, 31, 202, 202, 97, 202, 202, 430, 261, 1883, 480, 2468, 13, 1082, 202, 6870, 2932, 503, 2665, 1199, 1769, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3639, 1071, 918, 1842, 588, 3216, 1435, 1216, 1185, 4202, 288, 3639, 202, 202, 13198, 3597, 273, 356, 18, 2640, 3406, 7675, 8837, 1138, 2932, 4025, 380, 628, 1842, 5246, 8863, 202, 202, 6494, 6718, 273, 629, 31, 9506, 202, 11231, 5510, 12, 5453, 18, 4285, 10663, 202, 202, 11231, 8867, 12, 21, 16, 5453, 18, 588, 3216, 12, 21, 10019, 9506, 202, 11231, 5510, 12, 5453, 18, 4285, 10663, 202, 202, 11231, 8867, 12, 20, 16, 5453, 18, 588, 3216, 12, 21, 10019, 9506, 202, 11231, 5510, 12, 5453, 18, 4285, 10663, 202, 202, 11231, 8867, 19236, 21, 16, 5453, 18, 588, 3216, 12, 21, 10019, 202, 202, 474, 1056, 273, 890, 31, 9506, 202, 17523, 261, 5453, 2 ]
/*this.getCollectionClass(),*/
/* this.getCollectionClass(), */
public Object executeQueryByCriteria(Class queryClass, Criteria crit) throws org.odmg.QueryException { Query query = QueryFactory.newQuery(queryClass, crit, true); //setBindIterator(flatten(query.getCriteria(), new Vector()).listIterator()); //setQuery(query); try { //obtain current ODMG transaction Transaction tx = TxManagerFactory.instance().getTransaction(); // we allow queries even if no ODMG transaction is running. // thus we have to provide a pseudo tx if necessary boolean needsCommit = false; if (tx == null) { throw new org.odmg.QueryException("Transaction Null!"); //tx = OJBFactory.getInstance().newTransaction(); } // we allow to work with unopened transactions. // we assume that such a tx is to be closed after performing the query if (!tx.isOpen()) { tx.begin(); needsCommit = true; } // obtain a broker instance from the current transaction PersistenceBroker broker = ((HasBroker) tx).getBroker(); // if(needsCommit) broker.beginTransaction(); // ask the broker to perfom the query. // the concrete result type is configurable ManageableCollection result = (ManageableCollection) broker.getCollectionByQuery( /*this.getCollectionClass(),*/ query); // if(needsCommit) broker.commitTransaction(); // read-lock all resulting objects to the current transaction Iterator iter = result.ojbIterator(); Object toBeLocked = null; while (iter.hasNext()) { toBeLocked = iter.next(); /** * we can only lock objects, not attributes */ if (broker.hasClassDescriptor(toBeLocked.getClass())) tx.lock(toBeLocked, Transaction.READ); } // if query was executed with pseudo tx or with unopened tx, commit it if (needsCommit) { tx.commit(); } return result; } catch (Throwable t) { throw new org.odmg.QueryException(t.getMessage()); } }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/6ca2544838224cd23598593a21b6f0d829da12a0/ObjectFenixOJB.java/buggy/src/ServidorPersistente/OJB/ObjectFenixOJB.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 14304, 858, 7231, 12, 797, 843, 797, 16, 8356, 7921, 13, 1216, 2358, 18, 369, 81, 75, 18, 1138, 503, 565, 288, 3639, 2770, 843, 273, 2770, 1733, 18, 2704, 1138, 12, 2271, 797, 16, 7921, 16, 638, 1769, 3639, 368, 542, 3357, 3198, 12, 16940, 12, 2271, 18, 588, 7231, 9334, 394, 5589, 1435, 2934, 1098, 3198, 10663, 3639, 368, 542, 1138, 12, 2271, 1769, 3639, 775, 3639, 288, 5411, 368, 947, 5977, 783, 531, 16125, 43, 2492, 5411, 5947, 2229, 273, 6424, 20012, 18, 1336, 7675, 588, 3342, 5621, 5411, 368, 732, 1699, 6218, 5456, 309, 1158, 531, 16125, 43, 2492, 353, 3549, 18, 5411, 368, 12493, 732, 1240, 358, 5615, 279, 12454, 2229, 309, 4573, 5411, 1250, 4260, 5580, 273, 629, 31, 5411, 309, 261, 978, 422, 446, 13, 5411, 288, 7734, 604, 394, 2358, 18, 369, 81, 75, 18, 1138, 503, 2932, 3342, 4112, 4442, 1769, 7734, 368, 978, 273, 531, 8877, 1733, 18, 588, 1442, 7675, 2704, 3342, 5621, 5411, 289, 5411, 368, 732, 1699, 358, 1440, 598, 640, 25304, 8938, 18, 5411, 368, 732, 6750, 716, 4123, 279, 2229, 353, 358, 506, 4375, 1839, 14928, 326, 843, 5411, 309, 16051, 978, 18, 291, 3678, 10756, 5411, 288, 7734, 2229, 18, 10086, 5621, 7734, 4260, 5580, 273, 638, 31, 5411, 289, 5411, 368, 7161, 279, 8625, 791, 628, 326, 783, 2492, 5411, 13381, 11194, 8625, 273, 14015, 5582, 11194, 13, 2229, 2934, 588, 11194, 5621, 5411, 368, 6862, 225, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 14304, 858, 7231, 12, 797, 843, 797, 16, 8356, 7921, 13, 1216, 2358, 18, 369, 81, 75, 18, 1138, 503, 565, 288, 3639, 2770, 843, 273, 2770, 1733, 18, 2704, 1138, 12, 2271, 797, 16, 7921, 16, 638, 1769, 3639, 368, 542, 3357, 3198, 12, 16940, 12, 2271, 18, 588, 7231, 9334, 394, 5589, 1435, 2934, 1098, 3198, 10663, 3639, 368, 542, 1138, 12, 2271, 1769, 3639, 775, 3639, 288, 5411, 368, 947, 5977, 783, 531, 16125, 43, 2492, 5411, 5947, 2229, 273, 6424, 20012, 18, 1336, 7675, 588, 3342, 5621, 5411, 368, 732, 1699, 6218, 5456, 309, 1158, 531, 16125, 43, 2492, 353, 3549, 18, 5411, 368, 12493, 732, 1240, 358, 5615, 279, 12454, 2229, 2 ]
for (java.util.Enumeration enum = jj_expentries.elements(); enum.hasMoreElements();) { int[] oldentry = (int[])(enum.nextElement());
for (java.util.Enumeration e = jj_expentries.elements(); e.hasMoreElements();) { int[] oldentry = (int[])(e.nextElement());
private void jj_add_error_token(int kind, int pos) { if (pos >= 100) return; if (pos == jj_endpos + 1) { jj_lasttokens[jj_endpos++] = kind; } else if (jj_endpos != 0) { jj_expentry = new int[jj_endpos]; for (int i = 0; i < jj_endpos; i++) { jj_expentry[i] = jj_lasttokens[i]; } boolean exists = false; for (java.util.Enumeration enum = jj_expentries.elements(); enum.hasMoreElements();) { int[] oldentry = (int[])(enum.nextElement()); if (oldentry.length == jj_expentry.length) { exists = true; for (int i = 0; i < jj_expentry.length; i++) { if (oldentry[i] != jj_expentry[i]) { exists = false; break; } } if (exists) break; } }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/d42ce7980bc2030e88ae13be5cf1b864eee291da/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 10684, 67, 1289, 67, 1636, 67, 2316, 12, 474, 3846, 16, 509, 949, 13, 288, 565, 309, 261, 917, 1545, 2130, 13, 327, 31, 565, 309, 261, 917, 422, 10684, 67, 409, 917, 397, 404, 13, 288, 1377, 10684, 67, 2722, 7860, 63, 78, 78, 67, 409, 917, 9904, 65, 273, 3846, 31, 565, 289, 469, 309, 261, 78, 78, 67, 409, 917, 480, 374, 13, 288, 1377, 10684, 67, 338, 1907, 698, 273, 394, 509, 63, 78, 78, 67, 409, 917, 15533, 1377, 364, 261, 474, 277, 273, 374, 31, 277, 411, 10684, 67, 409, 917, 31, 277, 27245, 288, 3639, 10684, 67, 338, 1907, 698, 63, 77, 65, 273, 10684, 67, 2722, 7860, 63, 77, 15533, 1377, 289, 1377, 1250, 1704, 273, 629, 31, 1377, 364, 261, 6290, 18, 1367, 18, 21847, 2792, 273, 10684, 67, 338, 1907, 2007, 18, 6274, 5621, 2792, 18, 5332, 7417, 3471, 5621, 13, 288, 3639, 509, 8526, 1592, 4099, 273, 261, 474, 63, 5717, 12, 7924, 18, 4285, 1046, 10663, 3639, 309, 261, 1673, 4099, 18, 2469, 422, 10684, 67, 338, 1907, 698, 18, 2469, 13, 288, 1850, 1704, 273, 638, 31, 1850, 364, 261, 474, 277, 273, 374, 31, 277, 411, 10684, 67, 338, 1907, 698, 18, 2469, 31, 277, 27245, 288, 5411, 309, 261, 1673, 4099, 63, 77, 65, 480, 10684, 67, 338, 1907, 698, 63, 77, 5717, 288, 2868, 1704, 273, 629, 31, 2868, 898, 31, 5411, 289, 1850, 289, 1850, 309, 261, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10684, 67, 1289, 67, 1636, 67, 2316, 12, 474, 3846, 16, 509, 949, 13, 288, 565, 309, 261, 917, 1545, 2130, 13, 327, 31, 565, 309, 261, 917, 422, 10684, 67, 409, 917, 397, 404, 13, 288, 1377, 10684, 67, 2722, 7860, 63, 78, 78, 67, 409, 917, 9904, 65, 273, 3846, 31, 565, 289, 469, 309, 261, 78, 78, 67, 409, 917, 480, 374, 13, 288, 1377, 10684, 67, 338, 1907, 698, 273, 394, 509, 63, 78, 78, 67, 409, 917, 15533, 1377, 364, 261, 474, 277, 273, 374, 31, 277, 411, 10684, 67, 409, 917, 31, 277, 27245, 288, 3639, 10684, 67, 338, 1907, 698, 63, 77, 65, 273, 10684, 67, 2722, 7860, 63, 2 ]
RequestLine requestLine = new RequestLine(); requestLine.setUri((GenericURI) getRemoteParty().getURI()); requestLine.setMethod(method); SIPRequest sipRequest = originalRequest.createSIPRequest(requestLine, this.isServer()); try { if (!method.equals(Request.ACK)) { CSeq cseq = (CSeq) sipRequest.getCSeq(); cseq.setSequenceNumber(this.localSequenceNumber + 1); } else { SIPTransaction transaction = this.lastTransaction; if (transaction == null) throw new SipException("Could not create ack!"); SIPResponse response = (SIPResponse) this.lastTransaction .getLastResponse(); if (response == null) throw new SipException("Could not find response!"); int seqno = response.getCSeq().getSequenceNumber(); CSeq cseq = (CSeq) sipRequest.getCSeq(); cseq.setSequenceNumber(seqno); } } catch (InvalidArgumentException ex) { InternalErrorHandler.handleException(ex); } if (isServer()) { sipRequest.removeHeader(ViaHeader.NAME); MessageProcessor messageProcessor = sipStack .getMessageProcessor(firstTransaction.encapsulatedChannel .getTransport()); Via via = messageProcessor.getViaHeader(); sipRequest.addHeader(via); } From from = (From) sipRequest.getFrom(); To to = (To) sipRequest.getTo(); try { if (this.getLocalTag() != null) from.setTag(this.getLocalTag()); if (this.getRemoteTag() != null) to.setTag(this.getRemoteTag()); } catch (ParseException ex) { InternalErrorHandler.handleException(ex); } RouteList rl = this.getRouteList(); if (rl.size() > 0) { Route route = (Route) rl.getFirst(); SipURI sipUri = (SipUri) route.getAddress().getURI(); if (sipUri.hasLrParam()) { sipRequest.addHeader(rl); } else { rl.removeFirst(); sipRequest.setRequestURI(sipUri); if (rl.size() > 0) sipRequest.addHeader(rl); if (this.contactRoute != null) sipRequest.addHeader(contactRoute); } } else { } try { if (sipRequest.getRequestURI() instanceof SipUri) { SipUri cloned = (SipUri) sipRequest.getRequestURI().clone(); cloned.setTransportParam(sipRequest.getTopmostVia().getTransport()); sipRequest.setRequestURI( cloned ); } } catch (ParseException ex) { } return sipRequest; }
if (this.lastResponse != null) return this.createRequest(method, this.lastResponse); else throw new SipException("Dialog not yet established -- no response!"); }
public Request createRequest(String method) throws SipException { // Check if the dialog is in the right state (RFC 3261 section 15). // The caller's UA MAY send a BYE for either // CONFIRMED or EARLY dialogs, and the callee's UA MAY send a BYE on // CONFIRMED dialogs, but MUST NOT send a BYE on EARLY dialogs. if (method == null) throw new NullPointerException("null method"); else if (this.getState() == null || (this.getState().getValue() == TERMINATED_STATE && !method .equalsIgnoreCase(Request.BYE)) || (this.isServer() && this.getState().getValue() == EARLY_STATE && method .equalsIgnoreCase(Request.BYE))) throw new SipException("Dialog " + getDialogId() + " not yet established or terminated " + this.getState()); RequestLine requestLine = new RequestLine(); requestLine.setUri((GenericURI) getRemoteParty().getURI()); requestLine.setMethod(method); SIPRequest sipRequest = originalRequest.createSIPRequest(requestLine, this.isServer()); try { // Guess of local sequence number - this is being re-set when // the request is actually dispatched ( reported by Brad Templeton // and Antonis Karydas). if (!method.equals(Request.ACK)) { CSeq cseq = (CSeq) sipRequest.getCSeq(); cseq.setSequenceNumber(this.localSequenceNumber + 1); } else { // This is an ACK request. Get the last transaction and // assign a seq number from there. // Bug noticed by Andreas Bystrom. SIPTransaction transaction = this.lastTransaction; if (transaction == null) throw new SipException("Could not create ack!"); SIPResponse response = (SIPResponse) this.lastTransaction .getLastResponse(); if (response == null) throw new SipException("Could not find response!"); int seqno = response.getCSeq().getSequenceNumber(); CSeq cseq = (CSeq) sipRequest.getCSeq(); cseq.setSequenceNumber(seqno); } } catch (InvalidArgumentException ex) { InternalErrorHandler.handleException(ex); } if (isServer()) { // Remove the old via headers. sipRequest.removeHeader(ViaHeader.NAME); // Add a via header for the outbound request based on the // transport of the message processor. MessageProcessor messageProcessor = sipStack .getMessageProcessor(firstTransaction.encapsulatedChannel .getTransport()); Via via = messageProcessor.getViaHeader(); sipRequest.addHeader(via); } From from = (From) sipRequest.getFrom(); To to = (To) sipRequest.getTo(); try { if (this.getLocalTag() != null) from.setTag(this.getLocalTag()); if (this.getRemoteTag() != null) to.setTag(this.getRemoteTag()); } catch (ParseException ex) { InternalErrorHandler.handleException(ex); } // get the route list from the dialog. RouteList rl = this.getRouteList(); // Add it to the header. if (rl.size() > 0) { Route route = (Route) rl.getFirst(); SipURI sipUri = (SipUri) route.getAddress().getURI(); if (sipUri.hasLrParam()) { // JvB: not needed, already set on line 1264 //if (this.getRemoteTarget() != null) // sipRequest.setRequestURI(this.getRemoteTarget().getURI()); sipRequest.addHeader(rl); } else { // First route is not a lr // Add the contact route to the end. rl.removeFirst(); sipRequest.setRequestURI(sipUri); // Bug report from Brad Templeton // Check for 0 size - Bug report from Andreas Bystrom. if (rl.size() > 0) sipRequest.addHeader(rl); if (this.contactRoute != null) sipRequest.addHeader(contactRoute); } } else { // // JvB: see line 1264 // // Bug report from Antonis Karydas // if (this.getRemoteTarget() != null) // sipRequest.setRequestURI(this.getRemoteTarget().getURI()); } // Set the transport to be the same for the outgoing request. try { if (sipRequest.getRequestURI() instanceof SipUri) { // JvB: first clone the URI, it may be used in other headers // too! (e.g. Contact, reported by Matt Porter) SipUri cloned = (SipUri) sipRequest.getRequestURI().clone(); cloned.setTransportParam(sipRequest.getTopmostVia().getTransport()); sipRequest.setRequestURI( cloned ); } } catch (ParseException ex) { } return sipRequest; }
3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/68c0ca844a7d5fe4a7744cbf9898184966ce0680/SIPDialog.java/clean/src/gov/nist/javax/sip/stack/SIPDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1567, 15798, 12, 780, 707, 13, 1216, 13475, 503, 288, 3639, 368, 2073, 309, 326, 6176, 353, 316, 326, 2145, 919, 261, 17926, 3847, 9498, 2442, 4711, 2934, 3639, 368, 1021, 4894, 1807, 587, 37, 490, 5255, 1366, 279, 6953, 41, 364, 3344, 3639, 368, 3492, 1653, 54, 25773, 578, 512, 985, 7076, 7609, 14072, 16, 471, 326, 14425, 1807, 587, 37, 490, 5255, 1366, 279, 6953, 41, 603, 3639, 368, 3492, 1653, 54, 25773, 7609, 14072, 16, 1496, 10685, 4269, 1366, 279, 6953, 41, 603, 512, 985, 7076, 7609, 14072, 18, 3639, 309, 261, 2039, 422, 446, 13, 5411, 604, 394, 10108, 2932, 2011, 707, 8863, 3639, 469, 309, 261, 2211, 18, 588, 1119, 1435, 422, 446, 7734, 747, 261, 2211, 18, 588, 1119, 7675, 24805, 1435, 422, 20772, 6236, 6344, 67, 7998, 597, 401, 2039, 13491, 263, 14963, 5556, 12, 691, 18, 6486, 41, 3719, 7734, 747, 261, 2211, 18, 291, 2081, 1435, 13491, 597, 333, 18, 588, 1119, 7675, 24805, 1435, 422, 512, 985, 7076, 67, 7998, 597, 707, 13491, 263, 14963, 5556, 12, 691, 18, 6486, 41, 20349, 5411, 604, 394, 13475, 503, 2932, 6353, 225, 315, 397, 31774, 548, 1435, 10792, 397, 315, 486, 4671, 19703, 578, 14127, 315, 397, 333, 18, 588, 1119, 10663, 3639, 1567, 1670, 590, 1670, 273, 394, 1567, 1670, 5621, 3639, 590, 1670, 18, 542, 3006, 12443, 7014, 3098, 13, 14879, 17619, 7675, 588, 3098, 10663, 3639, 590, 1670, 18, 542, 1305, 12, 2039, 1769, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1567, 15798, 12, 780, 707, 13, 1216, 13475, 503, 288, 3639, 368, 2073, 309, 326, 6176, 353, 316, 326, 2145, 919, 261, 17926, 3847, 9498, 2442, 4711, 2934, 3639, 368, 1021, 4894, 1807, 587, 37, 490, 5255, 1366, 279, 6953, 41, 364, 3344, 3639, 368, 3492, 1653, 54, 25773, 578, 512, 985, 7076, 7609, 14072, 16, 471, 326, 14425, 1807, 587, 37, 490, 5255, 1366, 279, 6953, 41, 603, 3639, 368, 3492, 1653, 54, 25773, 7609, 14072, 16, 1496, 10685, 4269, 1366, 279, 6953, 41, 603, 512, 985, 7076, 7609, 14072, 18, 3639, 309, 261, 2039, 422, 446, 13, 5411, 604, 394, 10108, 2932, 2011, 707, 8863, 3639, 469, 309, 261, 2211, 18, 588, 1119, 1435, 422, 2 ]
cfw.addInvoke(ByteCode.INVOKESPECIAL, fnClassName, "<init>", "(Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Context;" +")V");
cfw.addPush(fnIndex); cfw.addInvoke(ByteCode.INVOKESPECIAL, fnClassName, "<init>", Codegen.FUNCTION_CONSTRUCTOR_SIGNATURE);
private void visitFunction(OptFunctionNode fn, int functionType) { String fnClassName = fn.getClassName(); cfw.add(ByteCode.NEW, fnClassName); // Call function constructor cfw.add(ByteCode.DUP); cfw.addALoad(variableObjectLocal); cfw.addALoad(contextLocal); // load 'cx' cfw.addInvoke(ByteCode.INVOKESPECIAL, fnClassName, "<init>", "(Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Context;" +")V"); // Init mainScript field; cfw.add(ByteCode.DUP); cfw.add(ByteCode.ALOAD_0); cfw.add(ByteCode.GETFIELD, currentCodegen.generatedClassName, Codegen.MAIN_SCRIPT_FIELD, mainCodegen.generatedClassSignature); cfw.add(ByteCode.PUTFIELD, fnClassName, Codegen.MAIN_SCRIPT_FIELD, mainCodegen.generatedClassSignature); int directTargetIndex = fn.getDirectTargetIndex(); if (directTargetIndex >= 0) { cfw.add(ByteCode.DUP); cfw.add(ByteCode.ALOAD_0); cfw.add(ByteCode.GETFIELD, currentCodegen.generatedClassName, Codegen.MAIN_SCRIPT_FIELD, mainCodegen.generatedClassSignature); cfw.add(ByteCode.SWAP); cfw.add(ByteCode.PUTFIELD, mainCodegen.generatedClassName, Codegen.getDirectTargetFieldName(directTargetIndex), cfw.classNameToSignature(fn.getClassName())); } // Dup function reference for function expressions to have it // on top of the stack when initFunction returns if (functionType != FunctionNode.FUNCTION_STATEMENT) { cfw.add(ByteCode.DUP); } cfw.addPush(functionType); cfw.addALoad(variableObjectLocal); cfw.addALoad(contextLocal); // load 'cx' addOptRuntimeInvoke("initFunction", "(Lorg/mozilla/javascript/NativeFunction;" +"I" +"Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Context;" +")V"); }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/7de4ae25f0fd144cbc3ddabc47e7a327a747af5a/Codegen.java/buggy/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3757, 2083, 12, 6179, 2083, 907, 2295, 16, 509, 445, 559, 13, 565, 288, 3639, 514, 2295, 3834, 273, 2295, 18, 588, 3834, 5621, 3639, 6080, 91, 18, 1289, 12, 3216, 1085, 18, 12917, 16, 2295, 3834, 1769, 3639, 368, 3049, 445, 3885, 3639, 6080, 91, 18, 1289, 12, 3216, 1085, 18, 30387, 1769, 3639, 6080, 91, 18, 1289, 1013, 6189, 12, 6105, 921, 2042, 1769, 3639, 6080, 91, 18, 1289, 1013, 6189, 12, 2472, 2042, 1769, 6647, 368, 1262, 296, 71, 92, 11, 3639, 6080, 91, 18, 1289, 10969, 12, 3216, 1085, 18, 706, 17691, 3991, 10106, 6365, 16, 8227, 2295, 3834, 16, 3532, 2738, 2984, 16, 8227, 7751, 48, 3341, 19, 8683, 15990, 19, 11242, 19, 3651, 429, 4868, 8227, 397, 6, 48, 3341, 19, 8683, 15990, 19, 11242, 19, 1042, 4868, 8227, 397, 7923, 58, 8863, 3639, 368, 4378, 2774, 3651, 652, 31, 3639, 6080, 91, 18, 1289, 12, 3216, 1085, 18, 30387, 1769, 3639, 6080, 91, 18, 1289, 12, 3216, 1085, 18, 1013, 51, 1880, 67, 20, 1769, 3639, 6080, 91, 18, 1289, 12, 3216, 1085, 18, 3264, 6776, 16, 7734, 783, 1085, 4507, 18, 11168, 3834, 16, 7734, 3356, 4507, 18, 19803, 67, 10885, 67, 6776, 16, 7734, 2774, 1085, 4507, 18, 11168, 797, 5374, 1769, 3639, 6080, 91, 18, 1289, 12, 3216, 1085, 18, 4762, 6776, 16, 7734, 2295, 3834, 16, 7734, 3356, 4507, 18, 19803, 67, 10885, 67, 6776, 16, 7734, 2774, 1085, 4507, 18, 11168, 797, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3757, 2083, 12, 6179, 2083, 907, 2295, 16, 509, 445, 559, 13, 565, 288, 3639, 514, 2295, 3834, 273, 2295, 18, 588, 3834, 5621, 3639, 6080, 91, 18, 1289, 12, 3216, 1085, 18, 12917, 16, 2295, 3834, 1769, 3639, 368, 3049, 445, 3885, 3639, 6080, 91, 18, 1289, 12, 3216, 1085, 18, 30387, 1769, 3639, 6080, 91, 18, 1289, 1013, 6189, 12, 6105, 921, 2042, 1769, 3639, 6080, 91, 18, 1289, 1013, 6189, 12, 2472, 2042, 1769, 6647, 368, 1262, 296, 71, 92, 11, 3639, 6080, 91, 18, 1289, 10969, 12, 3216, 1085, 18, 706, 17691, 3991, 10106, 6365, 16, 8227, 2295, 3834, 16, 3532, 2738, 2984, 16, 8227, 7751, 48, 3341, 19, 8683, 15990, 19, 2 ]
if (jj_scan_token(FLOATING_POINT_LITERAL)) return true;
if (jj_3R_93()) return true;
final private boolean jj_3R_207() { if (jj_scan_token(FLOATING_POINT_LITERAL)) return true; return false; }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/a180e9b19197c7613f1e73c6ec8a574a17011e5e/JavaParser.java/buggy/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, 3462, 27, 1435, 288, 565, 309, 261, 78, 78, 67, 23, 54, 67, 11180, 10756, 327, 638, 31, 565, 327, 629, 31, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 727, 3238, 1250, 10684, 67, 23, 54, 67, 3462, 27, 1435, 288, 565, 309, 261, 78, 78, 67, 23, 54, 67, 11180, 10756, 327, 638, 31, 565, 327, 629, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
yy_ScanError(YY_PUSHBACK_2BIG);
zzScanError(ZZ_PUSHBACK_2BIG);
private void yypushback(int number) { if ( number > yylength() ) yy_ScanError(YY_PUSHBACK_2BIG); yy_markedPos -= number; }
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/689ed6b27a2e7acac33d90a4e6fea2ddf018345b/CSSTokenizerFilter.java/buggy/src/freenet/clients/http/filter/CSSTokenizerFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 677, 879, 1218, 823, 12, 474, 1300, 13, 225, 288, 565, 309, 261, 1300, 405, 9016, 2469, 1435, 262, 1377, 11273, 7972, 668, 12, 27096, 67, 30348, 8720, 67, 22, 19044, 1769, 565, 9016, 67, 3355, 329, 1616, 3947, 1300, 31, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 677, 879, 1218, 823, 12, 474, 1300, 13, 225, 288, 565, 309, 261, 1300, 405, 9016, 2469, 1435, 262, 1377, 11273, 7972, 668, 12, 27096, 67, 30348, 8720, 67, 22, 19044, 1769, 565, 9016, 67, 3355, 329, 1616, 3947, 1300, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (centerOnMonitor)
if (centerOnMonitor) {
protected IDialogSettings getDialogBoundsSettings() { // If we were explicitly instructed to center on the monitor, then // do not provide any settings for retrieving a different location or, worse, // saving the centered location. if (centerOnMonitor) return null; IDialogSettings settings = IDEWorkbenchPlugin.getDefault().getDialogSettings(); IDialogSettings section = settings.getSection(DIALOG_SETTINGS_SECTION); if (section == null) { section = settings.addNewSection(DIALOG_SETTINGS_SECTION); } return section; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/ChooseWorkspaceDialog.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ChooseWorkspaceDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1599, 3529, 2628, 31774, 5694, 2628, 1435, 288, 202, 202, 759, 971, 732, 4591, 8122, 316, 1697, 329, 358, 4617, 603, 326, 6438, 16, 1508, 202, 202, 759, 741, 486, 5615, 1281, 1947, 364, 17146, 279, 3775, 2117, 578, 16, 14591, 307, 16, 202, 202, 759, 12392, 326, 25340, 2117, 18, 202, 202, 430, 261, 5693, 1398, 7187, 13, 288, 1875, 202, 2463, 446, 31, 1082, 3639, 1599, 3529, 2628, 1947, 273, 1599, 41, 2421, 22144, 3773, 18, 588, 1868, 7675, 588, 6353, 2628, 5621, 3639, 1599, 3529, 2628, 2442, 273, 1947, 18, 588, 5285, 12, 2565, 18683, 67, 19428, 67, 19082, 1769, 3639, 309, 261, 3464, 422, 446, 13, 288, 5411, 2442, 273, 1947, 18, 1289, 1908, 5285, 12, 2565, 18683, 67, 19428, 67, 19082, 1769, 3639, 289, 540, 327, 2442, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1117, 1599, 3529, 2628, 31774, 5694, 2628, 1435, 288, 202, 202, 759, 971, 732, 4591, 8122, 316, 1697, 329, 358, 4617, 603, 326, 6438, 16, 1508, 202, 202, 759, 741, 486, 5615, 1281, 1947, 364, 17146, 279, 3775, 2117, 578, 16, 14591, 307, 16, 202, 202, 759, 12392, 326, 25340, 2117, 18, 202, 202, 430, 261, 5693, 1398, 7187, 13, 288, 1875, 202, 2463, 446, 31, 1082, 3639, 1599, 3529, 2628, 1947, 273, 1599, 41, 2421, 22144, 3773, 18, 588, 1868, 7675, 588, 6353, 2628, 5621, 3639, 1599, 3529, 2628, 2442, 273, 1947, 18, 588, 5285, 12, 2565, 18683, 67, 19428, 67, 19082, 1769, 3639, 309, 261, 3464, 422, 446, 13, 288, 5411, 2442, 273, 1947, 18, 2 ]
buttonsComposite.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING));
buttonsComposite.setLayoutData(new GridData( GridData.VERTICAL_ALIGN_BEGINNING));
private void createSelectionButtons(Composite listComposite) { Composite buttonsComposite = new Composite(listComposite, SWT.NONE); buttonsComposite.setLayout(new GridLayout()); buttonsComposite.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING)); Button selectAll = new Button(buttonsComposite, SWT.PUSH); selectAll.setText(DataTransferMessages.getString("DataTransfer.selectAll")); //$NON-NLS-1$ selectAll.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { projectsList.setCheckedElements(selectedProjects); } }); setButtonLayoutData(selectAll); Button deselectAll = new Button(buttonsComposite, SWT.PUSH); deselectAll.setText(DataTransferMessages.getString("DataTransfer.deselectAll")); //$NON-NLS-1$ deselectAll.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { projectsList.setCheckedElements(new Object[0]); } }); setButtonLayoutData(deselectAll); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/320f342281f01d0eab3a23189cdf15882a2124b5/WizardProjectsImportPage.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardProjectsImportPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 6233, 14388, 12, 9400, 666, 9400, 13, 288, 202, 202, 9400, 9502, 9400, 273, 394, 14728, 12, 1098, 9400, 16, 348, 8588, 18, 9826, 1769, 202, 202, 16016, 9400, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 9506, 202, 16016, 9400, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 6313, 751, 18, 21654, 10109, 67, 26439, 67, 16061, 15870, 10019, 202, 202, 3616, 27787, 273, 394, 12569, 12, 16016, 9400, 16, 348, 8588, 18, 30348, 1769, 202, 202, 4025, 1595, 18, 542, 1528, 12, 751, 5912, 5058, 18, 588, 780, 2932, 751, 5912, 18, 4025, 1595, 7923, 1769, 225, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 4025, 1595, 18, 1289, 6233, 2223, 12, 2704, 12977, 4216, 1435, 288, 1082, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 9506, 202, 13582, 682, 18, 542, 11454, 3471, 12, 8109, 15298, 1769, 1082, 202, 97, 202, 202, 22938, 9506, 202, 542, 3616, 3744, 751, 12, 4025, 1595, 1769, 9506, 202, 3616, 2832, 13759, 1595, 273, 394, 12569, 12, 16016, 9400, 16, 348, 8588, 18, 30348, 1769, 202, 202, 5489, 13759, 1595, 18, 542, 1528, 12, 751, 5912, 5058, 18, 588, 780, 2932, 751, 5912, 18, 5489, 13759, 1595, 7923, 1769, 225, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 5489, 13759, 1595, 18, 1289, 6233, 2223, 12, 2704, 12977, 4216, 1435, 288, 1082, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 9506, 202, 13582, 682, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 6233, 14388, 12, 9400, 666, 9400, 13, 288, 202, 202, 9400, 9502, 9400, 273, 394, 14728, 12, 1098, 9400, 16, 348, 8588, 18, 9826, 1769, 202, 202, 16016, 9400, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 9506, 202, 16016, 9400, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 6313, 751, 18, 21654, 10109, 67, 26439, 67, 16061, 15870, 10019, 202, 202, 3616, 27787, 273, 394, 12569, 12, 16016, 9400, 16, 348, 8588, 18, 30348, 1769, 202, 202, 4025, 1595, 18, 542, 1528, 12, 751, 5912, 5058, 18, 588, 780, 2932, 751, 5912, 18, 4025, 1595, 7923, 1769, 225, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 4025, 1595, 18, 1289, 6233, 2 ]
XhtmlForm(Context c, Element e) {
public XhtmlForm(Context c, Element e) {
XhtmlForm(Context c, Element e) { uac = c.getRenderingContext().getUac(); formElement = e; }
53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/57063c7124e41a59e9002920513c8065d509e17e/XhtmlForm.java/buggy/src/java/org/xhtmlrenderer/simple/extend/XhtmlForm.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1139, 2620, 1204, 12, 1042, 276, 16, 3010, 425, 13, 288, 3639, 582, 1077, 273, 276, 18, 588, 14261, 1042, 7675, 588, 57, 1077, 5621, 3639, 646, 1046, 273, 425, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1139, 2620, 1204, 12, 1042, 276, 16, 3010, 425, 13, 288, 3639, 582, 1077, 273, 276, 18, 588, 14261, 1042, 7675, 588, 57, 1077, 5621, 3639, 646, 1046, 273, 425, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
SQLExceptionHandler.throwSQLException(e); throw e;
throw m_conn.wrap(e);
public boolean supportsDifferentTableCorrelationNames() throws SQLException { try { return m_metaData.supportsDifferentTableCorrelationNames(); } catch (SQLException e) { SQLExceptionHandler.throwSQLException(e); throw e; // code should never get here, but just in case } }
12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/880388ec033f6e42a6c6eef522a27eaa680337dd/DatabaseMetaData.java/buggy/archive/core-platform/src/com/arsdigita/db/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 6146, 26270, 1388, 31685, 1557, 1435, 3639, 1216, 6483, 288, 3639, 775, 288, 5411, 327, 312, 67, 3901, 751, 18, 28064, 26270, 1388, 31685, 1557, 5621, 3639, 289, 1044, 261, 23116, 425, 13, 288, 5411, 6483, 1503, 18, 12849, 23116, 12, 73, 1769, 5411, 604, 425, 31, 225, 368, 981, 1410, 5903, 336, 2674, 16, 1496, 2537, 316, 648, 3639, 289, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 6146, 26270, 1388, 31685, 1557, 1435, 3639, 1216, 6483, 288, 3639, 775, 288, 5411, 327, 312, 67, 3901, 751, 18, 28064, 26270, 1388, 31685, 1557, 5621, 3639, 289, 1044, 261, 23116, 425, 13, 288, 5411, 6483, 1503, 18, 12849, 23116, 12, 73, 1769, 5411, 604, 425, 31, 225, 368, 981, 1410, 5903, 336, 2674, 16, 1496, 2537, 316, 648, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
private int getInsertionIndex(ContributionManager mgr, MenuLocationURI uri) { String query = uri.getQuery(); int additionsIndex = -1; // No Query means 'after=additions' (if ther) or // the end of the menu if (query.length() == 0) { additionsIndex = mgr.indexOf("additions"); //$NON-NLS-1$ if (additionsIndex == -1) additionsIndex = mgr.getItems().length; else ++additionsIndex; } else { // Should be in the form "[before|after]=id" String[] queryParts = Util.split(query, '='); if (queryParts[1].length() > 0) { additionsIndex = mgr.indexOf(queryParts[1]); if (additionsIndex != -1 && queryParts[0].equals("after")) //$NON-NLS-1$ additionsIndex++; } } return additionsIndex; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/7708c9aa128d7f727df6c085dc73634c29372cac/WorkbenchMenuService.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/WorkbenchMenuService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 336, 29739, 1016, 12, 442, 4027, 1318, 13333, 16, 9809, 2735, 3098, 2003, 13, 288, 202, 202, 780, 843, 273, 2003, 18, 588, 1138, 5621, 9506, 202, 474, 26260, 1016, 273, 300, 21, 31, 202, 202, 759, 2631, 2770, 4696, 296, 5205, 33, 1289, 5029, 11, 261, 430, 286, 264, 13, 578, 202, 202, 759, 326, 679, 434, 326, 3824, 202, 202, 430, 261, 2271, 18, 2469, 1435, 422, 374, 13, 288, 1082, 202, 1289, 5029, 1016, 273, 13333, 18, 31806, 2932, 1289, 5029, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 430, 261, 1289, 5029, 1016, 422, 300, 21, 13, 9506, 202, 1289, 5029, 1016, 273, 13333, 18, 588, 3126, 7675, 2469, 31, 1082, 202, 12107, 9506, 202, 9904, 1289, 5029, 1016, 31, 202, 202, 97, 202, 202, 12107, 288, 1082, 202, 759, 9363, 506, 316, 326, 646, 5158, 5771, 96, 5205, 65, 33, 350, 6, 1082, 202, 780, 8526, 843, 4305, 273, 3564, 18, 4939, 12, 2271, 16, 5214, 1769, 1082, 202, 430, 261, 2271, 4305, 63, 21, 8009, 2469, 1435, 405, 374, 13, 288, 9506, 202, 1289, 5029, 1016, 273, 13333, 18, 31806, 12, 2271, 4305, 63, 21, 19226, 9506, 202, 430, 261, 1289, 5029, 1016, 480, 300, 21, 597, 843, 4305, 63, 20, 8009, 14963, 2932, 5205, 6, 3719, 4329, 3993, 17, 5106, 17, 21, 8, 6862, 202, 1289, 5029, 1016, 9904, 31, 1082, 202, 97, 202, 202, 97, 9506, 202, 2463, 26260, 1016, 31, 202, 97, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 29739, 1016, 12, 442, 4027, 1318, 13333, 16, 9809, 2735, 3098, 2003, 13, 288, 202, 202, 780, 843, 273, 2003, 18, 588, 1138, 5621, 9506, 202, 474, 26260, 1016, 273, 300, 21, 31, 202, 202, 759, 2631, 2770, 4696, 296, 5205, 33, 1289, 5029, 11, 261, 430, 286, 264, 13, 578, 202, 202, 759, 326, 679, 434, 326, 3824, 202, 202, 430, 261, 2271, 18, 2469, 1435, 422, 374, 13, 288, 1082, 202, 1289, 5029, 1016, 273, 13333, 18, 31806, 2932, 1289, 5029, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 430, 261, 1289, 5029, 1016, 422, 300, 21, 13, 9506, 202, 1289, 5029, 1016, 273, 13333, 18, 588, 3126, 7675, 2469, 2 ]
NamingEnumeration e = nextInterceptor.search( baseName, environment, filter, searchControls );
public NamingEnumeration search( NextInterceptor nextInterceptor, LdapDN baseName, Map environment, ExprNode filter, SearchControls searchControls ) throws NamingException { NamingEnumeration e = nextInterceptor.search( baseName, environment, filter, searchControls ); if ( searchControls.getReturningAttributes() != null ) { return e; } return new SearchResultFilteringEnumeration( e, searchControls, InvocationStack.getInstance().peek(), Constants.DELETED_ENTRIES_FILTER ); }
17035 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17035/035e828dbee6afd4d4c34177f4429d7684a45e56/ReplicationService.java/clean/mitosis/src/main/java/org/apache/directory/mitosis/service/ReplicationService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 18884, 21847, 425, 273, 1024, 10281, 18, 3072, 12, 16162, 16, 3330, 16, 1034, 16, 1623, 16795, 11272, 225, 18884, 21847, 425, 273, 1024, 10281, 18, 3072, 12, 16162, 16, 3330, 16, 1034, 16, 1623, 16795, 11272, 225, 18884, 21847, 425, 273, 1024, 10281, 18, 3072, 12, 16162, 16, 3330, 16, 1034, 16, 1623, 16795, 11272, 225, 18884, 21847, 425, 273, 1024, 10281, 18, 3072, 12, 16162, 16, 3330, 16, 1034, 16, 1623, 16795, 11272, 1071, 18884, 21847, 425, 273, 1024, 10281, 18, 3072, 12, 16162, 16, 3330, 16, 1034, 16, 1623, 16795, 11272, 18884, 21847, 18884, 21847, 425, 273, 1024, 10281, 18, 3072, 12, 16162, 16, 3330, 16, 1034, 16, 1623, 16795, 11272, 1623, 12, 18884, 21847, 425, 273, 1024, 10281, 18, 3072, 12, 16162, 16, 3330, 16, 1034, 16, 1623, 16795, 11272, 4804, 10281, 18884, 21847, 425, 273, 1024, 10281, 18, 3072, 12, 16162, 16, 3330, 16, 1034, 16, 1623, 16795, 11272, 1024, 10281, 16, 18884, 21847, 425, 273, 1024, 10281, 18, 3072, 12, 16162, 16, 3330, 16, 1034, 16, 1623, 16795, 11272, 18053, 8609, 18884, 21847, 425, 273, 1024, 10281, 18, 3072, 12, 16162, 16, 3330, 16, 1034, 16, 1623, 16795, 11272, 16162, 16, 18884, 21847, 425, 273, 1024, 10281, 18, 3072, 12, 16162, 16, 3330, 16, 1034, 16, 1623, 16795, 11272, 1635, 18884, 21847, 425, 273, 1024, 10281, 18, 3072, 12, 16162, 16, 3330, 16, 1034, 16, 1623, 16795, 11272, 3330, 16, 18884, 21847, 425, 273, 1024, 10281, 18, 3072, 12, 16162, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18884, 21847, 425, 273, 1024, 10281, 18, 3072, 12, 16162, 16, 3330, 16, 1034, 16, 1623, 16795, 11272, 225, 18884, 21847, 425, 273, 1024, 10281, 18, 3072, 12, 16162, 16, 3330, 16, 1034, 16, 1623, 16795, 11272, 225, 18884, 21847, 425, 273, 1024, 10281, 18, 3072, 12, 16162, 16, 3330, 16, 1034, 16, 1623, 16795, 11272, 225, 18884, 21847, 425, 273, 1024, 10281, 18, 3072, 12, 16162, 16, 3330, 16, 1034, 16, 1623, 16795, 11272, 1071, 18884, 21847, 425, 273, 1024, 10281, 18, 3072, 12, 16162, 16, 3330, 16, 1034, 16, 1623, 16795, 11272, 18884, 21847, 18884, 21847, 425, 273, 1024, 10281, 18, 3072, 12, 16162, 16, 3330, 16, 1034, 16, 1623, 16795, 11272, 1623, 12, 18884, 21847, 2 ]
result.addMessage( "For managed dependency " + d + ": system-scoped dependency must specify systemPath." );
String systemPath = d.getSystemPath(); if ( StringUtils.isEmpty( systemPath ) ) { result.addMessage( "For managed dependency " + d + ": system-scoped dependency must specify systemPath." ); } else { if ( ! new File( systemPath ).isAbsolute() ) { result.addMessage( "For managed dependency " + d + ": system-scoped dependency must " + "specify an absolute path systemPath." ); } }
public ModelValidationResult validate( Model model ) { ModelValidationResult result = new ModelValidationResult(); validateStringNotEmpty( "modelVersion", result, model.getModelVersion() ); validateId( "groupId", result, model.getGroupId() ); validateId( "artifactId", result, model.getArtifactId() ); validateStringNotEmpty( "packaging", result, model.getPackaging() ); if ( !model.getModules().isEmpty() && !"pom".equals( model.getPackaging() ) ) { result.addMessage( "Packaging '" + model.getPackaging() + "' is invalid. Aggregator projects " + "require 'pom' as packaging." ); } Parent parent = model.getParent(); if ( parent != null ) { if ( parent.getGroupId().equals( model.getGroupId() ) && parent.getArtifactId().equals( model.getArtifactId() ) ) { result.addMessage( "The parent element cannot have the same ID as the project." ); } } validateStringNotEmpty( "version", result, model.getVersion() ); for ( Iterator it = model.getDependencies().iterator(); it.hasNext(); ) { Dependency d = (Dependency) it.next(); validateId( "dependencies.dependency.artifactId", result, d.getArtifactId() ); validateId( "dependencies.dependency.groupId", result, d.getGroupId() ); validateStringNotEmpty( "dependencies.dependency.type", result, d.getType(), dependencySourceHint( d ) ); validateStringNotEmpty( "dependencies.dependency.version", result, d.getVersion(), dependencySourceHint( d ) ); if ( Artifact.SCOPE_SYSTEM.equals( d.getScope() ) && StringUtils.isEmpty( d.getSystemPath() ) ) { result.addMessage( "For dependency " + d + ": system-scoped dependency must specify systemPath." ); } else if ( !Artifact.SCOPE_SYSTEM.equals( d.getScope() ) && StringUtils.isNotEmpty( d.getSystemPath() ) ) { result.addMessage( "For dependency " + d + ": only dependency with system scope can specify systemPath." ); } } DependencyManagement mgmt = model.getDependencyManagement(); if ( mgmt != null ) { for ( Iterator it = mgmt.getDependencies().iterator(); it.hasNext(); ) { Dependency d = (Dependency) it.next(); validateSubElementStringNotEmpty( d, "dependencyManagement.dependencies.dependency.artifactId", result, d.getArtifactId() ); validateSubElementStringNotEmpty( d, "dependencyManagement.dependencies.dependency.groupId", result, d.getGroupId() ); if ( Artifact.SCOPE_SYSTEM.equals( d.getScope() ) && StringUtils.isEmpty( d.getSystemPath() ) ) { result.addMessage( "For managed dependency " + d + ": system-scoped dependency must specify systemPath." ); } else if ( !Artifact.SCOPE_SYSTEM.equals( d.getScope() ) && StringUtils.isNotEmpty( d.getSystemPath() ) ) { result.addMessage( "For managed dependency " + d + ": only dependency with system scope can specify systemPath." ); } } } Build build = model.getBuild(); if ( build != null ) { for ( Iterator it = build.getPlugins().iterator(); it.hasNext(); ) { Plugin p = (Plugin) it.next(); validateStringNotEmpty( "build.plugins.plugin.artifactId", result, p.getArtifactId() ); validateStringNotEmpty( "build.plugins.plugin.groupId", result, p.getGroupId() ); } for ( Iterator it = build.getResources().iterator(); it.hasNext(); ) { Resource r = (Resource) it.next(); validateStringNotEmpty( "build.resources.resource.directory", result, r.getDirectory() ); } for ( Iterator it = build.getTestResources().iterator(); it.hasNext(); ) { Resource r = (Resource) it.next(); validateStringNotEmpty( "build.testResources.testResource.directory", result, r.getDirectory() ); } } Reporting reporting = model.getReporting(); if ( reporting != null ) { for ( Iterator it = reporting.getPlugins().iterator(); it.hasNext(); ) { ReportPlugin p = (ReportPlugin) it.next(); validateStringNotEmpty( "reporting.plugins.plugin.artifactId", result, p.getArtifactId() ); validateStringNotEmpty( "reporting.plugins.plugin.groupId", result, p.getGroupId() ); } } validateRepositories( result, model.getRepositories(), "repositories.repository" ); validateRepositories( result, model.getPluginRepositories(), "pluginRepositories.pluginRepository" ); forcePluginExecutionIdCollision( model, result ); return result; }
50542 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50542/c54202821e8edfcb7213a4f45fd20a318d4b8016/DefaultModelValidator.java/clean/maven-project/src/main/java/org/apache/maven/project/validation/DefaultModelValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3164, 4354, 1253, 1954, 12, 3164, 938, 262, 565, 288, 3639, 3164, 4354, 1253, 563, 273, 394, 3164, 4354, 1253, 5621, 3639, 1954, 780, 18431, 12, 315, 2284, 1444, 3113, 563, 16, 938, 18, 588, 1488, 1444, 1435, 11272, 3639, 1954, 548, 12, 315, 27547, 3113, 563, 16, 938, 18, 588, 8722, 1435, 11272, 3639, 1954, 548, 12, 315, 17706, 548, 3113, 563, 16, 938, 18, 588, 7581, 548, 1435, 11272, 3639, 1954, 780, 18431, 12, 315, 2920, 5755, 3113, 563, 16, 938, 18, 588, 4420, 5755, 1435, 11272, 7734, 309, 261, 401, 2284, 18, 588, 7782, 7675, 291, 1921, 1435, 597, 29054, 84, 362, 9654, 14963, 12, 938, 18, 588, 4420, 5755, 1435, 262, 262, 3639, 288, 5411, 563, 18, 1289, 1079, 12, 315, 4420, 5755, 2119, 397, 938, 18, 588, 4420, 5755, 1435, 397, 2491, 353, 2057, 18, 10594, 639, 10137, 315, 397, 10792, 315, 6528, 296, 84, 362, 11, 487, 2298, 5755, 1199, 11272, 3639, 289, 7734, 9520, 982, 273, 938, 18, 588, 3054, 5621, 3639, 309, 261, 982, 480, 446, 262, 3639, 288, 5411, 309, 261, 982, 18, 588, 8722, 7675, 14963, 12, 938, 18, 588, 8722, 1435, 262, 597, 5397, 982, 18, 588, 7581, 548, 7675, 14963, 12, 938, 18, 588, 7581, 548, 1435, 262, 262, 5411, 288, 7734, 563, 18, 1289, 1079, 12, 315, 1986, 982, 930, 2780, 1240, 326, 1967, 1599, 487, 326, 1984, 1199, 11272, 5411, 289, 3639, 289, 3639, 1954, 780, 18431, 12, 315, 1589, 3113, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3164, 4354, 1253, 1954, 12, 3164, 938, 262, 565, 288, 3639, 3164, 4354, 1253, 563, 273, 394, 3164, 4354, 1253, 5621, 3639, 1954, 780, 18431, 12, 315, 2284, 1444, 3113, 563, 16, 938, 18, 588, 1488, 1444, 1435, 11272, 3639, 1954, 548, 12, 315, 27547, 3113, 563, 16, 938, 18, 588, 8722, 1435, 11272, 3639, 1954, 548, 12, 315, 17706, 548, 3113, 563, 16, 938, 18, 588, 7581, 548, 1435, 11272, 3639, 1954, 780, 18431, 12, 315, 2920, 5755, 3113, 563, 16, 938, 18, 588, 4420, 5755, 1435, 11272, 7734, 309, 261, 401, 2284, 18, 588, 7782, 7675, 291, 1921, 1435, 597, 29054, 84, 362, 9654, 14963, 12, 938, 18, 588, 4420, 5755, 1435, 262, 262, 3639, 2 ]
section.put(file.getPath(), pageId);
section.put(file.getParent(), pageId);
private void storeDefaultPage() { IEditorInput input = getEditorInput(); String pageId = fLastActivePageId; if (pageId == null) return; if (input instanceof IFileEditorInput) { IFile file = ((IFileEditorInput) input).getFile(); if (file != null) { //set the settings on the resouce try { file .setPersistentProperty( IPDEUIConstants.DEFAULT_EDITOR_PAGE_KEY_NEW, pageId); } catch (CoreException e) { } } } else if (input instanceof SystemFileEditorInput) { File file = (File) ((SystemFileEditorInput) input) .getAdapter(File.class); if (file == null) return; IDialogSettings section = getSettingsSection(); section.put(file.getPath(), pageId); } }
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/f05ab7833f64029c0ae936c412e7d86960291167/PDEFormEditor.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/PDEFormEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1707, 1868, 1964, 1435, 288, 202, 202, 45, 6946, 1210, 810, 273, 336, 6946, 1210, 5621, 202, 202, 780, 18720, 273, 284, 3024, 3896, 23053, 31, 202, 202, 430, 261, 2433, 548, 422, 446, 13, 1082, 202, 2463, 31, 202, 202, 430, 261, 2630, 1276, 467, 812, 6946, 1210, 13, 288, 1082, 202, 45, 812, 585, 273, 14015, 45, 812, 6946, 1210, 13, 810, 2934, 29925, 5621, 1082, 202, 430, 261, 768, 480, 446, 13, 288, 9506, 202, 759, 542, 326, 1947, 603, 326, 400, 1395, 311, 9506, 202, 698, 288, 6862, 202, 768, 6862, 1082, 202, 18, 542, 11906, 1396, 12, 6862, 6862, 202, 2579, 1639, 5370, 2918, 18, 5280, 67, 13208, 67, 11219, 67, 3297, 67, 12917, 16, 6862, 6862, 202, 2433, 548, 1769, 9506, 202, 97, 1044, 261, 25341, 425, 13, 288, 9506, 202, 97, 1082, 202, 97, 202, 202, 97, 469, 309, 261, 2630, 1276, 2332, 812, 6946, 1210, 13, 288, 1082, 202, 812, 585, 273, 261, 812, 13, 14015, 3163, 812, 6946, 1210, 13, 810, 13, 6862, 202, 18, 588, 4216, 12, 812, 18, 1106, 1769, 1082, 202, 430, 261, 768, 422, 446, 13, 9506, 202, 2463, 31, 1082, 202, 734, 3529, 2628, 2442, 273, 18283, 5285, 5621, 1082, 202, 3464, 18, 458, 12, 768, 18, 588, 743, 9334, 18720, 1769, 202, 202, 97, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1707, 1868, 1964, 1435, 288, 202, 202, 45, 6946, 1210, 810, 273, 336, 6946, 1210, 5621, 202, 202, 780, 18720, 273, 284, 3024, 3896, 23053, 31, 202, 202, 430, 261, 2433, 548, 422, 446, 13, 1082, 202, 2463, 31, 202, 202, 430, 261, 2630, 1276, 467, 812, 6946, 1210, 13, 288, 1082, 202, 45, 812, 585, 273, 14015, 45, 812, 6946, 1210, 13, 810, 2934, 29925, 5621, 1082, 202, 430, 261, 768, 480, 446, 13, 288, 9506, 202, 759, 542, 326, 1947, 603, 326, 400, 1395, 311, 9506, 202, 698, 288, 6862, 202, 768, 6862, 1082, 202, 18, 542, 11906, 1396, 12, 6862, 6862, 202, 2579, 1639, 5370, 2918, 18, 5280, 67, 13208, 67, 11219, 2 ]
public ProtocolOutput getProtocolOutput(String urlString) { ProtocolOutput output = null;
public ProtocolOutput getProtocolOutput(UTF8 url, CrawlDatum datum) { String urlString = url.toString();
public ProtocolOutput getProtocolOutput(String urlString) { ProtocolOutput output = null; try { return getProtocolOutput(new FetchListEntry(true, new Page(urlString, 1.0f), new String[0])); } catch (MalformedURLException mue) { return new ProtocolOutput(null, new ProtocolStatus(mue)); } }
46828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46828/b8bd3f133b29d794833bdcffc1bfd0d41d421066/Http.java/buggy/src/plugin/protocol-http/src/java/org/apache/nutch/protocol/http/Http.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4547, 1447, 18648, 1447, 12, 780, 29374, 13, 288, 565, 4547, 1447, 876, 273, 446, 31, 565, 775, 288, 1377, 327, 18648, 1447, 12, 2704, 8065, 27899, 12, 3767, 16, 5411, 394, 3460, 12, 718, 780, 16, 404, 18, 20, 74, 3631, 394, 514, 63, 20, 5717, 1769, 565, 289, 1044, 261, 18695, 20160, 312, 344, 13, 288, 1377, 327, 394, 4547, 1447, 12, 2011, 16, 394, 4547, 1482, 12, 81, 344, 10019, 565, 289, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 282, 1071, 4547, 1447, 18648, 1447, 12, 780, 29374, 13, 288, 565, 4547, 1447, 876, 273, 446, 31, 565, 775, 288, 1377, 327, 18648, 1447, 12, 2704, 8065, 27899, 12, 3767, 16, 5411, 394, 3460, 12, 718, 780, 16, 404, 18, 20, 74, 3631, 394, 514, 63, 20, 5717, 1769, 565, 289, 1044, 261, 18695, 20160, 312, 344, 13, 288, 1377, 327, 394, 4547, 1447, 12, 2011, 16, 394, 4547, 1482, 12, 81, 344, 10019, 565, 289, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void packageForDownload(Map params, OutputStream out) throws IOException {
public String packageForDownload(Map params, OutputStream out) throws IOException {
public void packageForDownload(Map params, OutputStream out) throws IOException { ReportResult result = getCurrentResult(); String exportResultsId = ((String[]) params.get(EXPORT_XSL_ID))[0]; ReportXsl xslt = result.getReport().getReportDefinition().findReportXslByRuntimeId(exportResultsId); String fileData = transform(result, xslt); if (xslt.getResultsPostProcessor() != null) { out.write(xslt.getResultsPostProcessor().postProcess(fileData)); } else { out.write(fileData.getBytes()); } }
48996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48996/e55593aa9839d26aa0bcf6199b91f574d6f0d39b/ReportsManagerImpl.java/buggy/reports/api-impl/src/java/org/theospi/portfolio/reports/model/impl/ReportsManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 514, 2181, 1290, 7109, 12, 863, 859, 16, 8962, 596, 13, 1216, 1860, 288, 1377, 8706, 1253, 563, 273, 5175, 1253, 5621, 1377, 514, 3359, 3447, 548, 273, 14015, 780, 63, 5717, 859, 18, 588, 12, 31275, 67, 60, 4559, 67, 734, 3719, 63, 20, 15533, 1377, 8706, 60, 2069, 31399, 273, 563, 18, 588, 4820, 7675, 588, 4820, 1852, 7675, 4720, 4820, 60, 2069, 858, 5576, 548, 12, 6530, 3447, 548, 1769, 1377, 514, 23111, 273, 2510, 12, 2088, 16, 31399, 1769, 1377, 309, 261, 92, 14414, 18, 588, 3447, 3349, 5164, 1435, 480, 446, 13, 288, 540, 596, 18, 2626, 12, 92, 14414, 18, 588, 3447, 3349, 5164, 7675, 2767, 2227, 12, 768, 751, 10019, 1377, 289, 1377, 469, 288, 540, 596, 18, 2626, 12, 768, 751, 18, 588, 2160, 10663, 1377, 289, 282, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 565, 1071, 514, 2181, 1290, 7109, 12, 863, 859, 16, 8962, 596, 13, 1216, 1860, 288, 1377, 8706, 1253, 563, 273, 5175, 1253, 5621, 1377, 514, 3359, 3447, 548, 273, 14015, 780, 63, 5717, 859, 18, 588, 12, 31275, 67, 60, 4559, 67, 734, 3719, 63, 20, 15533, 1377, 8706, 60, 2069, 31399, 273, 563, 18, 588, 4820, 7675, 588, 4820, 1852, 7675, 4720, 4820, 60, 2069, 858, 5576, 548, 12, 6530, 3447, 548, 1769, 1377, 514, 23111, 273, 2510, 12, 2088, 16, 31399, 1769, 1377, 309, 261, 92, 14414, 18, 588, 3447, 3349, 5164, 1435, 480, 446, 13, 288, 540, 596, 18, 2626, 12, 92, 14414, 18, 588, 3447, 3349, 5164, 7675, 2767, 2227, 12, 768, 751, 10019, 2 ]
System.out.println(System.currentTimeMillis() + ": " + "RXTXPort:SerialOutputStream:write(int)");
z.reportln( "RXTXPort:SerialOutputStream:write(int)");
public void write( int b ) throws IOException { if (debug_write) System.out.println(System.currentTimeMillis() + ": " + "RXTXPort:SerialOutputStream:write(int)"); if( speed == 0 ) return; /* hmm this turns out to be a very bad idea if ( monThreadisInterrupted == true ) { throw new IOException( "Port has been Closed" ); } */ waitForTheNativeCodeSilly(); if ( fd == 0 ) throw new IOException(); writeByte( b, monThreadisInterrupted ); if (debug_write) System.out.println(System.currentTimeMillis() + ": " + "Leaving RXTXPort:SerialOutputStream:write( int )"); }
5329 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5329/8cf734328318c2bb4179dd2a5660d4b406f4e179/RXTXPort.java/clean/src/gnu/io/RXTXPort.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1045, 12, 509, 324, 262, 1216, 1860, 202, 202, 95, 1082, 202, 430, 261, 4148, 67, 2626, 13, 9506, 202, 3163, 18, 659, 18, 8222, 12, 3163, 18, 2972, 28512, 1435, 397, 6398, 315, 397, 315, 54, 3983, 60, 2617, 30, 6342, 4632, 30, 2626, 12, 474, 2225, 1769, 1082, 202, 430, 12, 8632, 422, 374, 262, 327, 31, 202, 20308, 366, 7020, 333, 20748, 596, 358, 506, 279, 8572, 5570, 21463, 1082, 202, 430, 261, 6921, 3830, 291, 24485, 422, 638, 262, 1082, 202, 95, 9506, 202, 12849, 394, 1860, 12, 315, 2617, 711, 2118, 25582, 6, 11272, 1082, 202, 97, 202, 5549, 1082, 202, 7048, 1290, 1986, 9220, 1085, 19740, 715, 5621, 1082, 202, 430, 261, 5194, 422, 374, 262, 604, 394, 1860, 5621, 1082, 202, 2626, 3216, 12, 324, 16, 6921, 3830, 291, 24485, 11272, 1082, 202, 430, 261, 4148, 67, 2626, 13, 9506, 202, 3163, 18, 659, 18, 8222, 12, 3163, 18, 2972, 28512, 1435, 397, 6398, 315, 397, 315, 1682, 5339, 534, 3983, 60, 2617, 30, 6342, 4632, 30, 2626, 12, 509, 262, 8863, 202, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3196, 202, 482, 918, 1045, 12, 509, 324, 262, 1216, 1860, 202, 202, 95, 1082, 202, 430, 261, 4148, 67, 2626, 13, 9506, 202, 3163, 18, 659, 18, 8222, 12, 3163, 18, 2972, 28512, 1435, 397, 6398, 315, 397, 315, 54, 3983, 60, 2617, 30, 6342, 4632, 30, 2626, 12, 474, 2225, 1769, 1082, 202, 430, 12, 8632, 422, 374, 262, 327, 31, 202, 20308, 366, 7020, 333, 20748, 596, 358, 506, 279, 8572, 5570, 21463, 1082, 202, 430, 261, 6921, 3830, 291, 24485, 422, 638, 262, 1082, 202, 95, 9506, 202, 12849, 394, 1860, 12, 315, 2617, 711, 2118, 25582, 6, 11272, 1082, 202, 97, 202, 5549, 1082, 202, 7048, 1290, 1986, 9220, 1085, 19740, 715, 5621, 1082, 2 ]
RubyObject result = ((CallableNode) body).call(getRuby(), recv, id, args, noSuper);
RubyObject result = ((CallableNode) body).call(getRuby(), recv, id, args, noSuper);
public RubyObject call0( RubyObject recv, RubyId id, RubyPointer args, Node body, boolean noSuper) { // ... if (getRuby().getIter().getIter() == RubyIter.ITER_PRE) { getRuby().getIter().push(RubyIter.ITER_CUR); } else { getRuby().getIter().push(RubyIter.ITER_NOT); } RubyFrame frame = getRuby().getRubyFrame(); frame.push(); frame.setLastFunc(id); frame.setLastClass(noSuper ? null : this); frame.setSelf(recv); frame.setArgs(args); RubyObject result = ((CallableNode) body).call(getRuby(), recv, id, args, noSuper); getRuby().getRubyFrame().pop(); getRuby().getIter().pop(); return result; }
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/clean/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 921, 745, 20, 12, 202, 202, 54, 10340, 921, 10665, 16, 202, 202, 54, 10340, 548, 612, 16, 202, 202, 54, 10340, 4926, 833, 16, 202, 202, 907, 1417, 16, 202, 202, 6494, 1158, 8051, 13, 288, 202, 202, 759, 1372, 202, 202, 430, 261, 588, 54, 10340, 7675, 588, 2360, 7675, 588, 2360, 1435, 422, 19817, 2360, 18, 11844, 67, 3670, 13, 288, 1082, 202, 588, 54, 10340, 7675, 588, 2360, 7675, 6206, 12, 54, 10340, 2360, 18, 11844, 67, 7509, 1769, 202, 202, 97, 469, 288, 1082, 202, 588, 54, 10340, 7675, 588, 2360, 7675, 6206, 12, 54, 10340, 2360, 18, 11844, 67, 4400, 1769, 202, 202, 97, 202, 202, 54, 10340, 3219, 2623, 273, 4170, 10340, 7675, 588, 54, 10340, 3219, 5621, 202, 202, 3789, 18, 6206, 5621, 202, 202, 3789, 18, 542, 3024, 2622, 12, 350, 1769, 202, 202, 3789, 18, 542, 3024, 797, 12, 2135, 8051, 692, 446, 294, 333, 1769, 202, 202, 3789, 18, 542, 10084, 12, 18334, 1769, 202, 202, 3789, 18, 542, 2615, 12, 1968, 1769, 202, 202, 54, 10340, 921, 563, 273, 1082, 202, 12443, 11452, 907, 13, 1417, 2934, 1991, 12, 588, 54, 10340, 9334, 10665, 16, 612, 16, 833, 16, 1158, 8051, 1769, 202, 202, 588, 54, 10340, 7675, 588, 54, 10340, 3219, 7675, 5120, 5621, 202, 202, 588, 54, 10340, 7675, 588, 2360, 7675, 5120, 5621, 202, 202, 2463, 563, 31, 202, 97, 2, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 19817, 921, 745, 20, 12, 202, 202, 54, 10340, 921, 10665, 16, 202, 202, 54, 10340, 548, 612, 16, 202, 202, 54, 10340, 4926, 833, 16, 202, 202, 907, 1417, 16, 202, 202, 6494, 1158, 8051, 13, 288, 202, 202, 759, 1372, 202, 202, 430, 261, 588, 54, 10340, 7675, 588, 2360, 7675, 588, 2360, 1435, 422, 19817, 2360, 18, 11844, 67, 3670, 13, 288, 1082, 202, 588, 54, 10340, 7675, 588, 2360, 7675, 6206, 12, 54, 10340, 2360, 18, 11844, 67, 7509, 1769, 202, 202, 97, 469, 288, 1082, 202, 588, 54, 10340, 7675, 588, 2360, 7675, 6206, 12, 54, 10340, 2360, 18, 11844, 67, 4400, 1769, 202, 202, 97, 202, 202, 54, 10340, 3219, 2 ]
IEditorInput input) throws PartInitException { Assert.isNotNull(desc, "descriptor must not be null"); Assert.isNotNull(input, "input must not be null"); IEditorReference reusableEditorRef = findReusableEditor(desc); if (reusableEditorRef != null) { IEditorPart reusableEditor = reusableEditorRef.getEditor(false); if (reusableEditor == null) { IEditorReference result = new EditorReference(this, input, desc); page.closeEditor(reusableEditorRef, false); return result; }
IEditorInput input) throws PartInitException {
private IEditorReference reuseInternalEditor(EditorDescriptor desc, IEditorInput input) throws PartInitException { Assert.isNotNull(desc, "descriptor must not be null"); //$NON-NLS-1$ Assert.isNotNull(input, "input must not be null"); //$NON-NLS-1$ IEditorReference reusableEditorRef = findReusableEditor(desc); if (reusableEditorRef != null) { IEditorPart reusableEditor = reusableEditorRef.getEditor(false); if (reusableEditor == null) { IEditorReference result = new EditorReference(this, input, desc); page.closeEditor(reusableEditorRef, false); return result; } EditorSite site = (EditorSite) reusableEditor.getEditorSite(); EditorDescriptor oldDesc = site.getEditorDescriptor(); if ((desc.getId().equals(oldDesc.getId())) && (reusableEditor instanceof IReusableEditor)) { Workbench wb = (Workbench) window.getWorkbench(); editorPresentation.moveEditor(reusableEditor, -1); wb.getEditorHistory().add(reusableEditor.getEditorInput(), site.getEditorDescriptor()); page.reuseEditor((IReusableEditor) reusableEditor, input); return reusableEditorRef; } else { //findReusableEditor(...) checks pinned and saves editor if necessary IEditorReference ref = new EditorReference(this, input, desc); reusableEditor.getEditorSite().getPage().closeEditor( reusableEditor, false); return ref; } } return null; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/f1c8b0aa355c00a6c82a289c808984de6778bfca/EditorManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 467, 6946, 2404, 11827, 3061, 6946, 12, 6946, 3187, 3044, 16, 5411, 467, 6946, 1210, 810, 13, 1216, 6393, 2570, 503, 288, 7734, 5452, 18, 291, 5962, 12, 5569, 16, 315, 12628, 1297, 486, 506, 446, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 5452, 18, 291, 5962, 12, 2630, 16, 315, 2630, 1297, 486, 506, 446, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 7734, 467, 6946, 2404, 283, 16665, 6946, 1957, 273, 1104, 426, 16665, 6946, 12, 5569, 1769, 3639, 309, 261, 266, 16665, 6946, 1957, 480, 446, 13, 288, 5411, 467, 6946, 1988, 283, 16665, 6946, 273, 283, 16665, 6946, 1957, 18, 588, 6946, 12, 5743, 1769, 5411, 309, 261, 266, 16665, 6946, 422, 446, 13, 288, 7734, 467, 6946, 2404, 563, 273, 394, 18451, 2404, 12, 2211, 16, 810, 16, 3044, 1769, 7734, 1363, 18, 4412, 6946, 12, 266, 16665, 6946, 1957, 16, 629, 1769, 7734, 327, 563, 31, 5411, 289, 5411, 18451, 4956, 2834, 273, 261, 6946, 4956, 13, 283, 16665, 6946, 18, 588, 6946, 4956, 5621, 5411, 18451, 3187, 1592, 4217, 273, 2834, 18, 588, 6946, 3187, 5621, 5411, 309, 14015, 5569, 18, 26321, 7675, 14963, 12, 1673, 4217, 18, 26321, 1435, 3719, 10792, 597, 261, 266, 16665, 6946, 1276, 467, 426, 16665, 6946, 3719, 288, 7734, 4147, 22144, 17298, 273, 261, 2421, 22144, 13, 2742, 18, 588, 2421, 22144, 5621, 7734, 4858, 6351, 367, 18, 8501, 6946, 12, 266, 16665, 6946, 16, 300, 21, 1769, 7734, 17298, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 6946, 2404, 11827, 3061, 6946, 12, 6946, 3187, 3044, 16, 5411, 467, 6946, 1210, 810, 13, 1216, 6393, 2570, 503, 288, 7734, 5452, 18, 291, 5962, 12, 5569, 16, 315, 12628, 1297, 486, 506, 446, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 5452, 18, 291, 5962, 12, 2630, 16, 315, 2630, 1297, 486, 506, 446, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 7734, 467, 6946, 2404, 283, 16665, 6946, 1957, 273, 1104, 426, 16665, 6946, 12, 5569, 1769, 3639, 309, 261, 266, 16665, 6946, 1957, 480, 446, 13, 288, 5411, 467, 6946, 1988, 283, 16665, 6946, 273, 283, 16665, 6946, 1957, 18, 588, 6946, 12, 5743, 1769, 5411, 309, 261, 266, 16665, 6946, 2 ]
int transparencyType = cm.getTransparency();
int transparencyType = cm.getTransparency();
protected void loadImage(Logger log) { int[] tmpMap = null; try { ImageProducer ip = Jimi.getImageProducer(this.m_href.openStream(), Jimi.SYNCHRONOUS | Jimi.IN_MEMORY); FopImageConsumer consumer = new FopImageConsumer(ip); ip.startProduction(consumer); while (!consumer.isImageReady()) { Thread.sleep(500); } this.m_height = consumer.getHeight(); this.m_width = consumer.getWidth(); try { tmpMap = consumer.getImage(); } catch (Exception ex) { log.error("Image grabbing interrupted", ex); return; } ColorModel cm = consumer.getColorModel(); this.m_bitsPerPixel = 8; // this.m_bitsPerPixel = cm.getPixelSize(); this.m_colorSpace = ColorSpace.getInstance(ColorSpace.CS_LINEAR_RGB); if (cm.hasAlpha()) { int transparencyType = cm.getTransparency(); // java.awt.Transparency. BITMASK or OPAQUE or TRANSLUCENT if (transparencyType == java.awt.Transparency.OPAQUE) { this.m_isTransparent = false; } else if (transparencyType == java.awt.Transparency.BITMASK) { if (cm instanceof IndexColorModel) { this.m_isTransparent = false; byte[] alphas = new byte[ ((IndexColorModel) cm).getMapSize()]; byte[] reds = new byte[ ((IndexColorModel) cm).getMapSize()]; byte[] greens = new byte[ ((IndexColorModel) cm).getMapSize()]; byte[] blues = new byte[ ((IndexColorModel) cm).getMapSize()]; ((IndexColorModel) cm).getAlphas(alphas); ((IndexColorModel) cm).getReds(reds); ((IndexColorModel) cm).getGreens(greens); ((IndexColorModel) cm).getBlues(blues); for (int i = 0; i < ((IndexColorModel) cm).getMapSize(); i++) { if ((alphas[i] & 0xFF) == 0) { this.m_isTransparent = true; this.m_transparentColor = new PDFColor( (int)(reds[i] & 0xFF), (int)(greens[i] & 0xFF), (int)(blues[i] & 0xFF)); break; } } } else { // TRANSLUCENT /* * this.m_isTransparent = false; * for (int i = 0; i < this.m_width * this.m_height; i++) { * if (cm.getAlpha(tmpMap[i]) == 0) { * this.m_isTransparent = true; * this.m_transparentColor = new PDFColor(cm.getRed(tmpMap[i]), cm.getGreen(tmpMap[i]), cm.getBlue(tmpMap[i])); * break; * } * } */ // use special API... this.m_isTransparent = false; } } else { this.m_isTransparent = false; } } else { this.m_isTransparent = false; } } catch (Throwable ex) { log.error("Error while loading image " + this.m_href.toString(), ex); return; } // Should take care of the ColorSpace and bitsPerPixel this.m_bitmapsSize = this.m_width * this.m_height * 3; this.m_bitmaps = new byte[this.m_bitmapsSize]; for (int i = 0; i < this.m_height; i++) { for (int j = 0; j < this.m_width; j++) { int p = tmpMap[i * this.m_width + j]; int r = (p >> 16) & 0xFF; int g = (p >> 8) & 0xFF; int b = (p) & 0xFF; this.m_bitmaps[3 * (i * this.m_width + j)] = (byte)(r & 0xFF); this.m_bitmaps[3 * (i * this.m_width + j) + 1] = (byte)(g & 0xFF); this.m_bitmaps[3 * (i * this.m_width + j) + 2] = (byte)(b & 0xFF); } } }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/392781f30969e4da0b510da16b96099a320089ba/JimiImage.java/buggy/src/org/apache/fop/image/JimiImage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1262, 2040, 12, 3328, 613, 13, 288, 3639, 509, 8526, 1853, 863, 273, 446, 31, 3639, 775, 288, 5411, 3421, 12140, 2359, 273, 2868, 804, 381, 77, 18, 588, 2040, 12140, 12, 2211, 18, 81, 67, 7547, 18, 3190, 1228, 9334, 4766, 565, 804, 381, 77, 18, 7474, 50, 1792, 19359, 21667, 571, 804, 381, 77, 18, 706, 67, 24329, 1769, 5411, 478, 556, 2040, 5869, 4765, 273, 394, 478, 556, 2040, 5869, 12, 625, 1769, 5411, 2359, 18, 1937, 31590, 12, 13230, 1769, 5411, 1323, 16051, 13230, 18, 291, 2040, 8367, 10756, 288, 7734, 4884, 18, 19607, 12, 12483, 1769, 5411, 289, 5411, 333, 18, 81, 67, 4210, 273, 4765, 18, 588, 2686, 5621, 5411, 333, 18, 81, 67, 2819, 273, 4765, 18, 588, 2384, 5621, 5411, 775, 288, 7734, 1853, 863, 273, 4765, 18, 588, 2040, 5621, 5411, 289, 1044, 261, 503, 431, 13, 288, 7734, 613, 18, 1636, 2932, 2040, 3087, 9897, 310, 15711, 3113, 431, 1769, 7734, 327, 31, 5411, 289, 5411, 5563, 1488, 5003, 273, 4765, 18, 588, 2957, 1488, 5621, 5411, 333, 18, 81, 67, 6789, 2173, 9037, 273, 1725, 31, 5411, 368, 333, 18, 81, 67, 6789, 2173, 9037, 273, 5003, 18, 588, 9037, 1225, 5621, 5411, 333, 18, 81, 67, 3266, 3819, 273, 5563, 3819, 18, 588, 1442, 12, 2957, 3819, 18, 4596, 67, 5997, 985, 67, 11343, 1769, 5411, 309, 261, 7670, 18, 5332, 9690, 10756, 288, 1171, 509, 27472, 559, 273, 5003, 18, 588, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1262, 2040, 12, 3328, 613, 13, 288, 3639, 509, 8526, 1853, 863, 273, 446, 31, 3639, 775, 288, 5411, 3421, 12140, 2359, 273, 2868, 804, 381, 77, 18, 588, 2040, 12140, 12, 2211, 18, 81, 67, 7547, 18, 3190, 1228, 9334, 4766, 565, 804, 381, 77, 18, 7474, 50, 1792, 19359, 21667, 571, 804, 381, 77, 18, 706, 67, 24329, 1769, 5411, 478, 556, 2040, 5869, 4765, 273, 394, 478, 556, 2040, 5869, 12, 625, 1769, 5411, 2359, 18, 1937, 31590, 12, 13230, 1769, 5411, 1323, 16051, 13230, 18, 291, 2040, 8367, 10756, 288, 7734, 4884, 18, 19607, 12, 12483, 1769, 5411, 289, 5411, 333, 18, 81, 67, 4210, 273, 4765, 18, 588, 2686, 5621, 5411, 2 ]
return clazz.getName().endsWith(DefaultGrailsPageFlowClass.PAGE_FLOW) && !Closure.class.isAssignableFrom(clazz);
return isPageFlowClass(clazz.getName()) && !Closure.class.isAssignableFrom(clazz);
public static boolean isPageFlowClass( Class clazz ) { return clazz.getName().endsWith(DefaultGrailsPageFlowClass.PAGE_FLOW) && !Closure.class.isAssignableFrom(clazz); }
52280 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52280/9319b2487e82433202c4b7e86c557193a7ad2ae3/GrailsClassUtils.java/buggy/src/commons/org/codehaus/groovy/grails/commons/GrailsClassUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1250, 353, 1964, 5249, 797, 12, 1659, 4003, 262, 288, 202, 202, 2463, 4003, 18, 17994, 7675, 5839, 1190, 12, 1868, 14571, 14573, 1964, 5249, 797, 18, 11219, 67, 17430, 13, 225, 597, 401, 10573, 18, 1106, 18, 291, 7961, 1265, 12, 830, 3638, 1769, 202, 97, 202, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 760, 1250, 353, 1964, 5249, 797, 12, 1659, 4003, 262, 288, 202, 202, 2463, 4003, 18, 17994, 7675, 5839, 1190, 12, 1868, 14571, 14573, 1964, 5249, 797, 18, 11219, 67, 17430, 13, 225, 597, 401, 10573, 18, 1106, 18, 291, 7961, 1265, 12, 830, 3638, 1769, 202, 97, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
statement = connection.prepareStatement(queryString); statement.execute();
statement = connection.createStatement(); statement.execute(queryString);
private static void exec(Connection connection, String queryString, Collection ignoreExceptions) throws TestFailedException { PreparedStatement statement = null; try { statement = connection.prepareStatement(queryString); statement.execute(); } catch (SQLException e) { String sqlState = e.getSQLState(); if (!ignoreExceptions.contains(sqlState)) { throw new TestFailedException(e); // See finally block below } } finally { if (statement != null) { try { statement.close(); } catch (SQLException ee) { // This will discard an exception possibly thrown above :-( // But we don't worry too much about this, since: // 1. This is just a test // 2. We don't expect close() to throw // 3. If it does, this will be inspected by a developer throw new TestFailedException(ee); } } } }
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/1373f5a6f57abef4e9748674c3516872e5a8ef30/SetQueryTimeoutTest.java/clean/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/SetQueryTimeoutTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 1196, 12, 1952, 1459, 16, 11794, 514, 11337, 16, 11794, 2200, 2305, 11416, 13, 3639, 1216, 5411, 7766, 12417, 565, 288, 3639, 16913, 3021, 273, 446, 31, 3639, 775, 288, 5411, 3021, 273, 1459, 18, 9366, 3406, 12, 2271, 780, 1769, 5411, 3021, 18, 8837, 5621, 3639, 289, 1044, 261, 23116, 425, 13, 288, 5411, 514, 1847, 1119, 273, 425, 18, 588, 3997, 1119, 5621, 5411, 309, 16051, 6185, 11416, 18, 12298, 12, 4669, 1119, 3719, 288, 7734, 604, 394, 7766, 12417, 12, 73, 1769, 368, 2164, 3095, 1203, 5712, 5411, 289, 3639, 289, 3095, 288, 5411, 309, 261, 11516, 480, 446, 13, 288, 7734, 775, 288, 10792, 3021, 18, 4412, 5621, 7734, 289, 1044, 261, 23116, 14657, 13, 288, 10792, 368, 1220, 903, 10388, 392, 1520, 10016, 6718, 5721, 294, 17, 12, 10792, 368, 12484, 732, 2727, 1404, 26784, 4885, 9816, 2973, 333, 16, 3241, 30, 10792, 368, 404, 18, 1220, 353, 2537, 279, 1842, 10792, 368, 576, 18, 1660, 2727, 1404, 4489, 1746, 1435, 358, 604, 10792, 368, 890, 18, 971, 518, 1552, 16, 333, 903, 506, 2763, 1789, 635, 279, 8751, 10792, 604, 394, 7766, 12417, 12, 1340, 1769, 7734, 289, 5411, 289, 3639, 289, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 1196, 12, 1952, 1459, 16, 11794, 514, 11337, 16, 11794, 2200, 2305, 11416, 13, 3639, 1216, 5411, 7766, 12417, 565, 288, 3639, 16913, 3021, 273, 446, 31, 3639, 775, 288, 5411, 3021, 273, 1459, 18, 9366, 3406, 12, 2271, 780, 1769, 5411, 3021, 18, 8837, 5621, 3639, 289, 1044, 261, 23116, 425, 13, 288, 5411, 514, 1847, 1119, 273, 425, 18, 588, 3997, 1119, 5621, 5411, 309, 16051, 6185, 11416, 18, 12298, 12, 4669, 1119, 3719, 288, 7734, 604, 394, 7766, 12417, 12, 73, 1769, 368, 2164, 3095, 1203, 5712, 5411, 289, 3639, 289, 3095, 288, 5411, 309, 261, 11516, 480, 446, 13, 288, 7734, 775, 288, 10792, 3021, 18, 4412, 5621, 7734, 289, 1044, 2 ]
NODE body = getMethodBody(id, scope); return call0(recv, id, args, body, false);
return klass.call0(recv, id, args, body, false);
public RubyObject call(RubyObject recv, RubyId id, RubyObject[] args, int scope) { // ... NODE body = getMethodBody(id, scope); return call0(recv, id, args, body, false); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/03950522a75c28f406bd4cb011cb1916a662366d/RubyModule.java/buggy/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 745, 12, 54, 10340, 921, 10665, 16, 19817, 548, 612, 16, 19817, 921, 8526, 833, 16, 509, 2146, 13, 288, 7734, 368, 1372, 7734, 11922, 1417, 273, 6272, 2250, 12, 350, 16, 2146, 1769, 7734, 327, 745, 20, 12, 18334, 16, 612, 16, 833, 16, 1417, 16, 629, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 921, 745, 12, 54, 10340, 921, 10665, 16, 19817, 548, 612, 16, 19817, 921, 8526, 833, 16, 509, 2146, 13, 288, 7734, 368, 1372, 7734, 11922, 1417, 273, 6272, 2250, 12, 350, 16, 2146, 1769, 7734, 327, 745, 20, 12, 18334, 16, 612, 16, 833, 16, 1417, 16, 629, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if ( pdf == null ) {
if (pdf == null) {
public static PropertyDeclarationFactory newFactory( CSSName cssName ) { PropertyDeclarationFactory pdf = null; if ( cssName == null ) { XRLog.cssParse("PropertyDeclarationFactory requested for NULL CSSName; returning default."); pdf = DEFAULT_PD_FACTORY; } else { pdf = PROPERTY_FACTORIES[cssName.getAssignedID()]; if ( pdf == null ) { pdf = DEFAULT_PD_FACTORY; } } return pdf; }
52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/3b0c5b292a89ef497d36c49cc4a65213722313ac/PropertyDeclaration.java/buggy/src/java/org/xhtmlrenderer/css/sheet/PropertyDeclaration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 4276, 6094, 1733, 394, 1733, 12, 6765, 461, 3747, 461, 262, 288, 3639, 4276, 6094, 1733, 8169, 273, 446, 31, 3639, 309, 261, 3747, 461, 422, 446, 262, 288, 5411, 1139, 54, 1343, 18, 5212, 3201, 2932, 1396, 6094, 1733, 3764, 364, 3206, 6765, 461, 31, 5785, 805, 1199, 1769, 5411, 8169, 273, 3331, 67, 21527, 67, 16193, 31, 3639, 289, 469, 288, 5411, 8169, 273, 9759, 67, 26835, 8805, 63, 5212, 461, 18, 588, 20363, 734, 1435, 15533, 5411, 309, 261, 7699, 422, 446, 13, 288, 7734, 8169, 273, 3331, 67, 21527, 67, 16193, 31, 5411, 289, 3639, 289, 3639, 327, 8169, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 4276, 6094, 1733, 394, 1733, 12, 6765, 461, 3747, 461, 262, 288, 3639, 4276, 6094, 1733, 8169, 273, 446, 31, 3639, 309, 261, 3747, 461, 422, 446, 262, 288, 5411, 1139, 54, 1343, 18, 5212, 3201, 2932, 1396, 6094, 1733, 3764, 364, 3206, 6765, 461, 31, 5785, 805, 1199, 1769, 5411, 8169, 273, 3331, 67, 21527, 67, 16193, 31, 3639, 289, 469, 288, 5411, 8169, 273, 9759, 67, 26835, 8805, 63, 5212, 461, 18, 588, 20363, 734, 1435, 15533, 5411, 309, 261, 7699, 422, 446, 13, 288, 7734, 8169, 273, 3331, 67, 21527, 67, 16193, 31, 5411, 289, 3639, 289, 3639, 327, 8169, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
CodeEmitter e = new CodeEmitter(this, v, access, sig, exceptions); if (useHook && sig.equals(Constants.SIG_STATIC) && !TypeUtils.isInterface(access)) { seenStatic = true; e.invoke_static_this(STATIC_HOOK);
if (sig.equals(STATIC_HOOK)) { hook = new CodeEmitter(this, v, access, sig, exceptions) { public boolean isStaticHook() { return true; } public void visitMaxs(int maxStack, int maxLocals) { if (ended) { super.visitMaxs(maxStack, maxLocals); } } public void visitInsn(int insn) { if (insn != Constants.RETURN || ended) { super.visitInsn(insn); } } }; return hook; } else { CodeEmitter e = new CodeEmitter(this, v, access, sig, exceptions); if (sig.equals(Constants.SIG_STATIC) && !TypeUtils.isInterface(access)) { seenStatic = true; e.invoke_static_this(STATIC_HOOK); } return e;
public CodeEmitter begin_method(int access, Signature sig, Type[] exceptions) { CodeVisitor v = cv.visitMethod(access, sig.getName(), sig.getDescriptor(), TypeUtils.toInternalNames(exceptions)); CodeEmitter e = new CodeEmitter(this, v, access, sig, exceptions); if (useHook && sig.equals(Constants.SIG_STATIC) && !TypeUtils.isInterface(access)) { seenStatic = true; e.invoke_static_this(STATIC_HOOK); } return e; }
836 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/836/408cdf51abd6ca84afbd716d9e6b7cbb73437c61/ClassEmitter.java/buggy/src/proxy/net/sf/cglib/core/ClassEmitter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3356, 13476, 2376, 67, 2039, 12, 474, 2006, 16, 9249, 3553, 16, 1412, 8526, 4798, 13, 288, 3639, 3356, 7413, 331, 273, 8951, 18, 11658, 1305, 12, 3860, 16, 4766, 4202, 3553, 18, 17994, 9334, 4766, 4202, 3553, 18, 588, 3187, 9334, 4766, 4202, 1412, 1989, 18, 869, 3061, 1557, 12, 11855, 10019, 3639, 3356, 13476, 425, 273, 394, 3356, 13476, 12, 2211, 16, 331, 16, 2006, 16, 3553, 16, 4798, 1769, 3639, 309, 261, 1202, 5394, 597, 3553, 18, 14963, 12, 2918, 18, 18513, 67, 22741, 13, 597, 401, 559, 1989, 18, 291, 1358, 12, 3860, 3719, 288, 5411, 5881, 5788, 273, 638, 31, 5411, 425, 18, 14407, 67, 3845, 67, 2211, 12, 22741, 67, 7995, 3141, 1769, 3639, 289, 3639, 327, 425, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3356, 13476, 2376, 67, 2039, 12, 474, 2006, 16, 9249, 3553, 16, 1412, 8526, 4798, 13, 288, 3639, 3356, 7413, 331, 273, 8951, 18, 11658, 1305, 12, 3860, 16, 4766, 4202, 3553, 18, 17994, 9334, 4766, 4202, 3553, 18, 588, 3187, 9334, 4766, 4202, 1412, 1989, 18, 869, 3061, 1557, 12, 11855, 10019, 3639, 3356, 13476, 425, 273, 394, 3356, 13476, 12, 2211, 16, 331, 16, 2006, 16, 3553, 16, 4798, 1769, 3639, 309, 261, 1202, 5394, 597, 3553, 18, 14963, 12, 2918, 18, 18513, 67, 22741, 13, 597, 401, 559, 1989, 18, 291, 1358, 12, 3860, 3719, 288, 5411, 5881, 5788, 273, 638, 31, 5411, 425, 18, 14407, 67, 3845, 67, 2211, 12, 22741, 67, 7995, 2 ]
public Log getLog() { return null;
public org.xmpp.component.Log getLog() { return new org.xmpp.component.Log() { public void error(String msg) { Log.error(msg); } public void error(String msg, Throwable throwable) { Log.error(msg, throwable); } public void error(Throwable throwable) { Log.error(throwable); } public void warn(String msg) { Log.warn(msg); } public void warn(String msg, Throwable throwable) { Log.warn(msg, throwable); } public void warn(Throwable throwable) { Log.warn(throwable); } public void info(String msg) { Log.info(msg); } public void info(String msg, Throwable throwable) { Log.info(msg, throwable); } public void info(Throwable throwable) { Log.info(throwable); } public void debug(String msg) { Log.debug(msg); } public void debug(String msg, Throwable throwable) { Log.debug(msg, throwable); } public void debug(Throwable throwable) { Log.debug(throwable); } };
public Log getLog() { return null; //To change body of implemented methods use File | Settings | File Templates. }
6161 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6161/da952aea9a91145d0292d9982110244d4a919e03/InternalComponentManager.java/buggy/src/java/org/jivesoftware/messenger/InternalComponentManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1827, 9189, 1435, 288, 3639, 327, 446, 31, 225, 368, 774, 2549, 1417, 434, 8249, 2590, 999, 1387, 571, 8709, 571, 1387, 26212, 18, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1827, 9189, 1435, 288, 3639, 327, 446, 31, 225, 368, 774, 2549, 1417, 434, 8249, 2590, 999, 1387, 571, 8709, 571, 1387, 26212, 18, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return RubyBoolean.newBoolean(runtime, getMetaClass().isMethodBound(name, !includePrivate));
return getRuntime().newBoolean(getMetaClass().isMethodBound(name, !includePrivate));
public RubyBoolean respond_to(IRubyObject[] args) { checkArgumentCount(args, 1, 2); String name = args[0].asSymbol(); boolean includePrivate = args.length > 1 ? args[1].isTrue() : false; return RubyBoolean.newBoolean(runtime, getMetaClass().isMethodBound(name, !includePrivate)); }
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyObject.java/clean/src/org/jruby/RubyObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 5507, 6846, 67, 869, 12, 7937, 10340, 921, 8526, 833, 13, 288, 3639, 10788, 1380, 12, 1968, 16, 404, 16, 576, 1769, 3639, 514, 508, 273, 833, 63, 20, 8009, 345, 5335, 5621, 3639, 1250, 2341, 6014, 273, 833, 18, 2469, 405, 404, 692, 833, 63, 21, 8009, 291, 5510, 1435, 294, 629, 31, 3639, 327, 18814, 7675, 2704, 5507, 12, 588, 2781, 797, 7675, 291, 1305, 3499, 12, 529, 16, 401, 6702, 6014, 10019, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 19817, 5507, 6846, 67, 869, 12, 7937, 10340, 921, 8526, 833, 13, 288, 3639, 10788, 1380, 12, 1968, 16, 404, 16, 576, 1769, 3639, 514, 508, 273, 833, 63, 20, 8009, 345, 5335, 5621, 3639, 1250, 2341, 6014, 273, 833, 18, 2469, 405, 404, 692, 833, 63, 21, 8009, 291, 5510, 1435, 294, 629, 31, 3639, 327, 18814, 7675, 2704, 5507, 12, 588, 2781, 797, 7675, 291, 1305, 3499, 12, 529, 16, 401, 6702, 6014, 10019, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
protected void contributeAdjunctCoolbarAction(ActionDescriptor ad, ActionSetActionBars bars) { String toolBarId = ad.getToolbarId(); String toolGroupId = ad.getToolbarGroupId(); String contributingId = bars.getActionSetId(); ICoolBarManager coolBarMgr = bars.getCoolBarManager(); if (coolBarMgr == null) { return; } PluginAction action = ad.getAction(); PluginActionCoolBarContributionItem actionContribution = new PluginActionCoolBarContributionItem(action); bars.addAdjunctContribution(actionContribution); // create a coolitem for the toolbar id if it does not yet exist IToolBarManager toolBarManager = bars.getToolBarManager(toolBarId); // Check to see if the group already exists IContributionItem groupMarker = toolBarManager.find(toolGroupId); // Add a group marker if one does not exist if (groupMarker == null) { toolBarManager.add(new Separator(toolGroupId)); } IContributionItem refItem = findAlphabeticalOrder(toolGroupId,contributingId,toolBarManager); toolBarManager.insertAfter(refItem.getId(),actionContribution); //toolBarManager.appendToGroup(toolGroupId, actionContribution); toolBarManager.update(false); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/8fa2964ed19080e1cf6e8297fcc21968b65157a6/PluginActionSetBuilder.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PluginActionSetBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 6459, 591, 887, 17886, 6931, 39, 1371, 3215, 1803, 12, 1803, 3187, 361, 16, 1803, 694, 1803, 5190, 87, 13518, 15329, 1082, 202, 780, 6738, 5190, 548, 33, 361, 18, 588, 17907, 548, 5621, 1082, 202, 780, 6738, 8722, 33, 361, 18, 588, 17907, 8722, 5621, 1082, 202, 780, 26930, 8490, 548, 33, 13518, 18, 588, 1803, 18523, 5621, 1082, 202, 2871, 1371, 5190, 1318, 71, 1371, 5190, 9455, 33, 13518, 18, 588, 39, 1371, 5190, 1318, 5621, 1082, 202, 430, 12, 71, 1371, 5190, 9455, 631, 2011, 15329, 9506, 202, 2463, 31, 1082, 202, 97, 25083, 202, 3773, 1803, 1128, 33, 361, 18, 588, 1803, 5621, 1082, 202, 3773, 1803, 39, 1371, 5190, 442, 4027, 1180, 1128, 442, 4027, 33, 2704, 3773, 1803, 39, 1371, 5190, 442, 4027, 1180, 12, 1128, 1769, 25083, 202, 13518, 18, 1289, 17886, 6931, 442, 4027, 12, 1128, 442, 4027, 1769, 1082, 202, 759, 2640, 1077, 1371, 1726, 1884, 451, 278, 1371, 3215, 350, 430, 305, 20657, 902, 24404, 7398, 6862, 1082, 202, 45, 6364, 5190, 1318, 6738, 5190, 1318, 33, 13518, 18, 588, 6364, 5190, 1318, 12, 6738, 5190, 548, 1769, 6862, 6862, 202, 759, 1564, 869, 5946, 430, 451, 1332, 656, 17583, 1808, 1082, 202, 45, 442, 4027, 1180, 1655, 7078, 33, 6738, 5190, 1318, 18, 4720, 12, 6738, 8722, 1769, 1082, 202, 759, 986, 346, 656, 11145, 430, 8184, 83, 281, 902, 7398, 1082, 202, 430, 12, 1655, 7078, 631, 2011, 15329, 9506, 202, 6738, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 6459, 591, 887, 17886, 6931, 39, 1371, 3215, 1803, 12, 1803, 3187, 361, 16, 1803, 694, 1803, 5190, 87, 13518, 15329, 1082, 202, 780, 6738, 5190, 548, 33, 361, 18, 588, 17907, 548, 5621, 1082, 202, 780, 6738, 8722, 33, 361, 18, 588, 17907, 8722, 5621, 1082, 202, 780, 26930, 8490, 548, 33, 13518, 18, 588, 1803, 18523, 5621, 1082, 202, 2871, 1371, 5190, 1318, 71, 1371, 5190, 9455, 33, 13518, 18, 588, 39, 1371, 5190, 1318, 5621, 1082, 202, 430, 12, 71, 1371, 5190, 9455, 631, 2011, 15329, 9506, 202, 2463, 31, 1082, 202, 97, 25083, 202, 3773, 1803, 1128, 33, 361, 18, 588, 1803, 5621, 1082, 202, 3773, 1803, 39, 1371, 5190, 442, 4027, 2 ]
selection.invalidate(); reloadData(true); }
reloadData(true); }
public void run() { selection.invalidate(); reloadData(true); }
36419 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36419/b97a3707829fcd9bafe1e05f324a24d0e6dac924/CDBrowserController.java/buggy/source/ch/cyberduck/ui/cocoa/CDBrowserController.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4766, 1071, 918, 1086, 1435, 288, 4766, 565, 4421, 18, 5387, 340, 5621, 4766, 565, 7749, 751, 12, 3767, 1769, 27573, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4766, 1071, 918, 1086, 1435, 288, 4766, 565, 4421, 18, 5387, 340, 5621, 4766, 565, 7749, 751, 12, 3767, 1769, 27573, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
private void updateNamespaceInfo(String newPrefix, String newTargetNamespace) { Element element = xsdSchema.getElement(); DocumentImpl doc = (DocumentImpl) element.getOwnerDocument(); String modelTargetNamespace = xsdSchema.getTargetNamespace(); String oldNamespace = xsdSchema.getTargetNamespace(); TypesHelper helper = new TypesHelper(xsdSchema); String oldPrefix = helper.getPrefix(element.getAttribute(XSDConstants.TARGETNAMESPACE_ATTRIBUTE), false); if (modelTargetNamespace == null) { modelTargetNamespace = ""; //$NON-NLS-1$ } String targetNamespace = newTargetNamespace.trim(); String prefix = newPrefix.trim(); if (!validatePrefix(prefix) || !validateTargetNamespace(targetNamespace)) { return; } if (prefix.length() > 0 && targetNamespace.length() == 0) { // can't have blank targetnamespace and yet specify a prefix return; } doc.getModel().beginRecording(this, XSDEditorPlugin.getXSDString("_UI_TARGETNAMESPACE_CHANGE")); //$NON-NLS-1$ String xsdForXSDPrefix = xsdSchema.getSchemaForSchemaQNamePrefix(); Map map = xsdSchema.getQNamePrefixToNamespaceMap(); // For debugging // System.out.println("1. SW Map is " + map.values()); // System.out.println("1. SW Map keys are " + map.keySet()); // Check if prefix is blank // if it is, then make sure we have a prefix // for schema for schema if (prefix.length() == 0) { // if prefix for schema for schema is blank // then set it to value specified in preference // and update ALL nodes with this prefix if (xsdForXSDPrefix == null || (xsdForXSDPrefix != null && xsdForXSDPrefix.trim().length() == 0)) { // get preference prefix xsdForXSDPrefix = XSDEditorPlugin.getPlugin().getXMLSchemaPrefix(); // get a unique prefix by checking what's in the map xsdForXSDPrefix = getUniqueSchemaForSchemaPrefix(xsdForXSDPrefix, map); element.setAttribute("xmlns:" + xsdForXSDPrefix, XSDConstants.SCHEMA_FOR_SCHEMA_URI_2001); //$NON-NLS-1$ updateAllNodes(element, xsdForXSDPrefix); // remove the old xmlns attribute for the schema for schema if (element.getAttribute("xmlns") != null && //$NON-NLS-1$ element.getAttribute("xmlns").equals(XSDConstants.SCHEMA_FOR_SCHEMA_URI_2001)) //$NON-NLS-1$ { element.removeAttribute("xmlns"); //$NON-NLS-1$ } } } if (targetNamespace.length() > 0 || (targetNamespace.length() == 0 && prefix.length() == 0)) { // clean up the old prefix for this schema if (oldPrefix != null && oldPrefix.length() > 0) { element.removeAttribute("xmlns:" + oldPrefix); //$NON-NLS-1$ // element.setAttribute("xmlns:" + prefix, targetNamespace); // java.util.Map prefixToNameSpaceMap = // xsdSchema.getQNamePrefixToNamespaceMap(); // prefixToNameSpaceMap.remove(oldPrefix); } else // if no prefix { if (element.getAttribute("xmlns") != null) //$NON-NLS-1$ { if (!element.getAttribute("xmlns").equals(XSDConstants.SCHEMA_FOR_SCHEMA_URI_2001)) //$NON-NLS-1$ { element.removeAttribute("xmlns"); //$NON-NLS-1$ } } } } if (targetNamespace.length() > 0) { if (!modelTargetNamespace.equals(targetNamespace)) { element.setAttribute(XSDConstants.TARGETNAMESPACE_ATTRIBUTE, targetNamespace); } // now set the new xmlns:prefix attribute if (prefix.length() > 0) { element.setAttribute("xmlns:" + prefix, targetNamespace); //$NON-NLS-1$ } else { element.setAttribute("xmlns", targetNamespace); //$NON-NLS-1$ } // set the targetNamespace attribute } else // else targetNamespace is blank { if (prefix.length() == 0) { element.removeAttribute(XSDConstants.TARGETNAMESPACE_ATTRIBUTE); } } // System.out.println("1.5 SW Map is " + map.values()); // System.out.println("1.5 SW Map keys are " + map.keySet()); // do our own referential integrity TargetNamespaceChangeHandler targetNamespaceChangeHandler = new TargetNamespaceChangeHandler(xsdSchema, oldNamespace, targetNamespace); targetNamespaceChangeHandler.resolve(); updateElement(xsdSchema); doc.getModel().endRecording(this); // For debugging // map = xsdSchema.getQNamePrefixToNamespaceMap(); // System.out.println("2. SW Map is " + map.values()); // System.out.println("2. SW Map keys are " + map.keySet()); }
13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/ea252dcf918978f62a140af82eb01a17fa69da7b/XSDSchemaSection.java/clean/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/properties/sections/XSDSchemaSection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1089, 3402, 966, 12, 780, 394, 2244, 16, 514, 394, 2326, 3402, 13, 225, 288, 3010, 930, 273, 14802, 3078, 18, 21336, 5621, 4319, 2828, 997, 273, 261, 2519, 2828, 13, 930, 18, 588, 5541, 2519, 5621, 514, 938, 2326, 3402, 273, 14802, 3078, 18, 588, 2326, 3402, 5621, 514, 1592, 3402, 273, 14802, 3078, 18, 588, 2326, 3402, 5621, 7658, 2276, 4222, 273, 394, 7658, 2276, 12, 19144, 3078, 1769, 514, 1592, 2244, 273, 4222, 18, 588, 2244, 12, 2956, 18, 588, 1499, 12, 31244, 2918, 18, 16374, 11368, 67, 11616, 3631, 629, 1769, 309, 261, 2284, 2326, 3402, 422, 446, 13, 288, 2284, 2326, 3402, 273, 1408, 31, 4329, 3993, 17, 5106, 17, 21, 8, 289, 514, 1018, 3402, 273, 394, 2326, 3402, 18, 5290, 5621, 514, 1633, 273, 394, 2244, 18, 5290, 5621, 309, 16051, 5662, 2244, 12, 3239, 13, 747, 401, 5662, 2326, 3402, 12, 3299, 3402, 3719, 288, 2463, 31, 289, 309, 261, 3239, 18, 2469, 1435, 405, 374, 597, 1018, 3402, 18, 2469, 1435, 422, 374, 13, 288, 759, 848, 1404, 1240, 7052, 1018, 4937, 471, 4671, 4800, 279, 1633, 2463, 31, 289, 997, 18, 588, 1488, 7675, 10086, 21037, 12, 2211, 16, 1139, 55, 1639, 72, 1811, 3773, 18, 588, 31244, 780, 2932, 67, 5370, 67, 16374, 11368, 67, 14473, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 514, 14802, 1290, 31244, 2244, 273, 14802, 3078, 18, 588, 3078, 1290, 3078, 13688, 2244, 5621, 1635, 852, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3402, 966, 12, 780, 394, 2244, 16, 514, 394, 2326, 3402, 13, 225, 288, 3010, 930, 273, 14802, 3078, 18, 21336, 5621, 4319, 2828, 997, 273, 261, 2519, 2828, 13, 930, 18, 588, 5541, 2519, 5621, 514, 938, 2326, 3402, 273, 14802, 3078, 18, 588, 2326, 3402, 5621, 514, 1592, 3402, 273, 14802, 3078, 18, 588, 2326, 3402, 5621, 7658, 2276, 4222, 273, 394, 7658, 2276, 12, 19144, 3078, 1769, 514, 1592, 2244, 273, 4222, 18, 588, 2244, 12, 2956, 18, 588, 1499, 12, 31244, 2918, 18, 16374, 11368, 67, 11616, 3631, 629, 1769, 309, 261, 2284, 2326, 3402, 422, 446, 13, 288, 2284, 2326, 3402, 273, 1408, 31, 4329, 3993, 17, 5106, 17, 21, 2 ]
Stmt Statement = (Stmt) getRhsSym(5); setResult(nf.If(pos(), Expression, Statement)); break; }
Stmt StatementNoShortIf = (Stmt) getRhsSym(5); Stmt Statement = (Stmt) getRhsSym(7); setResult(nf.If(pos(), Expression, StatementNoShortIf, Statement)); 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; }
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/56cdb14fdb9589988a93eb9a76aae3872ab98272/X10Parser.java/buggy/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, 5411, 368, 5411, 648, 404, 30, 288, 7734, 368, 7, 1369, 1666, 315, 39, 27824, 20416, 19, 4749, 26, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 7734, 1770, 21036, 273, 261, 461, 13, 4170, 4487, 11901, 12, 21, 1769, 7734, 368, 7, 1369, 1725, 315, 39, 27824, 20416, 19, 4749, 26, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 10792, 21582, 12, 2704, 1770, 12, 82, 74, 16, 4766, 1377, 3742, 16, 4766, 1377, 949, 12, 588, 3910, 6952, 9334, 16609, 6952, 1435, 3631, 4766, 1377, 21036, 16, 4766, 1377, 10971, 10019, 10792, 898, 31, 5411, 289, 5397, 368, 5411, 368, 6781, 576, 30, 225, 7508, 461, 493, 33, 7508, 461, 263, 1068, 548, 5411, 368, 5411, 648, 576, 30, 288, 7734, 368, 7, 1369, 2872, 315, 39, 27824, 20416, 19, 4749, 26, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 7734, 1770, 7508, 461, 273, 261, 461, 13, 4170, 4487, 11901, 12, 21, 1769, 7734, 368, 7, 1369, 6549, 315, 39, 27824, 20416, 19, 4749, 26, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5411, 368, 5411, 648, 404, 30, 288, 7734, 368, 7, 1369, 1666, 315, 39, 27824, 20416, 19, 4749, 26, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 7734, 1770, 21036, 273, 261, 461, 13, 4170, 4487, 11901, 12, 21, 1769, 7734, 368, 7, 1369, 1725, 315, 39, 27824, 20416, 19, 4749, 26, 19, 92, 2163, 18, 9576, 19, 4816, 19, 92, 2163, 19, 4288, 19, 4841, 548, 18, 10052, 6, 10792, 21582, 12, 2704, 2 ]
Hierarchy hierarchy = getHierarchyArg(evaluator, args, 0, true); return hierarchy.getDimension(); }
Hierarchy hierarchy = getHierarchyArg(evaluator, args, 0, true); return hierarchy.getDimension(); }
public Object evaluate(Evaluator evaluator, Exp[] args) { Hierarchy hierarchy = getHierarchyArg(evaluator, args, 0, true); return hierarchy.getDimension(); }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/BuiltinFunTable.java/clean/src/main/mondrian/olap/fun/BuiltinFunTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 1033, 5956, 12, 15876, 18256, 16, 7784, 8526, 833, 13, 288, 9506, 202, 12074, 9360, 273, 7628, 6000, 4117, 12, 14168, 639, 16, 833, 16, 374, 16, 638, 1769, 9506, 202, 2463, 9360, 18, 588, 8611, 5621, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1875, 202, 482, 1033, 5956, 12, 15876, 18256, 16, 7784, 8526, 833, 13, 288, 9506, 202, 12074, 9360, 273, 7628, 6000, 4117, 12, 14168, 639, 16, 833, 16, 374, 16, 638, 1769, 9506, 202, 2463, 9360, 18, 588, 8611, 5621, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
_map_class.getDeclaredMethod("COMMA", param_types);
_map_class.getDeclaredMethod("COMMA", param_types);
public SmcParser(SmcLexer lexer) { _lexer = lexer; _parser_map = new SmcParserContext(this); _token = null; _start_state = ""; _context = ""; _header = ""; _action_negation = false; // Create a hashmap which associates token names with // parser transitions. When a token is received, use this // hashmap to get the appropriate transition method and // invoke that method. _transMethod = new Method[SmcLexer.TOKEN_COUNT]; try { Class _map_class = _parser_map.getClass(); Class[] param_types = new Class[0]; _transMethod[SmcLexer.ENTRY] = _map_class.getDeclaredMethod("ENTRY", param_types); _transMethod[SmcLexer.EXIT] = _map_class.getDeclaredMethod("EXIT", param_types); _transMethod[SmcLexer.POP] = _map_class.getDeclaredMethod("POP", param_types); _transMethod[SmcLexer.PUSH] = _map_class.getDeclaredMethod("PUSH", param_types); _transMethod[SmcLexer.WORD] = _map_class.getDeclaredMethod("WORD", param_types); _transMethod[SmcLexer.START_STATE] = _map_class.getDeclaredMethod("START_STATE", param_types); _transMethod[SmcLexer.MAP_NAME] = _map_class.getDeclaredMethod("MAP_NAME", param_types); _transMethod[SmcLexer.CLASS_NAME] = _map_class.getDeclaredMethod("CLASS_NAME", param_types); _transMethod[SmcLexer.HEADER_FILE] = _map_class.getDeclaredMethod("HEADER_FILE", param_types); _transMethod[SmcLexer.LEFT_BRACE] = _map_class.getDeclaredMethod("LEFT_BRACE", param_types); _transMethod[SmcLexer.RIGHT_BRACE] = _map_class.getDeclaredMethod("RIGHT_BRACE", param_types); _transMethod[SmcLexer.LEFT_BRACKET] = _map_class.getDeclaredMethod("LEFT_BRACKET", param_types); _transMethod[SmcLexer.RIGHT_BRACKET] = _map_class.getDeclaredMethod("RIGHT_BRACKET", param_types); _transMethod[SmcLexer.LEFT_PAREN] = _map_class.getDeclaredMethod("LEFT_PAREN", param_types); _transMethod[SmcLexer.RIGHT_PAREN] = _map_class.getDeclaredMethod("RIGHT_PAREN", param_types); _transMethod[SmcLexer.SEMICOLON] = _map_class.getDeclaredMethod("SEMICOLON", param_types); _transMethod[SmcLexer.COLON] = _map_class.getDeclaredMethod("COLON", param_types); _transMethod[SmcLexer.COMMA] = _map_class.getDeclaredMethod("COMMA", param_types); _transMethod[SmcLexer.EXCLAMATION] = _map_class.getDeclaredMethod("EXCLAMATION", param_types); _transMethod[SmcLexer.SOURCE] = _map_class.getDeclaredMethod("SOURCE", param_types); _transMethod[SmcLexer.EOD] = _map_class.getDeclaredMethod("EOD", param_types); _transMethod[SmcLexer.VARIABLE] = _map_class.getDeclaredMethod("VARIABLE", param_types); _transMethod[SmcLexer.INTEGER] = _map_class.getDeclaredMethod("INTEGER", param_types); _transMethod[SmcLexer.FLOAT] = _map_class.getDeclaredMethod("FLOAT", param_types); _transMethod[SmcLexer.STRING] = _map_class.getDeclaredMethod("STRING", param_types); _transMethod[SmcLexer.ASTERISK] = _map_class.getDeclaredMethod("ASTERISK", param_types); _transMethod[SmcLexer.AMPERSAND] = _map_class.getDeclaredMethod("AMPERSAND", param_types); } catch (NoSuchMethodException ex1) { System.err.println("INITIALIZATION ERROR! " + ex1); System.exit(1); } catch (SecurityException ex2) { System.err.println("INITIALIZATION ERROR! " + ex2); System.exit(1); } }
50995 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50995/eb27700d8309435b1a9692fbf7cfa887d4d1fcd7/SmcParser.java/buggy/bin/SmcParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9425, 71, 2678, 12, 9552, 71, 13356, 8512, 13, 565, 288, 3639, 389, 31731, 273, 8512, 31, 3639, 389, 4288, 67, 1458, 273, 394, 9425, 71, 2678, 1042, 12, 2211, 1769, 3639, 389, 2316, 273, 446, 31, 3639, 389, 1937, 67, 2019, 273, 1408, 31, 3639, 389, 2472, 273, 1408, 31, 3639, 389, 3374, 273, 1408, 31, 3639, 389, 1128, 67, 14518, 367, 273, 629, 31, 3639, 368, 1788, 279, 1651, 1458, 1492, 2576, 815, 1147, 1257, 598, 3639, 368, 2082, 13136, 18, 5203, 279, 1147, 353, 5079, 16, 999, 333, 3639, 368, 1651, 1458, 358, 336, 326, 5505, 6007, 707, 471, 3639, 368, 4356, 716, 707, 18, 3639, 389, 2338, 1305, 273, 394, 2985, 63, 9552, 71, 13356, 18, 8412, 67, 7240, 15533, 3639, 775, 3639, 288, 5411, 1659, 389, 1458, 67, 1106, 273, 389, 4288, 67, 1458, 18, 588, 797, 5621, 5411, 1659, 8526, 579, 67, 2352, 273, 394, 1659, 63, 20, 15533, 5411, 389, 2338, 1305, 63, 9552, 71, 13356, 18, 19083, 65, 273, 10792, 389, 1458, 67, 1106, 18, 588, 18888, 1305, 2932, 19083, 3113, 4766, 1171, 579, 67, 2352, 1769, 5411, 389, 2338, 1305, 63, 9552, 71, 13356, 18, 28682, 65, 273, 10792, 389, 1458, 67, 1106, 18, 588, 18888, 1305, 2932, 28682, 3113, 4766, 1171, 579, 67, 2352, 1769, 5411, 389, 2338, 1305, 63, 9552, 71, 13356, 18, 30374, 65, 273, 10792, 389, 1458, 67, 1106, 18, 588, 18888, 1305, 2932, 30374, 3113, 4766, 1171, 579, 67, 2352, 1769, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9425, 71, 2678, 12, 9552, 71, 13356, 8512, 13, 565, 288, 3639, 389, 31731, 273, 8512, 31, 3639, 389, 4288, 67, 1458, 273, 394, 9425, 71, 2678, 1042, 12, 2211, 1769, 3639, 389, 2316, 273, 446, 31, 3639, 389, 1937, 67, 2019, 273, 1408, 31, 3639, 389, 2472, 273, 1408, 31, 3639, 389, 3374, 273, 1408, 31, 3639, 389, 1128, 67, 14518, 367, 273, 629, 31, 3639, 368, 1788, 279, 1651, 1458, 1492, 2576, 815, 1147, 1257, 598, 3639, 368, 2082, 13136, 18, 5203, 279, 1147, 353, 5079, 16, 999, 333, 3639, 368, 1651, 1458, 358, 336, 326, 5505, 6007, 707, 471, 3639, 368, 4356, 716, 707, 18, 3639, 389, 2338, 1305, 273, 394, 2985, 63, 9552, 2 ]
Dialog dialog = null; ResourceBundle bundle = ResourceBundle.getBundle("org.eclipse.ui.texteditor.AbstractTextEditorResources"); if (bundle != null) { dialog = getConfirmDialog( bundle.getString("Error.activated.deleted.close.title"), bundle.getString("Error.activated.deleted.close.message") ); }
Dialog dialog = getConfirmDialog( getEditorString("Editor.error.activated.deleted.close.title"), getEditorString("Editor.error.activated.deleted.close.message") );
public void testCloseFileDeleted() { Dialog dialog = null; ResourceBundle bundle = ResourceBundle.getBundle("org.eclipse.ui.texteditor.AbstractTextEditorResources"); if (bundle != null) { dialog = getConfirmDialog( bundle.getString("Error.activated.deleted.close.title"), bundle.getString("Error.activated.deleted.close.message") ); } DialogCheck.assertDialog(dialog, this); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/61bed75b15ee3f34171ed472d9a43f5f824eed34/UIMessageDialogs.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dialogs/UIMessageDialogs.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 4605, 812, 7977, 1435, 288, 202, 202, 6353, 6176, 273, 446, 31, 202, 202, 18731, 3440, 273, 19198, 18, 588, 3405, 2932, 3341, 18, 20416, 18, 4881, 18, 955, 9177, 18, 7469, 1528, 6946, 3805, 8863, 202, 202, 430, 261, 9991, 480, 446, 13, 288, 1082, 202, 12730, 273, 336, 11269, 6353, 12, 9506, 202, 9991, 18, 588, 780, 2932, 668, 18, 18836, 18, 8600, 18, 4412, 18, 2649, 6, 3631, 9506, 202, 9991, 18, 588, 780, 2932, 668, 18, 18836, 18, 8600, 18, 4412, 18, 2150, 7923, 11272, 202, 202, 97, 202, 202, 6353, 1564, 18, 11231, 6353, 12, 12730, 16, 333, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 4605, 812, 7977, 1435, 288, 202, 202, 6353, 6176, 273, 446, 31, 202, 202, 18731, 3440, 273, 19198, 18, 588, 3405, 2932, 3341, 18, 20416, 18, 4881, 18, 955, 9177, 18, 7469, 1528, 6946, 3805, 8863, 202, 202, 430, 261, 9991, 480, 446, 13, 288, 1082, 202, 12730, 273, 336, 11269, 6353, 12, 9506, 202, 9991, 18, 588, 780, 2932, 668, 18, 18836, 18, 8600, 18, 4412, 18, 2649, 6, 3631, 9506, 202, 9991, 18, 588, 780, 2932, 668, 18, 18836, 18, 8600, 18, 4412, 18, 2150, 7923, 11272, 202, 202, 97, 202, 202, 6353, 1564, 18, 11231, 6353, 12, 12730, 16, 333, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100 ]
return (ContentTypeProcessor) processors.get(contentType); /* if ( proc == null ) return defaultProc; else return proc; */
return proc;
private ContentTypeProcessor getProcessor(String contentType) { if ( contentType == null || "".equals(contentType) ) throw new IllegalArgumentException("Parameter contentType is not allowed to be null"); ContentTypeProcessor proc = null; String forcedProc = registry.getConfiguration().getProperty(PROP_INPUT_PROC); if ( forcedProc != null ) { proc = (ContentTypeProcessor) procsByName.get(forcedProc); if ( proc == null ) throw new IllegalArgumentException("Wrong input processor "+ "specified by "+PROP_INPUT_PROC); else return proc; } return (ContentTypeProcessor) processors.get(contentType); /* if ( proc == null ) return defaultProc; else return proc; */ }
13116 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13116/f990026a37a43a99615d3425761f66b16aa52cd9/UrlFetcher.java/clean/trunk/src/org/roosster/input/UrlFetcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 11691, 5164, 336, 5164, 12, 780, 5064, 13, 565, 288, 3639, 309, 261, 5064, 422, 446, 747, 1408, 18, 14963, 12, 22194, 13, 262, 5411, 604, 394, 2754, 2932, 1662, 5064, 353, 486, 2935, 358, 506, 446, 8863, 7734, 11691, 5164, 5418, 273, 446, 31, 3639, 514, 13852, 15417, 273, 4023, 18, 588, 1750, 7675, 588, 1396, 12, 15811, 67, 15934, 67, 3373, 39, 1769, 3639, 309, 261, 13852, 15417, 480, 446, 262, 288, 5411, 5418, 273, 261, 8046, 5164, 13, 27009, 5911, 18, 588, 12, 19778, 15417, 1769, 5411, 309, 261, 5418, 422, 446, 262, 7734, 604, 394, 2754, 2932, 13634, 810, 6659, 13773, 4766, 10402, 315, 13827, 635, 13773, 15811, 67, 15934, 67, 3373, 39, 1769, 5411, 469, 1171, 327, 5418, 31, 3639, 289, 7734, 327, 225, 261, 8046, 5164, 13, 13399, 18, 588, 12, 22194, 1769, 3639, 1748, 3639, 309, 261, 5418, 422, 446, 262, 2398, 327, 805, 15417, 31, 3639, 469, 5411, 327, 5418, 31, 3639, 1195, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 377, 3238, 11691, 5164, 336, 5164, 12, 780, 5064, 13, 565, 288, 3639, 309, 261, 5064, 422, 446, 747, 1408, 18, 14963, 12, 22194, 13, 262, 5411, 604, 394, 2754, 2932, 1662, 5064, 353, 486, 2935, 358, 506, 446, 8863, 7734, 11691, 5164, 5418, 273, 446, 31, 3639, 514, 13852, 15417, 273, 4023, 18, 588, 1750, 7675, 588, 1396, 12, 15811, 67, 15934, 67, 3373, 39, 1769, 3639, 309, 261, 13852, 15417, 480, 446, 262, 288, 5411, 5418, 273, 261, 8046, 5164, 13, 27009, 5911, 18, 588, 12, 19778, 15417, 1769, 5411, 309, 261, 5418, 422, 446, 262, 7734, 604, 394, 2754, 2932, 13634, 810, 6659, 13773, 4766, 10402, 315, 13827, 635, 13773, 15811, 67, 15934, 67, 3373, 39, 2 ]
AntBuilder builder = new AntBuilder();
public void testBuild() throws Exception { AntBuilder builder = new AntBuilder(); builder.setBuildFile("build.xml"); builder.setTempFile("notLog.xml"); builder.setTarget("init"); HashMap buildProperties = new HashMap(); Element buildElement = builder.build(buildProperties); int initCount = getInitCount(buildElement); assertEquals(1, initCount); builder.setTarget("init init"); buildElement = builder.build(buildProperties); initCount = getInitCount(buildElement); assertEquals(2, initCount); }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/eef99d7260b45e32dc4f048ad8f683646f312a56/AntBuilderTest.java/buggy/main/test/net/sourceforge/cruisecontrol/builders/AntBuilderTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3116, 1435, 1216, 1185, 288, 9079, 2089, 18, 542, 3116, 812, 2932, 3510, 18, 2902, 8863, 3639, 2089, 18, 542, 20181, 2932, 902, 1343, 18, 2902, 8863, 3639, 2089, 18, 542, 2326, 2932, 2738, 8863, 3639, 4317, 1361, 2297, 273, 394, 4317, 5621, 3639, 3010, 1361, 1046, 273, 2089, 18, 3510, 12, 3510, 2297, 1769, 3639, 509, 1208, 1380, 273, 26458, 1380, 12, 3510, 1046, 1769, 3639, 1815, 8867, 12, 21, 16, 1208, 1380, 1769, 3639, 2089, 18, 542, 2326, 2932, 2738, 1208, 8863, 3639, 1361, 1046, 273, 2089, 18, 3510, 12, 3510, 2297, 1769, 3639, 1208, 1380, 273, 26458, 1380, 12, 3510, 1046, 1769, 3639, 1815, 8867, 12, 22, 16, 1208, 1380, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 377, 1071, 918, 1842, 3116, 1435, 1216, 1185, 288, 9079, 2089, 18, 542, 3116, 812, 2932, 3510, 18, 2902, 8863, 3639, 2089, 18, 542, 20181, 2932, 902, 1343, 18, 2902, 8863, 3639, 2089, 18, 542, 2326, 2932, 2738, 8863, 3639, 4317, 1361, 2297, 273, 394, 4317, 5621, 3639, 3010, 1361, 1046, 273, 2089, 18, 3510, 12, 3510, 2297, 1769, 3639, 509, 1208, 1380, 273, 26458, 1380, 12, 3510, 1046, 1769, 3639, 1815, 8867, 12, 21, 16, 1208, 1380, 1769, 3639, 2089, 18, 542, 2326, 2932, 2738, 1208, 8863, 3639, 1361, 1046, 273, 2089, 18, 3510, 12, 3510, 2297, 1769, 3639, 1208, 1380, 273, 26458, 1380, 12, 3510, 1046, 1769, 3639, 1815, 8867, 12, 22, 16, 1208, 1380, 1769, 565, 2 ]
BaseQueryDefinition query = (BaseQueryDefinition) DataSetManager.getCurrentInstance( ) .getPreparedQuery( getDataSetHandle( ), getBindingParams( ), true, false ) .getReportQueryDefn( ); ScriptExpression expression = new ScriptExpression( getExpression( ) ); GroupDefinition defn = new GroupDefinition( ); defn.setKeyExpression( getExpression( ) ); query.setUsesDetails( false ); query.addGroup( defn ); query.addExpression( expression, BaseTransform.BEFORE_FIRST_ROW ); IPreparedQuery preparedQuery = DataSetManager.getCurrentInstance( ) .getEngine( ) .prepare( (IQueryDefinition) query ); IQueryResults results = preparedQuery.execute( null ); selectValueList.removeAll( ); modelValueList.clear(); viewerValueList.clear(); if ( results != null )
Iterator iter = modelValueList.iterator(); while( iter.hasNext()){ Object candiateValue = iter.next(); if ( candiateValue != null )
private void populateList( ) { try { this.okButton.setEnabled( false ); if ( getExpression( ) != null && getExpression( ).trim( ).length( ) > 0 ) { //Execute the query and populate this list // BaseQueryDefinition query = (BaseQueryDefinition) // DataSetManager.getCurrentInstance( ) // .getPreparedQuery( getDataSetHandle( // ),true, false) // .getReportQueryDefn( ); BaseQueryDefinition query = (BaseQueryDefinition) DataSetManager.getCurrentInstance( ) .getPreparedQuery( getDataSetHandle( ), getBindingParams( ), true, false ) .getReportQueryDefn( ); ScriptExpression expression = new ScriptExpression( getExpression( ) ); GroupDefinition defn = new GroupDefinition( ); defn.setKeyExpression( getExpression( ) ); query.setUsesDetails( false ); query.addGroup( defn ); query.addExpression( expression, BaseTransform.BEFORE_FIRST_ROW ); IPreparedQuery preparedQuery = DataSetManager.getCurrentInstance( ) .getEngine( ) .prepare( (IQueryDefinition) query ); IQueryResults results = preparedQuery.execute( null ); selectValueList.removeAll( ); modelValueList.clear(); viewerValueList.clear(); if ( results != null ) { IResultIterator iter = results.getResultIterator( ); if ( iter != null ) { while ( iter.next( ) ) { Object candiateValue = iter.getValue( expression ); if ( candiateValue != null ) { modelValueList.add( candiateValue ); String displayCandiateValue; if ( candiateValue instanceof Date ) displayCandiateValue = ParameterValidationUtil.getDisplayValue( DesignChoiceConstants.PARAM_TYPE_DATETIME, null, candiateValue ); else displayCandiateValue = DataTypeUtil.toString( candiateValue ); viewerValueList.add( displayCandiateValue ); selectValueList.add( displayCandiateValue ); } } } results.close( ); } } else { selectValueList.removeAll( ); modelValueList.clear(); viewerValueList.clear(); ExceptionHandler.openErrorMessageBox( Messages.getString( "SelectValueDialog.errorRetrievinglist" ), Messages.getString( "SelectValueDialog.noExpressionSet" ) ); //$NON-NLS-1$ //$NON-NLS-2$ } if ( selectValueList.getItemCount( ) > 0 ) { selectValueList.select( 0 ); this.okButton.setEnabled( true ); } } catch ( Exception e ) { ExceptionHandler.handle( e ); } }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/c1bc3c20cae7567d231611cddd16be5c4df2e7d2/SelectValueDialog.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/SelectValueDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 6490, 682, 12, 262, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 2211, 18, 601, 3616, 18, 542, 1526, 12, 629, 11272, 1082, 202, 430, 261, 16183, 12, 262, 480, 446, 6862, 202, 10, 10, 16183, 12, 262, 18, 5290, 12, 262, 18, 2469, 12, 262, 405, 374, 262, 1082, 202, 95, 9506, 202, 759, 5289, 326, 843, 471, 6490, 333, 666, 9506, 202, 759, 7734, 3360, 1138, 1852, 843, 273, 261, 2171, 1138, 1852, 13, 9506, 202, 759, 14065, 1318, 18, 588, 3935, 1442, 12, 262, 9506, 202, 759, 13491, 263, 588, 15464, 1138, 12, 4303, 694, 3259, 12, 9506, 202, 759, 262, 16, 3767, 16, 629, 13, 9506, 202, 759, 13491, 263, 588, 4820, 1138, 3262, 82, 12, 11272, 9506, 202, 2171, 1138, 1852, 843, 273, 261, 2171, 1138, 1852, 13, 14065, 1318, 18, 588, 3935, 1442, 12, 262, 25083, 202, 18, 588, 15464, 1138, 12, 4303, 694, 3259, 12, 262, 16, 6862, 9506, 202, 588, 5250, 1370, 12, 262, 16, 6862, 9506, 202, 3767, 16, 6862, 9506, 202, 5743, 262, 25083, 202, 18, 588, 4820, 1138, 3262, 82, 12, 11272, 9506, 202, 3651, 2300, 2652, 273, 394, 7739, 2300, 12, 16183, 12, 262, 11272, 9506, 202, 1114, 1852, 1652, 82, 273, 394, 3756, 1852, 12, 11272, 9506, 202, 536, 82, 18, 542, 653, 2300, 12, 16183, 12, 262, 11272, 9506, 202, 2271, 18, 542, 15128, 3790, 12, 629, 11272, 9506, 202, 2271, 18, 1289, 1114, 12, 1652, 82, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6490, 682, 12, 262, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 2211, 18, 601, 3616, 18, 542, 1526, 12, 629, 11272, 1082, 202, 430, 261, 16183, 12, 262, 480, 446, 6862, 202, 10, 10, 16183, 12, 262, 18, 5290, 12, 262, 18, 2469, 12, 262, 405, 374, 262, 1082, 202, 95, 9506, 202, 759, 5289, 326, 843, 471, 6490, 333, 666, 9506, 202, 759, 7734, 3360, 1138, 1852, 843, 273, 261, 2171, 1138, 1852, 13, 9506, 202, 759, 14065, 1318, 18, 588, 3935, 1442, 12, 262, 9506, 202, 759, 13491, 263, 588, 15464, 1138, 12, 4303, 694, 3259, 12, 9506, 202, 759, 262, 16, 3767, 16, 629, 13, 9506, 202, 759, 13491, 2 ]
byte[] destReds, byte[] destGreens, byte[] destBlues,
int destRedMask, int destGreenMask, int destBlueMask,
static void blit(int op, byte[] srcData, int srcDepth, int srcStride, int srcOrder, int srcX, int srcY, int srcWidth, int srcHeight, byte[] srcReds, byte[] srcGreens, byte[] srcBlues, int alphaMode, byte[] alphaData, int alphaStride, int alphaX, int alphaY, byte[] destData, int destDepth, int destStride, int destOrder, int destX, int destY, int destWidth, int destHeight, byte[] destReds, byte[] destGreens, byte[] destBlues, boolean flipX, boolean flipY) { if ((destWidth <= 0) || (destHeight <= 0) || (alphaMode == ALPHA_TRANSPARENT)) return; /*** Prepare scaling data ***/ final int dwm1 = destWidth - 1; final int sfxi = (dwm1 != 0) ? (int)((((long)srcWidth << 16) - 1) / dwm1) : 0; final int dhm1 = destHeight - 1; final int sfyi = (dhm1 != 0) ? (int)((((long)srcHeight << 16) - 1) / dhm1) : 0; /*** Prepare source-related data ***/ final int stype; switch (srcDepth) { case 8: stype = TYPE_INDEX_8; break; case 4: srcStride <<= 1; stype = TYPE_INDEX_4; break; case 2: srcStride <<= 2; stype = TYPE_INDEX_2; break; case 1: srcStride <<= 3; stype = (srcOrder == MSB_FIRST) ? TYPE_INDEX_1_MSB : TYPE_INDEX_1_LSB; break; default: //throw new IllegalArgumentException("Invalid source type"); return; } int spr = srcY * srcStride + srcX; /*** Prepare destination-related data ***/ final int dtype; switch (destDepth) { case 8: dtype = TYPE_INDEX_8; break; case 4: destStride <<= 1; dtype = TYPE_INDEX_4; break; case 2: destStride <<= 2; dtype = TYPE_INDEX_2; break; case 1: destStride <<= 3; dtype = (destOrder == MSB_FIRST) ? TYPE_INDEX_1_MSB : TYPE_INDEX_1_LSB; break; default: //throw new IllegalArgumentException("Invalid source type"); return; } int dpr = ((flipY) ? destY + dhm1 : destY) * destStride + ((flipX) ? destX + dwm1 : destX); final int dprxi = (flipX) ? -1 : 1; final int dpryi = (flipY) ? -destStride : destStride; /*** Prepare special processing data ***/ int apr; if ((op & BLIT_ALPHA) != 0) { switch (alphaMode) { case ALPHA_MASK_UNPACKED: case ALPHA_CHANNEL_SEPARATE: if (alphaData == null) alphaMode = 0x10000; apr = alphaY * alphaStride + alphaX; break; case ALPHA_MASK_PACKED: if (alphaData == null) alphaMode = 0x10000; alphaStride <<= 3; apr = alphaY * alphaStride + alphaX; break; case ALPHA_MASK_INDEX: case ALPHA_MASK_RGB: if (alphaData == null) alphaMode = 0x10000; apr = 0; break; default: alphaMode = (alphaMode << 16) / 255; // prescale case ALPHA_CHANNEL_SOURCE: apr = 0; break; } } else { alphaMode = 0x10000; apr = 0; } final boolean ditherEnabled = (op & BLIT_DITHER) != 0; /*** Blit ***/ int dp = dpr; int sp = spr; int ap = apr; int destPaletteSize = 1 << destDepth; if ((destReds != null) && (destReds.length < destPaletteSize)) destPaletteSize = destReds.length; byte[] paletteMapping = null; boolean isExactPaletteMapping = true; switch (alphaMode) { case 0x10000: /*** If the palettes and formats are equivalent use a one-to-one mapping ***/ if ((stype == dtype) && (srcReds == destReds) && (srcGreens == destGreens) && (srcBlues == destBlues)) { paletteMapping = ONE_TO_ONE_MAPPING; break; /*** If palettes have not been supplied, supply a suitable mapping ***/ } else if ((srcReds == null) || (destReds == null)) { if (srcDepth <= destDepth) { paletteMapping = ONE_TO_ONE_MAPPING; } else { paletteMapping = new byte[1 << srcDepth]; int mask = (0xff << destDepth) >>> 8; for (int i = 0; i < paletteMapping.length; ++i) paletteMapping[i] = (byte)(i & mask); } break; } case ALPHA_MASK_UNPACKED: case ALPHA_MASK_PACKED: case ALPHA_MASK_INDEX: case ALPHA_MASK_RGB: /*** Generate a palette mapping ***/ int srcPaletteSize = 1 << srcDepth; paletteMapping = new byte[srcPaletteSize]; if ((srcReds != null) && (srcReds.length < srcPaletteSize)) srcPaletteSize = srcReds.length; for (int i = 0, r, g, b, index; i < srcPaletteSize; ++i) { r = srcReds[i] & 0xff; g = srcGreens[i] & 0xff; b = srcBlues[i] & 0xff; index = 0; int minDistance = 0x7fffffff; for (int j = 0, dr, dg, db, distance; j < destPaletteSize; ++j) { dr = (destReds[j] & 0xff) - r; dg = (destGreens[j] & 0xff) - g; db = (destBlues[j] & 0xff) - b; distance = dr * dr + dg * dg + db * db; if (distance < minDistance) { index = j; if (distance == 0) break; minDistance = distance; } } paletteMapping[i] = (byte)index; if (minDistance != 0) isExactPaletteMapping = false; } break; } if ((paletteMapping != null) && (isExactPaletteMapping || ! ditherEnabled)) { if ((stype == dtype) && (alphaMode == 0x10000)) { /*** Fast blit (copy w/ mapping) ***/ switch (stype) { case TYPE_INDEX_8: for (int dy = destHeight, sfy = sfyi; dy > 0; --dy, sp = spr += (sfy >>> 16) * srcStride, sfy = (sfy & 0xffff) + sfyi, dp = dpr += dpryi) { for (int dx = destWidth, sfx = sfxi; dx > 0; --dx, dp += dprxi, sfx = (sfx & 0xffff) + sfxi) { destData[dp] = paletteMapping[srcData[sp] & 0xff]; sp += (sfx >>> 16); } } break; case TYPE_INDEX_4: for (int dy = destHeight, sfy = sfyi; dy > 0; --dy, sp = spr += (sfy >>> 16) * srcStride, sfy = (sfy & 0xffff) + sfyi, dp = dpr += dpryi) { for (int dx = destWidth, sfx = sfxi; dx > 0; --dx, dp += dprxi, sfx = (sfx & 0xffff) + sfxi) { final int v; if ((sp & 1) != 0) v = paletteMapping[srcData[sp >> 1] & 0x0f]; else v = (srcData[sp >> 1] >>> 4) & 0x0f; sp += (sfx >>> 16); if ((dp & 1) != 0) destData[dp >> 1] = (byte)((destData[dp >> 1] & 0xf0) | v); else destData[dp >> 1] = (byte)((destData[dp >> 1] & 0x0f) | (v << 4)); } } break; case TYPE_INDEX_2: for (int dy = destHeight, sfy = sfyi; dy > 0; --dy, sp = spr += (sfy >>> 16) * srcStride, sfy = (sfy & 0xffff) + sfyi, dp = dpr += dpryi) { for (int dx = destWidth, sfx = sfxi; dx > 0; --dx, dp += dprxi, sfx = (sfx & 0xffff) + sfxi) { final int index = paletteMapping[(srcData[sp >> 2] >>> (6 - (sp & 3) * 2)) & 0x03]; sp += (sfx >>> 16); final int shift = 6 - (dp & 3) * 2; destData[dp >> 2] = (byte)(destData[dp >> 2] & ~(0x03 << shift) | (index << shift)); } } break; case TYPE_INDEX_1_MSB: for (int dy = destHeight, sfy = sfyi; dy > 0; --dy, sp = spr += (sfy >>> 16) * srcStride, sfy = (sfy & 0xffff) + sfyi, dp = dpr += dpryi) { for (int dx = destWidth, sfx = sfxi; dx > 0; --dx, dp += dprxi, sfx = (sfx & 0xffff) + sfxi) { final int index = paletteMapping[(srcData[sp >> 3] >>> (7 - (sp & 7))) & 0x01]; sp += (sfx >>> 16); final int shift = 7 - (dp & 7); destData[dp >> 3] = (byte)(destData[dp >> 3] & ~(0x01 << shift) | (index << shift)); } } break; case TYPE_INDEX_1_LSB: for (int dy = destHeight, sfy = sfyi; dy > 0; --dy, sp = spr += (sfy >>> 16) * srcStride, sfy = (sfy & 0xffff) + sfyi, dp = dpr += dpryi) { for (int dx = destWidth, sfx = sfxi; dx > 0; --dx, dp += dprxi, sfx = (sfx & 0xffff) + sfxi) { final int index = paletteMapping[(srcData[sp >> 3] >>> (sp & 7)) & 0x01]; sp += (sfx >>> 16); final int shift = dp & 7; destData[dp >> 3] = (byte)(destData[dp >> 3] & ~(0x01 << shift) | (index << shift)); } } break; } } else { /*** Convert between indexed modes using mapping and mask ***/ for (int dy = destHeight, sfy = sfyi; dy > 0; --dy, sp = spr += (sfy >>> 16) * srcStride, sfy = (sfy & 0xffff) + sfyi, dp = dpr += dpryi) { for (int dx = destWidth, sfx = sfxi; dx > 0; --dx, dp += dprxi, sfx = (sfx & 0xffff) + sfxi) { int index; /*** READ NEXT PIXEL ***/ switch (stype) { case TYPE_INDEX_8: index = srcData[sp] & 0xff; sp += (sfx >>> 16); break; case TYPE_INDEX_4: if ((sp & 1) != 0) index = srcData[sp >> 1] & 0x0f; else index = (srcData[sp >> 1] >>> 4) & 0x0f; sp += (sfx >>> 16); break; case TYPE_INDEX_2: index = (srcData[sp >> 2] >>> (6 - (sp & 3) * 2)) & 0x03; sp += (sfx >>> 16); break; case TYPE_INDEX_1_MSB: index = (srcData[sp >> 3] >>> (7 - (sp & 7))) & 0x01; sp += (sfx >>> 16); break; case TYPE_INDEX_1_LSB: index = (srcData[sp >> 3] >>> (sp & 7)) & 0x01; sp += (sfx >>> 16); break; default: return; } /*** APPLY MASK ***/ switch (alphaMode) { case ALPHA_MASK_UNPACKED: { final byte mask = alphaData[ap]; ap += (sfx >> 16); if (mask == 0) continue; } break; case ALPHA_MASK_PACKED: { final int mask = alphaData[ap >> 3] & (1 << (ap & 7)); ap += (sfx >> 16); if (mask == 0) continue; } break; case ALPHA_MASK_INDEX: { int i = 0; while (i < alphaData.length) { if (index == (alphaData[i] & 0xff)) break; } if (i < alphaData.length) continue; } break; case ALPHA_MASK_RGB: { final byte r = srcReds[index], g = srcGreens[index], b = srcBlues[index]; int i = 0; while (i < alphaData.length) { if ((r == alphaData[i]) && (g == alphaData[i + 1]) && (b == alphaData[i + 2])) break; i += 3; } if (i < alphaData.length) continue; } break; } index = paletteMapping[index] & 0xff; /*** WRITE NEXT PIXEL ***/ switch (dtype) { case TYPE_INDEX_8: destData[dp] = (byte) index; break; case TYPE_INDEX_4: if ((dp & 1) != 0) destData[dp >> 1] = (byte)((destData[dp >> 1] & 0xf0) | index); else destData[dp >> 1] = (byte)((destData[dp >> 1] & 0x0f) | (index << 4)); break; case TYPE_INDEX_2: { final int shift = 6 - (dp & 3) * 2; destData[dp >> 2] = (byte)(destData[dp >> 2] & ~(0x03 << shift) | (index << shift)); } break; case TYPE_INDEX_1_MSB: { final int shift = 7 - (dp & 7); destData[dp >> 3] = (byte)(destData[dp >> 3] & ~(0x01 << shift) | (index << shift)); } break; case TYPE_INDEX_1_LSB: { final int shift = dp & 7; destData[dp >> 3] = (byte)(destData[dp >> 3] & ~(0x01 << shift) | (index << shift)); } break; } } } } return; } /*** Comprehensive blit (apply transformations) ***/ int alpha = alphaMode; int index = 0; int indexq = 0; int lastindex = 0, lastr = -1, lastg = -1, lastb = -1; final int[] rerr, gerr, berr; if (ditherEnabled) { rerr = new int[destWidth + 2]; gerr = new int[destWidth + 2]; berr = new int[destWidth + 2]; } else { rerr = null; gerr = null; berr = null; } for (int dy = destHeight, sfy = sfyi; dy > 0; --dy, sp = spr += (sfy >>> 16) * srcStride, ap = apr += (sfy >>> 16) * alphaStride, sfy = (sfy & 0xffff) + sfyi, dp = dpr += dpryi) { int lrerr = 0, lgerr = 0, lberr = 0; for (int dx = destWidth, sfx = sfxi; dx > 0; --dx, dp += dprxi, sfx = (sfx & 0xffff) + sfxi) { /*** READ NEXT PIXEL ***/ switch (stype) { case TYPE_INDEX_8: index = srcData[sp] & 0xff; sp += (sfx >>> 16); break; case TYPE_INDEX_4: if ((sp & 1) != 0) index = srcData[sp >> 1] & 0x0f; else index = (srcData[sp >> 1] >>> 4) & 0x0f; sp += (sfx >>> 16); break; case TYPE_INDEX_2: index = (srcData[sp >> 2] >>> (6 - (sp & 3) * 2)) & 0x03; sp += (sfx >>> 16); break; case TYPE_INDEX_1_MSB: index = (srcData[sp >> 3] >>> (7 - (sp & 7))) & 0x01; sp += (sfx >>> 16); break; case TYPE_INDEX_1_LSB: index = (srcData[sp >> 3] >>> (sp & 7)) & 0x01; sp += (sfx >>> 16); break; } /*** DO SPECIAL PROCESSING IF REQUIRED ***/ int r = srcReds[index] & 0xff, g = srcGreens[index] & 0xff, b = srcBlues[index] & 0xff; switch (alphaMode) { case ALPHA_CHANNEL_SEPARATE: alpha = ((alphaData[ap] & 0xff) << 16) / 255; ap += (sfx >> 16); break; case ALPHA_MASK_UNPACKED: alpha = (alphaData[ap] != 0) ? 0x10000 : 0; ap += (sfx >> 16); break; case ALPHA_MASK_PACKED: alpha = (alphaData[ap >> 3] << ((ap & 7) + 9)) & 0x10000; ap += (sfx >> 16); break; case ALPHA_MASK_INDEX: { // could speed up using binary search if we sorted the indices int i = 0; while (i < alphaData.length) { if (index == (alphaData[i] & 0xff)) break; } if (i < alphaData.length) continue; } break; case ALPHA_MASK_RGB: { int i = 0; while (i < alphaData.length) { if ((r == (alphaData[i] & 0xff)) && (g == (alphaData[i + 1] & 0xff)) && (b == (alphaData[i + 2] & 0xff))) break; i += 3; } if (i < alphaData.length) continue; } break; } if (alpha != 0x10000) { if (alpha == 0x0000) continue; switch (dtype) { case TYPE_INDEX_8: indexq = destData[dp] & 0xff; break; case TYPE_INDEX_4: if ((dp & 1) != 0) indexq = destData[dp >> 1] & 0x0f; else indexq = (destData[dp >> 1] >>> 4) & 0x0f; break; case TYPE_INDEX_2: indexq = (destData[dp >> 2] >>> (6 - (dp & 3) * 2)) & 0x03; break; case TYPE_INDEX_1_MSB: indexq = (destData[dp >> 3] >>> (7 - (dp & 7))) & 0x01; break; case TYPE_INDEX_1_LSB: indexq = (destData[dp >> 3] >>> (dp & 7)) & 0x01; break; } // Perform alpha blending final int rq = destReds[indexq] & 0xff; final int gq = destGreens[indexq] & 0xff; final int bq = destBlues[indexq] & 0xff; r = rq + ((r - rq) * alpha >> 16); g = gq + ((g - gq) * alpha >> 16); b = bq + ((b - bq) * alpha >> 16); } /*** MAP COLOR TO THE PALETTE ***/ if (ditherEnabled) { // Floyd-Steinberg error diffusion r += rerr[dx] >> 4; if (r < 0) r = 0; else if (r > 255) r = 255; g += gerr[dx] >> 4; if (g < 0) g = 0; else if (g > 255) g = 255; b += berr[dx] >> 4; if (b < 0) b = 0; else if (b > 255) b = 255; rerr[dx] = lrerr; gerr[dx] = lgerr; berr[dx] = lberr; } if (r != lastr || g != lastg || b != lastb) { // moving the variable declarations out seems to make the JDK JIT happier... for (int j = 0, dr, dg, db, distance, minDistance = 0x7fffffff; j < destPaletteSize; ++j) { dr = (destReds[j] & 0xff) - r; dg = (destGreens[j] & 0xff) - g; db = (destBlues[j] & 0xff) - b; distance = dr * dr + dg * dg + db * db; if (distance < minDistance) { lastindex = j; if (distance == 0) break; minDistance = distance; } } lastr = r; lastg = g; lastb = b; } if (ditherEnabled) { // Floyd-Steinberg error diffusion, cont'd... final int dxm1 = dx - 1, dxp1 = dx + 1; int acc; rerr[dxp1] += acc = (lrerr = r - (destReds[lastindex] & 0xff)) + lrerr + lrerr; rerr[dx] += acc += lrerr + lrerr; rerr[dxm1] += acc + lrerr + lrerr; gerr[dxp1] += acc = (lgerr = g - (destGreens[lastindex] & 0xff)) + lgerr + lgerr; gerr[dx] += acc += lgerr + lgerr; gerr[dxm1] += acc + lgerr + lgerr; berr[dxp1] += acc = (lberr = b - (destBlues[lastindex] & 0xff)) + lberr + lberr; berr[dx] += acc += lberr + lberr; berr[dxm1] += acc + lberr + lberr; } /*** WRITE NEXT PIXEL ***/ switch (dtype) { case TYPE_INDEX_8: destData[dp] = (byte) lastindex; break; case TYPE_INDEX_4: if ((dp & 1) != 0) destData[dp >> 1] = (byte)((destData[dp >> 1] & 0xf0) | lastindex); else destData[dp >> 1] = (byte)((destData[dp >> 1] & 0x0f) | (lastindex << 4)); break; case TYPE_INDEX_2: { final int shift = 6 - (dp & 3) * 2; destData[dp >> 2] = (byte)(destData[dp >> 2] & ~(0x03 << shift) | (lastindex << shift)); } break; case TYPE_INDEX_1_MSB: { final int shift = 7 - (dp & 7); destData[dp >> 3] = (byte)(destData[dp >> 3] & ~(0x01 << shift) | (lastindex << shift)); } break; case TYPE_INDEX_1_LSB: { final int shift = dp & 7; destData[dp >> 3] = (byte)(destData[dp >> 3] & ~(0x01 << shift) | (lastindex << shift)); } break; } } }}
12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/1fca36dd45ee7d568723cde0b178d98aa44d0e98/ImageData.java/buggy/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 760, 918, 2811, 305, 12, 474, 1061, 16, 202, 7229, 8526, 1705, 751, 16, 509, 1705, 6148, 16, 509, 1705, 1585, 831, 16, 509, 1705, 2448, 16, 202, 474, 1705, 60, 16, 509, 1705, 61, 16, 509, 1705, 2384, 16, 509, 1705, 2686, 16, 202, 7229, 8526, 1705, 3715, 87, 16, 1160, 8526, 1705, 43, 266, 773, 16, 1160, 8526, 1705, 4802, 3610, 16, 202, 474, 4190, 2309, 16, 1160, 8526, 4190, 751, 16, 509, 4190, 1585, 831, 16, 509, 4190, 60, 16, 509, 4190, 61, 16, 202, 7229, 8526, 1570, 751, 16, 509, 1570, 6148, 16, 509, 1570, 1585, 831, 16, 509, 1570, 2448, 16, 202, 474, 1570, 60, 16, 509, 1570, 61, 16, 509, 1570, 2384, 16, 509, 1570, 2686, 16, 202, 7229, 8526, 1570, 3715, 87, 16, 1160, 8526, 1570, 43, 266, 773, 16, 1160, 8526, 1570, 4802, 3610, 16, 202, 6494, 9668, 60, 16, 1250, 9668, 61, 13, 288, 202, 430, 14015, 10488, 2384, 1648, 374, 13, 747, 261, 10488, 2686, 1648, 374, 13, 747, 261, 5429, 2309, 422, 29432, 37, 67, 8989, 3118, 37, 7480, 3719, 327, 31, 202, 19, 14465, 7730, 10612, 501, 18852, 19, 202, 6385, 509, 12394, 81, 21, 273, 1570, 2384, 300, 404, 31, 202, 6385, 509, 9033, 27005, 273, 261, 22512, 81, 21, 480, 374, 13, 692, 261, 474, 13, 12443, 12443, 5748, 13, 4816, 2384, 2296, 2872, 13, 300, 404, 13, 342, 12394, 81, 21, 13, 294, 374, 31, 202, 6385, 509, 11007, 81, 21, 273, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 918, 2811, 305, 12, 474, 1061, 16, 202, 7229, 8526, 1705, 751, 16, 509, 1705, 6148, 16, 509, 1705, 1585, 831, 16, 509, 1705, 2448, 16, 202, 474, 1705, 60, 16, 509, 1705, 61, 16, 509, 1705, 2384, 16, 509, 1705, 2686, 16, 202, 7229, 8526, 1705, 3715, 87, 16, 1160, 8526, 1705, 43, 266, 773, 16, 1160, 8526, 1705, 4802, 3610, 16, 202, 474, 4190, 2309, 16, 1160, 8526, 4190, 751, 16, 509, 4190, 1585, 831, 16, 509, 4190, 60, 16, 509, 4190, 61, 16, 202, 7229, 8526, 1570, 751, 16, 509, 1570, 6148, 16, 509, 1570, 1585, 831, 16, 509, 1570, 2448, 16, 202, 474, 1570, 60, 16, 509, 1570, 61, 16, 509, 1570, 2384, 16, 2 ]
if(ASS)Log.trace("ControlTyrant.aboutToExecute", "6) about to call _pc.getSourceLocation()");
if(AS.DEBUG)Log.trace("ControlTyrant.aboutToExecute", "6) about to call _pc.getSourceLocation()");
void aboutToExecute(JSThreadState debug, JSPC pc, Hook hook) { if(ASS)Log.trace("ControlTyrant.aboutToExecute", "1) entered" ); if( ! _enabled ) { if(ASS)Log.trace("ControlTyrant.aboutToExecute", "2) exit, ! _enabled" ); return; } if( _evaluatingBreakpoint > 0 ) { if(ASS)System.out.println("ignoring break while evaluating breakpoint"); return; } PrivilegeManager.enablePrivilege("Debugger"); // grab the semaphore (return if not available) if(ASS)Log.trace("ControlTyrant.aboutToExecute", "3) about to call _semaphore.grab()" ); if( ! _semaphore.grab() ) { if(ASS)System.out.println( "blowing past nested break at: " + pc ); if(ASS)Log.trace("ControlTyrant.aboutToExecute", "4) exit _semaphore.grab() failed" ); return; } if(ASS)Log.trace("ControlTyrant.aboutToExecute", "5) exit _semaphore.grab() succeeded" ); if( hook instanceof CtrlDebugBreakHook ) { _stepHandler = null; _serverSideStepperIsSet = false; _interrupt = false; } // Keep going if the interrupt no longer needed. if( hook instanceof CtrlInterruptHook && null == _stepHandler && ! _interrupt && ! _serverSideStepperIsSet ) { _semaphore.release(); return; } // save arguments _threadState = debug; _pc = pc; if(ASS)Log.trace("ControlTyrant.aboutToExecute", "6) about to call _pc.getSourceLocation()"); _sourceLocation = (JSSourceLocation) _pc.getSourceLocation(); if(ASS)Log.trace("ControlTyrant.aboutToExecute", "7) _pc.getSourceLocation() returned"); if(false) { String leadin = "interrupted at:"; String url = _sourceLocation.getURL()+"#"+(_sourceLocation.getLine()); String fun = (null != _pc.getScript().getFunction()) ? (_pc.getScript().getFunction()+"()") : "toplevel"; String script = "["+(_pc.getScript().getBaseLineNumber())+","+ (_pc.getScript().getBaseLineNumber()+_pc.getScript().getLineExtent()-1)+"]"; String where = "pc: " + _pc.getPC(); if(ASS){System.out.println(leadin+" "+url+" "+fun+" "+script+" "+where);}// if(ASS)Thread.dumpStack(); } // Hitting any other type of hook clears the interrupt stepper if( ! (hook instanceof CtrlInterruptHook) ) { _stepHandler = null; _serverSideStepperIsSet = false; } // If there is a step handler then let it process the hook if( null != _stepHandler ) { switch( _stepHandler.step(_threadState,_pc,_sourceLocation,hook) ) { case StepHandler.STOP: _stepHandler = null; if(ASS)Log.trace("ControlTyrant.aboutToExecute", "8) StepHandler.STOP"); break; case StepHandler.CONTINUE_SEND_INTERRUPT: if(ASS)Log.trace("ControlTyrant.aboutToExecute", "9) StepHandler.CONTINUE_SEND_INTERRUPT about to sendInterrupt"); _dc.sendInterrupt(); if(ASS)Log.trace("ControlTyrant.aboutToExecute", "10) sendInterrupt returned"); _semaphore.release(); if(ASS)Log.trace("ControlTyrant.aboutToExecute", "10.5) _semaphore.release() returned"); return; case StepHandler.CONTINUE_DONE: if(ASS)Log.trace("ControlTyrant.aboutToExecute", "11) StepHandler.CONTINUE_DONE"); _stepHandler = null; _semaphore.release(); return; } } // if(ASS){System.out.println( "about to send HIT_EXEC_HOOK" );} // if(ASS){System.out.println( "this = " + this );} // if(ASS){System.out.println( "HIT_EXEC_HOOK = " + HIT_EXEC_HOOK );} // if(ASS){System.out.println( "hook = " + hook );} // if(ASS){System.out.println( "Thread = " + Thread.currentThread() );} if(ASS)Log.trace("ControlTyrant.aboutToExecute", "12) about to call _threadState.leaveSuspended()"); _threadState.leaveSuspended(); if(ASS)Log.trace("ControlTyrant.aboutToExecute", "13) _threadState.leaveSuspended() returned"); // post message to UI thread _app.performCommandLater( this, HIT_EXEC_HOOK, hook ); }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/2de73cf99dce60cce549e7757f841284b68d1220/ControlTyrant.java/clean/js/jsdj/classes/com/netscape/jsdebugging/ifcui/ControlTyrant.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 2973, 774, 5289, 12, 46, 882, 76, 896, 1119, 1198, 16, 804, 3118, 39, 6125, 16, 13725, 3953, 13, 565, 288, 3639, 309, 12, 8423, 13, 1343, 18, 5129, 2932, 3367, 56, 93, 6890, 18, 21071, 774, 5289, 3113, 315, 21, 13, 225, 16219, 6, 11272, 3639, 309, 12, 401, 389, 5745, 262, 3639, 288, 5411, 309, 12, 8423, 13, 1343, 18, 5129, 2932, 3367, 56, 93, 6890, 18, 21071, 774, 5289, 3113, 315, 22, 13, 225, 2427, 16, 401, 389, 5745, 6, 11272, 5411, 327, 31, 3639, 289, 3639, 309, 12, 389, 14168, 1776, 20552, 405, 374, 262, 3639, 288, 5411, 309, 12, 8423, 13, 3163, 18, 659, 18, 8222, 2932, 724, 6053, 898, 1323, 26704, 18820, 8863, 5411, 327, 31, 3639, 289, 3639, 2301, 8203, 908, 1318, 18, 7589, 24308, 2932, 24113, 8863, 3639, 368, 11086, 326, 28921, 261, 2463, 309, 486, 2319, 13, 3639, 309, 12, 8423, 13, 1343, 18, 5129, 2932, 3367, 56, 93, 6890, 18, 21071, 774, 5289, 3113, 315, 23, 13, 225, 2973, 358, 745, 389, 307, 1458, 76, 479, 18, 2752, 70, 10031, 11272, 3639, 309, 12, 401, 389, 307, 1458, 76, 479, 18, 2752, 70, 1435, 262, 3639, 288, 5411, 309, 12, 8423, 13, 3163, 18, 659, 18, 8222, 12, 315, 70, 821, 310, 8854, 4764, 898, 622, 30, 315, 397, 6125, 11272, 5411, 309, 12, 8423, 13, 1343, 18, 5129, 2932, 3367, 56, 93, 6890, 18, 21071, 774, 5289, 3113, 315, 24, 13, 225, 2427, 225, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 2973, 774, 5289, 12, 46, 882, 76, 896, 1119, 1198, 16, 804, 3118, 39, 6125, 16, 13725, 3953, 13, 565, 288, 3639, 309, 12, 8423, 13, 1343, 18, 5129, 2932, 3367, 56, 93, 6890, 18, 21071, 774, 5289, 3113, 315, 21, 13, 225, 16219, 6, 11272, 3639, 309, 12, 401, 389, 5745, 262, 3639, 288, 5411, 309, 12, 8423, 13, 1343, 18, 5129, 2932, 3367, 56, 93, 6890, 18, 21071, 774, 5289, 3113, 315, 22, 13, 225, 2427, 16, 401, 389, 5745, 6, 11272, 5411, 327, 31, 3639, 289, 3639, 309, 12, 389, 14168, 1776, 20552, 405, 374, 262, 3639, 288, 5411, 309, 12, 8423, 13, 3163, 18, 659, 18, 8222, 2932, 724, 6053, 898, 1323, 26704, 2 ]
GREATER_THAN_OR_EQUAL,
GREATER_THAN_OR_EQUAL,
protected static GrailsMethodExpression create(final GrailsApplication application,Class clazz, String queryParameter) { if(queryParameter.endsWith( LESS_THAN_OR_EQUAL )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, LESS_THAN_OR_EQUAL), LESS_THAN_OR_EQUAL, 1, isNegation(queryParameter, LESS_THAN_OR_EQUAL) ) { Criterion createCriterion() { return Expression.le( this.propertyName, arguments[0] ); } }; } else if(queryParameter.endsWith( LESS_THAN )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, LESS_THAN), LESS_THAN, 1, // argument count isNegation(queryParameter, LESS_THAN) ) { Criterion createCriterion() { return Expression.lt( this.propertyName, arguments[0] ); } }; } else if(queryParameter.endsWith( GREATER_THAN_OR_EQUAL )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, GREATER_THAN_OR_EQUAL), GREATER_THAN_OR_EQUAL, 1, isNegation(queryParameter, GREATER_THAN_OR_EQUAL) ) { Criterion createCriterion() { return Expression.ge( this.propertyName, arguments[0] ); } }; } else if(queryParameter.endsWith( GREATER_THAN )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, GREATER_THAN), GREATER_THAN, 1, isNegation(queryParameter, GREATER_THAN) ) { Criterion createCriterion() { return Expression.gt( this.propertyName, arguments[0] ); } }; } else if(queryParameter.endsWith( LIKE )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, LIKE), LIKE, 1, isNegation(queryParameter, LIKE) ) { Criterion createCriterion() { return Expression.like( this.propertyName, arguments[0] ); } }; } else if(queryParameter.endsWith( IS_NOT_NULL )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, IS_NOT_NULL), IS_NOT_NULL, 0, isNegation(queryParameter, IS_NOT_NULL) ) { Criterion createCriterion() { return Expression.isNotNull( this.propertyName ); } }; } else if(queryParameter.endsWith( IS_NULL )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, IS_NULL), IS_NULL, 0, isNegation(queryParameter, IS_NULL) ) { Criterion createCriterion() { return Expression.isNull( this.propertyName ); } }; } else if(queryParameter.endsWith( BETWEEN )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, BETWEEN), BETWEEN, 2, isNegation(queryParameter, BETWEEN) ) { Criterion createCriterion() { return Expression.between( this.propertyName,this.arguments[0], this.arguments[1] ); } }; } else if(queryParameter.endsWith( NOT_EQUAL )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, NOT_EQUAL), NOT_EQUAL, 1, isNegation(queryParameter, NOT_EQUAL) ) { Criterion createCriterion() { return Expression.ne( this.propertyName,this.arguments[0]); } }; } else { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, null), EQUAL, 1, isNegation(queryParameter, EQUAL) ) { Criterion createCriterion() { return Expression.eq( this.propertyName,this.arguments[0]); } }; } }
55385 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55385/eb420a51890989f6ca7f281725a19ebec728f77c/AbstractClausedStaticPersistentMethod.java/buggy/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass/AbstractClausedStaticPersistentMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 760, 10812, 14573, 1305, 2300, 752, 12, 6385, 10812, 14573, 3208, 2521, 16, 797, 4003, 16, 514, 843, 1662, 13, 288, 1082, 202, 430, 12, 2271, 1662, 18, 5839, 1190, 12, 21216, 67, 22408, 67, 916, 67, 12853, 8623, 288, 9506, 202, 2463, 394, 10812, 14573, 1305, 2300, 12, 25083, 202, 3685, 16, 25083, 202, 830, 3638, 16, 25083, 202, 12448, 13073, 12, 2271, 1662, 16, 21216, 67, 22408, 67, 916, 67, 12853, 3631, 25083, 202, 26005, 67, 22408, 67, 916, 67, 12853, 16, 9944, 202, 21, 16, 25083, 202, 291, 14337, 367, 12, 2271, 1662, 16, 21216, 67, 22408, 67, 916, 67, 12853, 13, 262, 288, 6862, 202, 13210, 752, 13210, 1435, 288, 25083, 202, 2463, 5371, 18, 298, 12, 333, 18, 4468, 461, 16, 1775, 63, 20, 65, 11272, 6862, 202, 97, 9506, 202, 20451, 1082, 202, 97, 25083, 202, 12107, 309, 12, 2271, 1662, 18, 5839, 1190, 12, 21216, 67, 22408, 8623, 288, 9506, 202, 2463, 394, 10812, 14573, 1305, 2300, 12, 25083, 202, 3685, 16, 9944, 202, 830, 3638, 16, 25083, 202, 12448, 13073, 12, 2271, 1662, 16, 21216, 67, 22408, 3631, 25083, 202, 26005, 67, 22408, 16, 9944, 202, 21, 16, 368, 1237, 1056, 25083, 202, 291, 14337, 367, 12, 2271, 1662, 16, 21216, 67, 22408, 13, 262, 288, 6862, 202, 13210, 752, 13210, 1435, 288, 25083, 202, 2463, 5371, 18, 5618, 12, 333, 18, 4468, 461, 16, 1775, 63, 20, 65, 11272, 6862, 202, 97, 9506, 202, 20451, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 760, 10812, 14573, 1305, 2300, 752, 12, 6385, 10812, 14573, 3208, 2521, 16, 797, 4003, 16, 514, 843, 1662, 13, 288, 1082, 202, 430, 12, 2271, 1662, 18, 5839, 1190, 12, 21216, 67, 22408, 67, 916, 67, 12853, 8623, 288, 9506, 202, 2463, 394, 10812, 14573, 1305, 2300, 12, 25083, 202, 3685, 16, 25083, 202, 830, 3638, 16, 25083, 202, 12448, 13073, 12, 2271, 1662, 16, 21216, 67, 22408, 67, 916, 67, 12853, 3631, 25083, 202, 26005, 67, 22408, 67, 916, 67, 12853, 16, 9944, 202, 21, 16, 25083, 202, 291, 14337, 367, 12, 2271, 1662, 16, 21216, 67, 22408, 67, 916, 67, 12853, 13, 262, 288, 6862, 202, 13210, 752, 13210, 1435, 288, 25083, 202, 2 ]
stringBuffer.append(TEXT_423);
stringBuffer.append(TEXT_428);
public String generate(Object argument) { final StringBuffer stringBuffer = new StringBuffer(); final GenCommonBase genElement = (GenCommonBase) ((Object[]) argument)[0];final GenNode genNode = (GenNode) genElement;GenDiagram genDiagram = genNode.getDiagram();Palette palette = genDiagram.getPalette();boolean isXYLayout = ViewmapLayoutTypeHelper.getSharedInstance().isStoringChildPositions(genNode);final ImportAssistant importManager = (ImportAssistant) ((Object[]) argument)[1];class NodeEditPartHelper { private final List myInnerLabels = new LinkedList(); private final List myAllInnerLabels = new LinkedList(); private final List myExternalLabels = new LinkedList(); private final List myPinnedCompartments = new LinkedList(); private final List myFloatingCompartments = new LinkedList(); private GenNodeLabel myPrimaryLabel; private boolean myHasChildrenInListCompartments = false; public NodeEditPartHelper(GenNode genNode){ myPrimaryLabel = null; for (Iterator labels = genNode.getLabels().iterator(); labels.hasNext();) { GenNodeLabel next = (GenNodeLabel) labels.next(); if (myPrimaryLabel == null){ myPrimaryLabel = next; } if (next instanceof GenExternalNodeLabel) { myExternalLabels.add(next); } else { myAllInnerLabels.add(next); if (next.getViewmap() instanceof ParentAssignedViewmap) { myInnerLabels.add(next); } } } for (Iterator compartments = genNode.getCompartments().iterator(); compartments.hasNext();){ GenCompartment next = (GenCompartment) compartments.next(); if (next.getViewmap() instanceof ParentAssignedViewmap){ myPinnedCompartments.add(next); } else { myFloatingCompartments.add(next); } myHasChildrenInListCompartments |= next.isListLayout() && !next.getChildNodes().isEmpty(); } } public boolean hasChildrenInListCompartments(){ return myHasChildrenInListCompartments; } public boolean hasInnerFixedLabels(){ return !myInnerLabels.isEmpty(); } public boolean hasPinnedCompartments(){ return !myPinnedCompartments.isEmpty(); } public boolean hasFixedChildren(){ return hasInnerFixedLabels() || hasPinnedCompartments(); } public boolean hasExternalLabels(){ return !myExternalLabels.isEmpty(); } public GenNodeLabel getPrimaryLabel(){ return myPrimaryLabel; } public Iterator getInnerFixedLabels(){ return myInnerLabels.iterator(); } public Iterator getExternalLabels(){ return myExternalLabels.iterator(); } public Iterator getPinnedCompartments(){ return myPinnedCompartments.iterator(); } public Iterator getAllInnerLabels() { return myAllInnerLabels.iterator(); }}final NodeEditPartHelper myHelper = new NodeEditPartHelper(genNode); stringBuffer.append(TEXT_1); String copyrightText = genDiagram.getEditorGen().getCopyrightText();if (copyrightText != null && copyrightText.trim().length() > 0) { stringBuffer.append(TEXT_2); stringBuffer.append(copyrightText.replaceAll("\n", "\n * ")); stringBuffer.append(TEXT_3); } stringBuffer.append(TEXT_4); importManager.emitPackageStatement(stringBuffer); importManager.markImportLocation(stringBuffer); stringBuffer.append(TEXT_5); stringBuffer.append(genNode.getEditPartClassName()); stringBuffer.append(TEXT_6); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.AbstractGraphicalEditPart")); stringBuffer.append(TEXT_7); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.NodeEditPart")); stringBuffer.append(TEXT_8); {GenCommonBase genCommonBase = genNode; stringBuffer.append(TEXT_9); stringBuffer.append(TEXT_10); stringBuffer.append(genCommonBase.getVisualID()); stringBuffer.append(TEXT_11); } stringBuffer.append(TEXT_12); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_13); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_14); stringBuffer.append(genNode.getEditPartClassName()); stringBuffer.append(TEXT_15); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_16); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); stringBuffer.append(TEXT_17); stringBuffer.append(TEXT_18); stringBuffer.append(TEXT_19); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); stringBuffer.append(TEXT_20); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ComponentEditPolicy")); stringBuffer.append(TEXT_21); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_22); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.GroupRequest")); stringBuffer.append(TEXT_23); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_24); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); stringBuffer.append(TEXT_25); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_26); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_27); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_28); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_29); {TypeModelFacet facet = genNode.getModelFacet();GenFeature childFeature = facet.getChildMetaFeature();GenFeature containmentFeature = facet.getContainmentMetaFeature();if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { stringBuffer.append(TEXT_30); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_31); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_32); if (containmentFeature.getEcoreFeature().isMany()) { stringBuffer.append(TEXT_33); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_34); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_35); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_36); } else { stringBuffer.append(TEXT_37); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_38); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_39); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_40); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_41); } if (childFeature.getEcoreFeature().isMany()) { stringBuffer.append(TEXT_42); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_43); stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_44); stringBuffer.append(childFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_45); } else { stringBuffer.append(TEXT_46); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_47); stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_48); stringBuffer.append(childFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_49); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_50); } stringBuffer.append(TEXT_51); } else { if (containmentFeature.getEcoreFeature().isMany()) { stringBuffer.append(TEXT_52); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_53); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_54); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_55); } else { stringBuffer.append(TEXT_56); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_57); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_58); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_59); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_60); }} stringBuffer.append(TEXT_61); } /*restrict local vars used in component edit policy*/ stringBuffer.append(TEXT_62); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); stringBuffer.append(TEXT_63); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ConstrainedLayoutEditPolicy")); stringBuffer.append(TEXT_64); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_65); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateRequest")); stringBuffer.append(TEXT_66); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_67); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); stringBuffer.append(TEXT_68); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Point")); stringBuffer.append(TEXT_69); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_70); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_71); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_72); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); stringBuffer.append(TEXT_73); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_74); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ResizableEditPolicy")); stringBuffer.append(TEXT_75); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_76); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); stringBuffer.append(TEXT_77); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants")); stringBuffer.append(TEXT_78); stringBuffer.append(genNode.getEditPartClassName()); stringBuffer.append(TEXT_79); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); stringBuffer.append(TEXT_80); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.GraphicalNodeEditPolicy")); stringBuffer.append(TEXT_81); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_82); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ReconnectRequest")); stringBuffer.append(TEXT_83); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_84); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_85); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ReconnectRequest")); stringBuffer.append(TEXT_86); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_87); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_88); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateConnectionRequest")); stringBuffer.append(TEXT_89); if (palette != null) { stringBuffer.append(TEXT_90); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_91); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_92); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_93); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_94); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_95); for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { GenLink genLink = (GenLink)it.next(); if (!genLink.isViewDirectionAlignedWithModel() || genLink.getModelFacet() == null) { continue; } GenClass outgoingClass; String createCommandNameInfix; if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); outgoingClass = modelFacet.getSourceMetaFeature() == null ? modelFacet.getContainmentMetaFeature().getGenClass() : modelFacet.getSourceMetaFeature().getTypeGenClass(); createCommandNameInfix = modelFacet.getMetaClass().getName(); } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); outgoingClass = metaFeature.getGenClass(); createCommandNameInfix = metaFeature.getFeatureAccessorName(); } else { continue; } if (!outgoingClass.getEcoreClass().isSuperTypeOf(genNode.getModelFacet().getMetaClass().getEcoreClass())) { continue; } stringBuffer.append(TEXT_96); stringBuffer.append(importManager.getImportedName(genLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_97); stringBuffer.append(createCommandNameInfix); stringBuffer.append(genLink.getVisualID()); stringBuffer.append(TEXT_98); } stringBuffer.append(TEXT_99); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_100); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); stringBuffer.append(TEXT_101); }/*when there's palette*/ stringBuffer.append(TEXT_102); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_103); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateConnectionRequest")); stringBuffer.append(TEXT_104); if (palette != null) { stringBuffer.append(TEXT_105); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_106); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_107); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_108); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_109); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_110); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_111); for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { GenLink genLink = (GenLink)it.next(); if (!genLink.isViewDirectionAlignedWithModel() || genLink.getModelFacet() == null) { continue; } GenClass incomingClass; String createCommandNameInfix; if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); incomingClass = modelFacet.getTargetMetaFeature().getTypeGenClass(); createCommandNameInfix = modelFacet.getMetaClass().getName(); } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); incomingClass = metaFeature.getTypeGenClass(); createCommandNameInfix = metaFeature.getFeatureAccessorName(); } else { continue; } if (!incomingClass.getEcoreClass().isSuperTypeOf(genNode.getModelFacet().getMetaClass().getEcoreClass())) { continue; } stringBuffer.append(TEXT_112); stringBuffer.append(importManager.getImportedName(genLink.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_113); stringBuffer.append(createCommandNameInfix); stringBuffer.append(genLink.getVisualID()); stringBuffer.append(TEXT_114); } stringBuffer.append(TEXT_115); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_116); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); stringBuffer.append(TEXT_117); }/*when there's palette*/ stringBuffer.append(TEXT_118); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_119); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_120); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_121); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure")); stringBuffer.append(TEXT_122); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.StackLayout")); stringBuffer.append(TEXT_123); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_124); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_125); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_126); String figureQualifiedClassName = null;Viewmap viewmap = genNode.getViewmap();if (viewmap instanceof FigureViewmap) { figureQualifiedClassName = ((FigureViewmap) viewmap).getFigureQualifiedClassName(); if (figureQualifiedClassName == null || figureQualifiedClassName.trim().length() == 0) { figureQualifiedClassName = "org.eclipse.draw2d.RectangleFigure"; } stringBuffer.append(TEXT_127); stringBuffer.append(importManager.getImportedName(figureQualifiedClassName)); stringBuffer.append(TEXT_128); if (isXYLayout) { stringBuffer.append(TEXT_129); } /* use flow layout*/ stringBuffer.append(TEXT_130); } else if (viewmap instanceof SnippetViewmap) { stringBuffer.append(TEXT_131); stringBuffer.append(((SnippetViewmap) viewmap).getBody()); stringBuffer.append(TEXT_132); } else if (viewmap instanceof InnerClassViewmap) { figureQualifiedClassName = ((InnerClassViewmap) viewmap).getClassName(); stringBuffer.append(TEXT_133); stringBuffer.append(figureQualifiedClassName); stringBuffer.append(TEXT_134); stringBuffer.append(figureQualifiedClassName); stringBuffer.append(TEXT_135); if (!genNode.getChildNodes().isEmpty() && isXYLayout) { /*otherwise, leave to figure's default value*/ stringBuffer.append(TEXT_136); } stringBuffer.append(TEXT_137); } stringBuffer.append(TEXT_138); if (figureQualifiedClassName != null) { stringBuffer.append(TEXT_139); stringBuffer.append(figureQualifiedClassName); stringBuffer.append(TEXT_140); stringBuffer.append(figureQualifiedClassName); stringBuffer.append(TEXT_141); } stringBuffer.append(TEXT_142); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_143); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_144); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_145); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAnnotation")); stringBuffer.append(TEXT_146); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure")); stringBuffer.append(TEXT_147); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure")); stringBuffer.append(TEXT_148); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.BorderLayout")); stringBuffer.append(TEXT_149); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ImageFigure")); stringBuffer.append(TEXT_150); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ImageFigure")); stringBuffer.append(TEXT_151); stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName())); stringBuffer.append(TEXT_152); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants")); stringBuffer.append(TEXT_153); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.BorderLayout")); stringBuffer.append(TEXT_154); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_155); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_156); if (!isXYLayout) { String layoutClassName = importManager.getImportedName("org.eclipse.draw2d.ToolbarLayout"); stringBuffer.append(TEXT_157); stringBuffer.append(layoutClassName); stringBuffer.append(TEXT_158); stringBuffer.append(layoutClassName); stringBuffer.append(TEXT_159); } else { stringBuffer.append(TEXT_160); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.FreeformLayout")); stringBuffer.append(TEXT_161); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_162); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); stringBuffer.append(TEXT_163); } stringBuffer.append(TEXT_164); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_165); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); stringBuffer.append(TEXT_166); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); stringBuffer.append(TEXT_167); if (myHelper.hasFixedChildren()) { stringBuffer.append(TEXT_168); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_169); for (Iterator it = myHelper.getInnerFixedLabels(); it.hasNext(); ) { GenNodeLabel genLabel = (GenNodeLabel) it.next(); final String labelEditPart = importManager.getImportedName(genLabel.getEditPartQualifiedClassName()); final ParentAssignedViewmap childViewmap = (ParentAssignedViewmap) genLabel.getViewmap(); final String childSetterName = childViewmap.getSetterName() == null ? "setLabel" : childViewmap.getSetterName(); stringBuffer.append(TEXT_170); stringBuffer.append(labelEditPart); stringBuffer.append(TEXT_171); stringBuffer.append(labelEditPart); stringBuffer.append(TEXT_172); stringBuffer.append(childSetterName); stringBuffer.append(TEXT_173); stringBuffer.append(childViewmap.getGetterName()); stringBuffer.append(TEXT_174); }for (Iterator it = myHelper.getPinnedCompartments(); it.hasNext(); ) { GenCompartment next = (GenCompartment) it.next(); final ParentAssignedViewmap childViewmap = (ParentAssignedViewmap) next.getViewmap(); String compartmentEditPartFQN = importManager.getImportedName(next.getEditPartQualifiedClassName()); stringBuffer.append(TEXT_175); stringBuffer.append(compartmentEditPartFQN); stringBuffer.append(TEXT_176); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_177); stringBuffer.append(childViewmap.getGetterName()); stringBuffer.append(TEXT_178); stringBuffer.append(compartmentEditPartFQN); stringBuffer.append(TEXT_179); } // for pinned compartments stringBuffer.append(TEXT_180); //XXX: ignore labels assuming that they never may be removedfor (Iterator it = myHelper.getPinnedCompartments(); it.hasNext(); ) { GenCompartment next = (GenCompartment) it.next(); final ParentAssignedViewmap childViewmap = (ParentAssignedViewmap) next.getViewmap(); String compartmentEditPartFQN = importManager.getImportedName(next.getEditPartQualifiedClassName()); stringBuffer.append(TEXT_181); stringBuffer.append(compartmentEditPartFQN); stringBuffer.append(TEXT_182); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_183); stringBuffer.append(childViewmap.getGetterName()); stringBuffer.append(TEXT_184); stringBuffer.append(compartmentEditPartFQN); stringBuffer.append(TEXT_185); } // for pinned compartments stringBuffer.append(TEXT_186); } // if myHelper.hasFixedChildren() stringBuffer.append(TEXT_187); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_188); GenNodeLabel firstEditableLabel = null; for (Iterator it = myHelper.getAllInnerLabels(); it.hasNext(); ) { GenNodeLabel genLabel = (GenNodeLabel) it.next(); if (!genLabel.isReadOnly()) { firstEditableLabel = genLabel; break; } } if (firstEditableLabel != null) { stringBuffer.append(TEXT_189); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_190); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_191); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_192); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_193); stringBuffer.append(importManager.getImportedName(firstEditableLabel.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_194); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_195); } stringBuffer.append(TEXT_196); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); stringBuffer.append(TEXT_197); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants")); stringBuffer.append(TEXT_198); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_199); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); stringBuffer.append(TEXT_200); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); stringBuffer.append(TEXT_201); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_202); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); stringBuffer.append(TEXT_203); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_204); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_205); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_206); stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); stringBuffer.append(TEXT_207); for (Iterator it = myHelper.getAllInnerLabels(); it.hasNext(); ) { GenNodeLabel genLabel = (GenNodeLabel) it.next(); if (genLabel.isReadOnly()) { continue; } stringBuffer.append(TEXT_208); stringBuffer.append(importManager.getImportedName(genLabel.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_209); } stringBuffer.append(TEXT_210); if (myHelper.hasExternalLabels()) { stringBuffer.append(TEXT_211); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_212); for (Iterator externalLabels = myHelper.getExternalLabels(); externalLabels.hasNext();) { GenNodeLabel next = (GenNodeLabel) externalLabels.next(); stringBuffer.append(TEXT_213); stringBuffer.append(importManager.getImportedName(next.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_214); } stringBuffer.append(TEXT_215); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_216); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.LayerManager")); stringBuffer.append(TEXT_217); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.LayerManager")); stringBuffer.append(TEXT_218); stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartFactoryQualifiedClassName())); stringBuffer.append(TEXT_219); }if (myHelper.hasExternalLabels() || myHelper.hasFixedChildren()) { stringBuffer.append(TEXT_220); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_221); if (myHelper.hasExternalLabels()) { stringBuffer.append(TEXT_222); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_223); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); stringBuffer.append(TEXT_224); } if (myHelper.hasFixedChildren()) { stringBuffer.append(TEXT_225); } stringBuffer.append(TEXT_226); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); stringBuffer.append(TEXT_227); if (myHelper.hasExternalLabels()) { stringBuffer.append(TEXT_228); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_229); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); stringBuffer.append(TEXT_230); } if (myHelper.hasFixedChildren()){ stringBuffer.append(TEXT_231); } stringBuffer.append(TEXT_232); } stringBuffer.append(TEXT_233); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); stringBuffer.append(TEXT_234); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds")); stringBuffer.append(TEXT_235); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds")); stringBuffer.append(TEXT_236); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds")); stringBuffer.append(TEXT_237); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); stringBuffer.append(TEXT_238); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); stringBuffer.append(TEXT_239); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_240); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_241); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_242); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); stringBuffer.append(TEXT_243); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart")); stringBuffer.append(TEXT_244); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); stringBuffer.append(TEXT_245); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); stringBuffer.append(TEXT_246); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); stringBuffer.append(TEXT_247); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); stringBuffer.append(TEXT_248); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); stringBuffer.append(TEXT_249); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart")); stringBuffer.append(TEXT_250); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); stringBuffer.append(TEXT_251); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); stringBuffer.append(TEXT_252); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); stringBuffer.append(TEXT_253); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); stringBuffer.append(TEXT_254); /*@ include file="adapters/propertySource.javajetinc"*/ stringBuffer.append(TEXT_255); stringBuffer.append(TEXT_256); stringBuffer.append(TEXT_257); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.impl.AdapterImpl")); stringBuffer.append(TEXT_258); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); stringBuffer.append(TEXT_259); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); stringBuffer.append(TEXT_260); stringBuffer.append(TEXT_261); stringBuffer.append(TEXT_262); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); stringBuffer.append(TEXT_263); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); stringBuffer.append(TEXT_264); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); stringBuffer.append(TEXT_265); final String primaryView = "getDiagramNode()"; stringBuffer.append(TEXT_266); boolean isFixedFontSetInFigure;{ StyleAttributes styleAttributes = (genElement.getViewmap() == null) ? null : (StyleAttributes)genElement.getViewmap().find(StyleAttributes.class); isFixedFontSetInFigure = styleAttributes != null && styleAttributes.isFixedFont();} stringBuffer.append(TEXT_267); if (!isFixedFontSetInFigure) { stringBuffer.append(TEXT_268); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); stringBuffer.append(TEXT_269); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); stringBuffer.append(TEXT_270); stringBuffer.append(primaryView); stringBuffer.append(TEXT_271); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_272); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_273); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_274); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_275); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_276); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_277); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.FontData")); stringBuffer.append(TEXT_278); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_279); } stringBuffer.append(TEXT_280); if (!isFixedFontSetInFigure) { stringBuffer.append(TEXT_281); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_282); } stringBuffer.append(TEXT_283); stringBuffer.append(TEXT_284); stringBuffer.append(TEXT_285); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.LineStyle")); stringBuffer.append(TEXT_286); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.LineStyle")); stringBuffer.append(TEXT_287); stringBuffer.append(primaryView); stringBuffer.append(TEXT_288); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_289); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_290); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_291); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_292); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_293); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FillStyle")); stringBuffer.append(TEXT_294); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FillStyle")); stringBuffer.append(TEXT_295); stringBuffer.append(primaryView); stringBuffer.append(TEXT_296); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_297); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_298); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_299); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_300); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_301); stringBuffer.append(TEXT_302); stringBuffer.append(TEXT_303); stringBuffer.append(importManager.getImportedName("java.util.HashMap")); stringBuffer.append(TEXT_304); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); stringBuffer.append(TEXT_305); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); stringBuffer.append(TEXT_306); stringBuffer.append(importManager.getImportedName("java.util.HashMap")); stringBuffer.append(TEXT_307); stringBuffer.append(TEXT_308); stringBuffer.append(TEXT_309); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_310); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_311); stringBuffer.append(TEXT_312); stringBuffer.append(TEXT_313); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_314); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_315); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_316); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_317); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_318); stringBuffer.append(TEXT_319); stringBuffer.append(TEXT_320); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_321); stringBuffer.append(TEXT_322); stringBuffer.append(TEXT_323); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_324); stringBuffer.append(TEXT_325); stringBuffer.append(TEXT_326); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_327); stringBuffer.append(TEXT_328); stringBuffer.append(TEXT_329); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_330); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_331); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_332); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_333); stringBuffer.append(TEXT_334); stringBuffer.append(TEXT_335); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_336); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_337); /*XXX: probably, this should go to a separate jet-template along with GraphicalNodeEditPolicy*/ if (palette != null) { for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { GenLink genLink = (GenLink)it.next(); if (!genLink.isViewDirectionAlignedWithModel() || genLink.getModelFacet() == null) { continue; } GenClass outgoingClass; String createCommandNameInfix; if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); outgoingClass = modelFacet.getSourceMetaFeature() == null ? modelFacet.getContainmentMetaFeature().getGenClass() : modelFacet.getSourceMetaFeature().getTypeGenClass(); createCommandNameInfix = modelFacet.getMetaClass().getName(); } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); outgoingClass = metaFeature.getGenClass(); createCommandNameInfix = metaFeature.getFeatureAccessorName(); } else { continue; } if (!outgoingClass.getEcoreClass().isSuperTypeOf(genNode.getModelFacet().getMetaClass().getEcoreClass())) { continue; } GenLinkConstraints linkConstraints = genLink.getCreationConstraints(); stringBuffer.append(TEXT_338); stringBuffer.append(createCommandNameInfix); stringBuffer.append(genLink.getVisualID()); stringBuffer.append(TEXT_339); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); stringBuffer.append(TEXT_340); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_341); stringBuffer.append(createCommandNameInfix); stringBuffer.append(genLink.getVisualID()); stringBuffer.append(TEXT_342); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_343); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_344); if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); GenFeature containmentFeature = modelFacet.getContainmentMetaFeature(); if (containmentFeature == null) { stringBuffer.append(TEXT_345); } else { stringBuffer.append(TEXT_346); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_347); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_348); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_349); stringBuffer.append(containmentFeature.getGenClass().getClassifierAccessorName()); stringBuffer.append(TEXT_350); { GenFeature _feature = containmentFeature; String _ownerInstance = "container"; String _exceedsUpperBound = "return false;"; stringBuffer.append(TEXT_351); int upperBound = _feature.getEcoreFeature().getUpperBound();if (upperBound > 0) { if (upperBound == 1) { stringBuffer.append(TEXT_352); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_353); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_354); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_355); } else { stringBuffer.append(TEXT_356); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_357); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_358); stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_359); stringBuffer.append(_feature.getFeatureAccessorName()); stringBuffer.append(TEXT_360); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_361); }} } GenFeature childFeature = modelFacet.getChildMetaFeature(); if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { { GenFeature _feature = childFeature; String _ownerInstance = "container"; String _exceedsUpperBound = "return false;"; stringBuffer.append(TEXT_362); int upperBound = _feature.getEcoreFeature().getUpperBound();if (upperBound > 0) { if (upperBound == 1) { stringBuffer.append(TEXT_363); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_364); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_365); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_366); } else { stringBuffer.append(TEXT_367); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_368); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_369); stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_370); stringBuffer.append(_feature.getFeatureAccessorName()); stringBuffer.append(TEXT_371); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_372); }} } }{ String _source = "source.getElement()"; String _target = "null"; stringBuffer.append(TEXT_373); if (linkConstraints != null) { stringBuffer.append(TEXT_374); stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); stringBuffer.append(TEXT_375); stringBuffer.append(_source); stringBuffer.append(TEXT_376); stringBuffer.append(_target); stringBuffer.append(TEXT_377); } } //local declarations for linkConstraints.jetinc stringBuffer.append(TEXT_378); } } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); stringBuffer.append(TEXT_379); stringBuffer.append(importManager.getImportedName(outgoingClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_380); stringBuffer.append(importManager.getImportedName(outgoingClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_381); { GenFeature _feature = metaFeature; String _ownerInstance = "domainElement"; String _exceedsUpperBound = "return false;"; stringBuffer.append(TEXT_382); int upperBound = _feature.getEcoreFeature().getUpperBound();if (upperBound > 0) { if (upperBound == 1) { stringBuffer.append(TEXT_383); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_384); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_385); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_386); } else { stringBuffer.append(TEXT_387); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_388); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_389); stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_390); stringBuffer.append(_feature.getFeatureAccessorName()); stringBuffer.append(TEXT_391); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_392); }} }{ String _source = "source.getElement()"; String _target = "null"; stringBuffer.append(TEXT_393); if (linkConstraints != null) { stringBuffer.append(TEXT_394); stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); stringBuffer.append(TEXT_395); stringBuffer.append(_source); stringBuffer.append(TEXT_396); stringBuffer.append(_target); stringBuffer.append(TEXT_397); } } //local declarations for linkConstraints.jetinc stringBuffer.append(TEXT_398); } else { stringBuffer.append(TEXT_399); } stringBuffer.append(TEXT_400); if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { stringBuffer.append(TEXT_401); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_402); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_403); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EClass")); stringBuffer.append(TEXT_404); } stringBuffer.append(TEXT_405); } //outgoing links for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { GenLink genLink = (GenLink)it.next(); if (!genLink.isViewDirectionAlignedWithModel() || genLink.getModelFacet() == null) { continue; } GenClass incomingClass; String createCommandNameInfix; if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); incomingClass = modelFacet.getTargetMetaFeature().getTypeGenClass(); createCommandNameInfix = modelFacet.getMetaClass().getName(); } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); incomingClass = metaFeature.getTypeGenClass(); createCommandNameInfix = metaFeature.getFeatureAccessorName(); } else { continue; } if (!incomingClass.getEcoreClass().isSuperTypeOf(genNode.getModelFacet().getMetaClass().getEcoreClass())) { continue; } GenLinkConstraints linkConstraints = genLink.getCreationConstraints(); stringBuffer.append(TEXT_406); stringBuffer.append(createCommandNameInfix); stringBuffer.append(genLink.getVisualID()); stringBuffer.append(TEXT_407); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); stringBuffer.append(TEXT_408); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_409); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_410); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); stringBuffer.append(TEXT_411); stringBuffer.append(createCommandNameInfix); stringBuffer.append(genLink.getVisualID()); stringBuffer.append(TEXT_412); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_413); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_414); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_415); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_416); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_417); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); stringBuffer.append(TEXT_418); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); stringBuffer.append(TEXT_419); if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); GenClass linkClass = modelFacet.getMetaClass(); stringBuffer.append(TEXT_420); stringBuffer.append(importManager.getImportedName(importManager.getImportedName(linkClass.getQualifiedInterfaceName()))); stringBuffer.append(TEXT_421); stringBuffer.append(importManager.getImportedName(linkClass.getGenPackage().getQualifiedFactoryInterfaceName())); stringBuffer.append(TEXT_422); stringBuffer.append(linkClass.getClassifierAccessorName()); stringBuffer.append(TEXT_423); /*XXX: Class name DomainElementInitializer should be user-customizable*/ stringBuffer.append(TEXT_424); stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")); stringBuffer.append(TEXT_425); stringBuffer.append(genLink.getUniqueIdentifier()); stringBuffer.append(TEXT_426); } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { stringBuffer.append(TEXT_427); } stringBuffer.append(TEXT_428); stringBuffer.append(importManager.getImportedName(genLink.getNotationViewFactoryQualifiedClassName())); stringBuffer.append(TEXT_429); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_430); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); stringBuffer.append(TEXT_431); if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { stringBuffer.append(TEXT_432); TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); GenFeature sourceFeature = modelFacet.getSourceMetaFeature(); GenFeature containmentFeature = modelFacet.getContainmentMetaFeature(); GenFeature childFeature = modelFacet.getChildMetaFeature(); GenFeature targetFeature = modelFacet.getTargetMetaFeature(); //source/link features seem to be pointing from link to its ends, not vice versa. //Anyway, if there is containment feature and it is not opposite to either the source/target, we should add containment, //otherwise we will have problems with saving uncontained EObjects. boolean addSource = sourceFeature != null; boolean addTarget = targetFeature != null; boolean addChild = childFeature != null && childFeature != containmentFeature && !childFeature.isDerived(); if (containmentFeature != null) { if (sourceFeature != null && sourceFeature.getEcoreFeature() instanceof EReference == true) { EReference sourceEcoreFeature = (EReference)sourceFeature.getEcoreFeature(); if (sourceEcoreFeature.getEOpposite() == containmentFeature.getEcoreFeature()) { addSource = false; } } if (targetFeature != null && targetFeature.getEcoreFeature() instanceof EReference == true) { EReference targetEcoreFeature = (EReference)targetFeature.getEcoreFeature(); if (targetEcoreFeature.getEOpposite() == containmentFeature.getEcoreFeature()) { addTarget = false; } } stringBuffer.append(TEXT_433); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_434); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_435); stringBuffer.append(containmentFeature.getGenClass().getClassifierAccessorName()); stringBuffer.append(TEXT_436); stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_437); stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_438); stringBuffer.append(containmentFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_439); } if (addChild) { stringBuffer.append(TEXT_440); stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_441); stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_442); stringBuffer.append(childFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_443); } if (addSource) { { GenFeature _feature = sourceFeature; String _ownerInstance = "createdDomainElement"; String _exceedsUpperBound = "domainModelAddCommand = null;\nreturn;"; stringBuffer.append(TEXT_444); int upperBound = _feature.getEcoreFeature().getUpperBound();if (upperBound > 0) { if (upperBound == 1) { stringBuffer.append(TEXT_445); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_446); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_447); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_448); } else { stringBuffer.append(TEXT_449); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_450); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_451); stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_452); stringBuffer.append(_feature.getFeatureAccessorName()); stringBuffer.append(TEXT_453); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_454); }} } stringBuffer.append(TEXT_455); stringBuffer.append(importManager.getImportedName(sourceFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_456); stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_457); stringBuffer.append(sourceFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_458); } if (addTarget) { { GenFeature _feature = targetFeature; String _ownerInstance = "createdDomainElement"; String _exceedsUpperBound = "domainModelAddCommand = null;\nreturn;"; stringBuffer.append(TEXT_459); int upperBound = _feature.getEcoreFeature().getUpperBound();if (upperBound > 0) { if (upperBound == 1) { stringBuffer.append(TEXT_460); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_461); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_462); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_463); } else { stringBuffer.append(TEXT_464); stringBuffer.append(_ownerInstance); stringBuffer.append(TEXT_465); stringBuffer.append(_feature.getGetAccessor()); stringBuffer.append(TEXT_466); stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_467); stringBuffer.append(_feature.getFeatureAccessorName()); stringBuffer.append(TEXT_468); stringBuffer.append(_exceedsUpperBound); stringBuffer.append(TEXT_469); }} } stringBuffer.append(TEXT_470); stringBuffer.append(importManager.getImportedName(targetFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_471); stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_472); stringBuffer.append(targetFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_473); } stringBuffer.append(TEXT_474); } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); stringBuffer.append(TEXT_475); stringBuffer.append(importManager.getImportedName(metaFeature.getEcoreFeature().isMany()? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_476); stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_477); stringBuffer.append(metaFeature.getFeatureAccessorName()); stringBuffer.append(TEXT_478); } stringBuffer.append(TEXT_479); if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { stringBuffer.append(TEXT_480); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_481); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_482); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EClass")); stringBuffer.append(TEXT_483); } stringBuffer.append(TEXT_484); { String _source = "source.getElement()"; String _target = "target.getElement()"; stringBuffer.append(TEXT_485); if (linkConstraints != null) { stringBuffer.append(TEXT_486); stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); stringBuffer.append(TEXT_487); stringBuffer.append(_source); stringBuffer.append(TEXT_488); stringBuffer.append(_target); stringBuffer.append(TEXT_489); } } //local declarations for linkConstraints.jetinc stringBuffer.append(TEXT_490); } }/*when there's palette*/ if (genNode.getViewmap() instanceof InnerClassViewmap) { String classBody = ((InnerClassViewmap) genNode.getViewmap()).getClassBody(); stringBuffer.append(TEXT_491); stringBuffer.append(classBody); stringBuffer.append(TEXT_492); if (classBody.indexOf("DPtoLP") != -1) { stringBuffer.append(TEXT_493); } } stringBuffer.append(TEXT_494); importManager.emitSortedImports(); stringBuffer.append(TEXT_495); return stringBuffer.toString(); }
7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/41ff79477b1b3c386bb3c9c99a88391ac573362c/NodeEditPartGenerator.java/clean/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/NodeEditPartGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 2103, 12, 921, 1237, 13, 225, 288, 565, 727, 6674, 533, 1892, 273, 394, 6674, 5621, 565, 727, 10938, 6517, 2171, 3157, 1046, 273, 261, 7642, 6517, 2171, 13, 14015, 921, 63, 5717, 1237, 25146, 20, 15533, 6385, 10938, 907, 3157, 907, 273, 261, 7642, 907, 13, 3157, 1046, 31, 7642, 14058, 1940, 3157, 14058, 1940, 273, 3157, 907, 18, 588, 14058, 1940, 5621, 25863, 12127, 273, 3157, 14058, 1940, 18, 588, 25863, 5621, 6494, 353, 8546, 3744, 273, 4441, 1458, 3744, 559, 2276, 18, 588, 7887, 1442, 7675, 291, 510, 6053, 1763, 11024, 12, 4507, 907, 1769, 6385, 6164, 2610, 17175, 1930, 1318, 273, 261, 5010, 2610, 17175, 13, 14015, 921, 63, 5717, 1237, 25146, 21, 15533, 1106, 2029, 4666, 1988, 2276, 288, 202, 1152, 727, 987, 3399, 2857, 5888, 273, 394, 10688, 5621, 202, 1152, 727, 987, 3399, 1595, 2857, 5888, 273, 394, 10688, 5621, 202, 1152, 727, 987, 3399, 6841, 5888, 273, 394, 10688, 5621, 202, 1152, 727, 987, 3399, 12178, 11748, 799, 2680, 1346, 273, 394, 10688, 5621, 202, 1152, 727, 987, 3399, 28344, 799, 2680, 1346, 273, 394, 10688, 5621, 202, 1152, 10938, 907, 2224, 3399, 6793, 2224, 31, 202, 1152, 1250, 3399, 5582, 4212, 24218, 799, 2680, 1346, 273, 629, 31, 202, 202, 482, 2029, 4666, 1988, 2276, 12, 7642, 907, 3157, 907, 15329, 202, 202, 4811, 6793, 2224, 273, 446, 31, 202, 202, 1884, 261, 3198, 3249, 273, 3157, 907, 18, 588, 5888, 7675, 9838, 5621, 3249, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 2103, 12, 921, 1237, 13, 225, 288, 565, 727, 6674, 533, 1892, 273, 394, 6674, 5621, 565, 727, 10938, 6517, 2171, 3157, 1046, 273, 261, 7642, 6517, 2171, 13, 14015, 921, 63, 5717, 1237, 25146, 20, 15533, 6385, 10938, 907, 3157, 907, 273, 261, 7642, 907, 13, 3157, 1046, 31, 7642, 14058, 1940, 3157, 14058, 1940, 273, 3157, 907, 18, 588, 14058, 1940, 5621, 25863, 12127, 273, 3157, 14058, 1940, 18, 588, 25863, 5621, 6494, 353, 8546, 3744, 273, 4441, 1458, 3744, 559, 2276, 18, 588, 7887, 1442, 7675, 291, 510, 6053, 1763, 11024, 12, 4507, 907, 1769, 6385, 6164, 2610, 17175, 1930, 1318, 273, 261, 5010, 2610, 17175, 13, 14015, 921, 63, 5717, 1237, 25146, 2 ]
name = getUniqueName(name);
name = getUniqueName(getSeismogramNames(), name);
public void addSeismogram(LocalSeismogramImpl seis, AuditInfo[] audit) { seismogramNameCache = null; // Note this does not set the xlink, as the seis has not been saved anywhere yet. Document doc = config.getOwnerDocument(); Element localSeismogram = doc.createElement("localSeismogram");//doc.createElement("SacSeismogram"); String name =seis.getProperty(seisNameKey); if (name == null || name.length() == 0) { name = seis.channel_id.network_id.network_code+"."+ seis.channel_id.station_code+"."+ seis.channel_id.channel_code; //edu.iris.Fissures.network.ChannelIdUtil.toStringNoDates(seis.channel_id); } name = getUniqueName(name); seis.setName(name); Element seismogramAttr = doc.createElement("seismogramAttr"); XMLSeismogramAttr.insert(seismogramAttr, (LocalSeismogram)seis); //localSeismogram.appendChild(seismogramAttr); Element propertyElement = doc.createElement("property"); propertyElement.appendChild(XMLUtil.createTextElement(doc, "name", "Name")); propertyElement.appendChild(XMLUtil.createTextElement(doc, "value", name)); ///seismogramAttr.appendChild(propertyElement); localSeismogram.appendChild(seismogramAttr); Property[] props = seis.getProperties(); //System.out.println("the length of the Properties of the seismogram are "+props.length); Element propE, propNameE, propValueE; for (int i=0; i<props.length; i++) { if (props[i].name != seisNameKey) { propE = doc.createElement("property"); propNameE = doc.createElement("name"); propNameE.setNodeValue(props[i].name); propValueE = doc.createElement("value"); propValueE.setNodeValue(props[i].value); propE.appendChild(propNameE); propE.appendChild(propValueE); localSeismogram.appendChild(propE); } } config.appendChild(localSeismogram); seismogramCache.put(name, seis); logger.debug("added seis now "+getSeismogramNames().length+" seisnogram names."); seismogramNameCache = null; //xpath = new XPathAPI(); //xpath = new CachedXPathAPI(xpath); logger.debug("2 added seis now "+getSeismogramNames().length+" seisnogram names."); }
52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/7695f0a4bb4f8e3b1af1622708066607295ffc34/XMLDataSet.java/clean/src/edu/sc/seis/fissuresUtil/xml/XMLDataSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 1761, 6228, 5553, 12, 2042, 1761, 6228, 5553, 2828, 695, 291, 16, 17311, 12975, 966, 8526, 8215, 13, 288, 202, 307, 6228, 5553, 461, 1649, 273, 446, 31, 3639, 368, 3609, 333, 1552, 486, 444, 326, 619, 1232, 16, 487, 326, 695, 291, 711, 486, 2118, 5198, 25651, 4671, 18, 3639, 4319, 997, 273, 642, 18, 588, 5541, 2519, 5621, 3639, 3010, 1191, 1761, 6228, 5553, 273, 997, 18, 2640, 1046, 2932, 3729, 1761, 6228, 5553, 8863, 759, 2434, 18, 2640, 1046, 2932, 55, 1077, 1761, 6228, 5553, 8863, 202, 3639, 514, 508, 273, 307, 291, 18, 588, 1396, 12, 307, 291, 461, 653, 1769, 3639, 309, 261, 529, 422, 446, 747, 508, 18, 2469, 1435, 422, 374, 13, 288, 202, 565, 508, 273, 695, 291, 18, 4327, 67, 350, 18, 5185, 67, 350, 18, 5185, 67, 710, 9078, 1199, 15, 5411, 695, 291, 18, 4327, 67, 350, 18, 17894, 67, 710, 9078, 1199, 15, 5411, 695, 291, 18, 4327, 67, 350, 18, 4327, 67, 710, 31, 3639, 368, 28049, 18, 481, 291, 18, 42, 1054, 1823, 18, 5185, 18, 2909, 548, 1304, 18, 10492, 2279, 15578, 12, 307, 291, 18, 4327, 67, 350, 1769, 202, 202, 97, 202, 529, 273, 16076, 461, 12, 529, 1769, 202, 307, 291, 18, 542, 461, 12, 529, 1769, 202, 1046, 695, 6228, 5553, 3843, 273, 997, 18, 2640, 1046, 2932, 307, 6228, 5553, 3843, 8863, 202, 4201, 1761, 6228, 5553, 3843, 18, 6387, 12, 307, 6228, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 1761, 6228, 5553, 12, 2042, 1761, 6228, 5553, 2828, 695, 291, 16, 17311, 12975, 966, 8526, 8215, 13, 288, 202, 307, 6228, 5553, 461, 1649, 273, 446, 31, 3639, 368, 3609, 333, 1552, 486, 444, 326, 619, 1232, 16, 487, 326, 695, 291, 711, 486, 2118, 5198, 25651, 4671, 18, 3639, 4319, 997, 273, 642, 18, 588, 5541, 2519, 5621, 3639, 3010, 1191, 1761, 6228, 5553, 273, 997, 18, 2640, 1046, 2932, 3729, 1761, 6228, 5553, 8863, 759, 2434, 18, 2640, 1046, 2932, 55, 1077, 1761, 6228, 5553, 8863, 202, 3639, 514, 508, 273, 307, 291, 18, 588, 1396, 12, 307, 291, 461, 653, 1769, 3639, 309, 261, 529, 422, 446, 747, 508, 18, 2469, 2 ]
try {
try {
public int doEndTag() throws JspException { ServletRequest req = pageContext.getRequest(); ServletResponse res = pageContext.getResponse(); // This will always be true if the page is called through OpenCms if (CmsFlexController.isCmsRequest(req)) { CmsFlexController controller = (CmsFlexController)req.getAttribute(CmsFlexController.ATTRIBUTE_NAME); String target = null; // Try to find out what to do if (m_target != null) { // Option 1: target is set with "page" or "file" parameter target = m_target + getSuffix(); } else if (m_property != null) { // Option 2: target is set with "property" parameter if (DEBUG) { System.err.println("IncludeTag: property=" + m_property); } try { String prop = controller.getCmsObject().readPropertyObject(controller.getCmsObject().getRequestContext().getUri(), m_property, true).getValue(); if (DEBUG) { System.err.println("IncludeTag: property=" + m_property + " is " + prop); } if (prop != null) { target = prop + getSuffix(); } } catch (Exception e) { // target will be null } } else if (m_attribute != null) { // Option 3: target is set in "attribute" parameter try { String attr = (String)req.getAttribute(m_attribute); if (attr != null) { target = attr + getSuffix(); } } catch (Exception e) { // target will be null } } else { // Option 4: target might be set in body String body = null; if (getBodyContent() != null) { body = getBodyContent().getString(); if ((body != null) && (! "".equals(body.trim()))) { // target IS set in body target = body + getSuffix(); } // else target is not set at all, default will be used } } // now perform the include action includeTagAction(pageContext, target, m_element, m_editable, m_parameterMap, req, res); // must call release here manually to make sure m_parameterMap is cleared release(); } return EVAL_PAGE; }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/247b9f9f8ac6897a562e2ae06f80157d6d8a3ece/CmsJspTagInclude.java/buggy/src/org/opencms/jsp/CmsJspTagInclude.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 741, 25633, 1435, 1216, 27485, 288, 7734, 26470, 1111, 273, 21442, 18, 588, 691, 5621, 3639, 7971, 1064, 400, 273, 21442, 18, 588, 1064, 5621, 7734, 368, 1220, 903, 3712, 506, 638, 309, 326, 1363, 353, 2566, 3059, 10319, 540, 309, 261, 4747, 19667, 2933, 18, 291, 4747, 691, 12, 3658, 3719, 288, 5411, 2149, 19667, 2933, 2596, 273, 261, 4747, 19667, 2933, 13, 3658, 18, 588, 1499, 12, 4747, 19667, 2933, 18, 11616, 67, 1985, 1769, 2398, 514, 1018, 273, 446, 31, 4766, 9079, 368, 6161, 358, 1104, 596, 4121, 358, 741, 5411, 309, 261, 81, 67, 3299, 480, 446, 13, 288, 7734, 368, 2698, 404, 30, 1018, 353, 444, 598, 315, 2433, 6, 578, 315, 768, 6, 1569, 7734, 1018, 273, 312, 67, 3299, 397, 1322, 2609, 5621, 5411, 289, 469, 309, 261, 81, 67, 4468, 480, 446, 13, 288, 18701, 368, 2698, 576, 30, 1018, 353, 444, 598, 315, 4468, 6, 1569, 7734, 309, 261, 9394, 13, 288, 10792, 2332, 18, 370, 18, 8222, 2932, 8752, 1805, 30, 1272, 1546, 397, 312, 67, 4468, 1769, 7734, 289, 7734, 775, 288, 5397, 514, 2270, 273, 2596, 18, 588, 4747, 921, 7675, 896, 1396, 921, 12, 5723, 18, 588, 4747, 921, 7675, 588, 21426, 7675, 588, 3006, 9334, 312, 67, 4468, 16, 638, 2934, 24805, 5621, 10792, 309, 261, 9394, 13, 288, 13491, 2332, 18, 370, 18, 8222, 2932, 8752, 1805, 30, 1272, 1546, 397, 312, 67, 4468, 397, 315, 353, 315, 397, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 741, 25633, 1435, 1216, 27485, 288, 7734, 26470, 1111, 273, 21442, 18, 588, 691, 5621, 3639, 7971, 1064, 400, 273, 21442, 18, 588, 1064, 5621, 7734, 368, 1220, 903, 3712, 506, 638, 309, 326, 1363, 353, 2566, 3059, 10319, 540, 309, 261, 4747, 19667, 2933, 18, 291, 4747, 691, 12, 3658, 3719, 288, 5411, 2149, 19667, 2933, 2596, 273, 261, 4747, 19667, 2933, 13, 3658, 18, 588, 1499, 12, 4747, 19667, 2933, 18, 11616, 67, 1985, 1769, 2398, 514, 1018, 273, 446, 31, 4766, 9079, 368, 6161, 358, 1104, 596, 4121, 358, 741, 5411, 309, 261, 81, 67, 3299, 480, 446, 13, 288, 7734, 368, 2698, 404, 30, 1018, 353, 444, 598, 315, 2433, 6, 578, 2 ]
private File findJar() { Class thisClass = getClass(); String resource = thisClass.getName().replace('.', '/') + ".class"; URL url = thisClass.getClassLoader().getResource(resource); if(null != url) { String u = url.toString(); if(u.startsWith("jar:file:")) { int pling = u.indexOf("!"); String jarName = u.substring(4, pling); return new File(fromURI(jarName)); } else if(u.startsWith("file:")) { int tail = u.indexOf(resource); String dirName = u.substring(0, tail); return new File(fromURI(dirName)); } } return null; }
48015 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48015/75c0741cfb0fc75ef79c70ec78da0a1cd8144089/TestNGAntTask.java/buggy/src/main/org/testng/TestNGAntTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1387, 1104, 10813, 1435, 288, 565, 1659, 225, 333, 797, 273, 2900, 5621, 565, 514, 1058, 273, 333, 797, 18, 17994, 7675, 2079, 2668, 1093, 16, 2023, 13, 397, 3552, 1106, 14432, 565, 1976, 880, 273, 333, 797, 18, 588, 7805, 7675, 588, 1420, 12, 3146, 1769, 565, 309, 12, 2011, 480, 880, 13, 288, 1377, 514, 582, 273, 880, 18, 10492, 5621, 1377, 309, 12, 89, 18, 17514, 1190, 2932, 11930, 30, 768, 2773, 3719, 288, 3639, 509, 565, 886, 310, 273, 582, 18, 31806, 2932, 4442, 1769, 3639, 514, 7334, 461, 273, 582, 18, 28023, 12, 24, 16, 886, 310, 1769, 3639, 327, 394, 1387, 12, 2080, 3098, 12, 11930, 461, 10019, 1377, 289, 1377, 469, 309, 12, 89, 18, 17514, 1190, 2932, 768, 2773, 3719, 288, 3639, 509, 565, 5798, 273, 582, 18, 31806, 12, 3146, 1769, 3639, 514, 20878, 273, 582, 18, 28023, 12, 20, 16, 5798, 1769, 3639, 327, 394, 1387, 12, 2080, 3098, 12, 1214, 461, 10019, 1377, 289, 565, 289, 3639, 327, 446, 31, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3238, 1387, 1104, 10813, 1435, 288, 565, 1659, 225, 333, 797, 273, 2900, 5621, 565, 514, 1058, 273, 333, 797, 18, 17994, 7675, 2079, 2668, 1093, 16, 2023, 13, 397, 3552, 1106, 14432, 565, 1976, 880, 273, 333, 797, 18, 588, 7805, 7675, 588, 1420, 12, 3146, 1769, 565, 309, 12, 2011, 480, 880, 13, 288, 1377, 514, 582, 273, 880, 18, 10492, 5621, 1377, 309, 12, 89, 18, 17514, 1190, 2932, 11930, 30, 768, 2773, 3719, 288, 3639, 509, 565, 886, 310, 273, 582, 18, 31806, 2932, 4442, 1769, 3639, 514, 7334, 461, 273, 582, 18, 28023, 12, 24, 16, 886, 310, 1769, 3639, 327, 394, 1387, 12, 2080, 3098, 12, 11930, 461, 10019, 1377, 289, 1377, 2 ]
ViaHeader viaHeader = headerFactory .createViaHeader( srcProvider.getSipStack().getIPAddress(), srcProvider.getListeningPoint().getPort(), srcProvider.getListeningPoint().getTransport(), "z9hG4bK" + Long.toString(System.currentTimeMillis()) );
ViaHeader viaHeader = headerFactory.createViaHeader(srclp .getIPAddress(), srclp.getPort(), srclp.getTransport(), "z9hG4bK" + Long.toString(System.currentTimeMillis()) );
protected Request createRequest( String method, AddressFactory addressFactory, HeaderFactory headerFactory, MessageFactory messageFactory, SipProvider srcProvider, SipProvider dstProvider, String contentType, String contentSubType, Object content) throws Exception { //Source SipUri SipURI srcSipURI = addressFactory.createSipURI( null, srcProvider.getSipStack().getIPAddress()); srcSipURI.setPort(srcProvider.getListeningPoint().getPort()); srcSipURI.setTransportParam( srcProvider.getListeningPoint().getTransport()); //Destination SipURI SipURI dstSipURI = addressFactory.createSipURI( null, dstProvider.getSipStack().getIPAddress()); dstSipURI.setPort(dstProvider.getListeningPoint().getPort()); dstSipURI.setTransportParam( dstProvider.getListeningPoint().getTransport()); //CallId CallIdHeader callId = srcProvider.getNewCallId(); //CSeq CSeqHeader cSeq = headerFactory.createCSeqHeader(1, method); //From Address fromAddress = addressFactory.createAddress(srcSipURI); FromHeader from = headerFactory.createFromHeader( fromAddress, Integer.toString(srcProvider.hashCode())); //To Address toAddress = addressFactory.createAddress(dstSipURI); ToHeader to = headerFactory.createToHeader(toAddress, null); //Contact ContactHeader contact = headerFactory.createContactHeader(fromAddress); List via = new LinkedList(); ViaHeader viaHeader = headerFactory .createViaHeader( srcProvider.getSipStack().getIPAddress(), srcProvider.getListeningPoint().getPort(), srcProvider.getListeningPoint().getTransport(), // BUG: Use proper RFC3261 branch ID "z9hG4bK" + Long.toString(System.currentTimeMillis()) //branch id ); via.add(viaHeader); MaxForwardsHeader maxForwards = headerFactory.createMaxForwardsHeader(3); Request request = messageFactory.createRequest( dstSipURI, method, callId, cSeq, from, to, via, maxForwards); request.addHeader(contact); if (contentType != null && contentSubType != null && content != null) { ContentTypeHeader contentTypeHdr = headerFactory.createContentTypeHeader( contentType, contentSubType); request.setContent(content, contentTypeHdr); } //pass the headerFactory - issue17 by larryb@dev.java.net addStatus(headerFactory, request); return request; }
3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/68c0ca844a7d5fe4a7744cbf9898184966ce0680/MessageFlowHarness.java/clean/src/test/tck/msgflow/MessageFlowHarness.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1567, 15798, 12, 202, 202, 780, 707, 16, 202, 202, 1887, 1733, 1758, 1733, 16, 202, 202, 1864, 1733, 1446, 1733, 16, 202, 202, 1079, 1733, 883, 1733, 16, 202, 202, 17550, 2249, 1705, 2249, 16, 202, 202, 17550, 2249, 3046, 2249, 16, 202, 202, 780, 5064, 16, 202, 202, 780, 913, 30511, 16, 202, 202, 921, 913, 13, 202, 202, 15069, 1185, 288, 202, 202, 759, 1830, 13475, 3006, 202, 202, 17550, 3098, 1705, 17550, 3098, 273, 1082, 202, 2867, 1733, 18, 2640, 17550, 3098, 12, 9506, 202, 2011, 16, 9506, 202, 4816, 2249, 18, 588, 17550, 2624, 7675, 588, 22507, 10663, 202, 202, 4816, 17550, 3098, 18, 542, 2617, 12, 4816, 2249, 18, 588, 31594, 2148, 7675, 588, 2617, 10663, 202, 202, 4816, 17550, 3098, 18, 542, 6568, 786, 12, 1082, 202, 4816, 2249, 18, 588, 31594, 2148, 7675, 588, 6568, 10663, 202, 202, 759, 5683, 13475, 3098, 202, 202, 17550, 3098, 3046, 17550, 3098, 273, 1082, 202, 2867, 1733, 18, 2640, 17550, 3098, 12, 9506, 202, 2011, 16, 9506, 202, 11057, 2249, 18, 588, 17550, 2624, 7675, 588, 22507, 10663, 202, 202, 11057, 17550, 3098, 18, 542, 2617, 12, 11057, 2249, 18, 588, 31594, 2148, 7675, 588, 2617, 10663, 202, 202, 11057, 17550, 3098, 18, 542, 6568, 786, 12, 1082, 202, 11057, 2249, 18, 588, 31594, 2148, 7675, 588, 6568, 10663, 202, 202, 759, 1477, 548, 202, 202, 1477, 548, 1864, 745, 548, 273, 1705, 2249, 18, 588, 1908, 1477, 548, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1567, 15798, 12, 202, 202, 780, 707, 16, 202, 202, 1887, 1733, 1758, 1733, 16, 202, 202, 1864, 1733, 1446, 1733, 16, 202, 202, 1079, 1733, 883, 1733, 16, 202, 202, 17550, 2249, 1705, 2249, 16, 202, 202, 17550, 2249, 3046, 2249, 16, 202, 202, 780, 5064, 16, 202, 202, 780, 913, 30511, 16, 202, 202, 921, 913, 13, 202, 202, 15069, 1185, 288, 202, 202, 759, 1830, 13475, 3006, 202, 202, 17550, 3098, 1705, 17550, 3098, 273, 1082, 202, 2867, 1733, 18, 2640, 17550, 3098, 12, 9506, 202, 2011, 16, 9506, 202, 4816, 2249, 18, 588, 17550, 2624, 7675, 588, 22507, 10663, 202, 202, 4816, 17550, 3098, 18, 542, 2617, 12, 4816, 2249, 18, 588, 2 ]
&& (getClassdiagramNode(i).getRank() > _maxPackageRank)) { _maxPackageRank = getClassdiagramNode(i).getRank();
&& (getClassdiagramNode(i).getRank() > maxPackageRank)) { maxPackageRank = getClassdiagramNode(i).getRank();
private void rankPackagesAndMoveClassesBelow() { // For now, all packages go above the classes and // interfaces int currentColumnPosition = 0; // The number of elements in the current row int currentRow = 0; for (int i = 0; i < _layoutedClassNodes.size(); i++) { ClassdiagramNode node = getClassdiagramNode(i); if (node.isPackage()) { if (currentColumnPosition <= _vMax) { // If there are not too many elements in the current Row node.setRank(currentRow); currentColumnPosition++; } else { node.setRank(++currentRow); currentColumnPosition = 0; } } } // Find the maximum rank of the packages, and move // the classes below the packages for (int i = 0; i < _layoutedClassNodes.size(); i++) { if (getClassdiagramNode(i).isPackage() && (getClassdiagramNode(i).getRank() > _maxPackageRank)) { _maxPackageRank = getClassdiagramNode(i).getRank(); } } _maxPackageRank++; // Move the classes down below the rows containing // the packages. for (int i = 0; i < _layoutedClassNodes.size(); i++) { if (!getClassdiagramNode(i).isPackage()) getClassdiagramNode(i).addRank(_maxPackageRank); } }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/56eeb0d4d18fb3e553e32d15e2c45dccd76eb958/ClassdiagramLayouter.java/clean/src_new/org/argouml/uml/diagram/static_structure/layout/ClassdiagramLayouter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 6171, 11425, 1876, 7607, 4818, 28730, 1435, 288, 3639, 368, 2457, 2037, 16, 777, 5907, 1960, 5721, 326, 3318, 471, 3639, 368, 7349, 3639, 509, 783, 1494, 2555, 273, 374, 31, 3639, 368, 1021, 1300, 434, 2186, 316, 326, 783, 1027, 3639, 509, 31185, 273, 374, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 389, 6741, 329, 797, 3205, 18, 1467, 5621, 277, 27245, 288, 5411, 1659, 12264, 1940, 907, 756, 273, 2900, 12264, 1940, 907, 12, 77, 1769, 13491, 309, 261, 2159, 18, 291, 2261, 10756, 288, 7734, 309, 261, 2972, 1494, 2555, 1648, 389, 90, 2747, 13, 288, 10792, 368, 971, 1915, 854, 486, 4885, 4906, 2186, 316, 326, 783, 6556, 10792, 756, 18, 542, 12925, 12, 2972, 1999, 1769, 10792, 783, 1494, 2555, 9904, 31, 7734, 289, 469, 288, 10792, 756, 18, 542, 12925, 12, 9904, 2972, 1999, 1769, 10792, 783, 1494, 2555, 273, 374, 31, 7734, 289, 5411, 289, 3639, 289, 7734, 368, 4163, 326, 4207, 6171, 434, 326, 5907, 16, 471, 3635, 3639, 368, 326, 3318, 5712, 326, 5907, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 389, 6741, 329, 797, 3205, 18, 1467, 5621, 277, 27245, 288, 5411, 309, 261, 588, 797, 12264, 1940, 907, 12, 77, 2934, 291, 2261, 1435, 202, 202, 10, 10, 261, 588, 797, 12264, 1940, 907, 12, 77, 2934, 588, 12925, 1435, 405, 389, 1896, 2261, 12925, 3719, 288, 7734, 389, 1896, 2261, 12925, 273, 2900, 12264, 1940, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6171, 11425, 1876, 7607, 4818, 28730, 1435, 288, 3639, 368, 2457, 2037, 16, 777, 5907, 1960, 5721, 326, 3318, 471, 3639, 368, 7349, 3639, 509, 783, 1494, 2555, 273, 374, 31, 3639, 368, 1021, 1300, 434, 2186, 316, 326, 783, 1027, 3639, 509, 31185, 273, 374, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 389, 6741, 329, 797, 3205, 18, 1467, 5621, 277, 27245, 288, 5411, 1659, 12264, 1940, 907, 756, 273, 2900, 12264, 1940, 907, 12, 77, 1769, 13491, 309, 261, 2159, 18, 291, 2261, 10756, 288, 7734, 309, 261, 2972, 1494, 2555, 1648, 389, 90, 2747, 13, 288, 10792, 368, 971, 1915, 854, 486, 4885, 4906, 2186, 316, 326, 783, 6556, 2 ]
int priority = redundantBranch.redundantNullCheck ? LOW_PRIORITY : NORMAL_PRIORITY;
boolean redundantNullCheck = redundantBranch.redundantNullCheck; String type = redundantNullCheck ? "RCN_REDUNDANT_CHECKED_NULL_COMPARISION" : "RCN_REDUNDANT_COMPARISON_TO_NULL"; int priority = redundantNullCheck ? LOW_PRIORITY : NORMAL_PRIORITY;
private void reportRedundantNullCheck(ClassContext classContext, Method method, InstructionHandle handle, RedundantBranch redundantBranch) { String sourceFile = classContext.getJavaClass().getSourceFileName(); MethodGen methodGen = classContext.getMethodGen(method); int priority = redundantBranch.redundantNullCheck ? LOW_PRIORITY : NORMAL_PRIORITY; bugReporter.reportBug(new BugInstance("RCN_REDUNDANT_COMPARISON_TO_NULL", priority) .addClassAndMethod(methodGen, sourceFile) .addSourceLine(methodGen, sourceFile, handle)); }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/fe5ffb9460e707d816183a42829c91b5630faf8e/FindNullDeref.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/FindNullDeref.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2605, 3715, 15362, 2041, 1564, 12, 797, 1042, 667, 1042, 16, 2985, 707, 16, 24605, 3259, 1640, 16, 202, 202, 3715, 15362, 7108, 19530, 7108, 13, 288, 202, 202, 780, 16338, 273, 667, 1042, 18, 588, 5852, 797, 7675, 588, 1830, 4771, 5621, 202, 202, 1305, 7642, 707, 7642, 273, 667, 1042, 18, 588, 1305, 7642, 12, 2039, 1769, 202, 202, 474, 4394, 273, 19530, 7108, 18, 1118, 15362, 2041, 1564, 692, 1806, 59, 67, 19804, 294, 16362, 67, 19804, 31, 202, 202, 925, 13289, 18, 6006, 19865, 12, 2704, 16907, 1442, 2932, 11529, 50, 67, 5879, 5240, 6856, 67, 4208, 2778, 45, 1413, 67, 4296, 67, 8560, 3113, 4394, 13, 1082, 202, 18, 1289, 797, 1876, 1305, 12, 2039, 7642, 16, 16338, 13, 1082, 202, 18, 1289, 1830, 1670, 12, 2039, 7642, 16, 16338, 16, 1640, 10019, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1152, 918, 2605, 3715, 15362, 2041, 1564, 12, 797, 1042, 667, 1042, 16, 2985, 707, 16, 24605, 3259, 1640, 16, 202, 202, 3715, 15362, 7108, 19530, 7108, 13, 288, 202, 202, 780, 16338, 273, 667, 1042, 18, 588, 5852, 797, 7675, 588, 1830, 4771, 5621, 202, 202, 1305, 7642, 707, 7642, 273, 667, 1042, 18, 588, 1305, 7642, 12, 2039, 1769, 202, 202, 474, 4394, 273, 19530, 7108, 18, 1118, 15362, 2041, 1564, 692, 1806, 59, 67, 19804, 294, 16362, 67, 19804, 31, 202, 202, 925, 13289, 18, 6006, 19865, 12, 2704, 16907, 1442, 2932, 11529, 50, 67, 5879, 5240, 6856, 67, 4208, 2778, 45, 1413, 67, 4296, 67, 8560, 3113, 4394, 13, 1082, 202, 18, 1289, 2 ]
MylarTaskListPlugin.getTaskListManager().getTaskList().addTask(newTask);
public boolean performFinish() { super.performFinish(); String bugIdString = this.getId(); int bugId = -1; boolean validId = false; try { if (bugIdString != null) { bugId = Integer.parseInt(bugIdString); validId = true; } } catch (NumberFormatException nfe) { // ignore } if (!validId) { MessageDialog.openError(null, IBugzillaConstants.TITLE_MESSAGE_DIALOG, "Could not create bug id, no valid id"); return false; } BugzillaTask newTask = new BugzillaTask(AbstractRepositoryTask.getHandle(repository.getUrl(), bugId), "<bugzilla info>", true); Object selectedObject = null; if (TaskListView.getDefault() != null) selectedObject = ((IStructuredSelection) TaskListView.getDefault().getViewer().getSelection()) .getFirstElement(); MylarTaskListPlugin.getTaskListManager().getTaskList().addTask(newTask); if (selectedObject instanceof TaskCategory) { MylarTaskListPlugin.getTaskListManager().getTaskList().moveToCategory(((TaskCategory) selectedObject), newTask); } else { MylarTaskListPlugin.getTaskListManager().getTaskList().moveToRoot(newTask); } AbstractRepositoryConnector client = MylarTaskListPlugin.getRepositoryManager().getRepositoryConnector(BugzillaPlugin.REPOSITORY_KIND);// client.addTaskToArchive(newTask); TaskListUiUtil.openEditor(newTask); if (!newTask.isDownloaded()) { client.synchronize(newTask, true, null); } return true; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/94c21edbc39556b8dc174332efba8474912627bb/NewBugzillaReportWizard.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/NewBugzillaReportWizard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 3073, 11641, 1435, 288, 202, 202, 9565, 18, 16092, 11641, 5621, 202, 202, 780, 7934, 548, 780, 273, 333, 18, 26321, 5621, 202, 202, 474, 7934, 548, 273, 300, 21, 31, 202, 202, 6494, 923, 548, 273, 629, 31, 202, 202, 698, 288, 1082, 202, 430, 261, 925, 548, 780, 480, 446, 13, 288, 9506, 202, 925, 548, 273, 2144, 18, 2670, 1702, 12, 925, 548, 780, 1769, 9506, 202, 877, 548, 273, 638, 31, 1082, 202, 97, 3196, 202, 97, 1044, 261, 1854, 9291, 25386, 13, 288, 1082, 202, 759, 2305, 202, 202, 97, 202, 202, 430, 16051, 877, 548, 13, 288, 1082, 202, 1079, 6353, 18, 3190, 668, 12, 2011, 16, 467, 19865, 15990, 2918, 18, 14123, 67, 8723, 67, 2565, 18683, 16, 4405, 202, 6, 4445, 486, 752, 7934, 612, 16, 1158, 923, 612, 8863, 1082, 202, 2463, 629, 31, 202, 202, 97, 3196, 202, 19865, 15990, 2174, 394, 2174, 273, 394, 16907, 15990, 2174, 12, 7469, 3305, 2174, 18, 588, 3259, 12, 9071, 18, 588, 1489, 9334, 9506, 202, 925, 548, 3631, 3532, 925, 15990, 1123, 2984, 16, 638, 1769, 202, 202, 921, 3170, 921, 273, 446, 31, 202, 202, 430, 261, 2174, 682, 1767, 18, 588, 1868, 1435, 480, 446, 13, 1082, 202, 8109, 921, 273, 14015, 45, 30733, 6233, 13, 3837, 682, 1767, 18, 588, 1868, 7675, 588, 18415, 7675, 588, 6233, 10756, 6862, 202, 18, 588, 3759, 1046, 5621, 202, 202, 12062, 7901, 2174, 682, 3773, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3073, 11641, 1435, 288, 202, 202, 9565, 18, 16092, 11641, 5621, 202, 202, 780, 7934, 548, 780, 273, 333, 18, 26321, 5621, 202, 202, 474, 7934, 548, 273, 300, 21, 31, 202, 202, 6494, 923, 548, 273, 629, 31, 202, 202, 698, 288, 1082, 202, 430, 261, 925, 548, 780, 480, 446, 13, 288, 9506, 202, 925, 548, 273, 2144, 18, 2670, 1702, 12, 925, 548, 780, 1769, 9506, 202, 877, 548, 273, 638, 31, 1082, 202, 97, 3196, 202, 97, 1044, 261, 1854, 9291, 25386, 13, 288, 1082, 202, 759, 2305, 202, 202, 97, 202, 202, 430, 16051, 877, 548, 13, 288, 1082, 202, 1079, 6353, 18, 3190, 668, 12, 2011, 16, 467, 19865, 2 ]
protected Node getNextNode (Node node) {
protected Node getNextNode (Node n) {
public Iterator getParentAxisIterator (Object contextNode) { Node node = (Node)contextNode; if (node.getNodeType() == Node.ATTRIBUTE_NODE) { return new NodeIterator (node) { protected Node getFirstNode (Node node) { // FIXME: assumes castability. return ((Attr)node).getOwnerElement(); } protected Node getNextNode (Node node) { return null; } }; } else { return new NodeIterator (node) { protected Node getFirstNode (Node node) { return node.getParentNode(); } protected Node getNextNode (Node node) { return null; } }; } }
47110 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47110/460fb420f492314a410994b92cfc3b23c32d9c13/DocumentNavigator.java/buggy/jaxen/src/java/main/org/jaxen/dom/DocumentNavigator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4498, 5089, 6558, 3198, 261, 921, 819, 907, 13, 565, 288, 3639, 2029, 756, 273, 261, 907, 13, 2472, 907, 31, 3639, 309, 261, 2159, 18, 588, 15101, 1435, 422, 2029, 18, 11616, 67, 8744, 13, 288, 5411, 327, 394, 2029, 3198, 261, 2159, 13, 288, 10792, 4750, 2029, 7521, 907, 261, 907, 756, 13, 10792, 288, 13491, 368, 9852, 30, 13041, 4812, 2967, 18, 13491, 327, 14015, 3843, 13, 2159, 2934, 588, 5541, 1046, 5621, 10792, 289, 10792, 4750, 2029, 6927, 907, 261, 907, 290, 13, 288, 13491, 327, 446, 31, 10792, 289, 7734, 289, 31, 3639, 289, 469, 288, 5411, 327, 394, 2029, 3198, 261, 2159, 13, 288, 10792, 4750, 2029, 7521, 907, 261, 907, 756, 13, 10792, 288, 13491, 327, 756, 18, 588, 3054, 907, 5621, 10792, 289, 10792, 4750, 2029, 6927, 907, 261, 907, 290, 13, 288, 13491, 327, 446, 31, 10792, 289, 7734, 289, 31, 3639, 289, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4498, 5089, 6558, 3198, 261, 921, 819, 907, 13, 565, 288, 3639, 2029, 756, 273, 261, 907, 13, 2472, 907, 31, 3639, 309, 261, 2159, 18, 588, 15101, 1435, 422, 2029, 18, 11616, 67, 8744, 13, 288, 5411, 327, 394, 2029, 3198, 261, 2159, 13, 288, 10792, 4750, 2029, 7521, 907, 261, 907, 756, 13, 10792, 288, 13491, 368, 9852, 30, 13041, 4812, 2967, 18, 13491, 327, 14015, 3843, 13, 2159, 2934, 588, 5541, 1046, 5621, 10792, 289, 10792, 4750, 2029, 6927, 907, 261, 907, 290, 13, 288, 13491, 327, 446, 31, 10792, 289, 7734, 289, 31, 3639, 289, 469, 288, 5411, 327, 394, 2029, 3198, 261, 2159, 13, 288, 10792, 4750, 2029, 7521, 907, 261, 907, 2 ]
final URL url = classLoader.getResource( resource ); if( null == url )
final InputStream inputStream = classLoader.getResourceAsStream( resource ); if( null == inputStream )
static InputSource getSchemaInputSource( final String resource, final ClassLoader classLoader ) { final URL url = classLoader.getResource( resource ); if( null == url ) { return null; } final InputStream inputStream = classLoader.getResourceAsStream( resource ); final InputSource inputSource = new InputSource( inputStream ); inputSource.setSystemId( url.toExternalForm() ); return inputSource; }
2797 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2797/4d23a8a350542da14370f51ccbf7f52cf21e4998/ComponentConfigUtil.java/clean/spice/components/configkit/src/java/org/realityforge/configkit/ComponentConfigUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 23699, 11088, 1210, 1830, 12, 727, 514, 1058, 16, 4766, 2398, 727, 9403, 11138, 262, 565, 288, 3639, 727, 1976, 880, 273, 11138, 18, 588, 1420, 12, 1058, 11272, 3639, 309, 12, 446, 422, 880, 262, 3639, 288, 5411, 327, 446, 31, 3639, 289, 3639, 727, 5037, 10010, 273, 11138, 18, 588, 1420, 17052, 12, 1058, 11272, 3639, 727, 23699, 810, 1830, 273, 394, 23699, 12, 10010, 11272, 3639, 810, 1830, 18, 542, 3163, 548, 12, 880, 18, 869, 6841, 1204, 1435, 11272, 3639, 327, 810, 1830, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 760, 23699, 11088, 1210, 1830, 12, 727, 514, 1058, 16, 4766, 2398, 727, 9403, 11138, 262, 565, 288, 3639, 727, 1976, 880, 273, 11138, 18, 588, 1420, 12, 1058, 11272, 3639, 309, 12, 446, 422, 880, 262, 3639, 288, 5411, 327, 446, 31, 3639, 289, 3639, 727, 5037, 10010, 273, 11138, 18, 588, 1420, 17052, 12, 1058, 11272, 3639, 727, 23699, 810, 1830, 273, 394, 23699, 12, 10010, 11272, 3639, 810, 1830, 18, 542, 3163, 548, 12, 880, 18, 869, 6841, 1204, 1435, 11272, 3639, 327, 810, 1830, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Token xsp; xsp = jj_scanpos; if (jj_3R_335()) { jj_scanpos = xsp; if (jj_3R_336()) { jj_scanpos = xsp; if (jj_3R_337()) { jj_scanpos = xsp; if (jj_3R_338()) { jj_scanpos = xsp; if (jj_3R_339()) { jj_scanpos = xsp; if (jj_3R_340()) { jj_scanpos = xsp; if (jj_3R_341()) return true;
if (jj_scan_token(SEMICOLON)) return true;
final private boolean jj_3R_292() { Token xsp; xsp = jj_scanpos; if (jj_3R_335()) { jj_scanpos = xsp; if (jj_3R_336()) { jj_scanpos = xsp; if (jj_3R_337()) { jj_scanpos = xsp; if (jj_3R_338()) { jj_scanpos = xsp; if (jj_3R_339()) { jj_scanpos = xsp; if (jj_3R_340()) { jj_scanpos = xsp; if (jj_3R_341()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/050f1d327a4f37a9453fd61c6eb891b6097d82f6/JavaParser.java/buggy/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, 5540, 22, 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, 3707, 25, 10756, 288, 565, 10684, 67, 9871, 917, 273, 619, 1752, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 3707, 26, 10756, 288, 565, 10684, 67, 9871, 917, 273, 619, 1752, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 3707, 27, 10756, 288, 565, 10684, 67, 9871, 917, 273, 619, 1752, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 3707, 28, 10756, 288, 565, 10684, 67, 9871, 917, 273, 619, 1752, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 3707, 29, 10756, 288, 565, 10684, 67, 9871, 917, 273, 619, 1752, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 5026, 20, 10756, 288, 565, 10684, 67, 9871, 917, 273, 619, 1752, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 5026, 21, 10756, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67, 9871, 917, 422, 10684, 67, 2722, 917, 13, 327, 629, 31, 565, 289, 469, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67, 9871, 917, 422, 10684, 67, 2722, 917, 13, 327, 629, 31, 565, 289, 469, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67, 9871, 917, 422, 10684, 67, 2722, 917, 13, 327, 629, 31, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5540, 22, 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, 3707, 25, 10756, 288, 565, 10684, 67, 9871, 917, 273, 619, 1752, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 3707, 26, 10756, 288, 565, 10684, 67, 9871, 917, 273, 619, 1752, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 3707, 27, 10756, 288, 565, 10684, 67, 9871, 917, 273, 619, 1752, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 3707, 28, 10756, 288, 565, 10684, 67, 9871, 917, 273, 619, 1752, 31, 565, 309, 261, 78, 2 ]
_t = __t763;
_t = __t767;
public final void columnformat(AST _t) throws RecognitionException { AST columnformat_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t747 = _t; AST tmp2126_AST_in = (AST)_t; match(_t,Format_phrase); _t = _t.getFirstChild(); { int _cnt764=0; _loop764: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FORMAT: { AST __t749 = _t; AST tmp2127_AST_in = (AST)_t; match(_t,FORMAT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t749; _t = _t.getNextSibling(); break; } case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case NOLABELS: { AST tmp2128_AST_in = (AST)_t; match(_t,NOLABELS); _t = _t.getNextSibling(); break; } case COLUMNFONT: { AST __t750 = _t; AST tmp2129_AST_in = (AST)_t; match(_t,COLUMNFONT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t750; _t = _t.getNextSibling(); break; } case COLUMNDCOLOR: { AST __t751 = _t; AST tmp2130_AST_in = (AST)_t; match(_t,COLUMNDCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t751; _t = _t.getNextSibling(); break; } case COLUMNBGCOLOR: { AST __t752 = _t; AST tmp2131_AST_in = (AST)_t; match(_t,COLUMNBGCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t752; _t = _t.getNextSibling(); break; } case COLUMNFGCOLOR: { AST __t753 = _t; AST tmp2132_AST_in = (AST)_t; match(_t,COLUMNFGCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t753; _t = _t.getNextSibling(); break; } case COLUMNPFCOLOR: { AST __t754 = _t; AST tmp2133_AST_in = (AST)_t; match(_t,COLUMNPFCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t754; _t = _t.getNextSibling(); break; } case LABELFONT: { AST __t755 = _t; AST tmp2134_AST_in = (AST)_t; match(_t,LABELFONT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t755; _t = _t.getNextSibling(); break; } case LABELDCOLOR: { AST __t756 = _t; AST tmp2135_AST_in = (AST)_t; match(_t,LABELDCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t756; _t = _t.getNextSibling(); break; } case LABELBGCOLOR: { AST __t757 = _t; AST tmp2136_AST_in = (AST)_t; match(_t,LABELBGCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t757; _t = _t.getNextSibling(); break; } case LABELFGCOLOR: { AST __t758 = _t; AST tmp2137_AST_in = (AST)_t; match(_t,LABELFGCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t758; _t = _t.getNextSibling(); break; } case LEXAT: { AST __t759 = _t; AST tmp2138_AST_in = (AST)_t; match(_t,LEXAT); _t = _t.getFirstChild(); field(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Format_phrase: { columnformat(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t759; _t = _t.getNextSibling(); break; } case WIDTH: { AST __t761 = _t; AST tmp2139_AST_in = (AST)_t; match(_t,WIDTH); _t = _t.getFirstChild(); AST tmp2140_AST_in = (AST)_t; match(_t,NUMBER); _t = _t.getNextSibling(); _t = __t761; _t = _t.getNextSibling(); break; } case WIDTHPIXELS: { AST __t762 = _t; AST tmp2141_AST_in = (AST)_t; match(_t,WIDTHPIXELS); _t = _t.getFirstChild(); AST tmp2142_AST_in = (AST)_t; match(_t,NUMBER); _t = _t.getNextSibling(); _t = __t762; _t = _t.getNextSibling(); break; } case WIDTHCHARS: { AST __t763 = _t; AST tmp2143_AST_in = (AST)_t; match(_t,WIDTHCHARS); _t = _t.getFirstChild(); AST tmp2144_AST_in = (AST)_t; match(_t,NUMBER); _t = _t.getNextSibling(); _t = __t763; _t = _t.getNextSibling(); break; } default: { if ( _cnt764>=1 ) { break _loop764; } else {throw new NoViableAltException(_t);} } } _cnt764++; } while (true); } _t = __t747; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser03.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1057, 2139, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1057, 2139, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 5608, 27, 273, 389, 88, 31, 202, 202, 9053, 1853, 22, 25452, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 1630, 67, 9429, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 95, 202, 202, 474, 389, 13085, 27, 1105, 33, 20, 31, 202, 202, 67, 6498, 27, 1105, 30, 202, 202, 2896, 288, 1082, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 1082, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 1082, 202, 3593, 10449, 30, 1082, 202, 95, 9506, 202, 9053, 1001, 88, 5608, 29, 273, 389, 88, 31, 9506, 202, 9053, 1853, 22, 14260, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 9506, 202, 1916, 24899, 88, 16, 7254, 1769, 9506, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 9506, 202, 8692, 24899, 88, 1769, 9506, 202, 67, 88, 273, 389, 1349, 2471, 31, 9506, 202, 67, 88, 273, 1001, 88, 5608, 29, 31, 9506, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 9506, 202, 8820, 31, 1082, 202, 97, 1082, 202, 3593, 13473, 13545, 30, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1057, 2139, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1057, 2139, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 5608, 27, 273, 389, 88, 31, 202, 202, 9053, 1853, 22, 25452, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 1630, 67, 9429, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 95, 202, 202, 474, 389, 13085, 27, 1105, 33, 20, 31, 202, 202, 67, 6498, 27, 1105, 30, 202, 202, 2896, 288, 1082, 202, 430, 261, 2 ]
tableName = tableName.toUpperCase();
tableName = tableName.toUpperCase(Locale.US);
public void initialize() throws Exception { getLogger().debug( this.getClass().getName() + ".initialize()"); // Get the data-source required. m_datasource = (DataSourceComponent)m_datasources.select(m_datasourceName); // Test the connection to the database, by getting the DatabaseMetaData. Connection conn = openConnection(); try{ DatabaseMetaData dbMetaData = conn.getMetaData(); // Initialise the sql strings. String fileName = m_sqlFileName.substring("file://".length()); if (!(fileName.startsWith("/"))) { fileName = ((BlockContext)context).getBaseDirectory() + File.separator + fileName; } File sqlFile = (new File(fileName)).getCanonicalFile(); getLogger().debug("Reading SQL resources from file: " + sqlFile.getAbsolutePath() + ", section " + this.getClass().getName() + "."); SqlResources sqlStatements = new SqlResources(); sqlStatements.init(sqlFile, this.getClass().getName(), conn, m_sqlParameters); // Create the SQL Strings to use for this table. // Fetches all Users from the db. m_getUsersSql = sqlStatements.getSqlString("select", true); // Get a user by lowercase name. (optional) // If not provided, the entire list is iterated to find a user. m_userByNameCaseInsensitiveSql = sqlStatements.getSqlString("selectByLowercaseName"); // Insert, update and delete are not guaranteed to be case-insensitive // Will always be called with correct case in username.. m_insertUserSql = sqlStatements.getSqlString("insert", true); m_updateUserSql = sqlStatements.getSqlString("update", true); m_deleteUserSql = sqlStatements.getSqlString("delete", true); // Creates a single table with "username" the Primary Key. m_createUserTableSql = sqlStatements.getSqlString("createTable", true); // Check if the required table exists. If not, create it. // The table name is defined in the SqlResources. String tableName = sqlStatements.getSqlString("tableName", true); // Need to ask in the case that identifiers are stored, ask the DatabaseMetaInfo. // NB this should work, but some drivers (eg mm MySQL) // don't return the right details, hence the hackery below. /* String tableName = m_tableName; if ( dbMetaData.storesLowerCaseIdentifiers() ) { tableName = tableName.toLowerCase(); } else if ( dbMetaData.storesUpperCaseIdentifiers() ) { tableName = tableName.toUpperCase(); } */ // Try UPPER, lower, and MixedCase, to see if the table is there. if (! ( tableExists(dbMetaData, tableName) || tableExists(dbMetaData, tableName.toUpperCase()) || tableExists(dbMetaData, tableName.toLowerCase()) )) { // Users table doesn't exist - create it. PreparedStatement createStatement = conn.prepareStatement(m_createUserTableSql); createStatement.execute(); createStatement.close(); getLogger().info(this.getClass().getName() + ": Created table \'" + tableName + "\'."); } else { getLogger().debug("Using table: " + tableName); } } finally { closeConnection( conn ); } }
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/2557fc80c334a8bf037aa78d48c3d733651ee9a9/AbstractJdbcUsersRepository.java/clean/trunk/src/java/org/apache/james/userrepository/AbstractJdbcUsersRepository.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4046, 1435, 1216, 1185, 377, 288, 3639, 7156, 7675, 4148, 12, 333, 18, 588, 797, 7675, 17994, 1435, 397, 3552, 11160, 1435, 8863, 3639, 368, 968, 326, 501, 17, 3168, 1931, 18, 3639, 312, 67, 13178, 552, 273, 261, 8597, 1841, 13, 81, 67, 13178, 1418, 18, 4025, 12, 81, 67, 13178, 552, 461, 1769, 3639, 368, 7766, 326, 1459, 358, 326, 2063, 16, 635, 8742, 326, 5130, 6998, 18, 3639, 4050, 1487, 273, 24982, 5621, 3639, 775, 95, 5411, 5130, 6998, 1319, 6998, 273, 1487, 18, 588, 6998, 5621, 5411, 368, 31739, 326, 1847, 2064, 18, 5411, 514, 3968, 273, 312, 67, 4669, 4771, 18, 28023, 2932, 768, 2207, 9654, 2469, 10663, 5411, 309, 16051, 12, 17812, 18, 17514, 1190, 2932, 4898, 20349, 288, 7734, 3968, 273, 14015, 1768, 1042, 13, 2472, 2934, 588, 2171, 2853, 1435, 397, 21821, 1387, 18, 11287, 397, 3968, 31, 5411, 289, 5411, 1387, 1847, 812, 273, 261, 2704, 1387, 12, 17812, 13, 2934, 588, 15512, 812, 5621, 13491, 7156, 7675, 4148, 2932, 15714, 3063, 2703, 628, 585, 30, 315, 397, 1171, 9079, 1847, 812, 18, 588, 10368, 743, 1435, 397, 3104, 2442, 315, 397, 17311, 333, 18, 588, 797, 7675, 17994, 1435, 397, 4585, 1769, 5411, 8855, 3805, 1847, 14663, 273, 394, 8855, 3805, 5621, 5411, 1847, 14663, 18, 2738, 12, 4669, 812, 16, 333, 18, 588, 797, 7675, 17994, 9334, 27573, 1487, 16, 312, 67, 4669, 2402, 1769, 5411, 368, 1788, 326, 3063, 8139, 358, 999, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4046, 1435, 1216, 1185, 377, 288, 3639, 7156, 7675, 4148, 12, 333, 18, 588, 797, 7675, 17994, 1435, 397, 3552, 11160, 1435, 8863, 3639, 368, 968, 326, 501, 17, 3168, 1931, 18, 3639, 312, 67, 13178, 552, 273, 261, 8597, 1841, 13, 81, 67, 13178, 1418, 18, 4025, 12, 81, 67, 13178, 552, 461, 1769, 3639, 368, 7766, 326, 1459, 358, 326, 2063, 16, 635, 8742, 326, 5130, 6998, 18, 3639, 4050, 1487, 273, 24982, 5621, 3639, 775, 95, 5411, 5130, 6998, 1319, 6998, 273, 1487, 18, 588, 6998, 5621, 5411, 368, 31739, 326, 1847, 2064, 18, 5411, 514, 3968, 273, 312, 67, 4669, 4771, 18, 28023, 2932, 768, 2207, 9654, 2469, 10663, 5411, 309, 16051, 2 ]
itemManager = createItemManager(itemStateManager, getHierarchyManager());
itemManager = createItemManager(getHierarchyManager());
SessionImpl(SessionInfo sessionInfo, Repository repository, RepositoryConfig config) throws RepositoryException { alive = true; this.repository = repository; this.subject = sessionInfo.getSubject(); // DIFF JACKRABBIT don't expect principals // TODO: not totally correct to use the first principles name as UserId Set principals = sessionInfo.getSubject().getPrincipals(); if (!principals.isEmpty()) { // use 1st principal in case there are more that one Principal principal = (Principal) principals.iterator().next(); userId = principal.getName(); } else { userId = null; } workspace = createWorkspaceInstance(config.getRepositoryService(), sessionInfo); valueFactory = config.getValueFactory(); // build local name-mapping nsMappings = new LocalNamespaceMappings(workspace.getNamespaceRegistryImpl()); // build nodetype manager ntManager = new NodeTypeManagerImpl(workspace.getNodeTypeRegistry(), getNamespaceResolver(), getValueFactory()); validator = new ItemStateValidator(workspace.getNodeTypeRegistry(), this); // build the state mananger // DIFF JACKRABBIT: itemStateMgr = createSessionItemStateManager(wsp.getSessionItemStateManager()); itemStateManager = createSessionItemStateManager(workspace.getRootNodeId(), workspace.getUpdatableItemStateManager(), nsMappings); // DIFF JACKRABBIT: itemManager = createItemManager(itemStateMgr, hierMgr); itemManager = createItemManager(itemStateManager, getHierarchyManager()); }
48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/206660c09d3bf7815a84c9debbaa760eb284ce3d/SessionImpl.java/buggy/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/SessionImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3877, 2828, 12, 2157, 966, 1339, 966, 16, 6281, 3352, 16, 6281, 809, 642, 13, 3639, 1216, 13367, 288, 3639, 13714, 273, 638, 31, 3639, 333, 18, 9071, 273, 3352, 31, 3639, 333, 18, 7857, 273, 1339, 966, 18, 588, 6638, 5621, 3639, 368, 3690, 2246, 804, 3649, 54, 2090, 15650, 2727, 1404, 4489, 25160, 3639, 368, 2660, 30, 486, 9997, 1230, 3434, 358, 999, 326, 1122, 846, 267, 8450, 6089, 508, 487, 2177, 548, 3639, 1000, 25160, 273, 1339, 966, 18, 588, 6638, 7675, 588, 25035, 5621, 3639, 309, 16051, 683, 14997, 18, 291, 1921, 10756, 288, 5411, 368, 999, 404, 334, 8897, 316, 648, 1915, 854, 1898, 716, 1245, 5411, 17010, 8897, 273, 261, 9155, 13, 25160, 18, 9838, 7675, 4285, 5621, 5411, 6249, 273, 8897, 18, 17994, 5621, 3639, 289, 469, 288, 5411, 6249, 273, 446, 31, 3639, 289, 3639, 6003, 273, 752, 8241, 1442, 12, 1425, 18, 588, 3305, 1179, 9334, 1339, 966, 1769, 3639, 460, 1733, 273, 642, 18, 24805, 1733, 5621, 3639, 368, 1361, 1191, 508, 17, 6770, 3639, 3153, 7742, 273, 394, 3566, 3402, 7742, 12, 14915, 18, 588, 3402, 4243, 2828, 10663, 3639, 368, 1361, 14003, 5872, 3301, 3639, 9513, 1318, 273, 394, 20896, 1318, 2828, 12, 14915, 18, 588, 15101, 4243, 9334, 11153, 4301, 9334, 2366, 1733, 10663, 3639, 4213, 273, 394, 4342, 1119, 5126, 12, 14915, 18, 588, 15101, 4243, 9334, 333, 1769, 3639, 368, 1361, 326, 919, 3161, 11455, 3639, 368, 3690, 2246, 804, 3649, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3877, 2828, 12, 2157, 966, 1339, 966, 16, 6281, 3352, 16, 6281, 809, 642, 13, 3639, 1216, 13367, 288, 3639, 13714, 273, 638, 31, 3639, 333, 18, 9071, 273, 3352, 31, 3639, 333, 18, 7857, 273, 1339, 966, 18, 588, 6638, 5621, 3639, 368, 3690, 2246, 804, 3649, 54, 2090, 15650, 2727, 1404, 4489, 25160, 3639, 368, 2660, 30, 486, 9997, 1230, 3434, 358, 999, 326, 1122, 846, 267, 8450, 6089, 508, 487, 2177, 548, 3639, 1000, 25160, 273, 1339, 966, 18, 588, 6638, 7675, 588, 25035, 5621, 3639, 309, 16051, 683, 14997, 18, 291, 1921, 10756, 288, 5411, 368, 999, 404, 334, 8897, 316, 648, 1915, 854, 1898, 716, 1245, 5411, 17010, 8897, 273, 261, 9155, 13, 2 ]
if (clip.equals(client))
if (!clip.equals(client) && redrawFlag) { redrawFlag = false; c.redraw(); } else { redrawFlag = true;
public void handleEvent(Event e) { Canvas c = (Canvas)e.widget; Rectangle client = new Rectangle(c.getClientArea()); Rectangle clip = new Rectangle(e.gc.getClipping()); if (clip.equals(client)) LightweightSystem.this.paint(e.gc); else c.redraw(); }
11225 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11225/b7401d7ca76a45e10e3644384fcd1167c65b0959/LightweightSystem.java/clean/org.eclipse.draw2d/src/org/eclipse/draw2d/LightweightSystem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1640, 1133, 12, 1133, 425, 13, 288, 9506, 202, 12971, 276, 273, 261, 12971, 13, 73, 18, 6587, 31, 9506, 202, 19463, 1004, 273, 394, 13264, 12, 71, 18, 588, 1227, 5484, 10663, 9506, 202, 19463, 6807, 273, 394, 13264, 12, 73, 18, 13241, 18, 588, 15339, 1382, 10663, 9506, 202, 430, 261, 14161, 18, 14963, 12, 2625, 3719, 6862, 202, 12128, 4865, 3163, 18, 2211, 18, 84, 1598, 12, 73, 18, 13241, 1769, 9506, 202, 12107, 6862, 202, 71, 18, 1118, 1899, 5621, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1875, 202, 482, 918, 1640, 1133, 12, 1133, 425, 13, 288, 9506, 202, 12971, 276, 273, 261, 12971, 13, 73, 18, 6587, 31, 9506, 202, 19463, 1004, 273, 394, 13264, 12, 71, 18, 588, 1227, 5484, 10663, 9506, 202, 19463, 6807, 273, 394, 13264, 12, 73, 18, 13241, 18, 588, 15339, 1382, 10663, 9506, 202, 430, 261, 14161, 18, 14963, 12, 2625, 3719, 6862, 202, 12128, 4865, 3163, 18, 2211, 18, 84, 1598, 12, 73, 18, 13241, 1769, 9506, 202, 12107, 6862, 202, 71, 18, 1118, 1899, 5621, 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, -100, -100, -100, -100, -100, -100, -100 ]
addError(getBaseName(), INVALID_URI_FOR_MODULE_ERROR_, params, target);
addWarning(getBaseName(), INVALID_URI_FOR_MODULE_ERROR_, params, target);
protected void validateModuleURIExtension(Module module) { String newUri = module.getUri(); if (newUri != null && newUri.length() > 0) { if (module instanceof EjbModule && !newUri.endsWith(".jar")) { //$NON-NLS-1$ String[] params = new String[1]; params[0] = module.getUri(); IResource target = earHelper.getProject().getFile(ArchiveConstants.APPLICATION_DD_URI); addError(getBaseName(), INVALID_URI_FOR_MODULE_ERROR_, params, target); } else if (module instanceof WebModule && !newUri.endsWith(".war")) { //$NON-NLS-1$ String[] params = new String[1]; params[0] = module.getUri(); IResource target = earHelper.getProject().getFile(ArchiveConstants.APPLICATION_DD_URI); addError(getBaseName(), INVALID_URI_FOR_MODULE_ERROR_, params, target); } } }
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/f8b78e9064c9d629270035275fba67ea894610bf/UIEarValidator.java/buggy/plugins/org.eclipse.jst.j2ee/j2eeplugin/org/eclipse/jst/j2ee/internal/validation/UIEarValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1954, 3120, 3098, 3625, 12, 3120, 1605, 13, 288, 202, 202, 780, 394, 3006, 273, 1605, 18, 588, 3006, 5621, 202, 202, 430, 261, 2704, 3006, 480, 446, 597, 394, 3006, 18, 2469, 1435, 405, 374, 13, 288, 1082, 202, 430, 261, 2978, 1276, 512, 10649, 3120, 597, 401, 2704, 3006, 18, 5839, 1190, 2932, 18, 11930, 6, 3719, 288, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 780, 8526, 859, 273, 394, 514, 63, 21, 15533, 9506, 202, 2010, 63, 20, 65, 273, 1605, 18, 588, 3006, 5621, 9506, 202, 45, 1420, 1018, 273, 6897, 2276, 18, 588, 4109, 7675, 29925, 12, 7465, 2918, 18, 25039, 67, 5698, 67, 3098, 1769, 9506, 202, 1289, 668, 12, 588, 29907, 9334, 10071, 67, 3098, 67, 7473, 67, 12194, 67, 3589, 67, 16, 859, 16, 1018, 1769, 1082, 202, 97, 469, 309, 261, 2978, 1276, 2999, 3120, 597, 401, 2704, 3006, 18, 5839, 1190, 2932, 18, 905, 6, 3719, 288, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 780, 8526, 859, 273, 394, 514, 63, 21, 15533, 9506, 202, 2010, 63, 20, 65, 273, 1605, 18, 588, 3006, 5621, 9506, 202, 45, 1420, 1018, 273, 6897, 2276, 18, 588, 4109, 7675, 29925, 12, 7465, 2918, 18, 25039, 67, 5698, 67, 3098, 1769, 9506, 202, 1289, 668, 12, 588, 29907, 9334, 10071, 67, 3098, 67, 7473, 67, 12194, 67, 3589, 67, 16, 859, 16, 1018, 1769, 1082, 202, 97, 202, 202, 97, 202, 97, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1954, 3120, 3098, 3625, 12, 3120, 1605, 13, 288, 202, 202, 780, 394, 3006, 273, 1605, 18, 588, 3006, 5621, 202, 202, 430, 261, 2704, 3006, 480, 446, 597, 394, 3006, 18, 2469, 1435, 405, 374, 13, 288, 1082, 202, 430, 261, 2978, 1276, 512, 10649, 3120, 597, 401, 2704, 3006, 18, 5839, 1190, 2932, 18, 11930, 6, 3719, 288, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 780, 8526, 859, 273, 394, 514, 63, 21, 15533, 9506, 202, 2010, 63, 20, 65, 273, 1605, 18, 588, 3006, 5621, 9506, 202, 45, 1420, 1018, 273, 6897, 2276, 18, 588, 4109, 7675, 29925, 12, 7465, 2918, 18, 25039, 67, 5698, 67, 3098, 1769, 9506, 202, 2 ]
catch(UnsupportedEncodingException e1) {
catch(UnsupportedEncodingException ueex) {
public boolean connect() { if(m_debugMode) { ppp("trying to connect " + m_host + ":" + m_port); //$NON-NLS-1$ //$NON-NLS-2$ } Exception exception = null; for(int i = 1; i < 20; i++) { try { m_clientSocket = new Socket(m_host, m_port); try { m_outStream = new PrintWriter( new BufferedWriter( new OutputStreamWriter(m_clientSocket.getOutputStream(), "UTF-8")), //$NON-NLS-1$ false /*autoflush*/); } catch(UnsupportedEncodingException e1) { m_outStream = new PrintWriter( new BufferedWriter(new OutputStreamWriter(m_clientSocket.getOutputStream())), false /*autoflush*/); } try { m_inStream = new BufferedReader(new InputStreamReader(m_clientSocket.getInputStream(), "UTF-8")); //$NON-NLS-1$ } catch(UnsupportedEncodingException e1) { m_inStream = new BufferedReader(new InputStreamReader(m_clientSocket.getInputStream())); } m_readerThread = new ReaderThread(); m_readerThread.start(); return true; } catch(IOException ioe) { exception = ioe; } try { Thread.sleep(2000); } catch(InterruptedException e) { } } exception.printStackTrace(); return false; }
46463 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46463/992befd417a0693c6561b718a34dc1d9576681ae/StringMessageSenderHelper.java/buggy/src/main/org/testng/remote/strprotocol/StringMessageSenderHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 3077, 1435, 288, 565, 309, 12, 81, 67, 4148, 2309, 13, 288, 1377, 8228, 84, 2932, 698, 310, 358, 3077, 315, 397, 312, 67, 2564, 397, 6153, 397, 312, 67, 655, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 4329, 3993, 17, 5106, 17, 22, 8, 565, 289, 565, 1185, 1520, 273, 446, 31, 565, 364, 12, 474, 277, 273, 404, 31, 277, 411, 4200, 31, 277, 27245, 288, 1377, 775, 288, 3639, 312, 67, 2625, 4534, 273, 394, 8758, 12, 81, 67, 2564, 16, 312, 67, 655, 1769, 3639, 775, 288, 1850, 312, 67, 659, 1228, 273, 9079, 394, 14071, 12, 5375, 394, 22490, 12, 8227, 394, 24248, 12, 81, 67, 2625, 4534, 18, 588, 4632, 9334, 315, 5159, 17, 28, 7923, 3631, 4329, 3993, 17, 5106, 17, 21, 8, 5375, 629, 1748, 5854, 792, 80, 1218, 5549, 1769, 3639, 289, 3639, 1044, 12, 8544, 13836, 17869, 338, 13, 288, 6647, 312, 67, 659, 1228, 273, 9079, 394, 14071, 12, 5375, 394, 22490, 12, 2704, 24248, 12, 81, 67, 2625, 4534, 18, 588, 4632, 10756, 3631, 5375, 629, 1748, 5854, 792, 80, 1218, 5549, 1769, 3639, 289, 3639, 775, 288, 1850, 312, 67, 267, 1228, 273, 394, 10633, 12, 2704, 15322, 12, 81, 67, 2625, 4534, 18, 588, 4348, 9334, 4766, 27573, 315, 5159, 17, 28, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 289, 3639, 1044, 12, 8544, 13836, 17869, 338, 13, 288, 6647, 312, 67, 267, 1228, 273, 394, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 3077, 1435, 288, 565, 309, 12, 81, 67, 4148, 2309, 13, 288, 1377, 8228, 84, 2932, 698, 310, 358, 3077, 315, 397, 312, 67, 2564, 397, 6153, 397, 312, 67, 655, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 4329, 3993, 17, 5106, 17, 22, 8, 565, 289, 565, 1185, 1520, 273, 446, 31, 565, 364, 12, 474, 277, 273, 404, 31, 277, 411, 4200, 31, 277, 27245, 288, 1377, 775, 288, 3639, 312, 67, 2625, 4534, 273, 394, 8758, 12, 81, 67, 2564, 16, 312, 67, 655, 1769, 3639, 775, 288, 1850, 312, 67, 659, 1228, 273, 9079, 394, 14071, 12, 5375, 394, 22490, 12, 8227, 394, 24248, 12, 81, 67, 2625, 4534, 18, 588, 2 ]
match(_t,PAGESIZE_KW); _t = _t.getNextSibling(); break; } case LINECOUNTER:
match(_t,LINECOUNTER); _t = _t.getNextSibling(); break; } case PAGENUMBER:
public final void pseudfn(AST _t) throws RecognitionException { AST pseudfn_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FIXCODEPAGE: { AST __t244 = _t; AST tmp75_AST_in = (AST)_t; match(_t,FIXCODEPAGE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t244; _t = _t.getNextSibling(); break; } case OVERLAY: { AST __t245 = _t; AST tmp76_AST_in = (AST)_t; match(_t,OVERLAY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t245; _t = _t.getNextSibling(); break; } case PUTBITS: { AST __t246 = _t; AST tmp77_AST_in = (AST)_t; match(_t,PUTBITS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t246; _t = _t.getNextSibling(); break; } case PUTBYTE: { AST __t247 = _t; AST tmp78_AST_in = (AST)_t; match(_t,PUTBYTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t247; _t = _t.getNextSibling(); break; } case PUTBYTES: { AST __t248 = _t; AST tmp79_AST_in = (AST)_t; match(_t,PUTBYTES); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t248; _t = _t.getNextSibling(); break; } case PUTDOUBLE: { AST __t249 = _t; AST tmp80_AST_in = (AST)_t; match(_t,PUTDOUBLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t249; _t = _t.getNextSibling(); break; } case PUTFLOAT: { AST __t250 = _t; AST tmp81_AST_in = (AST)_t; match(_t,PUTFLOAT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t250; _t = _t.getNextSibling(); break; } case PUTLONG: { AST __t251 = _t; AST tmp82_AST_in = (AST)_t; match(_t,PUTLONG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t251; _t = _t.getNextSibling(); break; } case PUTSHORT: { AST __t252 = _t; AST tmp83_AST_in = (AST)_t; match(_t,PUTSHORT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t252; _t = _t.getNextSibling(); break; } case PUTSTRING: { AST __t253 = _t; AST tmp84_AST_in = (AST)_t; match(_t,PUTSTRING); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t253; _t = _t.getNextSibling(); break; } case PUTUNSIGNEDSHORT: { AST __t254 = _t; AST tmp85_AST_in = (AST)_t; match(_t,PUTUNSIGNEDSHORT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t254; _t = _t.getNextSibling(); break; } case SETBYTEORDER: { AST __t255 = _t; AST tmp86_AST_in = (AST)_t; match(_t,SETBYTEORDER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t255; _t = _t.getNextSibling(); break; } case SETPOINTERVALUE: { AST __t256 = _t; AST tmp87_AST_in = (AST)_t; match(_t,SETPOINTERVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t256; _t = _t.getNextSibling(); break; } case SETSIZE: { AST __t257 = _t; AST tmp88_AST_in = (AST)_t; match(_t,SETSIZE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t257; _t = _t.getNextSibling(); break; } case AAMSG: { AST tmp89_AST_in = (AST)_t; match(_t,AAMSG); _t = _t.getNextSibling(); break; } case CURRENTVALUE: { currentvaluefunc(_t); _t = _retTree; break; } case CURRENTWINDOW: { AST tmp90_AST_in = (AST)_t; match(_t,CURRENTWINDOW); _t = _t.getNextSibling(); break; } case DYNAMICCURRENTVALUE: { dynamiccurrentvaluefunc(_t); _t = _retTree; break; } case ENTRY: { entryfunc(_t); _t = _retTree; break; } case LENGTH: { lengthfunc(_t); _t = _retTree; break; } case NEXTVALUE: { nextvaluefunc(_t); _t = _retTree; break; } case RAW: { rawfunc(_t); _t = _retTree; break; } case SUBSTRING: { substringfunc(_t); _t = _retTree; break; } case Widget_ref: { widattr(_t); _t = _retTree; break; } case PAGESIZE_KW: { AST tmp91_AST_in = (AST)_t; match(_t,PAGESIZE_KW); _t = _t.getNextSibling(); break; } case LINECOUNTER: { AST tmp92_AST_in = (AST)_t; match(_t,LINECOUNTER); _t = _t.getNextSibling(); break; } case PAGENUMBER: { AST tmp93_AST_in = (AST)_t; match(_t,PAGENUMBER); _t = _t.getNextSibling(); break; } case FRAMECOL: { AST tmp94_AST_in = (AST)_t; match(_t,FRAMECOL); _t = _t.getNextSibling(); break; } case FRAMEDOWN: { AST tmp95_AST_in = (AST)_t; match(_t,FRAMEDOWN); _t = _t.getNextSibling(); break; } case FRAMELINE: { AST tmp96_AST_in = (AST)_t; match(_t,FRAMELINE); _t = _t.getNextSibling(); break; } case FRAMEROW: { AST tmp97_AST_in = (AST)_t; match(_t,FRAMEROW); _t = _t.getNextSibling(); break; } case USERID: { AST tmp98_AST_in = (AST)_t; match(_t,USERID); _t = _t.getNextSibling(); break; } case ETIME_KW: { AST tmp99_AST_in = (AST)_t; match(_t,ETIME_KW); _t = _t.getNextSibling(); break; } case DBNAME: { AST tmp100_AST_in = (AST)_t; match(_t,DBNAME); _t = _t.getNextSibling(); break; } case TIME: { AST tmp101_AST_in = (AST)_t; match(_t,TIME); _t = _t.getNextSibling(); break; } case OPSYS: { AST tmp102_AST_in = (AST)_t; match(_t,OPSYS); _t = _t.getNextSibling(); break; } case RETRY: { AST tmp103_AST_in = (AST)_t; match(_t,RETRY); _t = _t.getNextSibling(); break; } case AASERIAL: { AST tmp104_AST_in = (AST)_t; match(_t,AASERIAL); _t = _t.getNextSibling(); break; } case AACONTROL: { AST tmp105_AST_in = (AST)_t; match(_t,AACONTROL); _t = _t.getNextSibling(); break; } case MESSAGELINES: { AST tmp106_AST_in = (AST)_t; match(_t,MESSAGELINES); _t = _t.getNextSibling(); break; } case TERMINAL: { AST tmp107_AST_in = (AST)_t; match(_t,TERMINAL); _t = _t.getNextSibling(); break; } case PROPATH: { AST tmp108_AST_in = (AST)_t; match(_t,PROPATH); _t = _t.getNextSibling(); break; } case CURRENTLANGUAGE: { AST tmp109_AST_in = (AST)_t; match(_t,CURRENTLANGUAGE); _t = _t.getNextSibling(); break; } case PROMSGS: { AST tmp110_AST_in = (AST)_t; match(_t,PROMSGS); _t = _t.getNextSibling(); break; } case SCREENLINES: { AST tmp111_AST_in = (AST)_t; match(_t,SCREENLINES); _t = _t.getNextSibling(); break; } case LASTKEY: { AST tmp112_AST_in = (AST)_t; match(_t,LASTKEY); _t = _t.getNextSibling(); break; } case FRAMEFIELD: { AST tmp113_AST_in = (AST)_t; match(_t,FRAMEFIELD); _t = _t.getNextSibling(); break; } case FRAMEFILE: { AST tmp114_AST_in = (AST)_t; match(_t,FRAMEFILE); _t = _t.getNextSibling(); break; } case FRAMEVALUE: { AST tmp115_AST_in = (AST)_t; match(_t,FRAMEVALUE); _t = _t.getNextSibling(); break; } case GOPENDING: { AST tmp116_AST_in = (AST)_t; match(_t,GOPENDING); _t = _t.getNextSibling(); break; } case PROGRESS: { AST tmp117_AST_in = (AST)_t; match(_t,PROGRESS); _t = _t.getNextSibling(); break; } case FRAMEINDEX: { AST tmp118_AST_in = (AST)_t; match(_t,FRAMEINDEX); _t = _t.getNextSibling(); break; } case FRAMEDB: { AST tmp119_AST_in = (AST)_t; match(_t,FRAMEDB); _t = _t.getNextSibling(); break; } case FRAMENAME: { AST tmp120_AST_in = (AST)_t; match(_t,FRAMENAME); _t = _t.getNextSibling(); break; } case DATASERVERS: { AST tmp121_AST_in = (AST)_t; match(_t,DATASERVERS); _t = _t.getNextSibling(); break; } case NUMDBS: { AST tmp122_AST_in = (AST)_t; match(_t,NUMDBS); _t = _t.getNextSibling(); break; } case NUMALIASES: { AST tmp123_AST_in = (AST)_t; match(_t,NUMALIASES); _t = _t.getNextSibling(); break; } case ISATTRSPACE: { AST tmp124_AST_in = (AST)_t; match(_t,ISATTRSPACE); _t = _t.getNextSibling(); break; } case PROCSTATUS: { AST tmp125_AST_in = (AST)_t; match(_t,PROCSTATUS); _t = _t.getNextSibling(); break; } case PROCHANDLE: { AST tmp126_AST_in = (AST)_t; match(_t,PROCHANDLE); _t = _t.getNextSibling(); break; } case CURSOR: { AST tmp127_AST_in = (AST)_t; match(_t,CURSOR); _t = _t.getNextSibling(); break; } case OSERROR: { AST tmp128_AST_in = (AST)_t; match(_t,OSERROR); _t = _t.getNextSibling(); break; } case RETURNVALUE: { AST tmp129_AST_in = (AST)_t; match(_t,RETURNVALUE); _t = _t.getNextSibling(); break; } case OSDRIVES: { AST tmp130_AST_in = (AST)_t; match(_t,OSDRIVES); _t = _t.getNextSibling(); break; } case PROVERSION: { AST tmp131_AST_in = (AST)_t; match(_t,PROVERSION); _t = _t.getNextSibling(); break; } case TRANSACTION: { AST tmp132_AST_in = (AST)_t; match(_t,TRANSACTION); _t = _t.getNextSibling(); break; } case MACHINECLASS: { AST tmp133_AST_in = (AST)_t; match(_t,MACHINECLASS); _t = _t.getNextSibling(); break; } case AAPCONTROL: { AST tmp134_AST_in = (AST)_t; match(_t,AAPCONTROL); _t = _t.getNextSibling(); break; } case GETCODEPAGES: { AST tmp135_AST_in = (AST)_t; match(_t,GETCODEPAGES); _t = _t.getNextSibling(); break; } case COMSELF: { AST tmp136_AST_in = (AST)_t; match(_t,COMSELF); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser03.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 29606, 4293, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 29606, 4293, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 8563, 5572, 11219, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 3247, 24, 273, 389, 88, 31, 1082, 202, 9053, 1853, 5877, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 4563, 5572, 11219, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 1082, 202, 12125, 1968, 24899, 88, 1769, 1082, 202, 67, 88, 273, 389, 1349, 2471, 31, 1082, 202, 67, 88, 273, 1001, 88, 3247, 24, 31, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 3593, 22577, 7868, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 3247, 25, 273, 389, 88, 31, 1082, 202, 9053, 1853, 6669, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 12959, 7868, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 1082, 202, 12125, 1968, 24899, 88, 1769, 1082, 202, 67, 88, 273, 389, 1349, 2471, 31, 1082, 202, 67, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29606, 4293, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 29606, 4293, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 8563, 5572, 11219, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 3247, 24, 273, 389, 88, 31, 1082, 202, 9053, 1853, 5877, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 4563, 5572, 11219, 1769, 1082, 202, 67, 88, 273, 2 ]
public void setTrimSize(int position, int size) { int id = convertSwtConstantToAreaId(position); trimSizes[id] = size;
public void setTrimSize(int areaId, int size) { TrimArea area = (TrimArea) fTrimArea.get(new Integer(areaId)); if (area != null) { area.setTrimSize(size); }
public void setTrimSize(int position, int size) { int id = convertSwtConstantToAreaId(position); trimSizes[id] = size; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/c02ce808ddcd3a887071a5c31104b81c396819e2/TrimLayout.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/layout/TrimLayout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 14795, 1225, 12, 474, 1754, 16, 509, 963, 13, 288, 202, 202, 474, 612, 273, 1765, 55, 6046, 6902, 774, 5484, 548, 12, 3276, 1769, 202, 202, 5290, 11923, 63, 350, 65, 273, 963, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 918, 444, 14795, 1225, 12, 474, 1754, 16, 509, 963, 13, 288, 202, 202, 474, 612, 273, 1765, 55, 6046, 6902, 774, 5484, 548, 12, 3276, 1769, 202, 202, 5290, 11923, 63, 350, 65, 273, 963, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Thread t = Thread.currentThread();
PoolRunner t = (PoolRunner) Thread.currentThread();
public Future runFuture(final Activity.Expr a, final ActivityInformation ai) { final Future_c result = new Future_c(a); final Activity i = aip_.getCurrentActivity(); assert i != a; final StartSignal startSignal = new StartSignal(); this.execute(new Runnable() { public void run() { Thread t = Thread.currentThread(); reg_.registerActivityStart(t, a, i); final x10.runtime.DefaultRuntime_c dr = (x10.runtime.DefaultRuntime_c)x10.lang.Runtime.runtime; dr.startFinish(a); synchronized(startSignal) { startSignal.go = true; startSignal.notifyAll(); } try { a.run(); result.setResult(a.getResult()); } catch (Error e) { dr.registerActivityException(a, e); } catch (RuntimeException re) { dr.registerActivityException(a, re); } finally { java.lang.Throwable tr = dr.getFinishExceptions(a); if (tr instanceof Error) result.setException((Error) tr); else if (tr instanceof RuntimeException) result.setException((RuntimeException) tr); else assert tr == null; } } }, a, ai); // we now need to wait at least (!) until the // "reg_.registerActivityStart(...)" line has been // reached. Hence we wait on the start signal. synchronized (startSignal) { try { while (! startSignal.go) { startSignal.wait(); } } catch (InterruptedException ie) { throw new Error(ie); // should never happen! } } return result; }
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/84e41469a930e004faf202150b03c0e4f35e20da/LocalPlace_c.java/clean/x10.runtime/src/x10/runtime/LocalPlace_c.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9108, 1086, 4118, 12, 6385, 9621, 18, 4742, 279, 16, 29159, 727, 9621, 5369, 14679, 13, 288, 3639, 727, 9108, 67, 71, 563, 273, 394, 9108, 67, 71, 12, 69, 1769, 3639, 727, 9621, 277, 273, 279, 625, 27799, 588, 3935, 6193, 5621, 3639, 1815, 277, 480, 279, 31, 3639, 727, 3603, 11208, 787, 11208, 273, 394, 3603, 11208, 5621, 3639, 333, 18, 8837, 12, 2704, 10254, 1435, 288, 7734, 1071, 918, 1086, 1435, 288, 10792, 8828, 9709, 268, 273, 261, 2864, 9709, 13, 4884, 18, 2972, 3830, 5621, 10792, 960, 27799, 4861, 6193, 1685, 12, 88, 16, 279, 16, 277, 1769, 10792, 727, 619, 2163, 18, 9448, 18, 1868, 5576, 67, 71, 5081, 15604, 273, 261, 92, 2163, 18, 9448, 18, 1868, 5576, 67, 71, 13, 92, 2163, 18, 4936, 18, 5576, 18, 9448, 31, 10792, 5081, 18, 1937, 11641, 12, 69, 1769, 10792, 3852, 12, 1937, 11208, 13, 288, 13491, 787, 11208, 18, 3240, 273, 638, 31, 13491, 787, 11208, 18, 12336, 1595, 5621, 10792, 289, 10792, 775, 288, 13491, 279, 18, 2681, 5621, 13491, 563, 18, 542, 1253, 12, 69, 18, 588, 1253, 10663, 10792, 289, 1044, 261, 668, 425, 13, 288, 13491, 5081, 18, 4861, 6193, 503, 12, 69, 16, 425, 1769, 10792, 289, 1044, 261, 11949, 283, 13, 288, 13491, 5081, 18, 4861, 6193, 503, 12, 69, 16, 283, 1769, 10792, 289, 3095, 288, 13491, 2252, 18, 4936, 18, 15155, 433, 4766, 1171, 273, 5081, 18, 588, 11641, 11416, 12, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9108, 1086, 4118, 12, 6385, 9621, 18, 4742, 279, 16, 29159, 727, 9621, 5369, 14679, 13, 288, 3639, 727, 9108, 67, 71, 563, 273, 394, 9108, 67, 71, 12, 69, 1769, 3639, 727, 9621, 277, 273, 279, 625, 27799, 588, 3935, 6193, 5621, 3639, 1815, 277, 480, 279, 31, 3639, 727, 3603, 11208, 787, 11208, 273, 394, 3603, 11208, 5621, 3639, 333, 18, 8837, 12, 2704, 10254, 1435, 288, 7734, 1071, 918, 1086, 1435, 288, 10792, 8828, 9709, 268, 273, 261, 2864, 9709, 13, 4884, 18, 2972, 3830, 5621, 10792, 960, 27799, 4861, 6193, 1685, 12, 88, 16, 279, 16, 277, 1769, 10792, 727, 619, 2163, 18, 9448, 18, 1868, 5576, 67, 71, 5081, 15604, 273, 261, 2 ]
this.response = new GrailsHttpServletResponse(response);
this.response = (GrailsHttpServletResponse)response;
public RenderDynamicMethod(GrailsControllerHelper helper, HttpServletRequest request, HttpServletResponse response) { super(METHOD_SIGNATURE, request, response); this.helper = helper; this.response = new GrailsHttpServletResponse(response); }
47932 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47932/ca02a5ac52c80fcf938c8130461f799db0eb61f8/RenderDynamicMethod.java/buggy/grails/src/web/org/codehaus/groovy/grails/web/metaclass/RenderDynamicMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6987, 9791, 1305, 12, 14571, 14573, 2933, 2276, 4222, 16, 9984, 590, 16, 12446, 766, 13, 288, 3639, 2240, 12, 5327, 67, 26587, 16, 590, 16, 766, 1769, 3639, 333, 18, 4759, 273, 4222, 31, 3639, 333, 18, 2740, 273, 261, 14571, 14573, 2940, 29910, 13, 2740, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6987, 9791, 1305, 12, 14571, 14573, 2933, 2276, 4222, 16, 9984, 590, 16, 12446, 766, 13, 288, 3639, 2240, 12, 5327, 67, 26587, 16, 590, 16, 766, 1769, 3639, 333, 18, 4759, 273, 4222, 31, 3639, 333, 18, 2740, 273, 261, 14571, 14573, 2940, 29910, 13, 2740, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void copyFromLocalFile(File src, File dst) throws IOException { doFromLocalFile(src, dst, false);
public void copyFromLocalFile(Path src, Path dst) throws IOException { FileUtil.copy(localFs, src, this, dst, false, getConf());
public void copyFromLocalFile(File src, File dst) throws IOException { doFromLocalFile(src, dst, false); }
50331 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50331/ee01fef4b4fb82c7492a4a747793839a4d14cd39/DistributedFileSystem.java/buggy/src/java/org/apache/hadoop/dfs/DistributedFileSystem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 25189, 2042, 812, 12, 812, 1705, 16, 1387, 3046, 13, 1216, 1860, 288, 3639, 741, 1265, 2042, 812, 12, 4816, 16, 3046, 16, 629, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 25189, 2042, 812, 12, 812, 1705, 16, 1387, 3046, 13, 1216, 1860, 288, 3639, 741, 1265, 2042, 812, 12, 4816, 16, 3046, 16, 629, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
VariableValue variable = makeVar("name", "comment", false, 81, "XXVVVVXX", 0, 255, v, null, null);
VariableValue variable = makeVar("label", "comment", false, 81, "XXVVVVXX", 0, 255, v, null, null);
public void testVariableVarChangeColorRep() { // initialize the system Programmer p = new ProgDebugger(); InstanceManager.setProgrammer(p); Vector v = createCvVector(); CvValue cv = new CvValue(81); v.setElementAt(cv, 81); // create a variable pointed at CV 81, loaded as 5, manually notified VariableValue variable = makeVar("name", "comment", false, 81, "XXVVVVXX", 0, 255, v, null, null); // get a representation JTextField rep = (JTextField)variable.getRep(""); Assert.assertEquals("EDITTED color", VariableValue.COLOR_EDITTED, variable.getValue().getBackground() ); Assert.assertEquals("EDITTED color", VariableValue.COLOR_EDITTED, rep.getBackground() ); cv.setState(CvValue.UNKNOWN); Assert.assertEquals("UNKNOWN color", VariableValue.COLOR_UNKNOWN, variable.getValue().getBackground() ); Assert.assertEquals("UNKNOWN color", VariableValue.COLOR_UNKNOWN, rep.getBackground() ); rep.setText("9"); rep.postActionEvent(); Assert.assertEquals("EDITTED color", VariableValue.COLOR_EDITTED, variable.getValue().getBackground() ); Assert.assertEquals("EDITTED color", VariableValue.COLOR_EDITTED, rep.getBackground() ); }
2652 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2652/501123ba97c6bc0ed235f4099a3ce77a13f3fcd3/VariableValueTest.java/buggy/tests/jmrit/symbolicprog/VariableValueTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 3092, 1537, 3043, 2957, 18933, 1435, 288, 202, 202, 759, 4046, 326, 2619, 202, 202, 9459, 6592, 293, 273, 394, 1186, 75, 24113, 5621, 202, 202, 1442, 1318, 18, 542, 9459, 6592, 12, 84, 1769, 9506, 202, 5018, 331, 273, 752, 39, 90, 5018, 5621, 202, 202, 39, 90, 620, 8951, 273, 394, 385, 90, 620, 12, 11861, 1769, 202, 202, 90, 18, 542, 1046, 861, 12, 19774, 16, 29424, 1769, 202, 202, 759, 752, 279, 2190, 25874, 622, 385, 58, 29424, 16, 4203, 487, 1381, 16, 10036, 18791, 202, 202, 3092, 620, 2190, 273, 1221, 1537, 2932, 529, 3113, 315, 3469, 3113, 629, 16, 29424, 16, 315, 5619, 58, 58, 58, 58, 5619, 3113, 374, 16, 4561, 16, 331, 16, 446, 16, 446, 1769, 202, 202, 759, 336, 279, 4335, 202, 202, 46, 16157, 2071, 273, 261, 46, 16157, 13, 6105, 18, 588, 18933, 2932, 8863, 9506, 202, 8213, 18, 11231, 8867, 2932, 10776, 6404, 2036, 3113, 7110, 620, 18, 10989, 67, 10776, 6404, 16, 2190, 18, 24805, 7675, 588, 8199, 1435, 11272, 202, 202, 8213, 18, 11231, 8867, 2932, 10776, 6404, 2036, 3113, 7110, 620, 18, 10989, 67, 10776, 6404, 16, 2071, 18, 588, 8199, 1435, 11272, 202, 202, 19774, 18, 542, 1119, 12, 39, 90, 620, 18, 14737, 1769, 202, 202, 8213, 18, 11231, 8867, 2932, 14737, 2036, 3113, 7110, 620, 18, 10989, 67, 14737, 16, 2190, 18, 24805, 7675, 588, 8199, 1435, 11272, 202, 202, 8213, 18, 11231, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3092, 1537, 3043, 2957, 18933, 1435, 288, 202, 202, 759, 4046, 326, 2619, 202, 202, 9459, 6592, 293, 273, 394, 1186, 75, 24113, 5621, 202, 202, 1442, 1318, 18, 542, 9459, 6592, 12, 84, 1769, 9506, 202, 5018, 331, 273, 752, 39, 90, 5018, 5621, 202, 202, 39, 90, 620, 8951, 273, 394, 385, 90, 620, 12, 11861, 1769, 202, 202, 90, 18, 542, 1046, 861, 12, 19774, 16, 29424, 1769, 202, 202, 759, 752, 279, 2190, 25874, 622, 385, 58, 29424, 16, 4203, 487, 1381, 16, 10036, 18791, 202, 202, 3092, 620, 2190, 273, 1221, 1537, 2932, 529, 3113, 315, 3469, 3113, 629, 16, 29424, 16, 315, 5619, 58, 58, 58, 58, 5619, 2 ]
if (!contextManagerListeners.contains(contextManagerListener))
if (!contextManagerListeners.contains(contextManagerListener)) {
public void addContextManagerListener( IContextManagerListener contextManagerListener) { if (contextManagerListener == null) throw new NullPointerException(); if (contextManagerListeners == null) contextManagerListeners = new ArrayList(); if (!contextManagerListeners.contains(contextManagerListener)) contextManagerListeners.add(contextManagerListener); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/ContextManagerLegacyWrapper.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/contexts/ContextManagerLegacyWrapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 527, 1042, 1318, 2223, 12, 1082, 202, 45, 1042, 1318, 2223, 819, 1318, 2223, 13, 288, 202, 202, 430, 261, 2472, 1318, 2223, 422, 446, 13, 1082, 202, 12849, 394, 10108, 5621, 202, 202, 430, 261, 2472, 1318, 5583, 422, 446, 13, 1082, 202, 2472, 1318, 5583, 273, 394, 2407, 5621, 202, 202, 430, 16051, 2472, 1318, 5583, 18, 12298, 12, 2472, 1318, 2223, 3719, 1082, 202, 2472, 1318, 5583, 18, 1289, 12, 2472, 1318, 2223, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 918, 527, 1042, 1318, 2223, 12, 1082, 202, 45, 1042, 1318, 2223, 819, 1318, 2223, 13, 288, 202, 202, 430, 261, 2472, 1318, 2223, 422, 446, 13, 1082, 202, 12849, 394, 10108, 5621, 202, 202, 430, 261, 2472, 1318, 5583, 422, 446, 13, 1082, 202, 2472, 1318, 5583, 273, 394, 2407, 5621, 202, 202, 430, 16051, 2472, 1318, 5583, 18, 12298, 12, 2472, 1318, 2223, 3719, 1082, 202, 2472, 1318, 5583, 18, 1289, 12, 2472, 1318, 2223, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
void addGroup(StringBuffer pat, String escapedGroup) { if(pat.length() > 0) { pat.append("|");
void addGroup(StringBuffer pat, String escapedGroup) { if (pat.length() > 0) { pat.append("|");
void addGroup(StringBuffer pat, String escapedGroup) { if(pat.length() > 0) { pat.append("|"); } pat.append("("); pat.append(escapedGroup); pat.append(")"); }
50370 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50370/e10b40e8014547113799b2653164e8c990d41209/StreamXmlRecordReader.java/clean/src/contrib/streaming/src/java/org/apache/hadoop/streaming/StreamXmlRecordReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 18899, 12, 780, 1892, 9670, 16, 514, 8345, 1114, 13, 225, 288, 565, 309, 12, 16330, 18, 2469, 1435, 405, 374, 13, 288, 3639, 9670, 18, 6923, 2932, 96, 8863, 565, 289, 565, 9670, 18, 6923, 2932, 2932, 1769, 565, 9670, 18, 6923, 12, 16502, 1114, 1769, 565, 9670, 18, 6923, 2932, 2225, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 18899, 12, 780, 1892, 9670, 16, 514, 8345, 1114, 13, 225, 288, 565, 309, 12, 16330, 18, 2469, 1435, 405, 374, 13, 288, 3639, 9670, 18, 6923, 2932, 96, 8863, 565, 289, 565, 9670, 18, 6923, 2932, 2932, 1769, 565, 9670, 18, 6923, 12, 16502, 1114, 1769, 565, 9670, 18, 6923, 2932, 2225, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void function() throws RecognitionException { Token name=null; Token paramName=null; String retType = null; String paramType = null; String body = null; FunctionDescr f = null; try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:150:17: ( 'function' opt_eol (retType= dotted_name )? opt_eol name= ID opt_eol '(' opt_eol ( (paramType= dotted_name )? opt_eol paramName= ID opt_eol ( ',' opt_eol (paramType= dotted_name )? opt_eol paramName= ID opt_eol )* )? ')' opt_eol '{' body= curly_chunk '}' opt_eol ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:150:17: 'function' opt_eol (retType= dotted_name )? opt_eol name= ID opt_eol '(' opt_eol ( (paramType= dotted_name )? opt_eol paramName= ID opt_eol ( ',' opt_eol (paramType= dotted_name )? opt_eol paramName= ID opt_eol )* )? ')' opt_eol '{' body= curly_chunk '}' opt_eol { match(input,19,FOLLOW_19_in_function303); following.push(FOLLOW_opt_eol_in_function305); opt_eol(); following.pop(); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:150:36: (retType= dotted_name )? int alt13=2; alt13 = dfa13.predict(input); switch (alt13) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:150:37: retType= dotted_name { following.push(FOLLOW_dotted_name_in_function310); retType=dotted_name(); following.pop(); } break; } following.push(FOLLOW_opt_eol_in_function314); opt_eol(); following.pop(); name=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_function318); following.push(FOLLOW_opt_eol_in_function320); opt_eol(); following.pop(); System.err.println( "function :: " + name.getText() ); f = new FunctionDescr( name.getText(), retType ); match(input,20,FOLLOW_20_in_function329); following.push(FOLLOW_opt_eol_in_function331); opt_eol(); following.pop(); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:156:25: ( (paramType= dotted_name )? opt_eol paramName= ID opt_eol ( ',' opt_eol (paramType= dotted_name )? opt_eol paramName= ID opt_eol )* )? int alt17=2; int LA17_0 = input.LA(1); if ( (LA17_0>=EOL && LA17_0<=ID) ) { alt17=1; } else if ( LA17_0==22 ) { alt17=2; } else { NoViableAltException nvae = new NoViableAltException("156:25: ( (paramType= dotted_name )? opt_eol paramName= ID opt_eol ( \',\' opt_eol (paramType= dotted_name )? opt_eol paramName= ID opt_eol )* )?", 17, 0, input); throw nvae; } switch (alt17) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:156:33: (paramType= dotted_name )? opt_eol paramName= ID opt_eol ( ',' opt_eol (paramType= dotted_name )? opt_eol paramName= ID opt_eol )* { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:156:33: (paramType= dotted_name )? int alt14=2; alt14 = dfa14.predict(input); switch (alt14) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:156:34: paramType= dotted_name { following.push(FOLLOW_dotted_name_in_function341); paramType=dotted_name(); following.pop(); } break; } following.push(FOLLOW_opt_eol_in_function345); opt_eol(); following.pop(); paramName=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_function349); following.push(FOLLOW_opt_eol_in_function351); opt_eol(); following.pop(); f.addParameter( paramType, paramName.getText() ); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:160:33: ( ',' opt_eol (paramType= dotted_name )? opt_eol paramName= ID opt_eol )* loop16: do { int alt16=2; int LA16_0 = input.LA(1); if ( LA16_0==21 ) { alt16=1; } switch (alt16) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:160:41: ',' opt_eol (paramType= dotted_name )? opt_eol paramName= ID opt_eol { match(input,21,FOLLOW_21_in_function365); following.push(FOLLOW_opt_eol_in_function367); opt_eol(); following.pop(); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:160:53: (paramType= dotted_name )? int alt15=2; alt15 = dfa15.predict(input); switch (alt15) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:160:54: paramType= dotted_name { following.push(FOLLOW_dotted_name_in_function372); paramType=dotted_name(); following.pop(); } break; } following.push(FOLLOW_opt_eol_in_function376); opt_eol(); following.pop(); paramName=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_function380); following.push(FOLLOW_opt_eol_in_function382); opt_eol(); following.pop(); f.addParameter( paramType, paramName.getText() ); } break; default : break loop16; } } while (true); } break; } match(input,22,FOLLOW_22_in_function407); following.push(FOLLOW_opt_eol_in_function411); opt_eol(); following.pop(); match(input,23,FOLLOW_23_in_function415); following.push(FOLLOW_curly_chunk_in_function422); body=curly_chunk(); following.pop(); f.setText( body ); match(input,24,FOLLOW_24_in_function431); packageDescr.addFunction( f ); following.push(FOLLOW_opt_eol_in_function439); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/138d9a6805db25e18a7f8c70bebca33cce7b95e5/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 445, 1435, 1216, 9539, 288, 6647, 3155, 508, 33, 2011, 31, 3639, 3155, 11466, 33, 2011, 31, 3639, 514, 325, 559, 273, 446, 31, 3639, 514, 20781, 273, 446, 31, 3639, 514, 1417, 273, 446, 31, 540, 202, 202, 2083, 16198, 284, 273, 446, 31, 540, 202, 3639, 775, 288, 5411, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, 3341, 19, 12215, 19, 4936, 19, 72, 1321, 18, 75, 30, 23014, 30, 4033, 30, 261, 296, 915, 11, 2153, 67, 30951, 261, 1349, 559, 33, 20965, 67, 529, 7851, 2153, 67, 30951, 508, 33, 1599, 2153, 67, 30951, 7321, 2153, 67, 30951, 261, 261, 891, 559, 33, 20965, 67, 529, 7851, 2153, 67, 30951, 11466, 33, 1599, 2153, 67, 30951, 261, 3316, 2153, 67, 30951, 261, 891, 559, 33, 20965, 67, 529, 7851, 2153, 67, 30951, 11466, 33, 1599, 2153, 67, 30951, 8618, 7851, 5777, 2153, 67, 30951, 9790, 1417, 33, 29270, 67, 6551, 9571, 2153, 67, 30951, 262, 5411, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, 3341, 19, 12215, 19, 4936, 19, 72, 1321, 18, 75, 30, 23014, 30, 4033, 30, 296, 915, 11, 2153, 67, 30951, 261, 1349, 559, 33, 20965, 67, 529, 7851, 2153, 67, 30951, 508, 33, 1599, 2153, 67, 30951, 7321, 2153, 67, 30951, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 445, 1435, 1216, 9539, 288, 6647, 3155, 508, 33, 2011, 31, 3639, 3155, 11466, 33, 2011, 31, 3639, 514, 325, 559, 273, 446, 31, 3639, 514, 20781, 273, 446, 31, 3639, 514, 1417, 273, 446, 31, 540, 202, 202, 2083, 16198, 284, 273, 446, 31, 540, 202, 3639, 775, 288, 5411, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, 3341, 19, 12215, 19, 4936, 19, 72, 1321, 18, 75, 30, 23014, 30, 4033, 30, 261, 296, 915, 11, 2153, 67, 30951, 261, 1349, 559, 33, 20965, 67, 529, 7851, 2153, 67, 30951, 508, 33, 1599, 2153, 67, 30951, 7321, 2 ]
_t = __t71;
_t = __t73;
public final Expression expr(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { Expression step; org.exist.xquery.parser.XQueryAST expr_AST_in = (_t == ASTNULL) ? null : (org.exist.xquery.parser.XQueryAST)_t; org.exist.xquery.parser.XQueryAST c = null; org.exist.xquery.parser.XQueryAST astIf = null; org.exist.xquery.parser.XQueryAST someVarName = null; org.exist.xquery.parser.XQueryAST everyVarName = null; org.exist.xquery.parser.XQueryAST r = null; org.exist.xquery.parser.XQueryAST f = null; org.exist.xquery.parser.XQueryAST varName = null; org.exist.xquery.parser.XQueryAST posVar = null; org.exist.xquery.parser.XQueryAST l = null; org.exist.xquery.parser.XQueryAST letVarName = null; org.exist.xquery.parser.XQueryAST w = null; org.exist.xquery.parser.XQueryAST collURI = null; step= null; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_castable: case LITERAL_cast: { step=typeCastExpr(_t,path); _t = _retTree; break; } case COMMA: { AST __t59 = _t; c = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,COMMA); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; SequenceConstructor sc= new SequenceConstructor(context); sc.setASTNode(c); sc.addPath(left); sc.addPath(right); path.addPath(sc); step = sc; _t = __t59; _t = _t.getNextSibling(); break; } case LITERAL_if: { AST __t60 = _t; astIf = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_if); _t = _t.getFirstChild(); PathExpr testExpr= new PathExpr(context); PathExpr thenExpr= new PathExpr(context); PathExpr elseExpr= new PathExpr(context); step=expr(_t,testExpr); _t = _retTree; step=expr(_t,thenExpr); _t = _retTree; step=expr(_t,elseExpr); _t = _retTree; ConditionalExpression cond= new ConditionalExpression(context, testExpr, thenExpr, elseExpr); cond.setASTNode(astIf); path.add(cond); step = cond; _t = __t60; _t = _t.getNextSibling(); break; } case LITERAL_some: { AST __t61 = _t; org.exist.xquery.parser.XQueryAST tmp3_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_some); _t = _t.getFirstChild(); List clauses= new ArrayList(); PathExpr satisfiesExpr = new PathExpr(context); { _loop66: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t63 = _t; someVarName = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); PathExpr inputSequence = new PathExpr(context); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_as: { AST __t65 = _t; org.exist.xquery.parser.XQueryAST tmp4_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_as); _t = _t.getFirstChild(); sequenceType(_t,clause.sequenceType); _t = _retTree; _t = __t65; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case COMP_DOC_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_castable: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 140: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 152: case 153: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 157: case 158: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_CDATA: case LITERAL_preceding: { break; } default: { throw new NoViableAltException(_t); } } } step=expr(_t,inputSequence); _t = _retTree; clause.varName= someVarName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t63; _t = _t.getNextSibling(); } else { break _loop66; } } while (true); } step=expr(_t,satisfiesExpr); _t = _retTree; Expression action = satisfiesExpr; for (int i= clauses.size() - 1; i >= 0; i--) { ForLetClause clause= (ForLetClause) clauses.get(i); BindingExpression expr = new QuantifiedExpression(context, QuantifiedExpression.SOME); expr.setVariable(clause.varName); expr.setSequenceType(clause.sequenceType); expr.setInputSequence(clause.inputSequence); expr.setReturnExpression(action); satisfiesExpr= null; action= expr; } path.add(action); step = action; _t = __t61; _t = _t.getNextSibling(); break; } case LITERAL_every: { AST __t67 = _t; org.exist.xquery.parser.XQueryAST tmp5_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_every); _t = _t.getFirstChild(); List clauses= new ArrayList(); PathExpr satisfiesExpr = new PathExpr(context); { _loop72: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t69 = _t; everyVarName = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); PathExpr inputSequence = new PathExpr(context); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_as: { AST __t71 = _t; org.exist.xquery.parser.XQueryAST tmp6_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_as); _t = _t.getFirstChild(); sequenceType(_t,clause.sequenceType); _t = _retTree; _t = __t71; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case COMP_DOC_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_castable: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 140: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 152: case 153: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 157: case 158: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_CDATA: case LITERAL_preceding: { break; } default: { throw new NoViableAltException(_t); } } } step=expr(_t,inputSequence); _t = _retTree; clause.varName= everyVarName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t69; _t = _t.getNextSibling(); } else { break _loop72; } } while (true); } step=expr(_t,satisfiesExpr); _t = _retTree; Expression action = satisfiesExpr; for (int i= clauses.size() - 1; i >= 0; i--) { ForLetClause clause= (ForLetClause) clauses.get(i); BindingExpression expr = new QuantifiedExpression(context, QuantifiedExpression.EVERY); expr.setVariable(clause.varName); expr.setSequenceType(clause.sequenceType); expr.setInputSequence(clause.inputSequence); expr.setReturnExpression(action); satisfiesExpr= null; action= expr; } path.add(action); step = action; _t = __t67; _t = _t.getNextSibling(); break; } case LITERAL_return: { AST __t73 = _t; r = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_return); _t = _t.getFirstChild(); List clauses= new ArrayList(); Expression action= new PathExpr(context); action.setASTNode(r); PathExpr whereExpr= null; List orderBy= null; { int _cnt88=0; _loop88: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_for: { AST __t75 = _t; f = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_for); _t = _t.getFirstChild(); { int _cnt81=0; _loop81: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t77 = _t; varName = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); clause.ast = f; PathExpr inputSequence= new PathExpr(context); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_as: { AST __t79 = _t; org.exist.xquery.parser.XQueryAST tmp7_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_as); _t = _t.getFirstChild(); clause.sequenceType= new SequenceType(); sequenceType(_t,clause.sequenceType); _t = _retTree; _t = __t79; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case POSITIONAL_VAR: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case COMP_DOC_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_castable: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 140: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 152: case 153: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 157: case 158: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_CDATA: case LITERAL_preceding: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case POSITIONAL_VAR: { posVar = (org.exist.xquery.parser.XQueryAST)_t; match(_t,POSITIONAL_VAR); _t = _t.getNextSibling(); clause.posVar= posVar.getText(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case COMP_DOC_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_castable: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 140: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 152: case 153: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 157: case 158: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_CDATA: case LITERAL_preceding: { break; } default: { throw new NoViableAltException(_t); } } } step=expr(_t,inputSequence); _t = _retTree; clause.varName= varName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t77; _t = _t.getNextSibling(); } else { if ( _cnt81>=1 ) { break _loop81; } else {throw new NoViableAltException(_t);} } _cnt81++; } while (true); } _t = __t75; _t = _t.getNextSibling(); break; } case LITERAL_let: { AST __t82 = _t; l = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_let); _t = _t.getFirstChild(); { int _cnt87=0; _loop87: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t84 = _t; letVarName = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); clause.ast = l; clause.isForClause= false; PathExpr inputSequence= new PathExpr(context); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_as: { AST __t86 = _t; org.exist.xquery.parser.XQueryAST tmp8_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_as); _t = _t.getFirstChild(); clause.sequenceType= new SequenceType(); sequenceType(_t,clause.sequenceType); _t = _retTree; _t = __t86; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case COMP_DOC_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_castable: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 140: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 152: case 153: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 157: case 158: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_CDATA: case LITERAL_preceding: { break; } default: { throw new NoViableAltException(_t); } } } step=expr(_t,inputSequence); _t = _retTree; clause.varName= letVarName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t84; _t = _t.getNextSibling(); } else { if ( _cnt87>=1 ) { break _loop87; } else {throw new NoViableAltException(_t);} } _cnt87++; } while (true); } _t = __t82; _t = _t.getNextSibling(); break; } default: { if ( _cnt88>=1 ) { break _loop88; } else {throw new NoViableAltException(_t);} } } _cnt88++; } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_where: { w = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_where); _t = _t.getNextSibling(); whereExpr= new PathExpr(context); whereExpr.setASTNode(w); step=expr(_t,whereExpr); _t = _retTree; break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case ORDER_BY: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case COMP_DOC_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_castable: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 140: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 152: case 153: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 157: case 158: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_CDATA: case LITERAL_preceding: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ORDER_BY: { AST __t91 = _t; org.exist.xquery.parser.XQueryAST tmp9_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,ORDER_BY); _t = _t.getFirstChild(); orderBy= new ArrayList(3); { int _cnt98=0; _loop98: do { if (_t==null) _t=ASTNULL; if ((_tokenSet_0.member(_t.getType()))) { PathExpr orderSpecExpr= new PathExpr(context); step=expr(_t,orderSpecExpr); _t = _retTree; OrderSpec orderSpec= new OrderSpec(context, orderSpecExpr); int modifiers= 0; orderBy.add(orderSpec); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_ascending: case LITERAL_descending: { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_ascending: { org.exist.xquery.parser.XQueryAST tmp10_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_ascending); _t = _t.getNextSibling(); break; } case LITERAL_descending: { org.exist.xquery.parser.XQueryAST tmp11_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_descending); _t = _t.getNextSibling(); modifiers= OrderSpec.DESCENDING_ORDER; orderSpec.setModifiers(modifiers); break; } default: { throw new NoViableAltException(_t); } } } break; } case 3: case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case COMP_DOC_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_collation: case LITERAL_element: case LCURLY: case COMMA: case LITERAL_empty: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_castable: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 140: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 152: case 153: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 157: case 158: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_CDATA: case LITERAL_preceding: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_empty: { org.exist.xquery.parser.XQueryAST tmp12_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_empty); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_greatest: { org.exist.xquery.parser.XQueryAST tmp13_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_greatest); _t = _t.getNextSibling(); break; } case LITERAL_least: { org.exist.xquery.parser.XQueryAST tmp14_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_least); _t = _t.getNextSibling(); modifiers |= OrderSpec.EMPTY_LEAST; orderSpec.setModifiers(modifiers); break; } default: { throw new NoViableAltException(_t); } } } break; } case 3: case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case COMP_DOC_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_collation: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_castable: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 140: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 152: case 153: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 157: case 158: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_CDATA: case LITERAL_preceding: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_collation: { org.exist.xquery.parser.XQueryAST tmp15_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_collation); _t = _t.getNextSibling(); collURI = (org.exist.xquery.parser.XQueryAST)_t; match(_t,STRING_LITERAL); _t = _t.getNextSibling(); orderSpec.setCollation(collURI.getText()); break; } case 3: case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case COMP_DOC_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_castable: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 140: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 152: case 153: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 157: case 158: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_CDATA: case LITERAL_preceding: { break; } default: { throw new NoViableAltException(_t); } } } } else { if ( _cnt98>=1 ) { break _loop98; } else {throw new NoViableAltException(_t);} } _cnt98++; } while (true); } _t = __t91; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case COMP_DOC_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_castable: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 140: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 152: case 153: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 157: case 158: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_CDATA: case LITERAL_preceding: { break; } default: { throw new NoViableAltException(_t); } } } step=expr(_t,(PathExpr) action); _t = _retTree; for (int i= clauses.size() - 1; i >= 0; i--) { ForLetClause clause= (ForLetClause) clauses.get(i); BindingExpression expr; if (clause.isForClause) expr= new ForExpr(context); else expr= new LetExpr(context); expr.setASTNode(clause.ast); expr.setVariable(clause.varName); expr.setSequenceType(clause.sequenceType); expr.setInputSequence(clause.inputSequence); expr.setReturnExpression(action); if (clause.isForClause) ((ForExpr) expr).setPositionalVariable(clause.posVar); if (whereExpr != null) { expr.setWhereExpression(whereExpr); whereExpr= null; } action= expr; } if (orderBy != null) { OrderSpec orderSpecs[]= new OrderSpec[orderBy.size()]; int k= 0; for (Iterator j= orderBy.iterator(); j.hasNext(); k++) { OrderSpec orderSpec= (OrderSpec) j.next(); orderSpecs[k]= orderSpec; } ((BindingExpression)action).setOrderSpecs(orderSpecs); } path.add(action); step = action; _t = __t73; _t = _t.getNextSibling(); break; } case LITERAL_instance: { AST __t99 = _t; org.exist.xquery.parser.XQueryAST tmp16_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_instance); _t = _t.getFirstChild(); PathExpr expr = new PathExpr(context); SequenceType type= new SequenceType(); step=expr(_t,expr); _t = _retTree; sequenceType(_t,type); _t = _retTree; step = new InstanceOfExpression(context, expr, type); path.add(step); _t = __t99; _t = _t.getNextSibling(); break; } case LITERAL_or: { AST __t100 = _t; org.exist.xquery.parser.XQueryAST tmp17_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_or); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t100; _t = _t.getNextSibling(); OpOr or= new OpOr(context); or.addPath(left); or.addPath(right); path.addPath(or); step = or; break; } case LITERAL_and: { AST __t101 = _t; org.exist.xquery.parser.XQueryAST tmp18_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_and); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t101; _t = _t.getNextSibling(); OpAnd and= new OpAnd(context); and.addPath(left); and.addPath(right); path.addPath(and); step = and; break; } case UNION: { AST __t102 = _t; org.exist.xquery.parser.XQueryAST tmp19_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,UNION); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t102; _t = _t.getNextSibling(); Union union= new Union(context, left, right); path.add(union); step = union; break; } case LITERAL_intersect: { AST __t103 = _t; org.exist.xquery.parser.XQueryAST tmp20_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_intersect); _t = _t.getFirstChild(); PathExpr left = new PathExpr(context); PathExpr right = new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t103; _t = _t.getNextSibling(); Intersection intersect = new Intersection(context, left, right); path.add(intersect); step = intersect; break; } case LITERAL_except: { AST __t104 = _t; org.exist.xquery.parser.XQueryAST tmp21_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_except); _t = _t.getFirstChild(); PathExpr left = new PathExpr(context); PathExpr right = new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t104; _t = _t.getNextSibling(); Except intersect = new Except(context, left, right); path.add(intersect); step = intersect; break; } case ABSOLUTE_SLASH: { AST __t105 = _t; org.exist.xquery.parser.XQueryAST tmp22_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,ABSOLUTE_SLASH); _t = _t.getFirstChild(); RootNode root= new RootNode(context); path.add(root); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case COMP_DOC_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_castable: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 140: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 152: case 153: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 157: case 158: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_CDATA: case LITERAL_preceding: { step=expr(_t,path); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t105; _t = _t.getNextSibling(); break; } case ABSOLUTE_DSLASH: { AST __t107 = _t; org.exist.xquery.parser.XQueryAST tmp23_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,ABSOLUTE_DSLASH); _t = _t.getFirstChild(); RootNode root= new RootNode(context); path.add(root); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case COMP_DOC_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_castable: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 140: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 152: case 153: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 157: case 158: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_CDATA: case LITERAL_preceding: { step=expr(_t,path); _t = _retTree; if (step instanceof LocationStep) { LocationStep s= (LocationStep) step; if (s.getAxis() == Constants.ATTRIBUTE_AXIS) // combines descendant-or-self::node()/attribute:* s.setAxis(Constants.DESCENDANT_ATTRIBUTE_AXIS); else s.setAxis(Constants.DESCENDANT_SELF_AXIS); } else step.setPrimaryAxis(Constants.DESCENDANT_SELF_AXIS); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t107; _t = _t.getNextSibling(); break; } case LITERAL_to: { AST __t109 = _t; org.exist.xquery.parser.XQueryAST tmp24_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_to); _t = _t.getFirstChild(); PathExpr start= new PathExpr(context); PathExpr end= new PathExpr(context); List args= new ArrayList(2); args.add(start); args.add(end); step=expr(_t,start); _t = _retTree; step=expr(_t,end); _t = _retTree; RangeExpression range= new RangeExpression(context); range.setArguments(args); path.addPath(range); step = range; _t = __t109; _t = _t.getNextSibling(); break; } case EQ: case LT: case GT: case NEQ: case GTEQ: case LTEQ: { step=generalComp(_t,path); _t = _retTree; break; } case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: { step=valueComp(_t,path); _t = _retTree; break; } case BEFORE: case AFTER: case LITERAL_is: case LITERAL_isnot: { step=nodeComp(_t,path); _t = _retTree; break; } case ANDEQ: case OREQ: { step=fulltextComp(_t,path); _t = _retTree; break; } case PARENTHESIZED: case FUNCTION: case VARIABLE_REF: case ELEMENT: case TEXT: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case COMP_DOC_CONSTRUCTOR: case STRING_LITERAL: case LCURLY: case XML_COMMENT: case XML_PI: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_CDATA: { step=primaryExpr(_t,path); _t = _retTree; break; } case QNAME: case WILDCARD: case PREFIX_WILDCARD: case ATTRIBUTE_TEST: case NCNAME: case LITERAL_element: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 140: case SELF: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 152: case 153: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 157: case 158: case LITERAL_preceding: { step=pathExpr(_t,path); _t = _retTree; break; } case UNARY_MINUS: case UNARY_PLUS: case STAR: case PLUS: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: { step=numericExpr(_t,path); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; return step; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/9aec85412cf9f86cb609358133dd23628306f44a/XQueryTreeParser.java/clean/src/org/exist/xquery/parser/XQueryTreeParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 5371, 225, 3065, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 202, 202, 2300, 2235, 31, 9506, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 3065, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 13, 67, 88, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 276, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 3364, 2047, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 2690, 18129, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 3614, 18129, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 436, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 284, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 13722, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 949, 1537, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 328, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5371, 225, 3065, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 202, 202, 2300, 2235, 31, 9506, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 3065, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 13, 67, 88, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 276, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 3364, 2047, 273, 2 ]
yaccValue = ">>";
private int yylex() { char c; boolean spaceSeen = false; boolean commandState; if (lex_strterm != null) { int tok = lex_strterm.parseString(this, src); if (tok == Tokens.tSTRING_END || tok == Tokens.tREGEXP_END) { lex_strterm = null; lex_state = LexState.EXPR_END; } return tok; } currentPos = src.getPosition(); commandState = commandStart; commandStart = false; retry: for(;;) { c = src.read(); switch(c) { case '\004': /* ^D */ case '\032': /* ^Z */ case 0: /* end of script. */ return 0; /* white spaces */ case ' ': case '\t': case '\f': case '\r': case '\13': /* '\v' */ spaceSeen = true; continue retry; case '#': /* it's a comment */ while ((c = src.read()) != '\n') { if (c == EOF) { return 0; } } /* fall through */ case '\n': // Replace a string of newlines with a single one while((c = src.read()) == '\n') { currentPos = src.getPosition(); } src.unread( c ); if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT || lex_state == LexState.EXPR_CLASS) { continue retry; } commandStart = true; lex_state = LexState.EXPR_BEG; return '\n'; case '*': if ((c = src.read()) == '*') { if ((c = src.read()) == '=') { yaccValue = "**"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); c = Tokens.tPOW; } else { if (c == '=') { yaccValue = "*"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)) { warnings.warning(src.getPosition(), "`*' interpreted as argument prefix"); c = Tokens.tSTAR; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tSTAR; } else { c = Tokens.tSTAR2; } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } return c; case '!': lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { return Tokens.tNEQ; } if (c == '~') { return Tokens.tNMATCH; } src.unread(c); return Tokens.tBANG; case '=': // Skip documentation nodes if (src.wasBeginOfLine()) { /* skip embedded rd document */ if (isNextNoCase("begin")) { c = src.read(); if (Character.isWhitespace(c)) { // In case last next was the newline. src.unread(c); for (;;) { c = src.read(); // If a line is followed by a blank line put // it back. while (c == '\n') { c = src.read(); } if (c == EOF) { throw new SyntaxException(src.getPosition(), "embedded document meets end of file"); } if (c != '=') continue; if (src.wasBeginOfLine() && isNextNoCase("end")) { //if (src.peek('\n')) { // break; //} //c = src.read(); //if (Character.isWhitespace(c)) { src.readLine(); break; //} //src.unread(c); } } continue retry; } src.unread(c); } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } c = src.read(); if (c == '=') { c = src.read(); if (c == '=') { return Tokens.tEQQ; } src.unread(c); return Tokens.tEQ; } if (c == '~') { return Tokens.tMATCH; } else if (c == '>') { return Tokens.tASSOC; } src.unread(c); return '='; case '<': c = src.read(); if (c == '<' && lex_state != LexState.EXPR_END && lex_state != LexState.EXPR_DOT && lex_state != LexState.EXPR_ENDARG && lex_state != LexState.EXPR_CLASS && (!lex_state.isArgument() || spaceSeen)) { int tok = hereDocumentIdentifier(); if (tok != 0) return tok; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } if (c == '=') { if ((c = src.read()) == '>') { return Tokens.tCMP; } src.unread(c); return Tokens.tLEQ; } if (c == '<') { if ((c = src.read()) == '=') { yaccValue = "<<"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tLSHFT; } src.unread(c); return Tokens.tLT; case '>': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } if ((c = src.read()) == '=') { return Tokens.tGEQ; } if (c == '>') { if ((c = src.read()) == '=') { yaccValue = ">>"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tRSHFT; } src.unread(c); return Tokens.tGT; case '"': lex_strterm = new StringTerm(str_dquote, '"', '\0'); return Tokens.tSTRING_BEG; case '`': if (lex_state == LexState.EXPR_FNAME) { lex_state = LexState.EXPR_END; return Tokens.tBACK_REF2; } if (lex_state == LexState.EXPR_DOT) { if (commandState) { lex_state = LexState.EXPR_CMDARG; } else { lex_state = LexState.EXPR_ARG; } return Tokens.tBACK_REF2; } lex_strterm = new StringTerm(str_xquote, '`', '\0'); return Tokens.tXSTRING_BEG; case '\'': lex_strterm = new StringTerm(str_squote, '\'', '\0'); return Tokens.tSTRING_BEG; case '?': if (lex_state == LexState.EXPR_END || lex_state == LexState.EXPR_ENDARG) { lex_state = LexState.EXPR_BEG; return '?'; } c = src.read(); if (c == EOF) { throw new SyntaxException(src.getPosition(), "incomplete character syntax"); } if (Character.isWhitespace(c)){ if (!lex_state.isArgument()){ int c2 = 0; switch (c) { case ' ': c2 = 's'; break; case '\n': c2 = 'n'; break; case '\t': c2 = 't'; break; /* What is \v in C? case '\v': c2 = 'v'; break; */ case '\r': c2 = 'r'; break; case '\f': c2 = 'f'; break; } if (c2 != 0) { warnings.warn(src.getPosition(), "invalid character syntax; use ?\\" + c2); } } src.unread(c); lex_state = LexState.EXPR_BEG; return '?'; /*} else if (ismbchar(c)) { // ruby - we don't support them either? rb_warn("multibyte character literal not supported yet; use ?\\" + c); support.unread(c); lexState = LexState.EXPR_BEG; return '?';*/ } else if ((Character.isLetterOrDigit(c) || c == '_') && !src.peek('\n') && isNext_identchar()) { src.unread(c); lex_state = LexState.EXPR_BEG; return '?'; } else if (c == '\\') { c = src.readEscape(); } c &= 0xff; lex_state = LexState.EXPR_END; yaccValue = new Long(c); return Tokens.tINTEGER; case '&': if ((c = src.read()) == '&') { lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { yaccValue = "&&"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tANDOP; } else if (c == '=') { yaccValue = "&"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)){ warnings.warning(src.getPosition(), "`&' interpreted as argument prefix"); c = Tokens.tAMPER; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tAMPER; } else { c = Tokens.tAMPER2; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } return c; case '|': if ((c = src.read()) == '|') { lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { yaccValue = "||"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tOROP; } if (c == '=') { yaccValue = "|"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } src.unread(c); return Tokens.tPIPE; case '+': c = src.read(); if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if (c == '@') { return Tokens.tUPLUS; } src.unread(c); return Tokens.tPLUS; } if (c == '=') { yaccValue = "+"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c))) { if (lex_state.isArgument()) arg_ambiguous(); lex_state = LexState.EXPR_BEG; src.unread(c); if (Character.isDigit(c)) { c = '+'; return parseNumber(c); } return Tokens.tUPLUS; } lex_state = LexState.EXPR_BEG; src.unread(c); return Tokens.tPLUS; case '-': c = src.read(); if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if (c == '@') { return Tokens.tUMINUS; } src.unread(c); return Tokens.tMINUS; } if (c == '=') { yaccValue = "-"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c))) { if (lex_state.isArgument()) arg_ambiguous(); lex_state = LexState.EXPR_BEG; src.unread(c); if (Character.isDigit(c)) { return Tokens.tUMINUS_NUM; } return Tokens.tUMINUS; } lex_state = LexState.EXPR_BEG; src.unread(c); return Tokens.tMINUS; case '.': lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '.') { if ((c = src.read()) == '.') { return Tokens.tDOT3; } src.unread(c); return Tokens.tDOT2; } src.unread(c); if (Character.isDigit(c)) { throw new SyntaxException(src.getPosition(), "no .<digit> floating literal anymore; put 0 before dot"); } lex_state = LexState.EXPR_DOT; return Tokens.tDOT; case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : return parseNumber(c); case ']': case '}': case ')': conditionState.restart(); cmdArgumentState.restart(); lex_state = LexState.EXPR_END; return c; case ':': c = src.read(); if (c == ':') { if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || lex_state == LexState.EXPR_CLASS || (lex_state.isArgument() && spaceSeen)) { lex_state = LexState.EXPR_BEG; return Tokens.tCOLON3; } lex_state = LexState.EXPR_DOT; return Tokens.tCOLON2; } if (lex_state == LexState.EXPR_END || lex_state == LexState.EXPR_ENDARG || Character.isWhitespace(c)) { src.unread(c); lex_state = LexState.EXPR_BEG; return ':'; } switch (c) { case '\'': lex_strterm = new StringTerm(str_ssym, c, '\0'); break; case '"': lex_strterm = new StringTerm(str_dsym, c, '\0'); break; default: src.unread(c); break; } lex_state = LexState.EXPR_FNAME; return Tokens.tSYMBEG; case '/': if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { lex_strterm = new StringTerm(str_regexp, '/', '\0'); return Tokens.tREGEXP_BEG; } if ((c = src.read()) == '=') { yaccValue = "/"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen) { if (!Character.isWhitespace(c)) { arg_ambiguous(); lex_strterm = new StringTerm(str_regexp, '/', '\0'); return Tokens.tREGEXP_BEG; } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } return Tokens.tDIVIDE; case '^': if ((c = src.read()) == '=') { yaccValue = "^"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } src.unread(c); return Tokens.tCARET; case ';': commandStart = true; case ',': lex_state = LexState.EXPR_BEG; return c; case '~': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { if ((c = src.read()) != '@') { src.unread(c); } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } return Tokens.tTILDE; case '(': c = Tokens.tLPAREN2; commandStart = true; if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tLPAREN; } else if (spaceSeen) { if (lex_state == LexState.EXPR_CMDARG) { c = Tokens.tLPAREN_ARG; } else if (lex_state == LexState.EXPR_ARG) { warnings.warn(src.getPosition(), "don't put space before argument parentheses"); c = Tokens.tLPAREN2; } } conditionState.stop(); cmdArgumentState.stop(); lex_state = LexState.EXPR_BEG; return c; case '[': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if ((c = src.read()) == ']') { if ((c = src.read()) == '=') { return Tokens.tASET; } src.unread(c); return Tokens.tAREF; } src.unread(c); return '['; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tLBRACK; } else if (lex_state.isArgument() && spaceSeen) { c = Tokens.tLBRACK; } lex_state = LexState.EXPR_BEG; conditionState.stop(); cmdArgumentState.stop(); return c; case '{': c = Tokens.tLCURLY; if (lex_state.isArgument() || lex_state == LexState.EXPR_END) { c = Tokens.tLCURLY; /* block (primary) */ } else if (lex_state == LexState.EXPR_ENDARG) { c = Tokens.tLBRACE_ARG; /* block (expr) */ } else { c = Tokens.tLBRACE; /* hash */ } conditionState.stop(); cmdArgumentState.stop(); lex_state = LexState.EXPR_BEG; return c; case '\\': c = src.read(); if (c == '\n') { spaceSeen = true; continue retry; /* skip \\n */ } src.unread(c); return '\\'; case '%': if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { return parseQuote(src.read()); } if ((c = src.read()) == '=') { yaccValue = "%"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)) { return parseQuote(c); } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } src.unread(c); return Tokens.tPERCENT; case '$': lex_state = LexState.EXPR_END; tokenBuffer.setLength(0); c = src.read(); switch (c) { case '_': /* $_: last read line string */ c = src.read(); if (isIdentifierChar(c)) { tokenBuffer.append('$'); tokenBuffer.append('_'); break; } src.unread(c); c = '_'; /* fall through */ case '*': /* $*: argv */ case '$': /* $$: pid */ case '?': /* $?: last status */ case '!': /* $!: error string */ case '@': /* $@: error position */ case '/': /* $/: input record separator */ case '\\': /* $\: output record separator */ case ';': /* $;: field separator */ case ',': /* $,: output field separator */ case '.': /* $.: last read line number */ case '=': /* $=: ignorecase */ case ':': /* $:: load path */ case '<': /* $<: reading filename */ case '>': /* $>: default output handle */ case '\"': /* $": already loaded files */ tokenBuffer.append('$'); tokenBuffer.append(c); yaccValue = tokenBuffer.toString(); return Tokens.tGVAR; case '-': tokenBuffer.append('$'); tokenBuffer.append(c); c = src.read(); tokenBuffer.append(c); yaccValue = tokenBuffer.toString(); /* xxx shouldn't check if valid option variable */ return Tokens.tGVAR; case '~': /* $~: match-data */ case '&': /* $&: last match */ case '`': /* $`: string before last match */ case '\'': /* $': string after last match */ case '+': /* $+: string matches last paren. */ yaccValue = new BackRefNode(src.getPosition(), c); return Tokens.tBACK_REF; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': tokenBuffer.append('$'); do { tokenBuffer.append(c); c = src.read(); } while (Character.isDigit(c)); src.unread(c); yaccValue = new NthRefNode(src.getPosition(), Integer.parseInt(tokenBuffer.substring(1))); return Tokens.tNTH_REF; default: if (!isIdentifierChar(c)) { src.unread(c); return '$'; } case '0': tokenBuffer.append('$'); } break; case '@': c = src.read(); tokenBuffer.setLength(0); tokenBuffer.append('@'); if (c == '@') { tokenBuffer.append('@'); c = src.read(); } if (Character.isDigit(c)) { if (tokenBuffer.length() == 1) { throw new SyntaxException(src.getPosition(), "`@" + c + "' is not allowed as an instance variable name"); } throw new SyntaxException(src.getPosition(), "`@@" + c + "' is not allowed as a class variable name"); } if (!isIdentifierChar(c)) { src.unread(c); return '@'; } break; case '_': if (src.wasBeginOfLine() && src.matchString("_END__\n", false)) { parserSupport.getResult().setEndSeen(true); return 0; } tokenBuffer.setLength(0); break; default: if (!isIdentifierChar(c)) { throw new SyntaxException(src.getPosition(), "Invalid char `\\" + new PrintfFormat("%.3o").sprintf(c) + "' in expression"); } tokenBuffer.setLength(0); break; } do { tokenBuffer.append(c); /* no special multibyte character handling is needed in Java * if (ismbchar(c)) { int i, len = mbclen(c)-1; for (i = 0; i < len; i++) { c = src.read(); tokenBuffer.append(c); } }*/ c = src.read(); } while (isIdentifierChar(c)); char peek = src.read(); if ((c == '!' || c == '?') && isIdentifierChar(tokenBuffer.charAt(0)) && peek != '=') { src.unread(peek); tokenBuffer.append(c); } else { src.unread(peek); src.unread(c); } int result = 0; switch (tokenBuffer.charAt(0)) { case '$': lex_state = LexState.EXPR_END; result = Tokens.tGVAR; break; case '@': lex_state = LexState.EXPR_END; if (tokenBuffer.charAt(1) == '@') { result = Tokens.tCVAR; } else { result = Tokens.tIVAR; } break; default: char last = tokenBuffer.charAt(tokenBuffer.length() - 1); if (last == '!' || last == '?') { result = Tokens.tFID; } else { if (lex_state == LexState.EXPR_FNAME) { /* // Enebo: This should be equivalent to below without // so much read/unread action. if ((c = src.read()) == '=') { char c2 = src.read(); if (c2 != '~' && c2 != '>' && (c2 != '=' || (c2 == '\n' && src.peek('>')))) { result = Token.tIDENTIFIER; tokenBuffer.append(c); } else { src.unread(c2); src.unread(c); } } else { src.unread(c); } */ if ((c = src.read()) == '=' && !src.peek('~') && !src.peek('>') && (!src.peek('=') || (src.peek('\n') && src.getCharAt(1) == '>'))) { result = Tokens.tIDENTIFIER; tokenBuffer.append(c); } else { src.unread(c); } } if (result == 0 && ISUPPER(tokenBuffer.charAt(0))) { result = Tokens.tCONSTANT; } else { result = Tokens.tIDENTIFIER; } } if (lex_state != LexState.EXPR_DOT) { /* See if it is a reserved word. */ Keyword keyword = Keyword.getKeyword(tokenBuffer.toString(), tokenBuffer.length()); if (keyword != null) { // enum lex_state LexState state = lex_state; lex_state = keyword.state; if (state.isExprFName()) { yaccValue = keyword.name; } if (keyword.id0 == Tokens.kDO) { if (conditionState.isInState()) { return Tokens.kDO_COND; } if (cmdArgumentState.isInState() && state != LexState.EXPR_CMDARG) { return Tokens.kDO_BLOCK; } if (state == LexState.EXPR_ENDARG) { return Tokens.kDO_BLOCK; } return Tokens.kDO; } if (state == LexState.EXPR_BEG) { return keyword.id0; } if (keyword.id0 != keyword.id1) { lex_state = LexState.EXPR_BEG; } return keyword.id1; } } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || lex_state == LexState.EXPR_DOT || lex_state == LexState.EXPR_ARG || lex_state == LexState.EXPR_CMDARG) { if (commandState) { lex_state = LexState.EXPR_CMDARG; } else { lex_state = LexState.EXPR_ARG; } } else { lex_state = LexState.EXPR_END; } } yaccValue = tokenBuffer.toString(); // Lame: parsing logic made it into lexer in ruby...So we // are emulating if (IdUtil.isLocal((String)yaccValue) && ((((LocalNamesElement) parserSupport.getLocalNames().peek()).isInBlock() && ((BlockNamesElement) parserSupport.getBlockNames().peek()).isDefined((String) yaccValue)) || ((LocalNamesElement) parserSupport.getLocalNames().peek()).isLocalRegistered((String) yaccValue))) { lex_state = LexState.EXPR_END; } return result; } }
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/1d8ec540dc793b2d5ad5084d2cb6b204087302b7/RubyYaccLexer.java/clean/src/org/jruby/lexer/yacc/RubyYaccLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 677, 1362, 92, 1435, 288, 3639, 1149, 276, 31, 3639, 1250, 3476, 15160, 273, 629, 31, 3639, 1250, 1296, 1119, 31, 7734, 309, 261, 4149, 67, 701, 6408, 480, 446, 13, 288, 1082, 202, 474, 946, 273, 5275, 67, 701, 6408, 18, 2670, 780, 12, 2211, 16, 1705, 1769, 1082, 202, 430, 261, 17692, 422, 13899, 18, 88, 5804, 67, 4415, 747, 946, 422, 13899, 18, 88, 28225, 67, 4415, 13, 288, 9506, 565, 5275, 67, 701, 6408, 273, 446, 31, 9506, 565, 5275, 67, 2019, 273, 15123, 1119, 18, 2294, 8025, 67, 4415, 31, 1082, 202, 97, 1082, 202, 2463, 946, 31, 3639, 289, 3639, 783, 1616, 273, 1705, 18, 588, 2555, 5621, 7734, 1296, 1119, 273, 1296, 1685, 31, 3639, 1296, 1685, 273, 629, 31, 7734, 3300, 30, 364, 12, 25708, 13, 288, 5411, 276, 273, 1705, 18, 896, 5621, 5411, 1620, 12, 71, 13, 288, 5411, 648, 2337, 26565, 4278, 202, 202, 20308, 3602, 40, 1195, 5411, 648, 2337, 20, 1578, 4278, 202, 202, 20308, 3602, 62, 1195, 5411, 648, 374, 30, 1082, 202, 20308, 679, 434, 2728, 18, 1195, 7734, 327, 374, 31, 21821, 1748, 9578, 7292, 1195, 5411, 648, 296, 4290, 648, 2337, 88, 4278, 648, 2337, 74, 4278, 648, 2337, 86, 4278, 5411, 648, 2337, 3437, 4278, 1748, 2337, 90, 11, 1195, 7734, 3476, 15160, 273, 638, 31, 7734, 1324, 3300, 31, 5411, 648, 2946, 4278, 202, 202, 20308, 518, 1807, 279, 2879, 1195, 7734, 1323, 14015, 71, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 677, 1362, 92, 1435, 288, 3639, 1149, 276, 31, 3639, 1250, 3476, 15160, 273, 629, 31, 3639, 1250, 1296, 1119, 31, 7734, 309, 261, 4149, 67, 701, 6408, 480, 446, 13, 288, 1082, 202, 474, 946, 273, 5275, 67, 701, 6408, 18, 2670, 780, 12, 2211, 16, 1705, 1769, 1082, 202, 430, 261, 17692, 422, 13899, 18, 88, 5804, 67, 4415, 747, 946, 422, 13899, 18, 88, 28225, 67, 4415, 13, 288, 9506, 565, 5275, 67, 701, 6408, 273, 446, 31, 9506, 565, 5275, 67, 2019, 273, 15123, 1119, 18, 2294, 8025, 67, 4415, 31, 1082, 202, 97, 1082, 202, 2463, 946, 31, 3639, 289, 3639, 783, 1616, 273, 1705, 18, 588, 2555, 5621, 7734, 1296, 2 ]
if(editorCell.getSubstituteInfo() == null) { editorCell.setSubstituteInfo(new DefaultChildSubstituteInfo(node, linkDeclaration)); }
editorCell.setSubstituteInfo(new DefaultChildSubstituteInfo(node, linkDeclaration));
public EditorCell createReturnType(EditorContext context, SemanticNode node) { SemanticNode referencedNode = null; referencedNode = node.getChild("returnType"); LinkDeclaration linkDeclaration = SModelUtil.getLinkDeclaration(node, "returnType"); if(referencedNode == null) { { EditorCell_Error noRefCell = EditorCell_Error.create(context, node, "<no return type>"); noRefCell.setEditable(true); noRefCell.setSelectable(true); noRefCell.setDrawBorder(false); noRefCell.setDrawBrackets(false); noRefCell.setBracketsColor(Color.black); noRefCell.setAction(EditorCellAction.DELETE, new CellAction_Empty()); noRefCell.setSubstituteInfo(new DefaultChildSubstituteInfo(node, linkDeclaration)); InstanceMethodDeclaration_ReturnTypeCellActions.setCellActions(noRefCell, node); return noRefCell; } } EditorCell editorCell = context.createNodeCell(referencedNode); editorCell.setSelectable(true); editorCell.setDrawBorder(false); editorCell.setDrawBrackets(false); editorCell.setBracketsColor(Color.black); editorCell.setAction(EditorCellAction.DELETE, new CellAction_Empty()); if(editorCell.getSubstituteInfo() == null) { editorCell.setSubstituteInfo(new DefaultChildSubstituteInfo(node, linkDeclaration)); } InstanceMethodDeclaration_ReturnTypeCellActions.setCellActions(editorCell, node); return editorCell; }
14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/070c0ea26462498cd3fd0191a2928604a661e584/InstanceMethodDeclaration_Editor.java/buggy/source_gen/jetbrains/mps/baseLanguage/editor/InstanceMethodDeclaration_Editor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 18451, 4020, 752, 9102, 12, 6946, 1042, 819, 16, 24747, 907, 756, 13, 288, 565, 24747, 907, 8042, 907, 273, 446, 31, 565, 8042, 907, 273, 756, 18, 588, 1763, 2932, 2463, 559, 8863, 565, 4048, 6094, 1692, 6094, 273, 348, 1488, 1304, 18, 588, 2098, 6094, 12, 2159, 16, 315, 2463, 559, 8863, 565, 309, 12, 20883, 907, 422, 446, 13, 288, 1377, 288, 3639, 18451, 4020, 67, 668, 1158, 1957, 4020, 273, 18451, 4020, 67, 668, 18, 2640, 12, 2472, 16, 756, 16, 3532, 2135, 327, 618, 2984, 1769, 3639, 1158, 1957, 4020, 18, 542, 15470, 12, 3767, 1769, 3639, 1158, 1957, 4020, 18, 542, 31544, 12, 3767, 1769, 3639, 1158, 1957, 4020, 18, 542, 6493, 8107, 12, 5743, 1769, 3639, 1158, 1957, 4020, 18, 542, 6493, 23029, 12, 5743, 1769, 3639, 1158, 1957, 4020, 18, 542, 23029, 2957, 12, 2957, 18, 11223, 1769, 3639, 1158, 1957, 4020, 18, 542, 1803, 12, 6946, 4020, 1803, 18, 6460, 16, 394, 8614, 1803, 67, 1921, 10663, 3639, 1158, 1957, 4020, 18, 542, 1676, 17207, 966, 12, 2704, 2989, 1763, 1676, 17207, 966, 12, 2159, 16, 1692, 6094, 10019, 3639, 5180, 1305, 6094, 67, 9102, 4020, 6100, 18, 542, 4020, 6100, 12, 2135, 1957, 4020, 16, 756, 1769, 3639, 327, 1158, 1957, 4020, 31, 1377, 289, 565, 289, 565, 18451, 4020, 4858, 4020, 273, 819, 18, 2640, 907, 4020, 12, 20883, 907, 1769, 565, 4858, 4020, 18, 542, 31544, 12, 3767, 1769, 565, 4858, 4020, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18451, 4020, 752, 9102, 12, 6946, 1042, 819, 16, 24747, 907, 756, 13, 288, 565, 24747, 907, 8042, 907, 273, 446, 31, 565, 8042, 907, 273, 756, 18, 588, 1763, 2932, 2463, 559, 8863, 565, 4048, 6094, 1692, 6094, 273, 348, 1488, 1304, 18, 588, 2098, 6094, 12, 2159, 16, 315, 2463, 559, 8863, 565, 309, 12, 20883, 907, 422, 446, 13, 288, 1377, 288, 3639, 18451, 4020, 67, 668, 1158, 1957, 4020, 273, 18451, 4020, 67, 668, 18, 2640, 12, 2472, 16, 756, 16, 3532, 2135, 327, 618, 2984, 1769, 3639, 1158, 1957, 4020, 18, 542, 15470, 12, 3767, 1769, 3639, 1158, 1957, 4020, 18, 542, 31544, 12, 3767, 1769, 3639, 1158, 1957, 4020, 18, 542, 2 ]
this.coreShader = coreShader; this.outlineShader = outlineShader;
public DefaultPointShader(PolygonShader coreShader, PolygonShader outlineShader) { super(); this.coreShader = coreShader; this.outlineShader = outlineShader; }
25560 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25560/ebefa80ebc57705657a2249820470c341a94948d/DefaultPointShader.java/clean/src-soft/de/jreality/soft/DefaultPointShader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2989, 2148, 19396, 12, 11787, 19396, 2922, 19396, 16, 12681, 19396, 16363, 19396, 13, 288, 3639, 2240, 5621, 3639, 333, 18, 3644, 19396, 273, 2922, 19396, 31, 3639, 333, 18, 25134, 19396, 273, 16363, 19396, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2989, 2148, 19396, 12, 11787, 19396, 2922, 19396, 16, 12681, 19396, 16363, 19396, 13, 288, 3639, 2240, 5621, 3639, 333, 18, 3644, 19396, 273, 2922, 19396, 31, 3639, 333, 18, 25134, 19396, 273, 16363, 19396, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
assertTrue(cnnrm.revaluator != null);
assertTrue(CNNRegressionModel.revaluator != null);
public void testCNNRegressionModel() throws CDKException, java.lang.Exception, QSARModelException { double[][] x = {{ 5.33029143313, 8.13257437501, 2.66720308462 }, { 3.29906147519, 5.06835102093, 6.47319431067 }, { 5.69553153292, 5.88043843898, 9.73312992111 }, { 5.29194559083, 6.78243188133, 3.2602449344 }, { 6.18105762768, 3.36588488672, 3.94539328809 }, { 1.32223357975, 8.78797039033, 7.77485740688 }, { 0.391740629966, 5.08060997023, 8.28722389016 }, { 4.27475126706, 8.52015977633, 7.21468545649 }, { 7.14131409262, 8.67086866827, 7.64228671009 }, { 8.55502719447, 5.25013245421, 5.73240025988 }, { 5.31791067667, 7.99313789208, 1.64835209014 }, { 9.03149835466, 1.94042287241, 9.28020345543 }, { 0.925468187342, 4.97155215507, 7.69457858258 }, { 9.16182426614, 4.74534182996, 6.58111071706 }, { 1.15220637861, 1.78078924823, 2.24407287943 }, { 9.24209878847, 7.87658524713, 2.38732162601 }, { 8.50715035908, 9.16453417058, 0.618727514944 }, { 5.84019865932, 5.20208546615, 6.61838858253 }, { 3.76256505014, 0.329738943471, 0.874419640166 }, { 9.96004184517, 9.14019090437, 4.90929645109 }, { 4.44743194213, 3.95642974577, 7.62629150218 }, { 1.24177865105, 1.48660423923, 1.20830798956 }, { 8.35590316383, 1.14743031542, 6.29868134513 }, { 6.12876561357, 4.63929392357, 5.87722199543 }, { 8.11829752127, 0.13950274139, 2.54723293455 }, { 4.40852772122, 5.07291389291, 0.100128243526 }, { 2.58403059855, 1.78831569742, 5.19817475725 }, { 8.04282601008, 3.76076347262, 1.43904088129 }, { 3.43713025153, 4.35105074191, 0.0189145485124 }, { 5.0236445539, 1.06317719489, 5.10306592945 }, { 9.77434875025, 9.0666617274, 6.99448050277 }, { 4.06797047248, 7.62659701718, 9.83152424086 }, { 6.48920287132, 0.156594507329, 5.46872113685 }, { 6.42883928789, 2.01940454563, 6.46523071259 }, { 1.16293901493, 5.15391581673, 3.56182526491 }, { 7.38000931385, 0.453325117578, 6.61031329357 }, { 9.32963370626, 2.12590745134, 0.405388324151 }, { 0.737255223472, 7.39059871721, 2.86079226118 }, { 6.85301380605, 2.1615949728, 8.87574040247 }, { 3.74156226774, 4.24620341057, 4.35371571862 }, { 2.18208535888, 3.53972126321, 3.59052000965 }, { 4.72006492073, 3.3574566235, 9.62444364758 }, { 2.84331278854, 1.74554945195, 4.51285607572 }, { 3.86999763691, 9.49323614413, 5.08797427552 }, { 7.43099014174, 6.2755590307, 4.57542355747 }, { 6.01320531795, 8.25706473123, 7.40439342966 }, { 6.46384266575, 3.51112862363, 9.47435948698 }, { 2.29011620065, 0.401145254435, 7.28671287627 }, { 5.7219136188, 4.43209346253, 0.0622901932013 }, { 4.30214056802, 1.68925570283, 7.89926376252 }, { 0.64305256706, 8.22063584536, 4.33019352991 }, { 6.44843380824, 9.10336359279, 6.8777037869 }, { 2.45354486215, 5.34166315571, 8.04822795875 }, { 9.13675572384, 8.19635101591, 6.85475060116 }, { 8.0492824201, 7.55216736195, 3.73472402973 }, { 4.40590062277, 5.27106603309, 2.59962025805 }, { 0.313960278741, 0.11866096726, 4.07985095305 }, { 0.462136466507, 0.415202739102, 1.03258083165 }, { 6.74723654049, 7.7080622951, 7.22322407979 }, { 1.97571555403, 3.18544339131, 5.56211977273 }, { 3.14021838165, 0.81551917817, 3.95156287418 }, { 4.05709817216, 2.98004731237, 5.8975379443 }, { 4.25420450429, 7.78663760941, 5.98061090504 }, { 6.2650372416, 7.96507652177, 6.43631309268 }, { 0.248308143147, 5.07557198176, 7.06413762375 }, { 2.83741089895, 0.652445391344, 3.32535947415 }, { 5.98115064142, 9.88913498552, 9.3923706794 }, { 3.45667026676, 1.37451287268, 2.35331272082 }, { 7.83964781871, 2.22111016571, 9.10723793073 }, { 0.509210152705, 7.97088780188, 6.17963669424 }, { 5.50910552235, 6.92372624674, 8.43151367671 }, { 9.94686419266, 5.16899669191, 1.77353096261 }, { 1.46501561342, 4.39317416608, 4.66752677391 }, { 7.34126711314, 1.50352255841, 7.42777093653 }, { 6.80122177161, 2.48753341584, 4.30535748793 }, { 3.43057685209, 9.11458889251, 8.1389601215 }, { 7.82076320157, 4.99727977399, 8.31875065375 }, { 8.62799832715, 5.67304190345, 1.40517550057 }, { 2.20910090066, 5.45236965227, 0.190013284925 }, { 8.27876352499, 3.23706166886, 6.23912802837 }, { 8.69440791615, 0.729194277167, 3.45645694332 }, { 8.30552885891, 2.53977734839, 0.498635632483 }, { 6.35009207052, 5.87727519703, 4.92604761655 }, { 2.21876644613, 3.85669457256, 9.44139826683 }, { 5.49181700898, 1.69048597254, 2.29475976286 }, { 3.79777411904, 0.437885574937, 8.10175192316 }, { 8.11720195104, 8.84115458961, 6.25490466144 }, { 4.58878775312, 5.51332276174, 3.85400216514 }, { 6.01729101329, 9.69817519935, 7.63607038602 }, { 4.14247512757, 9.633551519, 0.543555309265 }, { 1.69925453337, 4.77655288911, 0.950497583032 }, { 3.84897216241, 3.27769006984, 9.17922626403 }, { 2.79348258306, 4.38230737375, 7.26219595942 }, { 4.88988551153, 2.95206506434, 3.65797143803 }, { 1.91134803528, 0.829719567085, 1.73891604909 }, { 5.5514711696, 8.80684284298, 2.66911304157 }, { 2.95100011358, 0.832983961872, 4.19266815334 }, { 4.19942346415, 5.92478285192, 8.33053966924 }, { 3.11127058351, 3.25340097022, 7.07258377268 }, { 7.61105416732, 8.46642439572, 5.61730141222 }}; double[] y = { 0.548279405588, 0.749557798438, 0.704786225556, 0.064272559019, 0.959196778261, 0.443650457811, 0.139588310157, 0.697614953528, 0.894633307417, 0.288986449536, 0.968020911596, 0.00941763156173, 0.803870693657, 0.457124742168, 0.728543899161, 0.88083354383, 0.624089352674, 0.470379461181, 0.86877991158, 0.622721685808, 0.0250057478044, 0.2376603194, 0.112920370051, 0.608780223601, 0.62741359624, 0.39753977229, 0.396823887458, 0.0259021311271, 0.433022176171, 0.94665816668, 0.788805032857, 0.831096752197, 0.981239642073, 0.72411413954, 0.585272152663, 0.694317542691, 0.890624533901, 0.244048473797, 0.422902339036, 0.597269134374, 0.911340032927, 0.00186723050398, 0.439586593554, 0.714613974993, 0.815341829936, 0.726336948414, 0.742772100572, 0.597295528478, 0.305955366581, 0.155579392014, 0.000873693540479, 0.339225424495, 0.433434106377, 0.109738110471, 0.0193980726758, 0.258795872246, 0.322462583569, 0.326807898424, 0.079866937163, 0.741776416238, 0.597174006951, 0.289816194377, 0.691182117374, 0.113315930392, 0.302120795811, 0.616653275971, 0.833480904688, 0.881803762099, 0.734675438389, 0.269429129873, 0.977225860294, 0.327410536298, 0.319292292397, 0.876227987007, 0.832930007711, 0.941552570764, 0.0433177729231, 0.333665283905, 0.889264621262, 0.367930824862, 0.143633644589, 0.0106269520474, 0.623817520313, 0.237853599409, 0.301794094647, 0.912166461213, 0.663976930266, 0.918081800984, 0.909573924607, 0.976541368479, 0.340915467396, 0.617160565805, 0.0315242385532, 0.869413665191, 0.695610662213, 0.144537534715, 0.619567870639, 0.159550199731, 0.536333432502, 0.837898880743 }; CNNRegressionModel cnnrm = new CNNRegressionModel(x,y,3); assertTrue(cnnrm.revaluator != null); Double[] Wts = { new Double(0.51404345),new Double(0.50840113),new Double(0.74685975),new Double(0.13561035), new Double(0.29352420),new Double(0.82764496),new Double(0.48282801),new Double(0.36164355), new Double(0.33401877),new Double(0.58141624),new Double(0.08336752),new Double(0.72385802), new Double(0.94860029),new Double(0.32215781),new Double(0.32806066),new Double(0.66709418) }; cnnrm.setParameters("Wts",Wts); cnnrm.build(); double value = cnnrm.getFitValue(); assertEquals(value, 8.076735, .000001); double[] wts = cnnrm.getFitWeights(); assertTrue(wts != null); assertEquals(-1.635880, wts[0], .000001); assertEquals(-6.227619, wts[1], .000001); assertEquals(-4.639471, wts[2], .000001); assertEquals(-4.060546, wts[3], .000001); double[][] fitted = cnnrm.getFitFitted(); assertTrue(fitted != null); assertEquals(0.527783, fitted[0][0], .000001); assertEquals(0.527783, fitted[1][0], .000001); assertEquals(0.527783, fitted[2][0], .000001); assertEquals(0.203857, fitted[6][0], .000001); /* Test predictions */ Double[][] newx = { { new Double(9.81536768251), new Double(3.82849269659), new Double(7.22212024421) }, { new Double(0.197449829806), new Double(0.324130354642), new Double(2.8329420321) }, { new Double(0.548460836141), new Double(7.28037586863), new Double(8.13728493983) }, { new Double(1.76049278788), new Double(6.41731766803), new Double(5.53986167864) }, { new Double(3.4541825491), new Double(9.78038580407), new Double(3.58954097059) } }; cnnrm.setParameters("newdata", newx); cnnrm.setParameters("type", "raw"); // this is set by default so no real need cnnrm.predict(); double[][] preds = cnnrm.getPredictPredicted(); assertTrue(preds != null); assertEquals(0.527783, preds[0][0], 0.000001); assertEquals(0.401678, preds[1][0], 0.000001); assertEquals(0.390702, preds[2][0], 0.000001); assertEquals(0.527783, preds[3][0], 0.000001); assertEquals(0.527783, preds[4][0], 0.000001); CNNRegressionModelSummary s = cnnrm.summary(); assertTrue(s != null); }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/a08c6ae51fd6e8e2448b2b9fde92a30a4e271589/CNNRegressionModelTest.java/clean/src/org/openscience/cdk/test/qsar/model/CNNRegressionModelTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1842, 39, 12225, 1617, 16345, 1488, 1435, 1216, 24570, 16, 2252, 18, 4936, 18, 503, 16, 2238, 55, 985, 1488, 503, 288, 5411, 1645, 63, 6362, 65, 619, 273, 10179, 1381, 18, 3707, 3103, 29, 3461, 3707, 3437, 16, 1725, 18, 22152, 25, 21609, 5877, 1611, 16, 576, 18, 6028, 27, 3462, 5082, 5193, 8898, 19879, 7734, 288, 890, 18, 22, 2733, 7677, 3461, 5877, 3657, 16, 1381, 18, 7677, 28, 4763, 2163, 3462, 11180, 16, 1666, 18, 24, 9036, 3657, 8942, 2163, 9599, 19879, 7734, 288, 1381, 18, 8148, 2539, 23, 3600, 1578, 9975, 16, 1381, 18, 5482, 3028, 17295, 23, 6675, 28, 16, 2468, 18, 27, 3707, 2138, 2733, 22, 20227, 19879, 7734, 288, 1381, 18, 5540, 15613, 2539, 29, 6840, 23, 16, 1666, 18, 8285, 3247, 23, 2643, 28, 28615, 16, 890, 18, 5558, 3103, 6334, 29, 5026, 24, 19879, 7734, 288, 1666, 18, 2643, 21661, 6669, 5324, 9470, 16, 890, 18, 5718, 8204, 5193, 28, 5292, 9060, 16, 890, 18, 29, 7950, 5520, 1578, 28, 3672, 29, 19879, 7734, 288, 404, 18, 1578, 3787, 3707, 25, 7235, 5877, 16, 1725, 18, 8285, 7235, 27, 4630, 9349, 3707, 16, 2371, 18, 4700, 24, 7140, 5608, 7677, 5482, 19879, 7734, 288, 374, 18, 5520, 4033, 7132, 8898, 2733, 6028, 16, 1381, 18, 20, 3672, 4848, 2733, 27, 3103, 23, 16, 1725, 18, 6030, 27, 3787, 23, 6675, 24171, 19879, 7734, 288, 1059, 18, 5324, 24, 5877, 25452, 7301, 26, 16, 1725, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1842, 39, 12225, 1617, 16345, 1488, 1435, 1216, 24570, 16, 2252, 18, 4936, 18, 503, 16, 2238, 55, 985, 1488, 503, 288, 5411, 1645, 63, 6362, 65, 619, 273, 10179, 1381, 18, 3707, 3103, 29, 3461, 3707, 3437, 16, 1725, 18, 22152, 25, 21609, 5877, 1611, 16, 576, 18, 6028, 27, 3462, 5082, 5193, 8898, 19879, 7734, 288, 890, 18, 22, 2733, 7677, 3461, 5877, 3657, 16, 1381, 18, 7677, 28, 4763, 2163, 3462, 11180, 16, 1666, 18, 24, 9036, 3657, 8942, 2163, 9599, 19879, 7734, 288, 1381, 18, 8148, 2539, 23, 3600, 1578, 9975, 16, 1381, 18, 5482, 3028, 17295, 23, 6675, 28, 16, 2468, 18, 27, 3707, 2138, 2733, 22, 20227, 19879, 7734, 288, 2 ]
synchronized void run(Runnable r) {
synchronized void run(Runnable r, Activity a) {
synchronized void run(Runnable r) { assert job == null; job = r; this.notifyAll(); }
1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/cc732b292ef4bf75b3e746afa1a3ae2eb742dcc8/LocalPlace_c.java/buggy/x10.runtime/src/x10/runtime/LocalPlace_c.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3852, 918, 1086, 12, 20013, 436, 16, 9621, 279, 13, 288, 5411, 1815, 1719, 422, 446, 31, 5411, 1719, 273, 436, 31, 5411, 333, 18, 12336, 1595, 5621, 3639, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3852, 918, 1086, 12, 20013, 436, 16, 9621, 279, 13, 288, 5411, 1815, 1719, 422, 446, 31, 5411, 1719, 273, 436, 31, 5411, 333, 18, 12336, 1595, 5621, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
url = new File( index.getRepository().getBasedir() + groupId.replace( '.', '/' ) + "/" + filename ).toURL(); is = url.openStream();
is = new FileInputStream( new File( index.getRepository().getBasedir() + groupId.replace( '.', '/' ) + "/" + filename ) );
private RepositoryMetadata getMetadata( String groupId, String artifactId, String version, String filename, String metadataType ) throws MalformedURLException, IOException, XmlPullParserException { RepositoryMetadata repoMetadata = null; URL url; InputStream is = null; MetadataXpp3Reader metadataReader = new MetadataXpp3Reader(); //group metadata if ( metadataType.equals( MetadataRepositoryIndex.GROUP_METADATA ) ) { url = new File( index.getRepository().getBasedir() + groupId.replace( '.', '/' ) + "/" + filename ).toURL(); is = url.openStream(); repoMetadata = new GroupRepositoryMetadata( groupId ); repoMetadata.setMetadata( metadataReader.read( new InputStreamReader( is ) ) ); } //artifact metadata else if ( metadataType.equals( MetadataRepositoryIndex.ARTIFACT_METADATA ) ) { url = new File( index.getRepository().getBasedir() + groupId.replace( '.', '/' ) + "/" + artifactId + "/" + filename ).toURL(); is = url.openStream(); repoMetadata = new ArtifactRepositoryMetadata( factory.createBuildArtifact( groupId, artifactId, version, "jar" ) ); repoMetadata.setMetadata( metadataReader.read( new InputStreamReader( is ) ) ); } //snapshot/version metadata else if ( metadataType.equals( MetadataRepositoryIndex.SNAPSHOT_METADATA ) ) { url = new File( index.getRepository().getBasedir() + groupId.replace( '.', '/' ) + "/" + artifactId + "/" + version + "/" + filename ).toURL(); is = url.openStream(); repoMetadata = new SnapshotArtifactRepositoryMetadata( factory.createBuildArtifact( groupId, artifactId, version, "jar" ) ); repoMetadata.setMetadata( metadataReader.read( new InputStreamReader( is ) ) ); } return repoMetadata; }
28441 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28441/edd8a998aa6006fddaf4d4a404bbdd6ddfd246d7/DefaultRepositoryIndexSearcher.java/clean/maven-repository-indexer/src/main/java/org/apache/maven/repository/indexing/DefaultRepositoryIndexSearcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 6281, 2277, 11159, 12, 514, 6612, 16, 514, 25496, 16, 514, 1177, 16, 514, 1544, 16, 4766, 5411, 514, 1982, 559, 262, 3639, 1216, 20710, 16, 1860, 16, 5714, 9629, 25746, 565, 288, 3639, 6281, 2277, 3538, 2277, 273, 446, 31, 3639, 1976, 880, 31, 3639, 5037, 353, 273, 446, 31, 3639, 6912, 60, 11858, 23, 2514, 1982, 2514, 273, 394, 6912, 60, 11858, 23, 2514, 5621, 3639, 368, 1655, 1982, 3639, 309, 261, 1982, 559, 18, 14963, 12, 6912, 3305, 1016, 18, 8468, 67, 22746, 262, 262, 3639, 288, 5411, 880, 273, 394, 1387, 12, 770, 18, 588, 3305, 7675, 588, 2171, 1214, 1435, 397, 6612, 18, 2079, 12, 2611, 16, 2023, 262, 397, 4016, 397, 1544, 262, 18, 869, 1785, 5621, 5411, 353, 273, 880, 18, 3190, 1228, 5621, 5411, 3538, 2277, 273, 394, 3756, 3305, 2277, 12, 6612, 11272, 5411, 3538, 2277, 18, 542, 2277, 12, 1982, 2514, 18, 896, 12, 394, 15322, 12, 353, 262, 262, 11272, 3639, 289, 3639, 368, 17706, 1982, 3639, 469, 309, 261, 1982, 559, 18, 14963, 12, 6912, 3305, 1016, 18, 4928, 45, 11625, 67, 22746, 262, 262, 3639, 288, 5411, 880, 273, 394, 1387, 12, 770, 18, 588, 3305, 7675, 588, 2171, 1214, 1435, 397, 6612, 18, 2079, 12, 2611, 16, 2023, 262, 397, 4016, 397, 25496, 397, 4016, 397, 7734, 1544, 262, 18, 869, 1785, 5621, 5411, 353, 273, 880, 18, 3190, 1228, 5621, 5411, 3538, 2277, 273, 7734, 394, 14022, 3305, 2277, 12, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6281, 2277, 11159, 12, 514, 6612, 16, 514, 25496, 16, 514, 1177, 16, 514, 1544, 16, 4766, 5411, 514, 1982, 559, 262, 3639, 1216, 20710, 16, 1860, 16, 5714, 9629, 25746, 565, 288, 3639, 6281, 2277, 3538, 2277, 273, 446, 31, 3639, 1976, 880, 31, 3639, 5037, 353, 273, 446, 31, 3639, 6912, 60, 11858, 23, 2514, 1982, 2514, 273, 394, 6912, 60, 11858, 23, 2514, 5621, 3639, 368, 1655, 1982, 3639, 309, 261, 1982, 559, 18, 14963, 12, 6912, 3305, 1016, 18, 8468, 67, 22746, 262, 262, 3639, 288, 5411, 880, 273, 394, 1387, 12, 770, 18, 588, 3305, 7675, 588, 2171, 1214, 1435, 397, 6612, 18, 2079, 12, 2611, 16, 2023, 262, 397, 4016, 397, 2 ]