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
return (Function) compile(scope, in, sourceName, lineno,
return (Function) compile(scope, null, source, sourceName, lineno,
public Function compileFunction(Scriptable scope, String source, String sourceName, int lineno, Object securityDomain) { Reader in = new StringReader(source); try { return (Function) compile(scope, in, sourceName, lineno, securityDomain, true); } catch (IOException ioe) { // Should never happen because we just made the reader // from a String throw new RuntimeException(); } }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/8d78476dde863807579dcd20202decfcfcc9f7f1/Context.java/clean/js/rhino/src/org/mozilla/javascript/Context.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4284, 4074, 2083, 12, 3651, 429, 2146, 16, 514, 1084, 16, 4766, 565, 514, 28337, 16, 509, 7586, 16, 4766, 565, 1033, 4373, 3748, 13, 565, 288, 3639, 5393, 316, 273, 394, 26227, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4284, 4074, 2083, 12, 3651, 429, 2146, 16, 514, 1084, 16, 4766, 565, 514, 28337, 16, 509, 7586, 16, 4766, 565, 1033, 4373, 3748, 13, 565, 288, 3639, 5393, 316, 273, 394, 26227, 12...
public String exportUsersToString() throws IOException { StringWriter stringWriter = new StringWriter(); XMLWriter writer = null; try { writer = new XMLWriter(stringWriter, OutputFormat.createPrettyPrint()); writer.write(exportUsers()); } catch (IOException ioe) { Log.error(ioe); throw ioe; } finally { if (writer != null) { writer.close(); } } return stringWriter.toString(); }
51636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51636/3e474ee50b4c07e7a7ef66309bd590c4b956cfd1/ImportExportPlugin.java/clean/src/plugins/userImportExport/src/java/org/jivesoftware/messenger/plugin/ImportExportPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 3359, 6588, 5808, 1435, 1216, 1860, 288, 377, 202, 780, 2289, 533, 2289, 273, 394, 17436, 5621, 377, 202, 4201, 2289, 2633, 273, 446, 31, 3639, 775, 288, 202, 3639, 2633, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 3359, 6588, 5808, 1435, 1216, 1860, 288, 377, 202, 780, 2289, 533, 2289, 273, 394, 17436, 5621, 377, 202, 4201, 2289, 2633, 273, 446, 31, 3639, 775, 288, 202, 3639, 2633, 273, ...
String foundName = build(name, appletDir.getPath());
String foundName = build(appletDir.getPath(), name);
public boolean exportApplet(boolean replaceHtml) throws Exception { //File appletDir, String exportSketchName, File dataDir) { //String program = textarea.getText(); // create the project directory // pass null for datapath because the files shouldn't be // copied to the build dir.. that's only for the temp stuff File appletDir = new File(folder, "applet"); boolean writeHtml = true; if (appletDir.exists()) { File htmlFile = new File(appletDir, "index.html"); if (htmlFile.exists() && !replaceHtml) { writeHtml = false; } } else { appletDir.mkdirs(); } // build the sketch String foundName = build(name, appletDir.getPath()); // (already reported) error during export, exit this function if (foundName == null) return false; // if name != exportSketchName, then that's weirdness // BUG unfortunately, that can also be a bug in the preproc :( if (!name.equals(foundName)) { PdeBase.showWarning("Error during export", "Sketch name is " + name + " but the sketch\n" + "name in the code was " + foundName, null); return false; } if (writeHtml) { int wide = BApplet.DEFAULT_WIDTH; int high = BApplet.DEFAULT_HEIGHT; //try { PatternMatcher matcher = new Perl5Matcher(); PatternCompiler compiler = new Perl5Compiler(); // this matches against any uses of the size() function, // whether they contain numbers of variables or whatever. // this way, no warning is shown if size() isn't actually // used in the applet, which is the case especially for // beginners that are cutting/pasting from the reference. String sizing = "[\\s\\;]size\\s*\\(\\s*(\\S+)\\s*,\\s*(\\S+)\\s*\\);"; Pattern pattern = compiler.compile(sizing); // adds a space at the beginning, in case size() is the very // first thing in the program (very common), since the regexp // needs to check for things in front of it. PatternMatcherInput input = new PatternMatcherInput(" " + code[0].program); if (matcher.contains(input, pattern)) { MatchResult result = matcher.getMatch(); try { wide = Integer.parseInt(result.group(1).toString()); high = Integer.parseInt(result.group(2).toString()); } catch (NumberFormatException e) { // found a reference to size, but it didn't // seem to contain numbers final String message = "The size of this applet could not automatically be\n" + "determined from your code. You'll have to edit the\n" + "HTML file to set the size of the applet."; PdeBase.showWarning("Could not find applet size", message, null); } } // else no size() command found // handle this in editor instead, rare or nonexistant //} catch (MalformedPatternException e) { //PdeBase.showWarning("Internal Problem", // "An internal error occurred while trying\n" + // "to export the sketch. Please report this.", e); //return false; //} StringBuffer sources = new StringBuffer(); for (int i = 0; i < codeCount; i++) { sources.append("<a href=\'" + code[i].file.getName() + "\">" + code[i].name + "</a> "); } File htmlOutputFile = new File(appletDir, "index.html"); FileOutputStream fos = new FileOutputStream(htmlOutputFile); PrintStream ps = new PrintStream(fos); // @@sketch@@, @@width@@, @@height@@, @@archive@@, @@source@@ InputStream is = PdeBase.getStream("applet.html"); BufferedReader reader = new BufferedReader(new InputStreamReader(is)); String line = null; while ((line = reader.readLine()) != null) { if (line.indexOf("@@") != -1) { StringBuffer sb = new StringBuffer(line); int index = 0; while ((index = sb.indexOf("@@sketch@@")) != -1) { sb.replace(index, index + "@@sketch@@".length(), name); } while ((index = sb.indexOf("@@source@@")) != -1) { sb.replace(index, index + "@@source@@".length(), sources.toString()); } while ((index = sb.indexOf("@@archive@@")) != -1) { sb.replace(index, index + "@@archive@@".length(), name + ".jar"); } while ((index = sb.indexOf("@@width@@")) != -1) { sb.replace(index, index + "@@width@@".length(), String.valueOf(wide)); } while ((index = sb.indexOf("@@height@@")) != -1) { sb.replace(index, index + "@@height@@".length(), String.valueOf(wide)); } line = sb.toString(); } ps.println(line); } reader.close(); ps.flush(); ps.close(); } // copy the source files to the target, since we like // to encourage people to share their code for (int i = 0; i < codeCount; i++) { try { PdeBase.copyFile(code[i].file, new File(appletDir, code[i].file.getName())); } catch (IOException e) { } } // create new .jar file FileOutputStream zipOutputFile = new FileOutputStream(new File(appletDir, name + ".jar")); ZipOutputStream zos = new ZipOutputStream(zipOutputFile); ZipEntry entry; // add the contents of the code folder to the jar // unpacks all jar files //File codeFolder = new File(folder, "code"); if (codeFolder.exists()) { String includes = PdeCompiler.contentsToClassPath(codeFolder); packClassPathIntoZipFile(includes, zos); } // add the appropriate bagel to the classpath String jdkVersion = PdePreferences.get("compiler.jdk_version"); String bagelJar = "lib/export11.jar"; // default if (jdkVersion.equals("1.3") || jdkVersion.equals("1.4")) { bagelJar = "lib/export13.jar"; } //if (jdkVersionStr.equals("1.3")) { bagelJar = "export13.jar" }; //if (jdkVersionStr.equals("1.4")) { bagelJar = "export14.jar" }; packClassPathIntoZipFile(bagelJar, zos); /* // add the contents of lib/export to the jar file // these are the jdk11-only bagel classes String exportDir = ("lib" + File.separator + "export" + File.separator); String bagelClasses[] = new File(exportDir).list(); for (int i = 0; i < bagelClasses.length; i++) { if (!bagelClasses[i].endsWith(".class")) continue; entry = new ZipEntry(bagelClasses[i]); zos.putNextEntry(entry); zos.write(PdeBase.grabFile(new File(exportDir + bagelClasses[i]))); zos.closeEntry(); } */ // TODO these two loops are insufficient. // should instead recursively add entire contents of build folder // the data folder will already be a subdirectory // and the classes may be buried in subfolders if a package name was used // files to include from data directory //if ((dataDir != null) && (dataDir.exists())) { if (dataFolder.exists()) { String dataFiles[] = dataFolder.list(); for (int i = 0; i < dataFiles.length; i++) { // don't export hidden files // skipping dot prefix removes all: . .. .DS_Store if (dataFiles[i].charAt(0) == '.') continue; entry = new ZipEntry(dataFiles[i]); zos.putNextEntry(entry); zos.write(PdeBase.grabFile(new File(dataFolder, dataFiles[i]))); zos.closeEntry(); } } // add the project's .class files to the jar // just grabs everything from the build directory // since there may be some inner classes // (add any .class files from the applet dir, then delete them) String classfiles[] = appletDir.list(); for (int i = 0; i < classfiles.length; i++) { if (classfiles[i].endsWith(".class")) { entry = new ZipEntry(classfiles[i]); zos.putNextEntry(entry); zos.write(PdeBase.grabFile(new File(appletDir, classfiles[i]))); zos.closeEntry(); } } // remove the .class files from the applet folder. if they're not // removed, the msjvm will complain about an illegal access error, // since the classes are outside the jar file. for (int i = 0; i < classfiles.length; i++) { if (classfiles[i].endsWith(".class")) { File deadguy = new File(appletDir, classfiles[i]); if (!deadguy.delete()) { PdeBase.showWarning("Could not delete", classfiles[i] + " could not \n" + "be deleted from the applet folder. \n" + "You'll need to remove it by hand.", null); } } } // close up the jar file zos.flush(); zos.close(); PdeBase.openFolder(appletDir); //} catch (Exception e) { //e.printStackTrace(); //} return true; }
8833 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8833/7f5a2857064f54f5ccec93f9588d51554f8d0820/PdeSketch.java/clean/app/PdeSketch.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 3359, 23696, 12, 6494, 1453, 4353, 13, 1216, 1185, 288, 565, 368, 812, 21853, 1621, 16, 514, 3359, 22900, 461, 16, 1387, 24905, 13, 288, 565, 368, 780, 5402, 273, 19691, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 3359, 23696, 12, 6494, 1453, 4353, 13, 1216, 1185, 288, 565, 368, 812, 21853, 1621, 16, 514, 3359, 22900, 461, 16, 1387, 24905, 13, 288, 565, 368, 780, 5402, 273, 19691, 18, ...
protected void appendToIndexFile(File errorFile, Throwable t) throws IOException {
protected void appendToIndexFile(File errorFile, Throwable t) throws IOException {
protected void appendToIndexFile(File errorFile, Throwable t) throws IOException { File index = new File(directory, "index.html"); BufferedWriter out = new BufferedWriter(new FileWriter(index, true)); writeln(out, new MicroSecondDate()+" <a href="+'"'+errorFile.getName()+'"'+">"+t.getClass().getName()+"</a><br/>"); out.close(); }
52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/31ea5ced6a7560c0a16e053aed85edd01c369190/HTMLReporter.java/buggy/src/edu/sc/seis/fissuresUtil/exceptionHandler/HTMLReporter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 16022, 1016, 812, 12, 812, 555, 812, 16, 4206, 268, 13, 1216, 1860, 288, 3639, 1387, 770, 273, 394, 1387, 12, 5149, 16, 315, 1615, 18, 2620, 8863, 3639, 22490, 596, 273, 394,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 16022, 1016, 812, 12, 812, 555, 812, 16, 4206, 268, 13, 1216, 1860, 288, 3639, 1387, 770, 273, 394, 1387, 12, 5149, 16, 315, 1615, 18, 2620, 8863, 3639, 22490, 596, 273, 394,...
return "success";
return "success"; } catch (CalFacadeException cfe) { if (CalFacadeException.duplicateGuid.equals(cfe.getMessage())) { form.getErr().emit("org.bedework.client.error.duplicate.guid"); return "duplicate"; } throw cfe; }
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } CalSvcI svci = form.fetchSvci(); EventInfo ei = findEvent(request, form); if (ei == null) { // Do nothing return "doNothing"; } /* Create an event to act as a reference to the targeted event and copy * the appropriate fields from the target */ BwEventProxy proxy = BwEventProxy.makeAnnotation(ei.getEvent(), ei.getEvent().getOwner()); BwCalendar cal = svci.getPreferredCalendar(); proxy.setOwner(svci.getUser()); svci.addEvent(cal, proxy, null); form.getMsg().emit("org.bedework.client.message.added.eventrefs", 1); BwGoToAction.gotoDateView(this, form, proxy.getDtstart().getDate().substring(0, 8), BedeworkDefs.dayView, debug); form.refreshIsNeeded(); return "success"; }
50848 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50848/95925f26afe3eed9b07ba8b5139e0f624cf14c2d/BwAddEventRefAction.java/buggy/calendar3/webclient/src/org/bedework/webclient/BwAddEventRefAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 741, 1803, 12, 2940, 18572, 590, 16, 7682, 605, 91, 1803, 1204, 646, 13, 1216, 4206, 288, 565, 309, 261, 687, 18, 588, 12978, 10756, 288, 1377, 327, 315, 2896, 23814, 14432, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 1803, 12, 2940, 18572, 590, 16, 7682, 605, 91, 1803, 1204, 646, 13, 1216, 4206, 288, 565, 309, 261, 687, 18, 588, 12978, 10756, 288, 1377, 327, 315, 2896, 23814, 14432, ...
public static void registerVirtualNode(VirtualNode virtualNode, String registrationProtocol, boolean replacePreviousBinding) throws ProActiveException, AlreadyBoundException { if (!(virtualNode instanceof VirtualNodeImpl)) { throw new ProActiveException( "Cannot register such virtualNode since it results from a lookup!"); } if (registrationProtocol == null) { registrationProtocol = System.getProperty( "proactive.communication.protocol"); } String virtualnodeName = virtualNode.getName(); ProActiveRuntime part = RuntimeFactory.getProtocolSpecificRuntime(registrationProtocol); VirtualNode vn = part.getVirtualNode(virtualnodeName); if (vn == null) { throw new ProActiveException("VirtualNode " + virtualnodeName + " has not been yet activated or does not exist! Try to activate it first !"); } part.registerVirtualNode(UrlBuilder.appendVnSuffix(virtualnodeName), replacePreviousBinding); }
14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/a5e5e535dec443ddf23a4fb2e4ab651cd70b575d/ProActive.java/buggy/src/org/objectweb/proactive/ProActive.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 3845, 6459, 4861, 6466, 907, 12, 6466, 907, 12384, 907, 16, 780, 14170, 5752, 16, 6494, 2079, 8351, 5250, 13, 15069, 626, 3896, 503, 16, 9430, 3499, 503, 95, 430, 12, 5, 12, 12384, 907...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 3845, 6459, 4861, 6466, 907, 12, 6466, 907, 12384, 907, 16, 780, 14170, 5752, 16, 6494, 2079, 8351, 5250, 13, 15069, 626, 3896, 503, 16, 9430, 3499, 503, 95, 430, 12, 5, 12, 12384, 907...
public Component getTreeCellRendererComponent(JTree tree,
Component getTreeCellRendererComponent(JTree tree,
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f03053e30bf23122f89e48e88064677b27fdd7c/TreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/TreeCellRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5435, 15867, 4020, 6747, 1841, 12, 46, 2471, 2151, 16, 1082, 202, 921, 460, 16, 1250, 3170, 16, 1250, 8406, 16, 1082, 202, 6494, 7839, 16, 509, 1027, 16, 1250, 711, 9233, 1769...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5435, 15867, 4020, 6747, 1841, 12, 46, 2471, 2151, 16, 1082, 202, 921, 460, 16, 1250, 3170, 16, 1250, 8406, 16, 1082, 202, 6494, 7839, 16, 509, 1027, 16, 1250, 711, 9233, 1769...
{ mBOOL(); if (failed) return ;
{ mEND(); if (failed) return ;
public void mTokens() throws RecognitionException { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:10: ( T26 | T27 | T28 | T29 | T30 | T31 | T32 | T33 | T34 | T35 | T36 | T37 | T38 | T39 | T40 | T41 | T42 | T43 | T44 | T45 | T46 | T47 | T48 | T49 | T50 | T51 | T52 | T53 | T54 | T55 | T56 | T57 | T58 | T59 | T60 | T61 | T62 | T63 | T64 | T65 | T66 | T67 | T68 | T69 | T70 | T71 | T72 | T73 | RHS | WS | INT | FLOAT | STRING | BOOL | ID | SH_STYLE_SINGLE_LINE_COMMENT | C_STYLE_SINGLE_LINE_COMMENT | CURLY_CHUNK | LEFT_PAREN | RIGHT_PAREN | LEFT_SQUARE | RIGHT_SQUARE | MULTI_LINE_COMMENT | MISC ) int alt21=64; alt21 = dfa21.predict(input); switch (alt21) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:10: T26 { mT26(); if (failed) return ; } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:14: T27 { mT27(); if (failed) return ; } break; case 3 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:18: T28 { mT28(); if (failed) return ; } break; case 4 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:22: T29 { mT29(); if (failed) return ; } break; case 5 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:26: T30 { mT30(); if (failed) return ; } break; case 6 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:30: T31 { mT31(); if (failed) return ; } break; case 7 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:34: T32 { mT32(); if (failed) return ; } break; case 8 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:38: T33 { mT33(); if (failed) return ; } break; case 9 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:42: T34 { mT34(); if (failed) return ; } break; case 10 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:46: T35 { mT35(); if (failed) return ; } break; case 11 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:50: T36 { mT36(); if (failed) return ; } break; case 12 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:54: T37 { mT37(); if (failed) return ; } break; case 13 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:58: T38 { mT38(); if (failed) return ; } break; case 14 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:62: T39 { mT39(); if (failed) return ; } break; case 15 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:66: T40 { mT40(); if (failed) return ; } break; case 16 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:70: T41 { mT41(); if (failed) return ; } break; case 17 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:74: T42 { mT42(); if (failed) return ; } break; case 18 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:78: T43 { mT43(); if (failed) return ; } break; case 19 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:82: T44 { mT44(); if (failed) return ; } break; case 20 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:86: T45 { mT45(); if (failed) return ; } break; case 21 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:90: T46 { mT46(); if (failed) return ; } break; case 22 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:94: T47 { mT47(); if (failed) return ; } break; case 23 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:98: T48 { mT48(); if (failed) return ; } break; case 24 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:102: T49 { mT49(); if (failed) return ; } break; case 25 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:106: T50 { mT50(); if (failed) return ; } break; case 26 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:110: T51 { mT51(); if (failed) return ; } break; case 27 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:114: T52 { mT52(); if (failed) return ; } break; case 28 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:118: T53 { mT53(); if (failed) return ; } break; case 29 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:122: T54 { mT54(); if (failed) return ; } break; case 30 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:126: T55 { mT55(); if (failed) return ; } break; case 31 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:130: T56 { mT56(); if (failed) return ; } break; case 32 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:134: T57 { mT57(); if (failed) return ; } break; case 33 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:138: T58 { mT58(); if (failed) return ; } break; case 34 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:142: T59 { mT59(); if (failed) return ; } break; case 35 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:146: T60 { mT60(); if (failed) return ; } break; case 36 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:150: T61 { mT61(); if (failed) return ; } break; case 37 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:154: T62 { mT62(); if (failed) return ; } break; case 38 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:158: T63 { mT63(); if (failed) return ; } break; case 39 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:162: T64 { mT64(); if (failed) return ; } break; case 40 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:166: T65 { mT65(); if (failed) return ; } break; case 41 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:170: T66 { mT66(); if (failed) return ; } break; case 42 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:174: T67 { mT67(); if (failed) return ; } break; case 43 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:178: T68 { mT68(); if (failed) return ; } break; case 44 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:182: T69 { mT69(); if (failed) return ; } break; case 45 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:186: T70 { mT70(); if (failed) return ; } break; case 46 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:190: T71 { mT71(); if (failed) return ; } break; case 47 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:194: T72 { mT72(); if (failed) return ; } break; case 48 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:198: T73 { mT73(); if (failed) return ; } break; case 49 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:202: RHS { mRHS(); if (failed) return ; } break; case 50 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:206: WS { mWS(); if (failed) return ; } break; case 51 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:209: INT { mINT(); if (failed) return ; } break; case 52 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:213: FLOAT { mFLOAT(); if (failed) return ; } break; case 53 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:219: STRING { mSTRING(); if (failed) return ; } break; case 54 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:226: BOOL { mBOOL(); if (failed) return ; } break; case 55 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:231: ID { mID(); if (failed) return ; } break; case 56 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:234: SH_STYLE_SINGLE_LINE_COMMENT { mSH_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ; } break; case 57 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:263: C_STYLE_SINGLE_LINE_COMMENT { mC_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ; } break; case 58 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:291: CURLY_CHUNK { mCURLY_CHUNK(); if (failed) return ; } break; case 59 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:303: LEFT_PAREN { mLEFT_PAREN(); if (failed) return ; } break; case 60 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:314: RIGHT_PAREN { mRIGHT_PAREN(); if (failed) return ; } break; case 61 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:326: LEFT_SQUARE { mLEFT_SQUARE(); if (failed) return ; } break; case 62 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:338: RIGHT_SQUARE { mRIGHT_SQUARE(); if (failed) return ; } break; case 63 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:351: MULTI_LINE_COMMENT { mMULTI_LINE_COMMENT(); if (failed) return ; } break; case 64 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:370: MISC { mMISC(); if (failed) return ; } break; } }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/63bc7036e62ae854cec463d59712c173f74e984c/DRLLexer.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 5157, 1435, 1216, 9539, 288, 3639, 368, 463, 31027, 14915, 1695, 10649, 8464, 1695, 10649, 8464, 7482, 1695, 12215, 17, 9576, 1695, 4816, 1695, 5254, 1695, 4683, 1695, 3341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 5157, 1435, 1216, 9539, 288, 3639, 368, 463, 31027, 14915, 1695, 10649, 8464, 1695, 10649, 8464, 7482, 1695, 12215, 17, 9576, 1695, 4816, 1695, 5254, 1695, 4683, 1695, 3341, ...
public void setDateHeader(final String name, final long l) { DateFormat df = DateFormat.getDateInstance(DateFormat.FULL); setHeader(name, df.format(new Date(l))); }
public void setDateHeader(final String name, final long l) { DateFormat df = DateFormat.getDateInstance(DateFormat.FULL); setHeader(name, df.format(new Date(l))); }
public void setDateHeader(final String name, final long l) { DateFormat df = DateFormat.getDateInstance(DateFormat.FULL); setHeader(name, df.format(new Date(l))); }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/9a4b9b48d844a9fd7e8882aa552fcfb06d718660/MockHttpServletResponse.java/clean/wicket/src/java/wicket/protocol/http/MockHttpServletResponse.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 17604, 1864, 12, 6385, 514, 508, 16, 727, 1525, 328, 13, 288, 3639, 18371, 3013, 273, 18371, 18, 588, 1626, 1442, 12, 11878, 18, 18111, 1769, 3639, 10859, 12, 529, 16, 3013, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 17604, 1864, 12, 6385, 514, 508, 16, 727, 1525, 328, 13, 288, 3639, 18371, 3013, 273, 18371, 18, 588, 1626, 1442, 12, 11878, 18, 18111, 1769, 3639, 10859, 12, 529, 16, 3013, ...
public long getRoutingBackedOffUntil() { synchronized(routingBackoffSync) { return routingBackedOffUntil; }
public synchronized long getRoutingBackedOffUntil() { return routingBackedOffUntil;
public long getRoutingBackedOffUntil() { synchronized(routingBackoffSync) { return routingBackedOffUntil; } }
51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/3ac0497dbb550960741cb074f5ce371a7942ad8f/PeerNode.java/clean/src/freenet/node/PeerNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1525, 24740, 310, 2711, 329, 7210, 9716, 1435, 288, 3639, 3852, 12, 16529, 16757, 4047, 13, 288, 1082, 202, 2463, 7502, 2711, 329, 7210, 9716, 31, 202, 202, 97, 202, 97, 2, 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, 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, 1525, 24740, 310, 2711, 329, 7210, 9716, 1435, 288, 3639, 3852, 12, 16529, 16757, 4047, 13, 288, 1082, 202, 2463, 7502, 2711, 329, 7210, 9716, 31, 202, 202, 97, 202, 97, 2, -1...
} else if(patt.extGState != null) {
} else if (patt.extGState != null) {
public boolean equals(Object obj) { if(obj == null) { return false; } if(obj == this) { return true; } if(!(obj instanceof PDFPattern)) { return false; } PDFPattern patt = (PDFPattern)obj; if(patternType != patt.patternType) { return false; } if(paintType != patt.paintType) { return false; } if(tilingType != patt.tilingType) { return false; } if(xStep != patt.xStep) { return false; } if(yStep != patt.yStep) { return false; } if(bBox != null) { if(!bBox.equals(patt.bBox)) { return false; } } else if(patt.bBox != null) { return false; } if(bBox != null) { if(!bBox.equals(patt.bBox)) { return false; } } else if(patt.bBox != null) { return false; } if(xUID != null) { if(!xUID.equals(patt.xUID)) { return false; } } else if(patt.xUID != null) { return false; } if(extGState != null) { if(!extGState.equals(patt.extGState)) { return false; } } else if(patt.extGState != null) { return false; } if(matrix != null) { if(!matrix.equals(patt.matrix)) { return false; } } else if(patt.matrix != null) { return false; } if(resources != null) { if(!resources.equals(patt.resources)) { return false; } } else if(patt.resources != null) { return false; } if(shading != null) { if(!shading.equals(patt.shading)) { return false; } } else if(patt.shading != null) { return false; } if(patternDataStream != null) { if(!patternDataStream.equals(patt.patternDataStream)) { return false; } } else if(patt.patternDataStream != null) { return false; } return true; }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/392781f30969e4da0b510da16b96099a320089ba/PDFPattern.java/clean/src/org/apache/fop/pdf/PDFPattern.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1606, 12, 921, 1081, 13, 288, 3639, 309, 12, 2603, 422, 446, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 309, 12, 2603, 422, 333, 13, 288, 5411, 327, 638, 31, 3639, 289,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 1606, 12, 921, 1081, 13, 288, 3639, 309, 12, 2603, 422, 446, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 309, 12, 2603, 422, 333, 13, 288, 5411, 327, 638, 31, 3639, 289,...
if (innerUpdatableValue!=null) innerUpdatableValue.setValue(value);
if (innerUpdatableValue!=null) { innerUpdatableValue.setValue(value); }
public void setValue(Object value) { if (innerUpdatableValue!=null) innerUpdatableValue.setValue(value); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/9d125503204eb791fd5d7ba10d10960ac0bbffba/NestedUpdatableValue.java/clean/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/NestedUpdatableValue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 5524, 12, 921, 460, 13, 288, 202, 202, 430, 261, 7872, 1211, 3404, 429, 620, 5, 33, 2011, 13, 1082, 282, 3443, 1211, 3404, 429, 620, 18, 542, 620, 12, 1132, 1769, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 5524, 12, 921, 460, 13, 288, 202, 202, 430, 261, 7872, 1211, 3404, 429, 620, 5, 33, 2011, 13, 1082, 282, 3443, 1211, 3404, 429, 620, 18, 542, 620, 12, 1132, 1769, 202, ...
public void setOwner(Territory territory, PlayerID id) { if(territory.isWater()) return; String name = territory.getName(); String fileName = "countries/" + name.replace(' ', '_')+ ".png"; Image country = loadImage(fileName); BufferedImage newImage = new BufferedImage(country.getWidth(s_observer), country.getHeight(s_observer), BufferedImage.TYPE_INT_ARGB); newImage.getGraphics().drawImage(country, 0,0, s_observer); LookupOp filter = getLookupOp(id); filter.filter(newImage, newImage); Point p = (Point) m_topCorners.get(name); if(p == null) throw new IllegalStateException("No top corner could be found for:" + name); m_largeMapImage.getGraphics().drawImage(newImage, p.x, p.y, s_observer); if (!territory.isWater()) { TerritoryAttatchment ta = TerritoryAttatchment.get(territory); Graphics g = m_largeMapImage.getGraphics(); FontMetrics fm = g.getFontMetrics(); int x = p.x; int y = p.y; // if (ta.getProduction() > 0) // name += " (" + ta.getProduction() + ")"; x += country.getWidth(s_observer) >> 1; y += country.getHeight(s_observer) >> 1; x -= fm.stringWidth(name) >> 1; y += fm.getAscent() >> 1; g.drawString(name, x, y); if (ta.getProduction() > 0) { String prod = new Integer(ta.getProduction()).toString(); x = p.x + ((country.getWidth(s_observer) - fm.stringWidth(prod))>> 1); y += fm.getLeading() + fm.getAscent(); g.drawString(prod, x, y); } } int smallHeight = (int) (newImage.getHeight() / m_smallLargeRatio) + 3; int smallWidth = (int) (newImage.getWidth() / m_smallLargeRatio) + 3; Image small = newImage.getScaledInstance(smallWidth, smallHeight , Image.SCALE_FAST); Point smallPoint = new Point( (int)( p.x / m_smallLargeRatio), (int) (p.y / m_smallLargeRatio)); m_smallMapImage.getGraphics().drawImage(small, smallPoint.x, smallPoint.y, s_observer); }
8339 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8339/65dc97c8bd1d73da6a21d79d5ad468e6bb971a9b/MapImage.java/buggy/src/games/strategy/triplea/image/MapImage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 31309, 12, 56, 25313, 268, 25313, 16, 19185, 734, 612, 13, 202, 95, 202, 202, 430, 12, 88, 25313, 18, 291, 24064, 10756, 1082, 202, 2463, 31, 9506, 202, 780, 508, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 31309, 12, 56, 25313, 268, 25313, 16, 19185, 734, 612, 13, 202, 95, 202, 202, 430, 12, 88, 25313, 18, 291, 24064, 10756, 1082, 202, 2463, 31, 9506, 202, 780, 508, 273, ...
}
} NavigationHistoryEntry e= createEntry(page, part, location);
private void addEntry(IEditorPart part, boolean markLocation) { if (ignoreEntries > 0 || part == null) return; INavigationLocation location = null; if(markLocation && part instanceof INavigationLocationProvider) location = ((INavigationLocationProvider)part).createNavigationLocation(); NavigationHistoryEntry e= createEntry(page, part, location); NavigationHistoryEntry current= getEntry(activeEntry); if (current != null && current.editorInfo.memento != null) { current.editorInfo.restoreEditor(); checkDuplicates(current.editorInfo); } if (current == null) { add(e); } else { if(e.mergeInto(current)) { disposeEntry(e); removeForwardEntries(); } else { add(e); } } printEntries("added entry"); //$NON-NLS-1$ updateActions();}
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/30fa537d8b22de3c203d919a2f112b7bc5bc1fc1/NavigationHistory.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/NavigationHistory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 918, 527, 1622, 12, 45, 6946, 1988, 1087, 16, 1250, 2267, 2735, 13, 288, 202, 430, 261, 6185, 5400, 405, 374, 747, 1087, 422, 446, 13, 202, 202, 2463, 31, 202, 202, 706, 6417, 2735, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 1622, 12, 45, 6946, 1988, 1087, 16, 1250, 2267, 2735, 13, 288, 202, 430, 261, 6185, 5400, 405, 374, 747, 1087, 422, 446, 13, 202, 202, 2463, 31, 202, 202, 706, 6417, 2735, ...
if (controller == ANY_CONTROLLER) { for (int i=0;i<controllers.size();i++) { if (isControllerUp(i)) { return true; } return false; } }
public boolean isControllerUp(int controller) { if (controller >= getControllerCount()) { return false; } return ((Controller) controllers.get(controller)).getYAxisValue() < -0.5f; }
47738 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47738/007054e5d45d6f573a8202b570aaef64884b612d/Input.java/buggy/src/org/newdawn/slick/Input.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 309, 261, 5723, 422, 16743, 67, 6067, 25353, 13, 288, 364, 261, 474, 277, 33, 20, 31, 77, 32, 20171, 18, 1467, 5621, 77, 27245, 288, 309, 261, 291, 2933, 1211, 12, 77, 3719,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 309, 261, 5723, 422, 16743, 67, 6067, 25353, 13, 288, 364, 261, 474, 277, 33, 20, 31, 77, 32, 20171, 18, 1467, 5621, 77, 27245, 288, 309, 261, 291, 2933, 1211, 12, 77, 3719,...
assertEqual(result, expecting);
assertEquals(result, expecting);
public void testEmptyStringAndEmptyAnonTemplateAsParameterUsingAngleBracketLexer() throws Exception { String templates = "group test;" +newline+ "top() ::= <<<x(a=\"\", b={})\\>>>"+newline+ "x(a,b) ::= \"a=<a>, b=<b>\""+newline; ; StringTemplateGroup group = new StringTemplateGroup(new StringReader(templates)); StringTemplate a = group.getInstanceOf("top"); String expecting = "a=, b="; String result = a.toString(); assertEqual(result, expecting); }
52527 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52527/158b0f9c5220709dc9d801ee911d1605a906ccaf/TestStringTemplate.java/clean/src/org/antlr/stringtemplate/test/TestStringTemplate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 1921, 780, 1876, 1921, 979, 265, 2283, 1463, 1662, 7736, 8467, 11450, 13356, 1435, 1216, 1185, 288, 202, 202, 780, 5539, 273, 9506, 202, 6, 1655, 1842, 4868, 397, 228...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1921, 780, 1876, 1921, 979, 265, 2283, 1463, 1662, 7736, 8467, 11450, 13356, 1435, 1216, 1185, 288, 202, 202, 780, 5539, 273, 9506, 202, 6, 1655, 1842, 4868, 397, 228...
if (isImage) {
if (isImageMediatype) {
public void end(String uri, String localname, String qName) throws SAXException { final ContentHandler contentHandler = handlerContext.getController().getOutput(); final String effectiveId = handlerContext.getEffectiveId(elementAttributes); final XFormsOutputControl xformsOutputControl = handlerContext.isGenerateTemplate() ? null : (XFormsOutputControl) containingDocument.getObjectById(pipelineContext, effectiveId); // The "control" is allowed to be null when xforms:output is in // xforms:label|xforms:hint|xforms:alert|xforms:help, because in that case currently we don't put the control in // the regular hierarchy of controls if (xformsOutputControl == null && !handlerContext.isGenerateTemplate()) return; // xforms:label handleLabelHintHelpAlert(effectiveId, "label", xformsOutputControl); final AttributesImpl newAttributes; final boolean isDateOrTime; final StringBuffer classes = getInitialClasses(localname, elementAttributes, xformsOutputControl); final String mediatypeValue = elementAttributes.getValue("mediatype"); final boolean isImage = mediatypeValue != null && mediatypeValue.startsWith("image/"); final boolean isHTML = (mediatypeValue != null && mediatypeValue.equals("text/html")) || XFormsConstants.XXFORMS_HTML_APPEARANCE_QNAME.equals(getAppearance(elementAttributes)); if (isHTML) { classes.append(" xforms-initially-hidden"); } if (!handlerContext.isGenerateTemplate()) { // Find classes to add isDateOrTime = isDateOrTime(xformsOutputControl.getType()); handleMIPClasses(classes, xformsOutputControl); newAttributes = getAttributes(elementAttributes, classes.toString(), effectiveId); } else { isDateOrTime = false; // Find classes to add newAttributes = getAttributes(elementAttributes, classes.toString(), effectiveId); } // Create xhtml:span or xhtml:div final String xhtmlPrefix = handlerContext.findXHTMLPrefix(); // For IE we need to generate a div here for IE, which doesn't support working with innterHTML on spans. final String enclosingElementLocalname = isHTML ? "div" : "span"; final String enclosingElementQName = XMLUtils.buildQName(xhtmlPrefix, enclosingElementLocalname); contentHandler.startElement(XMLConstants.XHTML_NAMESPACE_URI, enclosingElementLocalname, enclosingElementQName, newAttributes); if (!handlerContext.isGenerateTemplate()) { if (isImage) { // Case of image media type with URI final String imgQName = XMLUtils.buildQName(xhtmlPrefix, "img"); final AttributesImpl imgAttributes = new AttributesImpl(); // @src="..." imgAttributes.addAttribute("", "src", "src", ContentHandlerHelper.CDATA, xformsOutputControl.getValue()); // @f:url-norewrite="true" final String formattingPrefix; final boolean isNewPrefix; { final String existingFormattingPrefix = handlerContext.findFormattingPrefix(); if (existingFormattingPrefix == null || "".equals(existingFormattingPrefix)) { // No prefix is currently mapped formattingPrefix = handlerContext.findNewPrefix(); isNewPrefix = true; } else { formattingPrefix = existingFormattingPrefix; isNewPrefix = false; } imgAttributes.addAttribute(XMLConstants.OPS_FORMATTING_URI, "url-norewrite", XMLUtils.buildQName(formattingPrefix, "url-norewrite"), ContentHandlerHelper.CDATA, "true"); } if (isNewPrefix) contentHandler.startPrefixMapping(formattingPrefix, XMLConstants.OPS_FORMATTING_URI); contentHandler.startElement(XMLConstants.XHTML_NAMESPACE_URI, "img", imgQName, imgAttributes); contentHandler.endElement(XMLConstants.XHTML_NAMESPACE_URI, "img", imgQName); if (isNewPrefix) contentHandler.endPrefixMapping(formattingPrefix); } else if (isDateOrTime) { // Display formatted value for dates final String displayValue = xformsOutputControl.getDisplayValueOrValue(); if (displayValue != null) contentHandler.characters(displayValue.toCharArray(), 0, displayValue.length()); } else { // Regular text case final String displayValue = xformsOutputControl.getDisplayValueOrValue(); if (displayValue != null) contentHandler.characters(displayValue.toCharArray(), 0, displayValue.length()); } } contentHandler.endElement(XMLConstants.XHTML_NAMESPACE_URI, enclosingElementLocalname, enclosingElementQName); // xforms:help handleLabelHintHelpAlert(effectiveId, "help", xformsOutputControl); // xforms:alert if (elementAttributes.getValue("value") == null) handleLabelHintHelpAlert(effectiveId, "alert", xformsOutputControl); // xforms:hint handleLabelHintHelpAlert(effectiveId, "hint", xformsOutputControl); }
10097 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10097/a10fad44989ac8a78ccfb7b575e76b4409cf8d68/XFormsOutputHandler.java/clean/src/java/org/orbeon/oxf/xforms/processor/handlers/XFormsOutputHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 679, 12, 780, 2003, 16, 514, 1191, 529, 16, 514, 22914, 13, 1216, 14366, 288, 3639, 727, 3697, 1503, 913, 1503, 273, 1838, 1042, 18, 588, 2933, 7675, 588, 1447, 5621, 3639, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 679, 12, 780, 2003, 16, 514, 1191, 529, 16, 514, 22914, 13, 1216, 14366, 288, 3639, 727, 3697, 1503, 913, 1503, 273, 1838, 1042, 18, 588, 2933, 7675, 588, 1447, 5621, 3639, 7...
}
}
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; }
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
if(log.isInfoEnabled()) log.info("[VIEW_CHANGE] removed " + mbr + " from fragmentation table");
if(log.isDebugEnabled()) log.debug("[VIEW_CHANGE] removed " + mbr + " from fragmentation table");
public void down(Event evt) { switch(evt.getType()) { case Event.MSG: Message msg=(Message)evt.getArg(); long size=msg.size(); if(size > frag_size) { if(log.isInfoEnabled()) log.info("message size is " + size + ", will fragment " + "(frag_size == " + frag_size + ")"); fragment(msg); // Fragment and pass down return; } break; case Event.VIEW_CHANGE: //don't do anything if this dude is sending out the view change //we are receiving a view change, //in here we check for the View view=(View)evt.getArg(); Vector new_mbrs=view.getMembers(), left_mbrs; Address mbr; left_mbrs=Util.determineLeftMembers(members, new_mbrs); members.clear(); members.addAll(new_mbrs); for(int i=0; i < left_mbrs.size(); i++) { mbr=(Address)left_mbrs.elementAt(i); //the new view doesn't contain the sender, he must have left, //hence we will clear all his fragmentation tables fragment_list.remove(mbr); if(log.isInfoEnabled()) log.info("[VIEW_CHANGE] removed " + mbr + " from fragmentation table"); } break; case Event.CONFIG: passDown(evt); if(log.isInfoEnabled()) log.info("received CONFIG event: " + evt.getArg()); handleConfigEvent((HashMap)evt.getArg()); return; } passDown(evt); // Pass on to the layer below us }
51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/85b7a7c351493f88f1d6a3045b9cbd0b817f95cd/FRAG.java/clean/src/org/jgroups/protocols/FRAG.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2588, 12, 1133, 6324, 13, 288, 3639, 1620, 12, 73, 11734, 18, 588, 559, 10756, 288, 5411, 648, 2587, 18, 11210, 30, 7734, 2350, 1234, 28657, 1079, 13, 73, 11734, 18, 588, 411...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2588, 12, 1133, 6324, 13, 288, 3639, 1620, 12, 73, 11734, 18, 588, 559, 10756, 288, 5411, 648, 2587, 18, 11210, 30, 7734, 2350, 1234, 28657, 1079, 13, 73, 11734, 18, 588, 411...
public void testContextSensitiveNamedSet() { // For reference. runQueryCheckResult("SELECT {[Measures].[Unit Sales]} ON COLUMNS," + nl + "Order([Promotion Media].Children, [Measures].[Unit Sales], DESC) ON ROWS" + nl + "FROM [Sales]" + nl + "WHERE [Time].[1997]", "Axis #0:" + nl + "{[Time].[1997]}" + nl + "Axis #1:" + nl + "{[Measures].[Unit Sales]}" + nl + "Axis #2:" + nl + "{[Promotion Media].[All Media].[No Media]}" + nl + "{[Promotion Media].[All Media].[Daily Paper, Radio, TV]}" + nl + "{[Promotion Media].[All Media].[Daily Paper]}" + nl + "{[Promotion Media].[All Media].[Product Attachment]}" + nl + "{[Promotion Media].[All Media].[Daily Paper, Radio]}" + nl + "{[Promotion Media].[All Media].[Cash Register Handout]}" + nl + "{[Promotion Media].[All Media].[Sunday Paper, Radio]}" + nl + "{[Promotion Media].[All Media].[Street Handout]}" + nl + "{[Promotion Media].[All Media].[Sunday Paper]}" + nl + "{[Promotion Media].[All Media].[Bulk Mail]}" + nl + "{[Promotion Media].[All Media].[In-Store Coupon]}" + nl + "{[Promotion Media].[All Media].[TV]}" + nl + "{[Promotion Media].[All Media].[Sunday Paper, Radio, TV]}" + nl + "{[Promotion Media].[All Media].[Radio]}" + nl + "Row #0: 195,448" + nl + "Row #1: 9,513" + nl + "Row #2: 7,738" + nl + "Row #3: 7,544" + nl + "Row #4: 6,891" + nl + "Row #5: 6,697" + nl + "Row #6: 5,945" + nl + "Row #7: 5,753" + nl + "Row #8: 4,339" + nl + "Row #9: 4,320" + nl + "Row #10: 3,798" + nl + "Row #11: 3,607" + nl + "Row #12: 2,726" + nl + "Row #13: 2,454" + nl); // For reference. runQueryCheckResult("SELECT {[Measures].[Unit Sales]} ON COLUMNS," + nl + "Order([Promotion Media].Children, [Measures].[Unit Sales], DESC) ON ROWS" + nl + "FROM [Sales]" + nl + "WHERE [Time].[1997].[Q2]", "Axis #0:" + nl + "{[Time].[1997].[Q2]}" + nl + "Axis #1:" + nl + "{[Measures].[Unit Sales]}" + nl + "Axis #2:" + nl + "{[Promotion Media].[All Media].[No Media]}" + nl + "{[Promotion Media].[All Media].[Daily Paper, Radio, TV]}" + nl + "{[Promotion Media].[All Media].[Daily Paper, Radio]}" + nl + "{[Promotion Media].[All Media].[Sunday Paper, Radio]}" + nl + "{[Promotion Media].[All Media].[TV]}" + nl + "{[Promotion Media].[All Media].[Cash Register Handout]}" + nl + "{[Promotion Media].[All Media].[Sunday Paper, Radio, TV]}" + nl + "{[Promotion Media].[All Media].[Product Attachment]}" + nl + "{[Promotion Media].[All Media].[Sunday Paper]}" + nl + "{[Promotion Media].[All Media].[Bulk Mail]}" + nl + "{[Promotion Media].[All Media].[Daily Paper]}" + nl + "{[Promotion Media].[All Media].[Street Handout]}" + nl + "{[Promotion Media].[All Media].[Radio]}" + nl + "{[Promotion Media].[All Media].[In-Store Coupon]}" + nl + "Row #0: 46,582" + nl + "Row #1: 3,490" + nl + "Row #2: 2,704" + nl + "Row #3: 2,327" + nl + "Row #4: 1,344" + nl + "Row #5: 1,254" + nl + "Row #6: 1,108" + nl + "Row #7: 1,085" + nl + "Row #8: 784" + nl + "Row #9: 733" + nl + "Row #10: 651" + nl + "Row #11: 473" + nl + "Row #12: 40" + nl + "Row #13: 35" + nl); // The bottom medium in 1997 is Radio, with $2454 in sales. // The bottom medium in 1997.Q2 is In-Store Coupon, with $35 in sales. runQueryCheckResult( "WITH" + nl + " SET [Bottom Media] AS 'BottomCount([Promotion Media].children, 1, [Measures].[Store Sales])' " + nl + " MEMBER [Measures].[Store Sales for Bottom Media] AS 'Sum([Bottom Media], [Measures].[Store Sales])'" + nl + "SELECT {[Measures].[Store Sales for Bottom Media]} ON COLUMNS," + nl + " {[Time].[1997], [Time].[1997].[Q2]} ON ROWS" + nl + "FROM [Sales]", // MSAS gives different result for Q2 ($86.52) because it uses // the bottom product for the year (Radio) rather than for Q2 // ([In-Store Coupon]). MSAS is probably the correct behavior. "Axis #0:" + nl + "{}" + nl + "Axis #1:" + nl + "{[Measures].[Store Sales for Bottom Media]}" + nl + "Axis #2:" + nl + "{[Time].[1997]}" + nl + "{[Time].[1997].[Q2]}" + nl + "Row #0: 5,213.61" + nl + "Row #1: 83.96" + nl); runQueryCheckResult( "WITH" + nl + " SET [TopMedia] AS 'TopCount([Promotion Media].children, 3, [Measures].[Store Sales])' " + nl + " MEMBER [Measures].[California sales for Top Media] AS 'Sum([TopMedia], [Measures].[Store Sales])'" + nl + "SELECT " + nl + " CrossJoin({[Store], [Store].[USA].[CA]}," + nl + " {[Time].[1997].[Q1], [Time].[1997].[Q2]}) ON COLUMNS," + nl + " {[Product], [Product].children} ON ROWS" + nl + "FROM [Sales]" + nl + "WHERE [Measures].[California sales for Top Media]", // MSAS output differs, because it evaluates named sets with // only the context in the slicer. "Axis #0:" + nl + "{[Measures].[California sales for Top Media]}" + nl + "Axis #1:" + nl + "{[Store].[All Stores], [Time].[1997].[Q1]}" + nl + "{[Store].[All Stores], [Time].[1997].[Q2]}" + nl + "{[Store].[All Stores].[USA].[CA], [Time].[1997].[Q1]}" + nl + "{[Store].[All Stores].[USA].[CA], [Time].[1997].[Q2]}" + nl + "Axis #2:" + nl + "{[Product].[All Products]}" + nl + "{[Product].[All Products].[Drink]}" + nl + "{[Product].[All Products].[Food]}" + nl + "{[Product].[All Products].[Non-Consumable]}" + nl + "Row #0: 111,874.50" + nl + "Row #0: 111,876.59" + nl + "Row #0: 29,482.53" + nl + "Row #0: 33,976.80" + nl + "Row #1: 9,182.00" + nl + "Row #1: 10,018.55" + nl + "Row #1: 2,721.23" + nl + "Row #1: 2,924.44" + nl + "Row #2: 81,218.33" + nl + "Row #2: 80,273.35" + nl + "Row #2: 21,165.50" + nl + "Row #2: 24,642.38" + nl + "Row #3: 21,822.34" + nl + "Row #3: 21,584.69" + nl + "Row #3: 5,595.80" + nl + "Row #3: 6,409.98" + nl); }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/04e646f31dd5b7942980cee630c94f49bdab0e26/NamedSetTest.java/buggy/testsrc/main/mondrian/test/NamedSetTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 1042, 14220, 7604, 694, 1435, 288, 565, 368, 2457, 2114, 18, 565, 1086, 1138, 1564, 1253, 2932, 4803, 288, 63, 23177, 1823, 8009, 63, 2802, 25996, 18322, 6229, 5597, 19639,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 1042, 14220, 7604, 694, 1435, 288, 565, 368, 2457, 2114, 18, 565, 1086, 1138, 1564, 1253, 2932, 4803, 288, 63, 23177, 1823, 8009, 63, 2802, 25996, 18322, 6229, 5597, 19639,...
protected void notifyFolderListeners(int type, Folder folder) {
protected void notifyFolderListeners(int type) {
protected void notifyFolderListeners(int type, Folder folder) { Iterator it = _folderListeners.iterator(); FolderEvent event = new FolderEvent(this, folder, type); while (it.hasNext()) { FolderListener listener = (FolderListener) it.next(); event.dispatch(listener); } }
6764 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6764/6cb08879b7bab85bd63c251e85695eefb6285f45/Folder.java/clean/javamail/src/java/javax/mail/Folder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 5066, 3899, 5583, 12, 474, 618, 13, 288, 3639, 4498, 518, 273, 389, 5609, 5583, 18, 9838, 5621, 3639, 12623, 1133, 871, 273, 394, 12623, 1133, 12, 2211, 16, 3009, 16, 618, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 5066, 3899, 5583, 12, 474, 618, 13, 288, 3639, 4498, 518, 273, 389, 5609, 5583, 18, 9838, 5621, 3639, 12623, 1133, 871, 273, 394, 12623, 1133, 12, 2211, 16, 3009, 16, 618, 17...
LayoutPackageImpl theLayoutPackage = (LayoutPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof LayoutPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new LayoutPackageImpl());
LayoutPackageImpl theLayoutPackage = (LayoutPackageImpl) (EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof LayoutPackageImpl ? EPackage.Registry.INSTANCE .getEPackage(eNS_URI) : new LayoutPackageImpl());
public static LayoutPackage init() { if (isInited) return (LayoutPackage)EPackage.Registry.INSTANCE.getEPackage(LayoutPackage.eNS_URI); // Obtain or create and register package LayoutPackageImpl theLayoutPackage = (LayoutPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof LayoutPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new LayoutPackageImpl()); isInited = true; // Initialize simple dependencies XMLTypePackageImpl.init(); // Obtain or create and register interdependencies AttributePackageImpl theAttributePackage = (AttributePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AttributePackage.eNS_URI) instanceof AttributePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AttributePackage.eNS_URI) : AttributePackageImpl.eINSTANCE); ComponentPackageImpl theComponentPackage = (ComponentPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ComponentPackage.eNS_URI) instanceof ComponentPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ComponentPackage.eNS_URI) : ComponentPackageImpl.eINSTANCE); TypePackageImpl theTypePackage = (TypePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TypePackage.eNS_URI) instanceof TypePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TypePackage.eNS_URI) : TypePackageImpl.eINSTANCE); DataPackageImpl theDataPackage = (DataPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DataPackage.eNS_URI) instanceof DataPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DataPackage.eNS_URI) : DataPackageImpl.eINSTANCE); ModelPackageImpl theModelPackage = (ModelPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ModelPackage.eNS_URI) instanceof ModelPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ModelPackage.eNS_URI) : ModelPackageImpl.eINSTANCE); // Create package meta-data objects theLayoutPackage.createPackageContents(); theAttributePackage.createPackageContents(); theComponentPackage.createPackageContents(); theTypePackage.createPackageContents(); theDataPackage.createPackageContents(); theModelPackage.createPackageContents(); // Initialize created meta-data theLayoutPackage.initializePackageContents(); theAttributePackage.initializePackageContents(); theComponentPackage.initializePackageContents(); theTypePackage.initializePackageContents(); theDataPackage.initializePackageContents(); theModelPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theLayoutPackage.freeze(); return theLayoutPackage; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/LayoutPackageImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/layout/impl/LayoutPackageImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 9995, 2261, 1208, 1435, 565, 288, 3639, 309, 261, 291, 2570, 329, 13, 327, 261, 3744, 2261, 13, 41, 2261, 18, 4243, 18, 13341, 18, 588, 41, 2261, 12, 3744, 2261, 18, 73, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 9995, 2261, 1208, 1435, 565, 288, 3639, 309, 261, 291, 2570, 329, 13, 327, 261, 3744, 2261, 13, 41, 2261, 18, 4243, 18, 13341, 18, 588, 41, 2261, 12, 3744, 2261, 18, 73, 31...
public Object[] getProposals() { return this.proposals;
public IContentProposal [] getProposals(String contents, int position) { if (contentProposals == null) { contentProposals = new IContentProposal[proposals.length]; for (int i=0; i<proposals.length; i++) { final String proposal = proposals[i]; contentProposals[i] = new IContentProposal() { public String getContent() { return proposal; } public String getDescription() { return null; } public String getLabel() { return null; } public int getCursorPosition() { return proposal.length(); } }; } } return contentProposals;
public Object[] getProposals() { return this.proposals; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/54f5816382677a87ac1d149868af2370808e4f06/SimpleContentProposalProvider.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/SimpleContentProposalProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 8526, 3570, 22536, 1435, 288, 202, 202, 2463, 333, 18, 685, 22536, 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...
[ 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 8526, 3570, 22536, 1435, 288, 202, 202, 2463, 333, 18, 685, 22536, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
taskHistoryTreeLabelProvider.setCategoryBackgroundColor(themeManager.getCurrentTheme().getColorRegistry().get(TaskListColorsAndFonts.THEME_COLOR_ID_TASKLIST_CATEGORY));
taskHistoryTreeLabelProvider.setCategoryBackgroundColor(themeManager.getCurrentTheme() .getColorRegistry().get(TaskListColorsAndFonts.THEME_COLOR_ID_TASKLIST_CATEGORY));
public void propertyChange(PropertyChangeEvent event) { if (event.getProperty().equals(IThemeManager.CHANGE_CURRENT_THEME) || event.getProperty().equals(TaskListColorsAndFonts.THEME_COLOR_ID_TASKLIST_CATEGORY)) { taskHistoryTreeLabelProvider.setCategoryBackgroundColor(themeManager.getCurrentTheme().getColorRegistry().get(TaskListColorsAndFonts.THEME_COLOR_ID_TASKLIST_CATEGORY)); refresh(); } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/57b925d86fd44a7384ad1e5ec70ce829303127f5/TaskActivityView.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/views/TaskActivityView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1272, 3043, 12, 1396, 20930, 871, 13, 288, 1082, 202, 430, 261, 2575, 18, 588, 1396, 7675, 14963, 12, 1285, 76, 4698, 1318, 18, 14473, 67, 15487, 67, 24644, 958, 13, 686...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1272, 3043, 12, 1396, 20930, 871, 13, 288, 1082, 202, 430, 261, 2575, 18, 588, 1396, 7675, 14963, 12, 1285, 76, 4698, 1318, 18, 14473, 67, 15487, 67, 24644, 958, 13, 686...
if (b.isContentAreaFilled() && (UIManager.get(getPropertyPrefix() + "gradient") != null) && b.isEnabled() && (b.getBackground() instanceof UIResource)) updateWidthGradient(g, b, b.getParent()); else super.update(g, c);
if ((b.getBackground() instanceof UIResource) && b.isContentAreaFilled() && b.isEnabled()) { ButtonModel m = b.getModel(); String uiKey = "Button.gradient"; if (! isToolbarButton(b)) { if (! m.isArmed() && ! m.isPressed() && isDrawingGradient(uiKey)) { MetalUtils.paintGradient(g, 0, 0, b.getWidth(), b.getHeight(), SwingConstants.VERTICAL, uiKey); paint(g, c); return; } } else if (m.isRollover() && isDrawingGradient(uiKey)) { MetalUtils.paintGradient(g, 0, 0, b.getWidth(), b.getHeight(), SwingConstants.VERTICAL, uiKey); paint(g, c); return; } } super.update(g, c);
public void update(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; if (b.isContentAreaFilled() && (UIManager.get(getPropertyPrefix() + "gradient") != null) && b.isEnabled() && (b.getBackground() instanceof UIResource)) updateWidthGradient(g, b, b.getParent()); else super.update(g, c); }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/485023bfad3bd45acdb1b2e0f53aad54af5e98af/MetalButtonUI.java/clean/javax/swing/plaf/metal/MetalButtonUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1089, 12, 17558, 314, 16, 29058, 276, 13, 225, 288, 565, 4115, 3616, 324, 273, 261, 7469, 3616, 13, 276, 31, 565, 309, 261, 70, 18, 291, 1350, 5484, 29754, 1435, 3639, 597, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1089, 12, 17558, 314, 16, 29058, 276, 13, 225, 288, 565, 4115, 3616, 324, 273, 261, 7469, 3616, 13, 276, 31, 565, 309, 261, 70, 18, 291, 1350, 5484, 29754, 1435, 3639, 597, ...
if( i < array.length ){ System.arraycopy( array, 0, array, 1, array.length - i ); array[0] = obj; } else {
else {
public static Object[] prepend(Class c, Object[] array, Object obj) { if( obj == null ) return array; if( array == null || array.length == 0){ array = (Object[]) Array.newInstance( c, DEFAULT_LENGTH ); array[0] = obj; return array; } int i = 0; for( ; i < array.length; i++ ){ if( array[i] == null ){ array[i] = obj; return array; } } if( i < array.length ){ System.arraycopy( array, 0, array, 1, array.length - i ); array[0] = obj; } else { Object [] temp = (Object[]) Array.newInstance( c, array.length * 2 ); System.arraycopy( array, 0, temp, 1, array.length ); temp[0] = obj; array = temp; } return array; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/6ac289f8203885031a79a3324dc4b14f52460aef/ArrayUtil.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/util/ArrayUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1033, 8526, 8254, 12, 797, 276, 16, 1033, 8526, 526, 16, 1033, 1081, 13, 288, 202, 202, 430, 12, 1081, 422, 446, 262, 377, 202, 202, 2463, 526, 31, 3639, 309, 12, 526, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1033, 8526, 8254, 12, 797, 276, 16, 1033, 8526, 526, 16, 1033, 1081, 13, 288, 202, 202, 430, 12, 1081, 422, 446, 262, 377, 202, 202, 2463, 526, 31, 3639, 309, 12, 526, ...
State state2 = this.process.addState( "state.1",
State state1 = this.process.addState( "state.1",
public void testAddState_Duplicate() throws Exception { try { State state2 = this.process.addState( "state.1", "state one" ); fail( "Should have thrown DuplicateStateException" ); } catch (DuplicateStateException e) { // expected and correct } }
4520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4520/241b689c021c6a6b32b0bdbc6386a96ae685fa13/ProcessTest.java/clean/blissed/src/java/test/com/werken/blissed/ProcessTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 986, 1119, 67, 11826, 1435, 1216, 1185, 565, 288, 3639, 775, 3639, 288, 5411, 3287, 919, 21, 273, 333, 18, 2567, 18, 1289, 1119, 12, 315, 2019, 18, 21, 3113, 4766, 5375...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 986, 1119, 67, 11826, 1435, 1216, 1185, 565, 288, 3639, 775, 3639, 288, 5411, 3287, 919, 21, 273, 333, 18, 2567, 18, 1289, 1119, 12, 315, 2019, 18, 21, 3113, 4766, 5375...
Set compositeSenoneSet = new HashSet();
Set<Senone> compositeSenoneSet = new HashSet<Senone>();
public SenoneSequence getCompositeSenoneSequence(Unit unit, HMMPosition position) { Context context = unit.getContext(); SenoneSequence compositeSenoneSequence = null; compositeSenoneSequence = (SenoneSequence) compositeSenoneSequenceCache.get(unit.toString()); if (logger.isLoggable(Level.FINE)) { logger.fine("getCompositeSenoneSequence: " + unit.toString() + ((compositeSenoneSequence != null) ? "Cached" : "")); } if (compositeSenoneSequence != null) { return compositeSenoneSequence; } // Iterate through all HMMs looking for // a) An hmm with a unit that has the proper base // b) matches the non-null context List senoneSequenceList = new ArrayList(); // collect all senone sequences that match the pattern for (Iterator i = getHMMIterator(); i.hasNext(); ) { SenoneHMM hmm = (SenoneHMM) i.next(); if (hmm.getPosition() == position) { Unit hmmUnit = hmm.getUnit(); if (hmmUnit.isPartialMatch(unit.getName(), context)) { if (logger.isLoggable(Level.FINE)) { logger.fine("collected: " + hmm.getUnit().toString()); } senoneSequenceList.add(hmm.getSenoneSequence()); } } } // couldn't find any matches, so at least include the CI unit if (senoneSequenceList.size() == 0) { Unit ciUnit = unitManager.getUnit(unit.getName(), unit.isFiller()); SenoneHMM baseHMM = lookupHMM(ciUnit, HMMPosition.UNDEFINED); senoneSequenceList.add(baseHMM.getSenoneSequence()); } // Add this point we have all of the senone sequences that // match the base/context pattern collected into the list. // Next we build a CompositeSenone consisting of all of the // senones in each position of the list. // First find the longest senone sequence int longestSequence = 0; for (int i = 0; i < senoneSequenceList.size(); i++) { SenoneSequence ss = (SenoneSequence) senoneSequenceList.get(i); if (ss.getSenones().length > longestSequence) { longestSequence = ss.getSenones().length; } } // now collect all of the senones at each position into // arrays so we can create CompositeSenones from them // QUESTION: is is possible to have different size senone // sequences. For now lets assume the worst case. List compositeSenones = new ArrayList(); float logWeight = 0.0f; for (int i = 0; i < longestSequence; i++) { Set compositeSenoneSet = new HashSet(); for (int j = 0; j < senoneSequenceList.size(); j++) { SenoneSequence senoneSequence = (SenoneSequence) senoneSequenceList.get(j); if (i < senoneSequence.getSenones().length) { Senone senone = senoneSequence.getSenones()[i]; compositeSenoneSet.add(senone); } } compositeSenones.add(CompositeSenone.create( compositeSenoneSet, logWeight)); } compositeSenoneSequence = SenoneSequence.create(compositeSenones); compositeSenoneSequenceCache.put(unit.toString(), compositeSenoneSequence); if (logger.isLoggable(Level.FINE)) { logger.fine(unit.toString() + " consists of " + compositeSenones.size() + " composite senones"); if (logger.isLoggable(Level.FINEST)) { compositeSenoneSequence.dump("am"); } } return compositeSenoneSequence; }
48839 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48839/3ce9c1d085d2ee5c6670ae82a1d0258a1e0f3582/TiedStateAcousticModel.java/clean/sphinx4/src/sphinx4/edu/cmu/sphinx/linguist/acoustic/tiedstate/TiedStateAcousticModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 1071, 348, 275, 476, 4021, 336, 9400, 55, 275, 476, 4021, 12, 2802, 2836, 16, 2398, 670, 8206, 2555, 1754, 13, 288, 202, 1772, 819, 273, 2836, 18, 29120, 5621, 202, 348, 275, 476, 4021...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1377, 1071, 348, 275, 476, 4021, 336, 9400, 55, 275, 476, 4021, 12, 2802, 2836, 16, 2398, 670, 8206, 2555, 1754, 13, 288, 202, 1772, 819, 273, 2836, 18, 29120, 5621, 202, 348, 275, 476, 4021...
ThisValueFrame frame = getFrame(handle, basicBlock);
ValueNumberFrame frame = getFrame(handle, basicBlock);
public void transferInstruction(InstructionHandle handle, BasicBlock basicBlock, LockCount fact) throws DataflowAnalysisException { Instruction ins = handle.getInstruction(); // Optimization: don't even bother with instructions // other than MONITORENTER and MONITOREXIT if (!(ins instanceof MONITORENTER || ins instanceof MONITOREXIT)) return; // Determine where the "this" reference values are in the frame. // (Note that null is returned if we are analyzing a static method.) ThisValueFrame frame = getFrame(handle, basicBlock); // Get the lock count delta for the instruction int delta = getDelta(ins, frame); int count = fact.getCount() + delta; if (count < 0) throw new DataflowAnalysisException("lock count going negative! " + ins); fact.setCount(count); }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/332385cd5928e7e2a4830ebfaf938f34e6f2c5c2/LockCountAnalysis.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/LockCountAnalysis.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 7412, 11983, 12, 11983, 3259, 1640, 16, 7651, 1768, 5337, 1768, 16, 3488, 1380, 5410, 13, 1216, 1910, 2426, 9418, 503, 288, 202, 202, 11983, 2763, 273, 1640, 18, 588, 11983...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7412, 11983, 12, 11983, 3259, 1640, 16, 7651, 1768, 5337, 1768, 16, 3488, 1380, 5410, 13, 1216, 1910, 2426, 9418, 503, 288, 202, 202, 11983, 2763, 273, 1640, 18, 588, 11983...
_t = __t476;
_t = __t477;
public final void defineframestate(AST _t) throws RecognitionException { AST defineframestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST def = null; AST id = null; AST __t463 = _t; def = _t==ASTNULL ? null :(AST)_t; match(_t,DEFINE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NEW: case SHARED: { def_shared(_t); _t = _retTree; break; } case FRAME: case PRIVATE: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PRIVATE: { AST tmp1077_AST_in = (AST)_t; match(_t,PRIVATE); _t = _t.getNextSibling(); break; } case FRAME: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1078_AST_in = (AST)_t; match(_t,FRAME); _t = _t.getNextSibling(); id = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); if ( inputState.guessing==0 ) { action.frameDef(def, id); } { _loop467: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { form_item(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop467; } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case HEADER: { AST __t469 = _t; AST tmp1079_AST_in = (AST)_t; match(_t,HEADER); _t = _t.getFirstChild(); { int _cnt471=0; _loop471: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { display_item(_t); _t = _retTree; } else { if ( _cnt471>=1 ) { break _loop471; } else {throw new NoViableAltException(_t);} } _cnt471++; } while (true); } _t = __t469; _t = _t.getNextSibling(); break; } case BACKGROUND: { AST __t472 = _t; AST tmp1080_AST_in = (AST)_t; match(_t,BACKGROUND); _t = _t.getFirstChild(); { int _cnt474=0; _loop474: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { display_item(_t); _t = _retTree; } else { if ( _cnt474>=1 ) { break _loop474; } else {throw new NoViableAltException(_t);} } _cnt474++; } while (true); } _t = __t472; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case EXCEPT: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCEPT: { AST __t476 = _t; AST tmp1081_AST_in = (AST)_t; match(_t,EXCEPT); _t = _t.getFirstChild(); { _loop478: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { fld1(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop478; } } while (true); } _t = __t476; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case WITH: { framephrase(_t); _t = _retTree; break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; if ( inputState.guessing==0 ) { action.frameStatementEnd(); } _t = __t463; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 4426, 74, 1940, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 4426, 74, 1940, 395, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4426, 74, 1940, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 4426, 74, 1940, 395, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, ...
public org.quickfix.field.LegProduct getLegProduct() throws FieldNotFound { org.quickfix.field.LegProduct value = new org.quickfix.field.LegProduct();
public quickfix.field.LegProduct getLegProduct() throws FieldNotFound { quickfix.field.LegProduct value = new quickfix.field.LegProduct();
public org.quickfix.field.LegProduct getLegProduct() throws FieldNotFound { org.quickfix.field.LegProduct value = new org.quickfix.field.LegProduct(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/PositionMaintenanceRequest.java/buggy/src/java/src/quickfix/fix44/PositionMaintenanceRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4133, 336, 8329, 4133, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4133, 460, 273, 394, 2358, 18, 19525, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4133, 336, 8329, 4133, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4133, 460, 273, 394, 2358, 18, 19525, ...
return source.getAdapter(NoteEditPart.class) != null || target.getAdapter(NoteEditPart.class) != null ? getConnectorTypes() : Collections.EMPTY_LIST;
if (source.getAdapter(NoteEditPart.class) != null) { INotableEditPart noteable = (INotableEditPart) target .getAdapter(INotableEditPart.class); if (noteable != null && noteable.canAttachNote()) { return getConnectorTypes(); } } else if (target.getAdapter(NoteEditPart.class) != null) { INotableEditPart noteable = (INotableEditPart) source .getAdapter(INotableEditPart.class); if (noteable != null && noteable.canAttachNote()) { return getConnectorTypes(); } } return Collections.EMPTY_LIST;
public List getRelTypesOnSourceAndTarget(IAdaptable source, IAdaptable target) { return source.getAdapter(NoteEditPart.class) != null || target.getAdapter(NoteEditPart.class) != null ? getConnectorTypes() : Collections.EMPTY_LIST; }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/2a87663872986e05466f2a6444f75fe9f3b78283/DiagramModelingAssistantProvider.java/buggy/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui.providers/src/org/eclipse/gmf/runtime/diagram/ui/providers/internal/DiagramModelingAssistantProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 987, 336, 1971, 2016, 1398, 1830, 1876, 2326, 12, 45, 13716, 429, 1084, 16, 1082, 202, 45, 13716, 429, 1018, 13, 288, 9506, 202, 2463, 1084, 18, 588, 4216, 12, 8067, 4666, 198...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 987, 336, 1971, 2016, 1398, 1830, 1876, 2326, 12, 45, 13716, 429, 1084, 16, 1082, 202, 45, 13716, 429, 1018, 13, 288, 9506, 202, 2463, 1084, 18, 588, 4216, 12, 8067, 4666, 198...
synchronized(getImplLock()) { getImpl().extendInvitation(extendTo); }
synchronized (getImplLock()) { getImpl().extendInvitation(extendTo); }
public void extendInvitation(final EMail extendTo) { synchronized(getImplLock()) { getImpl().extendInvitation(extendTo); } }
53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/b0c359e8d5f8463c94b80f6fa24548691d18566b/InternalSessionModel.java/buggy/client-model/src/main/java/com/thinkparity/ophelia/model/session/InternalSessionModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2133, 19896, 12, 6385, 512, 6759, 2133, 774, 13, 288, 3639, 3852, 261, 588, 2828, 2531, 10756, 288, 336, 2828, 7675, 14313, 19896, 12, 14313, 774, 1769, 289, 565, 289, 2, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2133, 19896, 12, 6385, 512, 6759, 2133, 774, 13, 288, 3639, 3852, 261, 588, 2828, 2531, 10756, 288, 336, 2828, 7675, 14313, 19896, 12, 14313, 774, 1769, 289, 565, 289, 2, -100,...
IProblemBinding blah = (IProblemBinding) col.getName(0).resolveBinding();
ICPPClassType blah = (ICPPClassType) col.getName(0).resolveBinding();
public void testBug56516() throws Exception { IASTTranslationUnit tu = parse( "typedef struct blah sb;"); //$NON-NLS-1$ CPPNameCollector col = new CPPNameCollector(); CPPVisitor.visitTranslationUnit( tu, col ); assertEquals( col.size(), 2 ); IProblemBinding blah = (IProblemBinding) col.getName(0).resolveBinding(); ITypedef sb = (ITypedef) col.getName(1).resolveBinding(); assertSame( sb.getType(), blah ); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/ec6276d5ddefd30b4dbabf01a8ec9d3407ce53c1/CompleteParser2Tests.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/CompleteParser2Tests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 19865, 4313, 25, 2313, 1435, 1216, 1185, 202, 95, 202, 202, 45, 9053, 6717, 2802, 28325, 273, 1109, 12, 315, 723, 536, 1958, 2811, 9795, 2393, 4868, 1769, 4329, 3993,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19865, 4313, 25, 2313, 1435, 1216, 1185, 202, 95, 202, 202, 45, 9053, 6717, 2802, 28325, 273, 1109, 12, 315, 723, 536, 1958, 2811, 9795, 2393, 4868, 1769, 4329, 3993,...
} else { IStatus locationStatus = existingProject.getWorkspace() .validateProjectLocationURI(existingProject, newPath); if (!locationStatus.isOK()) { return locationStatus.getMessage(); }
if (!locationStatus.isOK()) { return locationStatus.getMessage(); } if (existingProject != null) {
public String checkValidLocation() { if (isDefault()) { return null; } String locationFieldContents = locationPathField.getText(); if (locationFieldContents.length() == 0) { return (IDEWorkbenchMessages.WizardNewProjectCreationPage_projectLocationEmpty); } URI newPath = getProjectLocationURI(); if (newPath == null) { return IDEWorkbenchMessages.ProjectLocationSelectionDialog_locationError; } if (existingProject == null) { IPath projectPath = new Path(locationFieldContents); if (Platform.getLocation().isPrefixOf(projectPath)) { return IDEWorkbenchMessages.WizardNewProjectCreationPage_defaultLocationError; } } else { IStatus locationStatus = existingProject.getWorkspace() .validateProjectLocationURI(existingProject, newPath); if (!locationStatus.isOK()) { return locationStatus.getMessage(); } URI projectPath = existingProject.getLocationURI(); if (projectPath != null && URIUtil.equals(projectPath, newPath)) { return IDEWorkbenchMessages.ProjectLocationSelectionDialog_locationError; } } return null; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/46c75528e9c8343690cf18a0f566f88a14cafe27/ProjectContentsLocationArea.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ProjectContentsLocationArea.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 29969, 2735, 1435, 288, 202, 202, 430, 261, 291, 1868, 10756, 288, 1082, 202, 2463, 446, 31, 202, 202, 97, 202, 202, 780, 2117, 974, 6323, 273, 2117, 743, 974, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 29969, 2735, 1435, 288, 202, 202, 430, 261, 291, 1868, 10756, 288, 1082, 202, 2463, 446, 31, 202, 202, 97, 202, 202, 780, 2117, 974, 6323, 273, 2117, 743, 974, 18, 588, ...
return "assignable-from(" + myType + ")";
return "assignable-from(" + (myType != null ? myType : myClassName) + ")";
public String toString(){ return "assignable-from(" + myType + ")"; }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/e0e53b60df991e657cdb3f509f498b265bbb9884/AssignableFromFilter.java/clean/source/com/intellij/psi/filters/types/AssignableFromFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1762, 1435, 95, 565, 327, 315, 6145, 429, 17, 2080, 2932, 397, 261, 4811, 559, 480, 446, 692, 3399, 559, 294, 3399, 3834, 13, 397, 7310, 31, 225, 289, 2, 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, 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, 514, 1762, 1435, 95, 565, 327, 315, 6145, 429, 17, 2080, 2932, 397, 261, 4811, 559, 480, 446, 692, 3399, 559, 294, 3399, 3834, 13, 397, 7310, 31, 225, 289, 2, -100, -100, -100, ...
System.err.println("AJP13 SSL SECURE "+secure);
public void parsedSslSecure(boolean secure) throws IOException { System.err.println("AJP13 SSL SECURE "+secure); _sslSecure=secure; }
13242 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13242/2b5e8737f3577d829f822e585435bfe3d7f6cd29/Ajp13Connection.java/clean/trunk/extras/ajp/src/main/java/org/mortbay/jetty/ajp/Ajp13Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 2707, 15840, 12834, 12, 6494, 8177, 13, 1216, 1860, 3639, 288, 8227, 389, 8157, 12834, 33, 8869, 31, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1071, 918, 2707, 15840, 12834, 12, 6494, 8177, 13, 1216, 1860, 3639, 288, 8227, 389, 8157, 12834, 33, 8869, 31, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
out.append("r\n");
out.append(NEWLINE);
private void writeElementComment(StringBuffer out, Element ee, int common) { if (ee.comment != null) { indent(common, out); out.append("<!--"); out.append(ee.comment); out.append("r\n"); indent(common, out); out.append("-->\r\n"); } }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/6bc578f078e96e734184556dab09979e658632c1/GenerateSidewaysView.java/buggy/tools/java/org/unicode/cldr/icu/GenerateSidewaysView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1152, 918, 28085, 4469, 12, 780, 1892, 596, 16, 3010, 14657, 16, 509, 2975, 13, 288, 1082, 202, 430, 261, 1340, 18, 3469, 480, 446, 13, 288, 7734, 3504, 12, 6054, 16, 596, 1769, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1152, 918, 28085, 4469, 12, 780, 1892, 596, 16, 3010, 14657, 16, 509, 2975, 13, 288, 1082, 202, 430, 261, 1340, 18, 3469, 480, 446, 13, 288, 7734, 3504, 12, 6054, 16, 596, 1769, ...
finally { PhoneManagerFactory.close(phoneManager); }
public void handleForward(IQ iq) { Element phoneElement = iq.getChildElement(); PhoneManager phoneManager = null; try { phoneManager = PhoneManagerFactory.getPhoneManager(); String callSessionID = phoneElement.attributeValue("id"); if(callSessionID == null || "".equals(callSessionID)) { throw new PhoneException("a call 'id' is a required attribute for type FORWARD"); } String extension = phoneElement.elementText("extension"); if(extension != null && !"".equals(extension)) { phoneManager.forward(callSessionID, iq.getFrom().getNode(), extension); } // try dialing by jid else { String targetJID = phoneElement.elementText("jid"); if(targetJID == null) { throw new PhoneException("No extension or jid was specified"); } iq.getFrom().getNode(); phoneManager.forward(callSessionID, iq.getFrom().getNode(), new JID(targetJID)); } //send reply IQ reply = IQ.createResultIQ(iq); reply.setType(IQ.Type.result); PhoneAction phoneAction = new PhoneAction(PhoneAction.Type.FORWARD); reply.setChildElement(phoneAction); send(reply); } catch (PhoneException e) { Log.debug(e); IQ reply = IQ.createResultIQ(iq); reply.setType(IQ.Type.error); PacketError error = new PacketError(PacketError.Condition.undefined_condition, PacketError.Type.cancel, e.getMessage()); reply.setError(error); send(reply); } finally { PhoneManagerFactory.close(phoneManager); } }
11898 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11898/6a2d2c568bc9d7e3a1549e2e67014b2a794b323f/PacketHandler.java/buggy/server/src/java/org/jivesoftware/phone/PacketHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1640, 8514, 12, 45, 53, 24288, 13, 288, 3639, 3010, 7353, 1046, 273, 24288, 18, 588, 1763, 1046, 5621, 3639, 12895, 1318, 7353, 1318, 273, 446, 31, 3639, 775, 288, 5411, 7353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 8514, 12, 45, 53, 24288, 13, 288, 3639, 3010, 7353, 1046, 273, 24288, 18, 588, 1763, 1046, 5621, 3639, 12895, 1318, 7353, 1318, 273, 446, 31, 3639, 775, 288, 5411, 7353, ...
SynchronizeAction action1 = new SynchronizeAction(false);
SynchronizeAction action1 = new SynchronizeAction();
protected DefaultActionGroup createActionGroup() { DefaultActionGroup group = new DefaultActionGroup(); group.add(new GotoHomeAction(myFileSystemTree)); group.add(new GotoProjectDirectory(myFileSystemTree)); group.addSeparator(); group.add(new NewFolderAction(myFileSystemTree)); group.add(new FileDeleteAction(myFileSystemTree)); group.addSeparator(); SynchronizeAction action1 = new SynchronizeAction(false); AnAction original = ActionManager.getInstance().getAction(IdeActions.ACTION_SYNCHRONIZE); action1.copyFrom(original); action1.registerCustomShortcutSet(original.getShortcutSet(), myFileSystemTree.getTree()); group.add(action1); group.addSeparator(); group.add(new MyShowHiddensAction()); return group; }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/54dc3dac5f475bb7fd62a982d7c0ef8ec0a7ddc6/FileChooserDialogImpl.java/buggy/source/com/intellij/openapi/fileChooser/ex/FileChooserDialogImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 2989, 1803, 1114, 752, 1803, 1114, 1435, 288, 565, 2989, 1803, 1114, 1041, 273, 394, 2989, 1803, 1114, 5621, 565, 1041, 18, 1289, 12, 2704, 611, 6302, 8684, 1803, 12, 4811, 11785, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 2989, 1803, 1114, 752, 1803, 1114, 1435, 288, 565, 2989, 1803, 1114, 1041, 273, 394, 2989, 1803, 1114, 5621, 565, 1041, 18, 1289, 12, 2704, 611, 6302, 8684, 1803, 12, 4811, 11785, 2...
FieldInfo fieldInfo = memberFactory.createFieldInfo(attr);
FieldInfo fieldInfo = memberFactory.createFieldInfo(attr, state);
private void processArchetype (Archetype archetype, FactoryState state) { String typeName = archetype.getName(); ClassInfo classInfo = state.classInfo; classInfo.setSchemaType(new XSClass(state.jClass, typeName)); Schema schema = archetype.getSchema(); classInfo.setNamespaceURI(schema.getTargetNamespace()); //- Handle derived types if (archetype.getSource() != null) { String sourceName = archetype.getSource(); Archetype source = schema.getArchetype(sourceName); if (source != null) { String className = null; ClassInfo cInfo = state.resolve(source); if (cInfo == null) { String packageName = state.jClass.getPackageName(); JClass jClass = createSourceCode(source, state, packageName); cInfo = state.resolve(source); className = jClass.getName(); } else className = cInfo.getJClass().getName(); state.jClass.setSuperClass(className); //-- copy members from super class classInfo.addFieldInfo(cInfo.getAttributeFields()); classInfo.addFieldInfo(cInfo.getElementFields()); classInfo.addFieldInfo(cInfo.getTextField()); } else { //-- will this ever be null, if we have a valid Schema? //-- ignore for now...but add comment in case we //-- ever see it. System.out.print("ClassInfo#init: "); System.out.print("A referenced archetype is null: "); System.out.println(sourceName); } } //---------------------/ //- handle attributes -/ //---------------------/ //-- loop throug each attribute Enumeration enum = archetype.getAttributeDecls(); while (enum.hasMoreElements()) { AttributeDecl attr = (AttributeDecl)enum.nextElement(); FieldInfo fieldInfo = memberFactory.createFieldInfo(attr); handleField(fieldInfo, state); }
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/6f93661f299605a5dd3fe16282fc6992b3f3c0af/SourceFactory.java/clean/trunk/castor-2002/castor/src/main/org/exolab/castor/builder/SourceFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 12269, 5872, 3639, 261, 12269, 5872, 6637, 5872, 16, 7822, 1119, 919, 13, 377, 288, 7734, 514, 8173, 273, 6637, 5872, 18, 17994, 5621, 7734, 19010, 23566, 273, 919, 18, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 12269, 5872, 3639, 261, 12269, 5872, 6637, 5872, 16, 7822, 1119, 919, 13, 377, 288, 7734, 514, 8173, 273, 6637, 5872, 18, 17994, 5621, 7734, 19010, 23566, 273, 919, 18, 1...
if(targetFile.exists()) {
if(this.targetFile.exists()) {
public void update() { targetFile = new java.io.File(toString()+".xml"); if (transfer != null) { Logger.notice(this, "A transfer is already running"); return; } if(modifiable) { FCPClientPut clientPut; Logger.info(this, "Generating index ..."); generateXML(targetFile); if(targetFile.exists()) { Logger.info(this, "Inserting new version"); revision++; clientPut = new FCPClientPut(targetFile, 2, revision, toString(), privateKey, 2, false, 0); transfer = clientPut; clientPut.addObserver(this); queueManager.addQueryToThePendingQueue(clientPut); save(); } else { Logger.warning(this, "Index not generated !"); } setChanged(); notifyObservers(); } else { updateFromFreenet(-1); } }
47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/88402a3bc59123261d50a7cfed0ac20de2b772f6/Index.java/buggy/src/thaw/plugins/index/Index.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1089, 1435, 288, 202, 202, 3299, 812, 273, 394, 2252, 18, 1594, 18, 812, 12, 10492, 1435, 9078, 18, 2902, 8863, 202, 202, 430, 261, 13866, 480, 446, 13, 288, 1082, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1089, 1435, 288, 202, 202, 3299, 812, 273, 394, 2252, 18, 1594, 18, 812, 12, 10492, 1435, 9078, 18, 2902, 8863, 202, 202, 430, 261, 13866, 480, 446, 13, 288, 1082, 202, ...
else if ( ((LA17_0>='\u0000' && LA17_0<='\t')||(LA17_0>='\u000B' && LA17_0<='\f')||(LA17_0>='\u000E' && LA17_0<='\uFFFE')) ) { alt17=1;
else if ( ((LA15_0>='\u0000' && LA15_0<='\t')||(LA15_0>='\u000B' && LA15_0<='\f')||(LA15_0>='\u000E' && LA15_0<='\uFFFE')) ) { alt15=1;
public void mSH_STYLE_SINGLE_LINE_COMMENT() throws RecognitionException { try { ruleNestingLevel++; int _type = SH_STYLE_SINGLE_LINE_COMMENT; int _start = getCharIndex(); int _line = getLine(); int _charPosition = getCharPositionInLine(); int _channel = Token.DEFAULT_CHANNEL; // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1373:4: ( '#' ( options {greedy=false; } : . )* EOL ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1373:4: '#' ( options {greedy=false; } : . )* EOL { match('#'); if (failed) return ; // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1373:8: ( options {greedy=false; } : . )* loop17: do { int alt17=2; int LA17_0 = input.LA(1); if ( (LA17_0=='\r') ) { alt17=2; } else if ( (LA17_0=='\n') ) { alt17=2; } else if ( ((LA17_0>='\u0000' && LA17_0<='\t')||(LA17_0>='\u000B' && LA17_0<='\f')||(LA17_0>='\u000E' && LA17_0<='\uFFFE')) ) { alt17=1; } switch (alt17) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1373:35: . { matchAny(); if (failed) return ; } break; default : break loop17; } } while (true); mEOL(); if (failed) return ; if ( backtracking==0 ) { _channel=HIDDEN; } } if ( backtracking==0 ) { if ( token==null && ruleNestingLevel==1 ) { emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1); } } } finally { ruleNestingLevel--; } }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/63bc7036e62ae854cec463d59712c173f74e984c/DRLLexer.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 2664, 67, 15066, 67, 20184, 67, 5997, 67, 12200, 1435, 1216, 9539, 288, 3639, 775, 288, 5411, 1720, 50, 10100, 2355, 9904, 31, 5411, 509, 389, 723, 273, 6122, 67, 15066, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 2664, 67, 15066, 67, 20184, 67, 5997, 67, 12200, 1435, 1216, 9539, 288, 3639, 775, 288, 5411, 1720, 50, 10100, 2355, 9904, 31, 5411, 509, 389, 723, 273, 6122, 67, 15066, ...
return ( (ReportElementEditPart) part ).createGuideHandle( );
return ( (ReportElementEditPart) part ).getGuideHandle( );
protected AbstractGuideHandle createGuideHandle( ) { EditPart part = getParent( ); if ( part instanceof ReportElementEditPart ) { return ( (ReportElementEditPart) part ).createGuideHandle( ); } return null; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/c093e9754641d62e23c69f2ba4187e5b60ae0585/ReportElementEditPart.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/editparts/ReportElementEditPart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 4115, 17424, 3259, 752, 17424, 3259, 12, 262, 202, 95, 202, 202, 4666, 1988, 1087, 273, 5089, 12, 11272, 202, 202, 430, 261, 1087, 1276, 8706, 1046, 4666, 1988, 262, 202, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 4115, 17424, 3259, 752, 17424, 3259, 12, 262, 202, 95, 202, 202, 4666, 1988, 1087, 273, 5089, 12, 11272, 202, 202, 430, 261, 1087, 1276, 8706, 1046, 4666, 1988, 262, 202, 202, ...
args.set(args.size() - 1, val);
args.add(val);
public RubyObject eval(Ruby ruby, RubyObject self) { // TMP_PROTECT; RubyObject recv = getRecvNode().eval(ruby, self); Node rval = getArgsNode().getHeadNode(); RubyPointer args = ArgsUtil.setupArgs(ruby, self, getArgsNode().getNextNode()); args.remove(args.size() - 1); RubyObject val = recv.funcall("[]", args); if (getMId().equals("||")) { if (val.isTrue()) { return val; } else { val = rval.eval(ruby, self); } } else if (getMId().equals("&&")) { if (val.isFalse()) { return val; } else { val = rval.eval(ruby, self); } } else { val = val.funcall(getMId(), rval.eval(ruby, self)); } args.set(args.size() - 1, val); return recv.funcall("[]=", args); }
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/8ee00a248d314b571140a548e14f624cbd1eeae9/OpAsgn1Node.java/clean/org/jruby/nodes/OpAsgn1Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 5302, 12, 54, 10340, 22155, 16, 19817, 921, 365, 13, 288, 3639, 368, 399, 4566, 67, 3373, 1448, 1268, 31, 3639, 19817, 921, 10665, 273, 5561, 19774, 907, 7675, 8622, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 5302, 12, 54, 10340, 22155, 16, 19817, 921, 365, 13, 288, 3639, 368, 399, 4566, 67, 3373, 1448, 1268, 31, 3639, 19817, 921, 10665, 273, 5561, 19774, 907, 7675, 8622, 12,...
public Task getTask() {
public Task getTask() throws Exception { if ( task == null ) { task = (Task) taskType.newInstance(); task.setProject(project); task.setTaskName(taskName); task.init(); setDynaBean( new ConvertingWrapDynaBean(task) ); }
public Task getTask() { return task; }
51800 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51800/3cadede6ec1c9c447827ac93c3b6a4cd9b79e9a9/TaskTag.java/buggy/src/java/org/apache/commons/jelly/tags/ant/TaskTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3837, 11478, 1435, 1216, 1185, 288, 309, 261, 1562, 422, 446, 262, 288, 1562, 273, 261, 2174, 13, 1562, 559, 18, 2704, 1442, 5621, 1562, 18, 542, 4109, 12, 4406, 1769, 1562, 18, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3837, 11478, 1435, 1216, 1185, 288, 309, 261, 1562, 422, 446, 262, 288, 1562, 273, 261, 2174, 13, 1562, 559, 18, 2704, 1442, 5621, 1562, 18, 542, 4109, 12, 4406, 1769, 1562, 18, 5...
MethodPattern methodPattern = Pattern.compileMethodPattern("* meth*()");
MethodPattern methodPattern = Pattern.compileMethodPattern("* meth*(..)");
public void testMatchMethodName2() { MethodPattern methodPattern = Pattern.compileMethodPattern("* meth*()"); assertTrue(methodPattern.matchMethodName("method")); assertTrue(methodPattern.matchMethodName("methods")); assertFalse(methodPattern.matchMethodName("m")); assertFalse(methodPattern.matchMethodName("")); }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/a4954bc086440ee1724b840d06c4279c27d6d1c7/MethodPatternTest.java/clean/aspectwerkz/src/test/test/xmldef/MethodPatternTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2060, 11666, 22, 1435, 288, 3639, 2985, 3234, 707, 3234, 273, 6830, 18, 11100, 1305, 3234, 2932, 14, 7917, 21556, 838, 2225, 1769, 3639, 1815, 5510, 12, 2039, 3234, 18, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2060, 11666, 22, 1435, 288, 3639, 2985, 3234, 707, 3234, 273, 6830, 18, 11100, 1305, 3234, 2932, 14, 7917, 21556, 838, 2225, 1769, 3639, 1815, 5510, 12, 2039, 3234, 18, 1...
new ErrorDialog( Messages.getString( "WizardBase.error.ExceptionEncountered" ), Messages.getString( "WizardBase.error.FollowingExceptionEncountered" ),
new ErrorDialog( Messages.getString( "WizardBase.error.ErrorsEncountered" ), Messages.getString( "WizardBase.error.FollowingErrorEncountered" ),
public void displayException( Throwable t ) { // TODO: Implement linkage with the ErrorDialog new ErrorDialog( Messages.getString( "WizardBase.error.ExceptionEncountered" ), //$NON-NLS-1$ Messages.getString( "WizardBase.error.FollowingExceptionEncountered" ), //$NON-NLS-1$ t ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/3cae224982a492f4523572d47f04851fefb08dbe/WizardBase.java/buggy/core/org.eclipse.birt.core.ui/src/org/eclipse/birt/core/ui/frameworks/taskwizard/WizardBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2562, 503, 12, 4206, 268, 262, 202, 95, 202, 202, 759, 2660, 30, 10886, 1692, 410, 598, 326, 1068, 6353, 202, 202, 2704, 1068, 6353, 12, 4838, 18, 588, 780, 12, 315, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2562, 503, 12, 4206, 268, 262, 202, 95, 202, 202, 759, 2660, 30, 10886, 1692, 410, 598, 326, 1068, 6353, 202, 202, 2704, 1068, 6353, 12, 4838, 18, 588, 780, 12, 315, 27...
model.addRow();
int row = rulesTable.getSelectedRow(); model.addNewRow(row);
void addButton_actionPerformed(ActionEvent e) { CrawlRuleModel model = (CrawlRuleModel) rulesTable.getModel(); model.addRow(); }
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/2c5003c8d83554a179e56fc6e7a07c055c35b3ba/CrawlRuleEditor.java/buggy/test/src/org/lockss/devtools/plugindef/CrawlRuleEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 527, 3616, 67, 1128, 13889, 12, 1803, 1133, 425, 13, 288, 565, 385, 15161, 2175, 1488, 938, 273, 261, 39, 15161, 2175, 1488, 13, 2931, 1388, 18, 588, 1488, 5621, 565, 509, 1027, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 527, 3616, 67, 1128, 13889, 12, 1803, 1133, 425, 13, 288, 565, 385, 15161, 2175, 1488, 938, 273, 261, 39, 15161, 2175, 1488, 13, 2931, 1388, 18, 588, 1488, 5621, 565, 509, 1027, 27...
changeListeners.remove(listener);
changeSupport.removeChangeListener(listener);
public synchronized void removeChangeListener(IChangeListener listener) { changeListeners.remove(listener); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/6aecdb31231a8602dbf72944625703c440949c78/AbstractObservableMap.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/observable/map/AbstractObservableMap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 1206, 15744, 12, 45, 15744, 2991, 13, 288, 202, 202, 3427, 5583, 18, 4479, 12, 12757, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 1206, 15744, 12, 45, 15744, 2991, 13, 288, 202, 202, 3427, 5583, 18, 4479, 12, 12757, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
noex = Constants.NOEX_PRIVATE;
noex = Visibility.PRIVATE;
public void visitDefnNode(DefnNode iVisited) { RubyModule rubyClass = ruby.getRubyClass(); if (rubyClass == null) { throw new TypeError(ruby, "No class to add method."); } //if (ruby_class == getRuby().getObjectClass() && node.nd_mid() == init) { // warn("redefining Object#initialize may cause infinite loop"); //} //if (node.nd_mid() == __id__ || node.nd_mid() == __send__) { // warn("redefining `%s' may cause serious problem", ((RubyId)node.nd_mid()).toName()); //} // ruby_class.setFrozen(true); ICallable method = rubyClass.searchMethod(iVisited.getName()); // RubyObject origin = body.getOrigin(); // if (body != null){ // if (ruby_verbose.isTrue() && ruby_class == origin && body.nd_cnt() == 0) { // rom.rb_warning("discarding old %s", ((RubyId)node.nd_mid()).toName()); // } // if (node.nd_noex() != 0) { /* toplevel */ /* should upgrade to rb_warn() if no super was called inside? */ // rom.rb_warning("overriding global function `%s'", ((RubyId)node.nd_mid()).toName()); // } // } int noex; if (ruby.isScope(Constants.SCOPE_PRIVATE) || iVisited.getName().equals("initialize")) { noex = Constants.NOEX_PRIVATE; } else if (ruby.isScope(Constants.SCOPE_PROTECTED)) { noex = Constants.NOEX_PROTECTED; } else if (rubyClass == ruby.getClasses().getObjectClass()) { noex = iVisited.getNoex(); } else { noex = Constants.NOEX_PUBLIC; } if (method != null && method.getImplementationClass() == rubyClass && (method.getNoex() & Constants.NOEX_UNDEF) != 0) { noex |= Constants.NOEX_UNDEF; } // FIXME Create new method store class. // ScopeNode body = copyNodeScope((ScopeNode)iVisited.getBodyNode(), ruby.getNamespace()); DefaultMethod newMethod = new DefaultMethod(iVisited.getBodyNode(), (ArgsNode) iVisited.getArgsNode(), ruby.getNamespace()); rubyClass.addMethod(iVisited.getName(), newMethod, noex); if (ruby.getCurrentMethodScope() == Constants.SCOPE_MODFUNC) { rubyClass.getSingletonClass().addMethod(iVisited.getName(), newMethod, Constants.NOEX_PUBLIC); rubyClass.callMethod("singleton_method_added", builtins.toSymbol(iVisited.getName())); } if (rubyClass.isSingleton()) { rubyClass.getInstanceVariable("__attached__").callMethod("singleton_method_added", builtins.toSymbol(iVisited.getName())); } else { rubyClass.callMethod("method_added", builtins.toSymbol(iVisited.getName())); } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f05423516c2d1bfe54c4363eedb9654f7cfb6898/EvaluateVisitor.java/buggy/org/jruby/evaluator/EvaluateVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 3262, 82, 907, 12, 3262, 82, 907, 277, 30019, 13, 288, 3639, 19817, 3120, 22155, 797, 273, 22155, 18, 588, 54, 10340, 797, 5621, 3639, 309, 261, 27768, 797, 422, 446, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 3262, 82, 907, 12, 3262, 82, 907, 277, 30019, 13, 288, 3639, 19817, 3120, 22155, 797, 273, 22155, 18, 588, 54, 10340, 797, 5621, 3639, 309, 261, 27768, 797, 422, 446, 1...
return context.declaration.getExtractor().getFloatValue( left ) > ((DoubleVariableContextEntry) context).right;
return context.getVariableDeclaration().getExtractor().getFloatValue( left ) > ((DoubleVariableContextEntry) context).right;
public boolean evaluateCachedRight(final VariableContextEntry context, final Object left) { // TODO: we are not handling delta right now... maybe we should return context.declaration.getExtractor().getFloatValue( left ) > ((DoubleVariableContextEntry) context).right; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/b6d27b51773c616f04e39b7d6c5e3cd95aeab255/FloatFactory.java/buggy/drools-core/src/main/java/org/drools/base/evaluators/FloatFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1250, 5956, 9839, 4726, 12, 6385, 7110, 1042, 1622, 819, 16, 4766, 6647, 727, 1033, 2002, 13, 288, 5411, 368, 2660, 30, 732, 854, 486, 5057, 3622, 2145, 2037, 2777, 6944, 732, 1410,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1250, 5956, 9839, 4726, 12, 6385, 7110, 1042, 1622, 819, 16, 4766, 6647, 727, 1033, 2002, 13, 288, 5411, 368, 2660, 30, 732, 854, 486, 5057, 3622, 2145, 2037, 2777, 6944, 732, 1410,...
return longDiv(s);
result = longDiv(s); break;
public static byte simplify(OPT_AbstractRegisterPool regpool, OPT_Instruction s) { switch (s.getOpcode()) { //////////////////// // GUARD operations //////////////////// case GUARD_COMBINE_opcode: return guardCombine(s); //////////////////// // TRAP operations //////////////////// case TRAP_IF_opcode: return trapIf(s); case NULL_CHECK_opcode: return nullCheck(s); case INT_ZERO_CHECK_opcode: return intZeroCheck(s); case LONG_ZERO_CHECK_opcode: return longZeroCheck(s); case CHECKCAST_opcode: return checkcast(regpool, s); case CHECKCAST_UNRESOLVED_opcode: return checkcast(regpool, s); case CHECKCAST_NOTNULL_opcode: return checkcastNotNull(s); case INSTANCEOF_opcode: return instanceOf(regpool, s); case INSTANCEOF_NOTNULL_opcode: return instanceOfNotNull(s); case OBJARRAY_STORE_CHECK_opcode: return objarrayStoreCheck(s); case OBJARRAY_STORE_CHECK_NOTNULL_opcode: return objarrayStoreCheckNotNull(s); case MUST_IMPLEMENT_INTERFACE_opcode: return mustImplementInterface(s); //////////////////// // Conditional moves //////////////////// case INT_COND_MOVE_opcode: return intCondMove(s); case LONG_COND_MOVE_opcode: return longCondMove(s); case FLOAT_COND_MOVE_opcode: return floatCondMove(s); case DOUBLE_COND_MOVE_opcode: return doubleCondMove(s); case REF_COND_MOVE_opcode: return refCondMove(s); case GUARD_COND_MOVE_opcode: return guardCondMove(s); //////////////////// // INT ALU operations //////////////////// case BOOLEAN_NOT_opcode: return booleanNot(s); case BOOLEAN_CMP_INT_opcode: return booleanCmpInt(s); case BOOLEAN_CMP_ADDR_opcode: return booleanCmpAddr(s); case INT_ADD_opcode: return intAdd(s); case INT_AND_opcode: return intAnd(s); case INT_DIV_opcode: return intDiv(s); case INT_MUL_opcode: return intMul(regpool, s); case INT_NEG_opcode: return intNeg(s); case INT_NOT_opcode: return intNot(s); case INT_OR_opcode: return intOr(s); case INT_REM_opcode: return intRem(s); case INT_SHL_opcode: return intShl(s); case INT_SHR_opcode: return intShr(s); case INT_SUB_opcode: return intSub(s); case INT_USHR_opcode: return intUshr(s); case INT_XOR_opcode: return intXor(s); //////////////////// // WORD ALU operations //////////////////// case REF_ADD_opcode: return refAdd(s); case REF_AND_opcode: return refAnd(s); case REF_SHL_opcode: return refShl(s); case REF_SHR_opcode: return refShr(s); case REF_NOT_opcode: return refNot(s); case REF_OR_opcode: return refOr(s); case REF_SUB_opcode: return refSub(s); case REF_USHR_opcode: return regUshr(s); case REF_XOR_opcode: return refXor(s); //////////////////// // LONG ALU operations //////////////////// case LONG_ADD_opcode: return longAdd(s); case LONG_AND_opcode: return longAnd(s); case LONG_CMP_opcode: return longCmp(s); case LONG_DIV_opcode: return longDiv(s); case LONG_MUL_opcode: return longMul(s); case LONG_NEG_opcode: return longNeg(s); case LONG_NOT_opcode: return longNot(s); case LONG_OR_opcode: return longOr(s); case LONG_REM_opcode: return longRem(s); case LONG_SHL_opcode: return longShl(s); case LONG_SHR_opcode: return longShr(s); case LONG_SUB_opcode: return longSub(s); case LONG_USHR_opcode: return longUshr(s); case LONG_XOR_opcode: return longXor(s); //////////////////// // FLOAT ALU operations //////////////////// case FLOAT_ADD_opcode: return floatAdd(s); case FLOAT_CMPG_opcode: return floatCmpg(s); case FLOAT_CMPL_opcode: return floatCmpl(s); case FLOAT_DIV_opcode: return floatDiv(s); case FLOAT_MUL_opcode: return floatMul(s); case FLOAT_NEG_opcode: return floatNeg(s); case FLOAT_REM_opcode: return floatRem(s); case FLOAT_SUB_opcode: return floatSub(s); //////////////////// // DOUBLE ALU operations //////////////////// case DOUBLE_ADD_opcode: return doubleAdd(s); case DOUBLE_CMPG_opcode: return doubleCmpg(s); case DOUBLE_CMPL_opcode: return doubleCmpl(s); case DOUBLE_DIV_opcode: return doubleDiv(s); case DOUBLE_MUL_opcode: return doubleMul(s); case DOUBLE_NEG_opcode: return doubleNeg(s); case DOUBLE_REM_opcode: return doubleRem(s); case DOUBLE_SUB_opcode: return doubleSub(s); //////////////////// // CONVERSION operations //////////////////// case DOUBLE_2FLOAT_opcode: return double2Float(s); case DOUBLE_2INT_opcode: return double2Int(s); case DOUBLE_2LONG_opcode: return double2Long(s); case DOUBLE_AS_LONG_BITS_opcode: return doubleAsLongBits(s); case INT_2DOUBLE_opcode: return int2Double(s); case INT_2BYTE_opcode: return int2Byte(s); case INT_2USHORT_opcode: return int2UShort(s); case INT_2FLOAT_opcode: return int2Float(s); case INT_2LONG_opcode: return int2Long(s); case INT_2ADDRSigExt_opcode: return int2AddrSigExt(s); case INT_2ADDRZerExt_opcode: return int2AddrZerExt(s); //-#if RVM_FOR_64_ADDR case LONG_2ADDR_opcode: return long2Addr(s); //-#endif case INT_2SHORT_opcode: return int2Short(s); case INT_BITS_AS_FLOAT_opcode: return intBitsAsFloat(s); case ADDR_2INT_opcode: return addr2Int(s); case ADDR_2LONG_opcode: return addr2Long(s); case FLOAT_2DOUBLE_opcode: return float2Double(s); case FLOAT_2INT_opcode: return float2Int(s); case FLOAT_2LONG_opcode: return float2Long(s); case FLOAT_AS_INT_BITS_opcode: return floatAsIntBits(s); case LONG_2FLOAT_opcode: return long2Float(s); case LONG_2INT_opcode: return long2Int(s); case LONG_2DOUBLE_opcode: return long2Double(s); case LONG_BITS_AS_DOUBLE_opcode: return longBitsAsDouble(s); //////////////////// // Field operations //////////////////// case ARRAYLENGTH_opcode: return arrayLength(s); case BOUNDS_CHECK_opcode: return boundsCheck(s); case CALL_opcode: return call(s); case GETFIELD_opcode: return getField(s); case GET_OBJ_TIB_opcode: return getObjTib(s); case GET_CLASS_TIB_opcode: return getClassTib(s); case GET_TYPE_FROM_TIB_opcode: return getTypeFromTib(s); case GET_ARRAY_ELEMENT_TIB_FROM_TIB_opcode: return getArrayElementTibFromTib(s); case GET_SUPERCLASS_IDS_FROM_TIB_opcode: return getSuperclassIdsFromTib(s); case GET_DOES_IMPLEMENT_FROM_TIB_opcode: return getDoesImplementFromTib(s); case REF_LOAD_opcode: return refLoad(s); default: return UNCHANGED; } }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/eb4369b6f8fdd0cd15c56bc3cbfa8673171db226/OPT_Simplifier.java/buggy/rvm/src/com/ibm/jikesrvm/opt/OPT_Simplifier.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1160, 16499, 12, 15620, 67, 7469, 3996, 2864, 960, 6011, 16, 16456, 67, 11983, 272, 13, 288, 565, 1620, 261, 87, 18, 588, 22808, 10756, 288, 1377, 368, 3517, 759, 1377, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1160, 16499, 12, 15620, 67, 7469, 3996, 2864, 960, 6011, 16, 16456, 67, 11983, 272, 13, 288, 565, 1620, 261, 87, 18, 588, 22808, 10756, 288, 1377, 368, 3517, 759, 1377, 368, ...
int value1; int value2;
int res1 = 0, res2 = 0; char buf1[] = new char[1024], buf2[] = new char[1024];
public void compareReaders(Reader r1, Reader r2) throws IOException { try { if (r1 == null && r2 == null) { return; } else if (r1 == null) { assertTrue("r1 == null && r2 != null", false); return; } else if (r2 == null) { assertTrue("r1 != null && r2 == null", false); return; } long count = 0; int value1; int value2; while ((value1 = r1.read()) != -1) { value2 = r2.read(); if (value2 == -1) { assertTrue("reader 2 EOF at: " + count, false); } assertTrue("reader 1 value [" + value1 + "] differs from reader 2 value [" + value2 + "] at: " + count, (value1 == value2)); count++; } if (r2.read() != -1) { assertTrue("reader 1 EOF at: " + count, false); } } finally { if (r1 != null) { r1.close(); } if (r2 != null) { r2.close(); } } }
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/d4e620b37705bad32b9be345d92f0be6e602bb1b/TestBase.java/clean/trunk/jtds/src/test/net/sourceforge/jtds/test/TestBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3400, 30301, 12, 2514, 436, 21, 16, 5393, 436, 22, 13, 1216, 1860, 288, 3639, 775, 288, 5411, 309, 261, 86, 21, 422, 446, 597, 436, 22, 422, 446, 13, 288, 7734, 327, 31, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3400, 30301, 12, 2514, 436, 21, 16, 5393, 436, 22, 13, 1216, 1860, 288, 3639, 775, 288, 5411, 309, 261, 86, 21, 422, 446, 597, 436, 22, 422, 446, 13, 288, 7734, 327, 31, ...
encoded = true;
void encode() { try { splitfileAlgo.encode(dataBlocks, checkBlocks, CHKBlock.DATA_LENGTH, blockInsertContext.persistentBucketFactory); // Start the inserts for(int i=0;i<checkBlockInserters.length;i++) { if(checkBlocks[i] != null) { // else already finished on creation checkBlockInserters[i] = new SingleBlockInserter(parent.parent, checkBlocks[i], (short)-1, FreenetURI.EMPTY_CHK_URI, blockInsertContext, this, false, CHKBlock.DATA_LENGTH, i + dataBlocks.length, getCHKOnly, false, false, parent.token); checkBlockInserters[i].schedule(); } else { parent.parent.completedBlock(true); } } // Tell parent only after have started the inserts. // Because of the counting. encoded = true; parent.encodedSegment(this); onEncodedSegment(); } catch (IOException e) { InserterException ex = new InserterException(InserterException.BUCKET_ERROR, e, null); finish(ex); } catch (Throwable t) { Logger.error(this, "Caught "+t+" while encoding "+this, t); InserterException ex = new InserterException(InserterException.INTERNAL_ERROR, t, null); finish(ex); } }
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/e6accf6fde724c33588e68c749fd47456ab50691/SplitFileInserterSegment.java/clean/src/freenet/client/async/SplitFileInserterSegment.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 2017, 1435, 288, 202, 202, 698, 288, 1082, 202, 4939, 768, 22430, 18, 3015, 12, 892, 6450, 16, 866, 6450, 16, 6469, 47, 1768, 18, 4883, 67, 7096, 16, 1203, 4600, 1042, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 2017, 1435, 288, 202, 202, 698, 288, 1082, 202, 4939, 768, 22430, 18, 3015, 12, 892, 6450, 16, 866, 6450, 16, 6469, 47, 1768, 18, 4883, 67, 7096, 16, 1203, 4600, 1042, 18, ...
for(IDSRule rule : (List<IDSRule>) settings.getRules()) { engine.updateRule(rule); }*/
protected void initializeSettings() { log.info("Loading Rules..."); //IDSSettings settings = new IDSSettings(getTid()); //settings = queryDBForSettings(); queryDBForSettings(); if(settings == null || settings.getRules() == null) { settings = new IDSSettings(getTid()); settings.setVariables(IDSRuleManager.defaultVariables); settings.setImmutableVariables(IDSRuleManager.immutableVariables); log.info("Settings was null, loading from file"); String path = System.getProperty("bunnicula.home"); File file = new File(path+"/idsrules"); visitAllFiles(file); settings.setMaxChunks(engine.getMaxChunks()); settings.setRules(ruleList); setIDSSettings(settings); } else log.info("Settings was loaded from DB: " + settings); //setIDSSettings(settings); log.info(ruleList.size() + " rules loaded"); //} IDSStatisticManager.instance().stop(); }
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/f81e1f4a7d2db5658724f732284e0ce7d755c59a/IDSTransformImpl.java/clean/tran/ids/main/com/metavize/tran/ids/IDSTransformImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 364, 12, 19516, 2175, 1720, 294, 261, 682, 32, 19516, 2175, 23429, 1947, 18, 588, 4478, 10756, 288, 4073, 18, 2725, 2175, 12, 5345, 1769, 289, 5549, 225, 364, 12, 19516, 2175, 1720, 294, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 364, 12, 19516, 2175, 1720, 294, 261, 682, 32, 19516, 2175, 23429, 1947, 18, 588, 4478, 10756, 288, 4073, 18, 2725, 2175, 12, 5345, 1769, 289, 5549, 225, 364, 12, 19516, 2175, 1720, 294, 261, ...
downloader.doDownload(false);
downloader.doDownload(false,null);
private static void testOverlapCheckSpeed(int rate) { RemoteFileDesc rfd=newRFD(6346, 100); System.out.println("-Measuring time for download at rate "+rate+"..."); uploader1.setRate(rate); long start1=System.currentTimeMillis(); try { HTTPDownloader downloader=new HTTPDownloader( rfd, file, 0, TestFile.length()); downloader.connect(); downloader.doDownload(true); } catch (IOException e) { Assert.that(false, "Unexpected exception: "+e); } catch (OverlapMismatchException e) { Assert.that(false, "Unexpected mismatch"); } long elapsed1=System.currentTimeMillis()-start1; // try{// RandomAccessFile raf = new RandomAccessFile(file,"rw");// raf.seek(300);// raf.write(65);// } catch (IOException io) {// Assert.that(false, "Error programing a spook");// } long start2=System.currentTimeMillis(); try { HTTPDownloader downloader=new HTTPDownloader( rfd, file, 0, TestFile.length()); downloader.connect(); downloader.doDownload(false); } catch (IOException e) { Assert.that(false, "Unexpected exception: "+e); } catch (OverlapMismatchException e) { Assert.that(false, "Unexpected mismatch"); } long elapsed2=System.currentTimeMillis()-start2; System.out.println(" No check="+elapsed2+", check="+elapsed1); }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/aa7722a500c952772fb40e6c20753404a974c9d3/DownloadTester.java/clean/components/gnutella-core/src/main/java/com/limegroup/gnutella/tests/downloader/DownloadTester.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 1842, 17411, 1564, 16562, 12, 474, 4993, 13, 288, 3639, 6304, 812, 4217, 436, 8313, 33, 2704, 12918, 40, 12, 4449, 8749, 16, 2130, 1769, 3639, 2332, 18, 659, 18, 8222, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 1842, 17411, 1564, 16562, 12, 474, 4993, 13, 288, 3639, 6304, 812, 4217, 436, 8313, 33, 2704, 12918, 40, 12, 4449, 8749, 16, 2130, 1769, 3639, 2332, 18, 659, 18, 8222, 2...
c = new CommandlineParser(new String[] { "--version" });
c = new CommandlineParser(new String[] { "--version" }, outStream);
public void testParsing() { CommandlineParser c = new CommandlineParser(new String[] { "-e", "hello", "-e", "world" }); assertEquals("hello\nworld\n", c.inlineScript()); assertNull(c.getScriptFileName()); assertEquals("-e", c.displayedFileName()); c = new CommandlineParser(new String[] { "--version" }); assertTrue(c.isShowVersion()); c = new CommandlineParser(new String[] { "-n", "myfile.rb" }); assertTrue(c.isAssumeLoop()); assertEquals("myfile.rb", c.getScriptFileName()); assertEquals("myfile.rb", c.displayedFileName()); c = new CommandlineParser(new String[0]); assertEquals("-", c.displayedFileName()); }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/f321a7dc6c9f0229cc5266d9c2923a04a755be60/TestCommandlineParser.java/clean/test/org/jruby/test/TestCommandlineParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 13963, 1435, 288, 3639, 3498, 1369, 2678, 276, 273, 394, 3498, 1369, 2678, 12, 2704, 514, 8526, 288, 3701, 73, 3113, 315, 23711, 3113, 3701, 73, 3113, 315, 18179, 6, 1554...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13963, 1435, 288, 3639, 3498, 1369, 2678, 276, 273, 394, 3498, 1369, 2678, 12, 2704, 514, 8526, 288, 3701, 73, 3113, 315, 23711, 3113, 3701, 73, 3113, 315, 18179, 6, 1554...
DEBUG ("(POP) XMLValidator.copyAtts: " + param("fromElementType",fromElementType) + param("toElementType",toElementType) + "\n");
if (DEBUG) print("(POP) XMLValidator.copyAtts: " + param("fromElementType",fromElementType) + param("toElementType",toElementType) + "\n");
public void copyAtts(int fromElementType, int toElementType) { //****DEBUG**** DEBUG ("(POP) XMLValidator.copyAtts: " + param("fromElementType",fromElementType) + param("toElementType",toElementType) + "\n"); //****DEBUG**** int fromElement = fStringPool.getDeclaration(fromElementType); int toElement = fStringPool.getDeclaration(toElementType); if (fromElement == -1) return; int chunk = fromElement >> CHUNK_SHIFT; int index = fromElement & CHUNK_MASK; int attDefIndex = fAttlistHead[chunk][index]; while (attDefIndex != -1) { chunk = attDefIndex >> CHUNK_SHIFT; index = attDefIndex & CHUNK_MASK; try { addAttDef(toElement, fAttName[chunk][index], fAttType[chunk][index], fEnumeration[chunk][index], fAttDefaultType[chunk][index], fAttValue[chunk][index], fAttDefIsExternal[chunk][index] != 0); } catch (Exception ex) { } attDefIndex = fNextAttDef[chunk][index]; } }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/3aa2926e7035395f8d1b5e35cb25d4e6aad6a281/XMLValidator.java/clean/src/org/apache/xerces/validators/common/XMLValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1610, 3075, 87, 12, 474, 628, 17481, 16, 509, 358, 17481, 13, 288, 202, 202, 759, 1007, 9394, 1007, 202, 202, 9394, 7566, 12, 30374, 13, 3167, 5126, 18, 3530, 3075, 87, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1610, 3075, 87, 12, 474, 628, 17481, 16, 509, 358, 17481, 13, 288, 202, 202, 759, 1007, 9394, 1007, 202, 202, 9394, 7566, 12, 30374, 13, 3167, 5126, 18, 3530, 3075, 87, 30, ...
f = f.resolve();
f = resolve(f);
public void visitAPUTFIELD(jq_InstanceField f) { super.visitAPUTFIELD(f); f = f.resolve(); Object v = state.pop_A(); vm.putfield_A(state.pop_A(), f, v); }
3029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3029/d12f1e1bc9744829efc71c43906f1f511c2f07d2/Interpreter.java/clean/joeq_native/joeq/Interpreter/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3757, 2203, 1693, 6776, 12, 78, 85, 67, 1442, 974, 284, 13, 288, 5411, 2240, 18, 11658, 2203, 1693, 6776, 12, 74, 1769, 5411, 284, 273, 2245, 12, 74, 1769, 5411, 1033, 331, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3757, 2203, 1693, 6776, 12, 78, 85, 67, 1442, 974, 284, 13, 288, 5411, 2240, 18, 11658, 2203, 1693, 6776, 12, 74, 1769, 5411, 284, 273, 2245, 12, 74, 1769, 5411, 1033, 331, ...
final PsiExpression expression = expressionStatement.getExpression();
final PsiExpression expression = expressionStatement .getExpression();
private boolean statementMustAssignVariable(PsiVariable field, PsiStatement statement, Set<MethodSignature> checkedMethods){ if(statement == null){ return false; } if(statement instanceof PsiBreakStatement || statement instanceof PsiContinueStatement || statement instanceof PsiAssertStatement || statement instanceof PsiEmptyStatement){ return false; } else if(statement instanceof PsiReturnStatement){ final PsiReturnStatement returnStatement = (PsiReturnStatement) statement; final PsiExpression returnValue = returnStatement.getReturnValue(); return expressionMustAssignVariable(field, returnValue, checkedMethods); } else if(statement instanceof PsiThrowStatement){ final PsiThrowStatement throwStatement = (PsiThrowStatement) statement; final PsiExpression exception = throwStatement.getException(); return expressionMustAssignVariable(field, exception, checkedMethods); } else if(statement instanceof PsiExpressionListStatement){ final PsiExpressionListStatement list = (PsiExpressionListStatement) statement; final PsiExpressionList expressionList = list.getExpressionList(); final PsiExpression[] expressions = expressionList.getExpressions(); for(final PsiExpression expression : expressions){ if(expressionMustAssignVariable(field, expression, checkedMethods)){ return true; } } return false; } else if(statement instanceof PsiExpressionStatement){ final PsiExpressionStatement expressionStatement = (PsiExpressionStatement) statement; final PsiExpression expression = expressionStatement.getExpression(); return expressionMustAssignVariable(field, expression, checkedMethods); } else if(statement instanceof PsiDeclarationStatement){ return declarationStatementMustAssignVariable(field, (PsiDeclarationStatement) statement, checkedMethods); } else if(statement instanceof PsiForStatement){ return forStatementMustAssignVariable(field, (PsiForStatement) statement, checkedMethods); } else if(statement instanceof PsiForeachStatement){ return foreachStatementMustAssignVariable(field, (PsiForeachStatement) statement); } else if(statement instanceof PsiWhileStatement){ return whileStatementMustAssignVariable(field, (PsiWhileStatement) statement, checkedMethods); } else if(statement instanceof PsiDoWhileStatement){ return doWhileMustAssignVariable(field, (PsiDoWhileStatement) statement, checkedMethods); } else if(statement instanceof PsiSynchronizedStatement){ final PsiCodeBlock body = ((PsiSynchronizedStatement) statement).getBody(); return cachingBlockMustAssignVariable(field, body, checkedMethods); } else if(statement instanceof PsiBlockStatement){ final PsiCodeBlock codeBlock = ((PsiBlockStatement) statement).getCodeBlock(); return cachingBlockMustAssignVariable(field, codeBlock, checkedMethods); } else if(statement instanceof PsiLabeledStatement){ final PsiLabeledStatement labeledStatement = (PsiLabeledStatement) statement; final PsiStatement statementLabeled = labeledStatement.getStatement(); return statementMustAssignVariable(field, statementLabeled, checkedMethods); } else if(statement instanceof PsiIfStatement){ return ifStatementMustAssignVariable(field, (PsiIfStatement) statement, checkedMethods); } else if(statement instanceof PsiTryStatement){ return tryStatementMustAssignVariable(field, (PsiTryStatement) statement, checkedMethods); } else if(statement instanceof PsiSwitchStatement){ return false; } else // unknown statement type { return false; } }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/fc3fc1341db4aa6d26930bf45116ec44c28fc569/InitializationReadUtils.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/InitializationReadUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 3021, 10136, 4910, 3092, 12, 52, 7722, 3092, 652, 16, 4766, 7734, 453, 7722, 3406, 3021, 16, 4766, 7734, 1000, 32, 1305, 5374, 34, 5950, 4712, 15329, 3639, 309, 12, 11516, 422...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 3021, 10136, 4910, 3092, 12, 52, 7722, 3092, 652, 16, 4766, 7734, 453, 7722, 3406, 3021, 16, 4766, 7734, 1000, 32, 1305, 5374, 34, 5950, 4712, 15329, 3639, 309, 12, 11516, 422...
throw new UnsupportedOperationException(); }
throw new UnsupportedOperationException(); }
public Time getTime(int arg0) throws OLAPException { throw new UnsupportedOperationException(); }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/CursorSupport.java/buggy/src/main/mondrian/jolap/CursorSupport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2647, 6135, 12, 474, 1501, 20, 13, 1216, 531, 48, 2203, 503, 288, 202, 202, 12849, 394, 13172, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2647, 6135, 12, 474, 1501, 20, 13, 1216, 531, 48, 2203, 503, 288, 202, 202, 12849, 394, 13172, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
ChemFile chemFile = new ChemFile(); try { ChemObjectReader reader; logger.info("Loading: " + inFile); if (inFile.endsWith(".xyz")) { reader = new XYZReader(new FileReader(inFile)); logger.info("Expecting XYZ format..."); } else if (inFile.endsWith(".cml")) { String url = "file:" + System.getProperty("user.dir") + "/" + inFile; reader = new CMLReader(url); logger.info("Expecting CML format..."); } else if (inFile.endsWith(".pdb")) { reader = new PDBReader(new FileReader(inFile)); logger.info("Expecting PDB format..."); } else { reader = new MDLReader(new FileInputStream(inFile)); logger.info("Expecting MDL MolFile format...");
try { sdg.setMolecule((Molecule)mol.clone()); sdg.generateCoordinates(new Vector2d(0,1)); mv.setAtomContainer(sdg.getMolecule()); mv.display(); } catch(Exception exc) { System.out.println("*** Exit due to an unexpected error during coordinate generation ***"); exc.printStackTrace();
public Viewer(String inFile, boolean useJava3D, boolean use3D) { this.useJava3D = useJava3D; this.use3D = use3D; logger = new org.openscience.cdk.tools.LoggingTool(this.getClass().getName()); logger.dumpSystemProperties(); logger.dumpClasspath(); ChemFile chemFile = new ChemFile(); try { ChemObjectReader reader; logger.info("Loading: " + inFile); if (inFile.endsWith(".xyz")) { reader = new XYZReader(new FileReader(inFile)); logger.info("Expecting XYZ format..."); } else if (inFile.endsWith(".cml")) { String url = "file:" + System.getProperty("user.dir") + "/" + inFile; reader = new CMLReader(url); logger.info("Expecting CML format..."); } else if (inFile.endsWith(".pdb")) { reader = new PDBReader(new FileReader(inFile)); logger.info("Expecting PDB format..."); } else { reader = new MDLReader(new FileInputStream(inFile)); logger.info("Expecting MDL MolFile format..."); } chemFile = (ChemFile)reader.read((ChemObject)new ChemFile()); } catch(Exception exc) { logger.error("Error while reading file"); logger.error(exc.toString()); exc.printStackTrace(); System.exit(1); } ChemSequence chemSequence; ChemModel chemModel; SetOfMolecules setOfMolecules; logger.info(" number of sequences: " + chemFile.getChemSequenceCount()); for (int sequence = 0; sequence < chemFile.getChemSequenceCount(); sequence++) { chemSequence = chemFile.getChemSequence(sequence); logger.info(" number of models in sequence " + sequence + ": " + chemSequence.getChemModelCount()); for (int model = 0; model < chemSequence.getChemModelCount(); model++) { chemModel = chemSequence.getChemModel(model); setOfMolecules = chemModel.getSetOfMolecules(); logger.info(" number of molecules in model " + model + ": " + setOfMolecules.getMoleculeCount()); for (int i = 0; i < setOfMolecules.getMoleculeCount(); i++) { Molecule m = setOfMolecules.getMolecule(i); // use Accelerated viewer if 3D coords are available if (GeometryTools.has3DCoordinates(m) && use3D) { logger.info("Viewing with 3D viewer"); boolean viewed = false; if (useJava3D) { logger.debug(".. trying Java3D viewer"); try { JFrame frame = new JFrame("AcceleratedRenderer3DTest"); frame.getContentPane().setLayout(new BorderLayout()); AtomContainer atomContainer = chemModel.getAllInOneContainer(); AcceleratedRenderer3D renderer = new AcceleratedRenderer3D( new AcceleratedRenderer3DModel(atomContainer)); frame.getContentPane().add(renderer, BorderLayout.CENTER); frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); frame.setSize(500,500); frame.setVisible(true); logger.debug(".. done"); viewed = true; } catch (Exception e) { logger.error("Viewing did not succeed!"); logger.error(e.toString()); } } // try to view it without Java3D if (!viewed) { logger.debug(".. trying non-Java3D viewer"); MoleculeViewer3D mv = new MoleculeViewer3D(m); mv.display(); logger.debug(".. done"); } } else if (GeometryTools.has2DCoordinates(m)) { logger.info("Viewing with 2D viewer"); MoleculeViewer2D mv = new MoleculeViewer2D(m); mv.display(); } else { System.out.println("Molecule has no coordinates."); } } } } }
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/0a06919741801d4e191547f8003d99a1b2ce6242/Viewer.java/clean/src/org/openscience/cdk/applications/Viewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4441, 264, 12, 780, 316, 812, 16, 1250, 999, 5852, 23, 40, 16, 1250, 999, 23, 40, 13, 288, 3639, 333, 18, 1202, 5852, 23, 40, 273, 999, 5852, 23, 40, 31, 3639, 333, 18, 1202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4441, 264, 12, 780, 316, 812, 16, 1250, 999, 5852, 23, 40, 16, 1250, 999, 23, 40, 13, 288, 3639, 333, 18, 1202, 5852, 23, 40, 273, 999, 5852, 23, 40, 31, 3639, 333, 18, 1202, ...
org.exist.xquery.parser.XQueryAST tmp182_AST = null; tmp182_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp182_AST);
org.exist.xquery.parser.XQueryAST tmp181_AST = null; tmp181_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp181_AST);
public final void rangeExpr() throws RecognitionException, TokenStreamException, XPathException { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST rangeExpr_AST = null; additiveExpr(); astFactory.addASTChild(currentAST, returnAST); { switch ( LA(1)) { case LITERAL_to: { org.exist.xquery.parser.XQueryAST tmp182_AST = null; tmp182_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp182_AST); match(LITERAL_to); additiveExpr(); astFactory.addASTChild(currentAST, returnAST); break; } case EOF: case RPAREN: case EQ: case LITERAL_default: case LITERAL_collation: case RCURLY: case COMMA: case LITERAL_empty: case LITERAL_for: case LITERAL_let: case LITERAL_where: case LITERAL_return: case LITERAL_order: case LITERAL_ascending: case LITERAL_descending: case LITERAL_satisfies: case LITERAL_case: case LITERAL_else: 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 RPPAREN: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } rangeExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; returnAST = rangeExpr_AST; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/00430aa4dd6963441696c4ac7250593b74a38b39/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1048, 4742, 1435, 1216, 9539, 16, 3155, 1228, 503, 16, 10172, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1048, 4742, 1435, 1216, 9539, 16, 3155, 1228, 503, 16, 10172, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 5...
if (match.getElement() != null && ((IJavaElement)match.getElement()).getElementType() != IJavaElement.PACKAGE_FRAGMENT && ((IJavaElement)match.getElement()).getElementType() != IJavaElement.PACKAGE_FRAGMENT_ROOT) { Object result = createSearchResult(match); if(result != null){ results.add(result);
if (match.getElement() != null){ int elementType = ((IJavaElement)match.getElement()).getElementType(); if (elementType != IJavaElement.PACKAGE_FRAGMENT && elementType != IJavaElement.PACKAGE_FRAGMENT_ROOT) { Object result = createSearchResult(match); if(result != null){ results.add(result); }
public Object executeSearch (CommandLine _commandLine) throws IOException { List results = new ArrayList(); try{ int context = -1; if(_commandLine.hasOption(Options.CONTEXT_OPTION)){ context = getContext(_commandLine.getValue(Options.CONTEXT_OPTION)); } String project = _commandLine.getValue(Options.NAME_OPTION); String scope = _commandLine.getValue(Options.SCOPE_OPTION); String file = _commandLine.getValue(Options.FILE_OPTION); String offset = _commandLine.getValue(Options.OFFSET_OPTION); String length = _commandLine.getValue(Options.LENGTH_OPTION); String pat = _commandLine.getValue(Options.PATTERN_OPTION); SearchPattern pattern = null; // element search if(file != null && offset != null && length != null){ Position position = new Position( file, Integer.parseInt(offset), Integer.parseInt(length)); IJavaElement element = getElement(position); if(element != null){ // user requested a contextual search. if(context == -1){ context = getElementContextualContext(element); } pattern = SearchPattern.createPattern(element, context); } // pattern search }else if(pat != null){ int type = getType(_commandLine.getValue(Options.TYPE_OPTION)); int matchType = (pat.indexOf('*') != -1 || pat.indexOf('?') != -1) ? SearchPattern.R_PATTERN_MATCH : SearchPattern.R_FULL_MATCH; pattern = SearchPattern.createPattern(pat, type, context, matchType); // bad search request }else{ throw new IllegalArgumentException( Services.getMessage("java_search.indeterminate")); } if(pattern != null){ IJavaProject javaProject = JavaUtils.getJavaProject(project); IType type = null; if(file.endsWith(".java")){ type = JavaUtils.getCompilationUnit(project, file).findPrimaryType(); } List matches = search(pattern, getScope(scope, javaProject, type)); for(Iterator ii = matches.iterator(); ii.hasNext();){ SearchMatch match = (SearchMatch)ii.next(); if (match.getElement() != null && ((IJavaElement)match.getElement()).getElementType() != IJavaElement.PACKAGE_FRAGMENT && ((IJavaElement)match.getElement()).getElementType() != IJavaElement.PACKAGE_FRAGMENT_ROOT) { Object result = createSearchResult(match); if(result != null){ results.add(result); } } } } }catch(Exception e){ return e; } return results; }
46034 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46034/9a1f3891caf8cfde0b620fc1c1ee63304a6891e0/SearchCommand.java/clean/src/java/org/eclim/plugin/jdt/command/search/SearchCommand.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1033, 1836, 2979, 261, 21391, 389, 3076, 1670, 13, 565, 1216, 1860, 225, 288, 565, 987, 1686, 273, 394, 2407, 5621, 565, 775, 95, 1377, 509, 819, 273, 300, 21, 31, 1377, 309, 2489...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 1836, 2979, 261, 21391, 389, 3076, 1670, 13, 565, 1216, 1860, 225, 288, 565, 987, 1686, 273, 394, 2407, 5621, 565, 775, 95, 1377, 509, 819, 273, 300, 21, 31, 1377, 309, 2489...
it = pop(); it2 = pop();
if (DEBUG) System.out.println("Long math: " + this); it = pop(); it2 = pop(); try {
public void sawOpcode(DismantleBytecode dbc, int seen) { int register, intConstant; JavaClass cls; String signature; Item it, it2, it3; Constant cons; if (dbc.getPC() == jumpTarget) { jumpTarget = -1; if (!jumpStack.empty()) { List<Item> stackToMerge = jumpStack.pop(); // merge stacks if (stack.size() != stackToMerge.size()) { if (DEBUG) { System.out.println("Bad merging stacks"); System.out.println("current stack: " + stack); System.out.println("jump stack: " + stackToMerge); } } else { if (DEBUG) { System.out.println("Merging stacks"); System.out.println("current stack: " + stack); System.out.println("jump stack: " + stackToMerge); } for(int i = 0; i < stack.size(); i++) stack.set(i, Item.merge(stack.get(i), stackToMerge.get(i))); if (DEBUG) { System.out.println("merged stack: " + stack); } } } } try { switch (seen) { case ALOAD: pushByLocalObjectLoad(dbc, dbc.getRegisterOperand()); break; case ALOAD_0: case ALOAD_1: case ALOAD_2: case ALOAD_3: pushByLocalObjectLoad(dbc, seen - ALOAD_0); break; case DLOAD: pushByLocalLoad("D", dbc.getRegisterOperand()); break; case DLOAD_0: case DLOAD_1: case DLOAD_2: case DLOAD_3: pushByLocalLoad("D", seen - DLOAD_0); break; case FLOAD: pushByLocalLoad("F", dbc.getRegisterOperand()); break; case FLOAD_0: case FLOAD_1: case FLOAD_2: case FLOAD_3: pushByLocalLoad("F", seen - FLOAD_0); break; case ILOAD: pushByLocalLoad("I", dbc.getRegisterOperand()); break; case ILOAD_0: case ILOAD_1: case ILOAD_2: case ILOAD_3: pushByLocalLoad("I", seen - ILOAD_0); break; case LLOAD: pushByLocalLoad("J", dbc.getRegisterOperand()); break; case LLOAD_0: case LLOAD_1: case LLOAD_2: case LLOAD_3: pushByLocalLoad("J", seen - LLOAD_0); break; case GETSTATIC: { Item i = new Item(dbc.getSigConstantOperand(), FieldAnnotation.fromReferencedField(dbc)); push(i); break; } case LDC: case LDC_W: case LDC2_W: cons = dbc.getConstantRefOperand(); pushByConstant(dbc, cons); break; case INSTANCEOF: pop(); push(new Item("I")); break; case ARETURN: case DRETURN: case FRETURN: case IFEQ: case IFNE: case IFLT: case IFLE: case IFGT: case IFGE: case IFNONNULL: case IFNULL: case IRETURN: case LOOKUPSWITCH: case LRETURN: case TABLESWITCH: seenTransferOfControl = true; pop(); break; case MONITORENTER: case MONITOREXIT: case POP: case PUTSTATIC: pop(); break; case IF_ACMPEQ: case IF_ACMPNE: case IF_ICMPEQ: case IF_ICMPNE: case IF_ICMPLT: case IF_ICMPLE: case IF_ICMPGT: case IF_ICMPGE: seenTransferOfControl = true; pop(2); break; case POP2: case PUTFIELD: pop(2); break; case IALOAD: case SALOAD: pop(2); push(new Item("I")); break; case DUP: it = pop(); push(it); push(it); break; case DUP2: it = pop(); it2 = pop(); push(it2); push(it); push(it2); push(it); break; case DUP_X1: it = pop(); it2 = pop(); push(it); push(it2); push(it); break; case DUP_X2: it = pop(); it2 = pop(); signature = it2.getSignature(); if (signature.equals("J") || signature.equals("D")) { push(it); push(it2); push(it); } else { it3 = pop(); push(it); push(it3); push(it2); push(it); } break; case DUP2_X1: it = pop(); it2 = pop(); signature = it.getSignature(); if (signature.equals("J") || signature.equals("D")) { push(it); push(it2); push(it); } else { it3 = pop(); push(it2); push(it); push(it3); push(it2); push(it); } break; case IINC: register = dbc.getRegisterOperand(); it = getLVValue( register ); it2 = new Item("I", new Integer(dbc.getIntConstant())); pushByIntMath( IADD, it, it2); pushByLocalStore(register); break; case ATHROW: pop(); break; case CHECKCAST: case NOP: break; case RET: case RETURN: seenTransferOfControl = true; break; case GOTO: case GOTO_W: //It is assumed that no stack items are present when seenTransferOfControl = true; if (getStackDepth() > 0) { jumpStack.push(new ArrayList<Item>(stack)); pop(); jumpTarget = dbc.getBranchTarget(); } break; case SWAP: Item i1 = pop(); Item i2 = pop(); push(i1); push(i2); break; case ICONST_M1: case ICONST_0: case ICONST_1: case ICONST_2: case ICONST_3: case ICONST_4: case ICONST_5: push(new Item("I", new Integer(seen-ICONST_0))); break; case LCONST_0: case LCONST_1: push(new Item("J", new Long(seen-LCONST_0))); break; case DCONST_0: case DCONST_1: push(new Item("D", new Double(seen-DCONST_0))); break; case FCONST_0: case FCONST_1: case FCONST_2: push(new Item("F", new Float(seen-FCONST_0))); break; case ACONST_NULL: push(new Item()); break; case ASTORE: case DSTORE: case FSTORE: case ISTORE: case LSTORE: pushByLocalStore(dbc.getRegisterOperand()); break; case ASTORE_0: case ASTORE_1: case ASTORE_2: case ASTORE_3: pushByLocalStore(seen - ASTORE_0); break; case DSTORE_0: case DSTORE_1: case DSTORE_2: case DSTORE_3: pushByLocalStore(seen - DSTORE_0); break; case FSTORE_0: case FSTORE_1: case FSTORE_2: case FSTORE_3: pushByLocalStore(seen - FSTORE_0); break; case ISTORE_0: case ISTORE_1: case ISTORE_2: case ISTORE_3: pushByLocalStore(seen - ISTORE_0); break; case LSTORE_0: case LSTORE_1: case LSTORE_2: case LSTORE_3: pushByLocalStore(seen - LSTORE_0); break; case GETFIELD: pop(); push(new Item(dbc.getSigConstantOperand(), FieldAnnotation.fromReferencedField(dbc))); break; case ARRAYLENGTH: pop(); push(new Item("I")); break; case BALOAD: { pop(2); Item v = new Item("I"); v.setSpecialKind(Item.BYTE_ARRAY_LOAD); push(v); break; } case CALOAD: pop(2); push(new Item("I")); break; case DALOAD: pop(2); push(new Item("D")); break; case FALOAD: pop(2); push(new Item("F")); break; case LALOAD: pop(2); push(new Item("J")); break; case AASTORE: case BASTORE: case CASTORE: case DASTORE: case FASTORE: case IASTORE: case LASTORE: case SASTORE: pop(3); break; case BIPUSH: case SIPUSH: push(new Item("I", new Integer((int)dbc.getIntConstant()))); break; case IADD: case ISUB: case IMUL: case IDIV: case IAND: case IOR: case IXOR: case ISHL: case ISHR: case IREM: case IUSHR: it = pop(); it2 = pop(); pushByIntMath(seen, it, it2); break; case INEG: it = pop(); if (it.getConstant() != null) { push(new Item("I", new Integer(-((Integer)it.getConstant()).intValue()))); } else { push(new Item("I")); } break; case LNEG: it = pop(); if (it.getConstant() != null) { push(new Item("J", new Long(-((Long)it.getConstant()).longValue()))); } else { push(new Item("J")); } break; case DNEG: it = pop(); if (it.getConstant() != null) { push(new Item("D", new Double(-((Double)it.getConstant()).doubleValue()))); } else { push(new Item("D")); } break; case LADD: case LSUB: case LMUL: case LDIV: case LAND: case LOR: case LXOR: case LSHL: case LSHR: case LREM: case LUSHR: it = pop(); it2 = pop(); pushByLongMath(seen, it, it2); break; case LCMP: it = pop(); it2 = pop(); if ((it.getConstant() != null) && it2.getConstant() != null) { long l = ((Long)it.getConstant()).longValue(); long l2 = ((Long)it.getConstant()).longValue(); if (l2 < l) push(new Item("I", new Integer(-1))); else if (l2 > l) push(new Item("I", new Integer(1))); else push(new Item("I", new Integer(0))); } else { push(new Item("I")); } break; case FCMPG: case FCMPL: it = pop(); it2 = pop(); if ((it.getConstant() != null) && it2.getConstant() != null) { float f = ((Float)it.getConstant()).floatValue(); float f2 = ((Float)it.getConstant()).floatValue(); if (f2 < f) push(new Item("I", new Integer(-1))); else if (f2 > f) push(new Item("I", new Integer(1))); else push(new Item("I", new Integer(0))); } else { push(new Item("I")); } break; case DCMPG: case DCMPL: it = pop(); it2 = pop(); if ((it.getConstant() != null) && it2.getConstant() != null) { double d = ((Double)it.getConstant()).doubleValue(); double d2 = ((Double)it.getConstant()).doubleValue(); if (d2 < d) push(new Item("I", new Integer(-1))); else if (d2 > d) push(new Item("I", new Integer(1))); else push(new Item("I", new Integer(0))); } else { push(new Item("I")); } break; case FADD: case FSUB: case FMUL: case FDIV: it = pop(); it2 = pop(); pushByFloatMath(seen, it, it2); break; case DADD: case DSUB: case DMUL: case DDIV: case DREM: it = pop(); it2 = pop(); pushByDoubleMath(seen, it, it2); break; case I2B: it = pop(); if (it.getConstant() != null) { push(new Item("I", new Integer((int)((byte)((Integer)it.getConstant()).intValue())))); } else { push(new Item("I")); } break; case I2C: it = pop(); if (it.getConstant() != null) { push(new Item("I", new Integer((int)((char)((Integer)it.getConstant()).intValue())))); } else { push(new Item("I")); } break; case I2D: it = pop(); if (it.getConstant() != null) { push(new Item("D", new Double((double)((Integer)it.getConstant()).intValue()))); } else { push(new Item("D")); } break; case I2F: it = pop(); if (it.getConstant() != null) { push(new Item("F", new Float((float)((Integer)it.getConstant()).intValue()))); } else { push(new Item("F")); } break; case I2L: it = pop(); if (it.getConstant() != null) { push(new Item("J", new Long((long)((Integer)it.getConstant()).intValue()))); } else { push(new Item("J")); } break; case I2S: it = pop(); if (it.getConstant() != null) { push(new Item("I", new Integer((int)((short)((Integer)it.getConstant()).intValue())))); } else { push(new Item("I")); } break; case D2I: it = pop(); if (it.getConstant() != null) { push(new Item("I", new Integer((int)((Integer)it.getConstant()).intValue()))); } else { push(new Item("I")); } break; case D2F: it = pop(); if (it.getConstant() != null) { push(new Item("F", new Float((float)((Double)it.getConstant()).doubleValue()))); } else { push(new Item("F")); } break; case D2L: it = pop(); if (it.getConstant() != null) { push(new Item("J", new Long((long)((Double)it.getConstant()).doubleValue()))); } else { push(new Item("J")); } break; case L2I: it = pop(); if (it.getConstant() != null) { push(new Item("I", new Integer((int)((Long)it.getConstant()).longValue()))); } else { push(new Item("I")); } break; case L2D: it = pop(); if (it.getConstant() != null) { push(new Item("D", new Double((double)((Long)it.getConstant()).longValue()))); } else { push(new Item("D")); } break; case L2F: it = pop(); if (it.getConstant() != null) { push(new Item("F", new Float((float)((Long)it.getConstant()).longValue()))); } else { push(new Item("F")); } break; case F2I: it = pop(); if (it.getConstant() != null) { push(new Item("I", new Integer((int)((Float)it.getConstant()).floatValue()))); } else { push(new Item("I")); } break; case F2D: it = pop(); if (it.getConstant() != null) { push(new Item("D", new Double((double)((Float)it.getConstant()).floatValue()))); } else { push(new Item("D")); } break; case NEW: pushBySignature(dbc.getClassConstantOperand()); break; case NEWARRAY: pop(); signature = BasicType.getType((byte)dbc.getIntConstant()).getSignature(); pushBySignature(signature); break; // According to the VM Spec 4.4.1, anewarray and multianewarray // can refer to normal class/interface types (encoded in // "internal form"), or array classes (encoded as signatures // beginning with "["). case ANEWARRAY: pop(); signature = dbc.getClassConstantOperand(); if (!signature.startsWith("[")) { signature = "L" + signature + ";"; } pushBySignature(signature); break; case MULTIANEWARRAY: int dims = dbc.getIntConstant(); while ((dims--) > 0) { pop(); } signature = dbc.getClassConstantOperand(); if (!signature.startsWith("[")) { signature = "L" + signature + ";"; } pushBySignature(signature); break; case AALOAD: pop(); it = pop(); pushBySignature(it.getElementSignature()); break; case JSR: push(new Item("")); //? break; case INVOKEINTERFACE: case INVOKESPECIAL: case INVOKESTATIC: case INVOKEVIRTUAL: pushByInvoke(dbc, seen != INVOKESTATIC); if (dbc.getNameConstantOperand().equals("nextInt")) { Item i = pop(); i.setSpecialKind(Item.RANDOM_INT); push(i); } break; default: throw new UnsupportedOperationException("OpCode not supported yet" ); } }/* // FIXME: This class currently relies on catching runtime exceptions. // This should be fixed so they don't occur. catch (RuntimeException e) { throw e; }*/ catch (Exception e) { //If an error occurs, we clear the stack and locals. one of two things will occur. //Either the client will expect more stack items than really exist, and so they're condition check will fail, //or the stack will resync with the code. But hopefully not false positives clear(); } finally { if (DEBUG) System.out.println(OPCODE_NAMES[seen] + " stack depth: " + getStackDepth()); } }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/0c7b74e6fac05d8abbdd2fb0e26efa97899fa189/OpcodeStack.java/clean/findbugs/src/java/edu/umd/cs/findbugs/OpcodeStack.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 202, 482, 918, 19821, 22808, 12, 1669, 81, 970, 298, 858, 16651, 9881, 16, 509, 5881, 13, 288, 3196, 202, 474, 1744, 16, 509, 6902, 31, 3196, 202, 5852, 797, 2028, 31, 3196, 202, 780, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 202, 482, 918, 19821, 22808, 12, 1669, 81, 970, 298, 858, 16651, 9881, 16, 509, 5881, 13, 288, 3196, 202, 474, 1744, 16, 509, 6902, 31, 3196, 202, 5852, 797, 2028, 31, 3196, 202, 780, ...
30, context.smartFormatDate(info.getLastlogin()));
LABEL_LENGTH, context.smartFormatDate(info.getLastlogin()));
protected void printUserStatus(Context context, UserInfo info) throws ObjectNotFoundException, UnexpectedException { PrintWriter out = context.getOut(); MessageFormatter formatter = context.getMessageFormatter(); PrintUtils.printLabelled(out, formatter.format("status.user.userid"), 30, info.getUserid()); PrintUtils.printLabelled(out, formatter.format("status.user.id"), 30, Long.toString(info.getId())); PrintUtils.printLabelled(out, formatter.format("status.user.name"), 30, info.getName()); PrintUtils.printLabelledIfDefined(out, formatter.format("status.user.address1"), 30, info.getAddress1()); PrintUtils.printLabelledIfDefined(out, formatter.format("status.user.address2"), 30, info.getAddress2()); PrintUtils.printLabelledIfDefined(out, formatter.format("status.user.address3"), 30, info.getAddress3()); PrintUtils.printLabelledIfDefined(out, formatter.format("status.user.address4"), 30, info.getAddress4()); PrintUtils.printLabelledIfDefined(out, formatter.format("status.user.phone1"), 30, info.getPhoneno1()); PrintUtils.printLabelledIfDefined(out, formatter.format("status.user.phone2"), 30, info.getPhoneno2()); PrintUtils.printLabelledIfDefined(out, formatter.format("status.user.email1"), 30, info.getEmail1()); PrintUtils.printLabelledIfDefined(out, formatter.format("status.user.email2"), 30, info.getEmail2()); PrintUtils.printLabelledIfDefined(out, formatter.format("status.user.url"), 30, info.getUrl()); PrintUtils.printLabelledIfDefined(out, formatter.format("status.user.locale"), 30, info.getLocale().toString()); PrintUtils.printLabelledIfDefined(out, formatter.format("status.user.time.zone"), 30, info.getTimeZone().getID()); PrintUtils.printLabelledIfDefined(out, formatter.format("status.user.created"), 30, context.smartFormatDate(info.getCreated())); PrintUtils.printLabelledIfDefined(out, formatter.format("status.user.lastlogin"), 30, context.smartFormatDate(info.getLastlogin())); out.println(); // Has the user left a note? // try { out.print(context.getSession().readMagicMessage(MessageManager.ATTR_NOTE, info.getId()).getMessage().getBody()); out.println(); } catch (UnexpectedException e) { // } // List memberships // out.println(); out.println(formatter.format("status.user.memberof")); NameAssociation[] memberships = context.getSession().listMemberships(info.getId()); int top = memberships.length; for(int idx = 0; idx < top; ++idx) out.println(memberships[idx].getName()); }
3907 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3907/5d6559a6f0b4a8181d31aeec4b1b3a6d16ac7415/Status.java/clean/kom/java/nu/rydin/kom/frontend/text/commands/Status.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1172, 1299, 1482, 12, 1042, 819, 16, 25003, 1123, 13, 202, 15069, 1033, 3990, 16, 9649, 503, 202, 95, 202, 202, 5108, 2289, 596, 273, 819, 18, 588, 1182, 5621, 202, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1172, 1299, 1482, 12, 1042, 819, 16, 25003, 1123, 13, 202, 15069, 1033, 3990, 16, 9649, 503, 202, 95, 202, 202, 5108, 2289, 596, 273, 819, 18, 588, 1182, 5621, 202, 202,...
else
else if (treeNode.atom != null && treeNode.atom.flags[CDKConstants.VISITED])
private String getSphereCode(Vector sphereNodes) throws org.openscience.cdk.exception.CDKException { if (sphereNodes == null || sphereNodes.size() < 1) { return ""; } Atom node = null; TreeNode treeNode = null; StringBuffer code = new StringBuffer(); /* * append the tree node code to the HOSECode in * their now determined order, using commas to * separate nodes from different branches */ Atom branch = ((TreeNode) (((TreeNode) sphereNodes.elementAt(0)).source)).atom; Atom nextBranch; int start = 0; StringBuffer tempCode = null; nextBranch = null; for (int i = 0; i < sphereNodes.size(); i++) { treeNode = (TreeNode) sphereNodes.elementAt(i); tempCode = new StringBuffer(); if (!treeNode.source.stopper && treeNode.source.atom != branch) { branch = treeNode.source.atom; code.append(","); } if (!treeNode.source.stopper && treeNode.source.atom == branch) { if (treeNode.bondType <= 4) { tempCode.append(bondSymbols[(int) treeNode.bondType]); } else { throw new CDKException("Unknown bond type"); } if (!treeNode.atom.flags[CDKConstants.VISITED]) { tempCode.append(getElementSymbol(treeNode.symbol)); } else { tempCode.append("&"); treeNode.stopper = true; } code.append(tempCode); treeNode.hSymbol = tempCode.toString(); } treeNode.atom.flags[CDKConstants.VISITED] = true; if (treeNode.source.stopper) treeNode.stopper = true; } code.append(sphereDelimiters[sphere - 1]); return code.toString(); }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/f6fc53e674e96ec3662e440cd18f84a80e53121f/HOSECodeGenerator.java/clean/src/org/openscience/cdk/tools/HOSECodeGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 1322, 9346, 1085, 12, 5018, 20041, 3205, 13, 1216, 2358, 18, 20346, 71, 6254, 18, 71, 2883, 18, 4064, 18, 39, 3398, 503, 202, 95, 202, 202, 430, 261, 87, 9346, 3205, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 1322, 9346, 1085, 12, 5018, 20041, 3205, 13, 1216, 2358, 18, 20346, 71, 6254, 18, 71, 2883, 18, 4064, 18, 39, 3398, 503, 202, 95, 202, 202, 430, 261, 87, 9346, 3205, 4...
logger = new org.openscience.cdk.tools.LoggingTool( this.getClass().getName());
logger = new org.openscience.cdk.tools.LoggingTool(this);
public CMLHandler(CDOInterface cdo) { logger = new org.openscience.cdk.tools.LoggingTool( this.getClass().getName()); conv = new CMLCoreModule(cdo); userConventions = new Hashtable(); xpath = new CMLStack(); conventionStack = new CMLStack(); }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/bbeef9e56c9fda56c154c99294fb490aaa5557cb/CMLHandler.java/clean/src/org/openscience/cdk/io/cml/CMLHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 385, 1495, 1503, 12, 39, 3191, 1358, 276, 2896, 13, 288, 3639, 1194, 273, 394, 2358, 18, 20346, 71, 6254, 18, 71, 2883, 18, 6642, 18, 7735, 6364, 12, 15604, 333, 18, 588, 797, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 385, 1495, 1503, 12, 39, 3191, 1358, 276, 2896, 13, 288, 3639, 1194, 273, 394, 2358, 18, 20346, 71, 6254, 18, 71, 2883, 18, 6642, 18, 7735, 6364, 12, 15604, 333, 18, 588, 797, 7...
public Map<IFile, Boolean> getGeneratedFiles() { return _generatedFiles; }
public Map<IFile, Boolean> getGeneratedFiles(){ return _generatedFiles; }
public Map<IFile, Boolean> getGeneratedFiles() { return _generatedFiles; }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/baf433f0226e8b9036b18a28d560e5a42cb8b949/ProcessorEnvImpl.java/buggy/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/env/ProcessorEnvImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1635, 32, 45, 812, 16, 3411, 34, 4202, 336, 7823, 2697, 1435, 3639, 288, 327, 389, 11168, 2697, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1635, 32, 45, 812, 16, 3411, 34, 4202, 336, 7823, 2697, 1435, 3639, 288, 327, 389, 11168, 2697, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if (bond.getAtomAt(0).getPoint2d() == null || bond.getAtomAt(1).getPoint2d() == null)
if (r2dm.getRenderingCoordinate(bond.getAtomAt(0)) == null || r2dm.getRenderingCoordinate(bond.getAtomAt(1)) == null)
public void paintBond(org.openscience.cdk.interfaces.IBond bond, Color bondColor, Graphics2D graphics) { if (bond.getAtomAt(0).getPoint2d() == null || bond.getAtomAt(1).getPoint2d() == null) { return; } if (bond.getStereo() != CDKConstants.STEREO_BOND_NONE && bond.getStereo() != CDKConstants.STEREO_BOND_UNDEFINED) { // Draw stero information if available if (bond.getStereo() >= CDKConstants.STEREO_BOND_UP) { paintWedgeBond(bond, bondColor, graphics); } else { paintDashedWedgeBond(bond, bondColor, graphics); } } else { // Draw bond order when no stereo info is available if (bond.getOrder() == CDKConstants.BONDORDER_SINGLE) { paintSingleBond(bond, bondColor, graphics); } else if (bond.getOrder() == CDKConstants.BONDORDER_DOUBLE) { paintDoubleBond(bond, bondColor, graphics); } else if (bond.getOrder() == CDKConstants.BONDORDER_TRIPLE) { paintTripleBond(bond, bondColor, graphics); } else { // paint all other bonds as single bonds paintSingleBond(bond, bondColor, graphics); } } }
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/948cfaa939b42d113ae5ceb65b72ea94d1b4e017/AbstractRenderer2D.java/buggy/src/org/openscience/cdk/renderer/AbstractRenderer2D.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 12574, 9807, 12, 3341, 18, 20346, 71, 6254, 18, 71, 2883, 18, 15898, 18, 45, 9807, 8427, 16, 5563, 8427, 2957, 16, 16830, 22, 40, 17313, 13, 202, 95, 202, 202, 430, 261...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 12574, 9807, 12, 3341, 18, 20346, 71, 6254, 18, 71, 2883, 18, 15898, 18, 45, 9807, 8427, 16, 5563, 8427, 2957, 16, 16830, 22, 40, 17313, 13, 202, 95, 202, 202, 430, 261...
if (ext == null) return null;
if (ext == null) { return null; }
private FileEditorMapping getMappingFor(String ext) { if (ext == null) return null; String key = mappingKeyFor(ext); return typeEditorMappings.get(key); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/EditorRegistry.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/EditorRegistry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1387, 6946, 3233, 22575, 1290, 12, 780, 1110, 13, 288, 3639, 309, 261, 408, 422, 446, 13, 5411, 327, 446, 31, 3639, 514, 498, 273, 2874, 653, 1290, 12, 408, 1769, 3639, 327, 618, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1387, 6946, 3233, 22575, 1290, 12, 780, 1110, 13, 288, 3639, 309, 261, 408, 422, 446, 13, 5411, 327, 446, 31, 3639, 514, 498, 273, 2874, 653, 1290, 12, 408, 1769, 3639, 327, 618, ...
public BaseInspectionVisitor buildVisitor() {
public BaseInspectionVisitor buildVisitor(){
public BaseInspectionVisitor buildVisitor() { return new CStyleArrayDeclarationVisitor(); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/bd57f07c33c419f20715b114b71a7e93425b34c9/CStyleArrayDeclarationInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/style/CStyleArrayDeclarationInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3360, 14985, 7413, 1361, 7413, 1435, 95, 3639, 327, 394, 385, 2885, 1076, 6094, 7413, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3360, 14985, 7413, 1361, 7413, 1435, 95, 3639, 327, 394, 385, 2885, 1076, 6094, 7413, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
assertEquals( 1, databaseService.sproc_AddUserRole( USER_TEST_ID, ROLE_TEST_ID ) );
public void test_deleteUserRole() { for( int i = 0; i < databaseServices.length; i++ ) { DatabaseService databaseService = databaseServices[i]; assertEquals( 0, databaseService.sproc_DelUserRoles( USER_NEXT_FREE_ID, ROLE_NEXT_FREE_ID ) ); assertEquals( 1, databaseService.sproc_AddUserRole( USER_TEST_ID, ROLE_TEST_ID ) ); assertEquals( 1, databaseService.sproc_DelUserRoles( USER_TEST_ID, ROLE_TEST_ID ) ); } }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/960c2d76a39d3cdba8f4288371993c8dc37ed4e8/TestDatabaseService.java/clean/server/src/imcode/server/db/TestDatabaseService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 67, 3733, 1299, 2996, 1435, 288, 3639, 364, 12, 509, 277, 273, 374, 31, 277, 411, 2063, 5676, 18, 2469, 31, 277, 9904, 262, 288, 5411, 5130, 1179, 2063, 1179, 273, 2063...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 67, 3733, 1299, 2996, 1435, 288, 3639, 364, 12, 509, 277, 273, 374, 31, 277, 411, 2063, 5676, 18, 2469, 31, 277, 9904, 262, 288, 5411, 5130, 1179, 2063, 1179, 273, 2063...
} LinkedList list = leftTuple.getLinkedTuples(); if( list != null ) {
} else { LinkedList list = leftTuple.getLinkedTuples();
public void retractTuple(final ReteTuple leftTuple, final PropagationContext context, final InternalWorkingMemory workingMemory) { final BetaMemory memory = (BetaMemory) workingMemory.getNodeMemory( this ); memory.remove( workingMemory, leftTuple ); final Map matches = leftTuple.getTupleMatches(); if ( !matches.isEmpty() ) { for ( final Iterator it = matches.values().iterator(); it.hasNext(); ) { final TupleMatch tupleMatch = (TupleMatch) it.next(); tupleMatch.getObjectMatches().remove( tupleMatch ); } } LinkedList list = leftTuple.getLinkedTuples(); if( list != null ) { for ( LinkedListNode node = list.getFirst(); node != null; node = node.getNext() ) { ReteTuple tuple = (ReteTuple) ((LinkedListObjectWrapper) node).getObject(); tuple.retractTuple( context, workingMemory ); } } }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/c5dd3fac90b69731f45ea30ace07fcf3cc995ba5/NotNode.java/buggy/drools-core/src/main/java/org/drools/reteoo/NotNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 283, 1575, 9038, 12, 6385, 534, 12865, 9038, 2002, 9038, 16, 11794, 727, 1186, 9095, 367, 1042, 819, 16, 11794, 727, 3186, 14836, 6031, 5960, 6031, 13, 288, 3639, 727, 16393, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 283, 1575, 9038, 12, 6385, 534, 12865, 9038, 2002, 9038, 16, 11794, 727, 1186, 9095, 367, 1042, 819, 16, 11794, 727, 3186, 14836, 6031, 5960, 6031, 13, 288, 3639, 727, 16393, 6...
replace(cv, desc);
replace(cv, desc); break; case Constants.PUTFIELD: pop(cv, desc); cv.visitInsn(Constants.POP); break; case Constants.GETSTATIC: replace(cv, desc); break; case Constants.PUTSTATIC: pop(cv, desc); break; }
public void visitFieldInsn(int opcode, String owner, String name, String desc) { if (checkName(owner) || checkDesc(desc)) { // System.err.println("visitFieldInsn " + owner + ", " + desc); if (opcode == Constants.GETFIELD || opcode == Constants.PUTFIELD) cv.visitInsn(Constants.POP); replace(cv, desc); } else { cv.visitFieldInsn(opcode, owner, name, desc); } }
4182 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4182/3be40de22d3f9ab4149687671e71ebfd64448b65/DepKillTransformer.java/buggy/jarjar/src/main/com/tonicsystems/jarjar/DepKillTransformer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3757, 974, 11796, 12, 474, 11396, 16, 514, 3410, 16, 514, 508, 16, 514, 3044, 13, 3639, 288, 5411, 309, 261, 1893, 461, 12, 8443, 13, 747, 866, 4217, 12, 5569, 3719, 288, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3757, 974, 11796, 12, 474, 11396, 16, 514, 3410, 16, 514, 508, 16, 514, 3044, 13, 3639, 288, 5411, 309, 261, 1893, 461, 12, 8443, 13, 747, 866, 4217, 12, 5569, 3719, 288, 7...
if (event.getProperty().equals(PartPane.PROP_ZOOMED)) { boolean standby = !((Boolean)event.getNewValue()).booleanValue(); setStandby(standby); }
if (handleZoomEvents) { if (event.getProperty().equals(PartPane.PROP_ZOOMED)) { boolean standby = !((Boolean)event.getNewValue()).booleanValue(); setStandby(standby); } }
private void addPaneListener() { ((PartSite)getSite()).getPane().addPropertyChangeListener(new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if (event.getProperty().equals(PartPane.PROP_ZOOMED)) { boolean standby = !((Boolean)event.getNewValue()).booleanValue(); setStandby(standby); } } }); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/68f2ee9d1740c8308c8e11f0722f7902a7326582/ViewIntroAdapterPart.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ViewIntroAdapterPart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 527, 8485, 2223, 1435, 288, 1082, 202, 12443, 1988, 4956, 13, 588, 4956, 1435, 2934, 588, 8485, 7675, 1289, 1396, 15744, 12, 2704, 467, 1396, 15744, 1435, 288, 1082, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 527, 8485, 2223, 1435, 288, 1082, 202, 12443, 1988, 4956, 13, 588, 4956, 1435, 2934, 588, 8485, 7675, 1289, 1396, 15744, 12, 2704, 467, 1396, 15744, 1435, 288, 1082, 202, ...
removeEdge();
DataMapTree dmt = (DataMapTree)contextMenu.getInvoker(); dmt.validateEntry();
public void actionPerformed(ActionEvent e) { removeEdge(); }
47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/3469b900d739ba4b8f2ee21abb6fd2b075ff395c/DataMapTree.java/buggy/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/datamap/DataMapTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 5397, 288, 13491, 1910, 863, 2471, 302, 1010, 273, 261, 31982, 2471, 13, 2472, 4599, 18, 588, 24455, 5621, 302, 1010, 18, 5662, 1622, 5621, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 5397, 288, 13491, 1910, 863, 2471, 302, 1010, 273, 261, 31982, 2471, 13, 2472, 4599, 18, 588, 24455, 5621, 302, 1010, 18, 5662, 1622, 5621, 107...
if (charset == null) charset = "";
if (charset == null) { charset = ""; }
private void createCharset(Composite parent) { Composite composite = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(3, false); layout.marginHeight = layout.marginWidth = 0; composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); composite.setLayout(layout); Label label = new Label(composite, SWT.NONE); label.setFont(parent.getFont()); label.setText(WorkbenchMessages.ContentTypes_characterSetLabel); charsetField = new Text(composite, SWT.SINGLE | SWT.BORDER); charsetField.setFont(parent.getFont()); charsetField.setEnabled(false); GridData data = new GridData(GridData.FILL_HORIZONTAL); charsetField.setLayoutData(data); setButton = new Button(composite, SWT.PUSH); setButton.setFont(parent.getFont()); setButton .setText(WorkbenchMessages.ContentTypes_characterSetUpdateLabel); setButton.setEnabled(false); setButton.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) * * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ public void widgetSelected(SelectionEvent e) { try { String text = charsetField.getText().trim(); if (text.length() == 0) text = null; getSelectedContentType().setDefaultCharset(text); setButton.setEnabled(false); } catch (CoreException e1) { ErrorDialog.openError(e.widget.getDisplay() .getActiveShell(), null, null, e1.getStatus()); } } }); charsetField.addKeyListener(new KeyAdapter() { /* * (non-Javadoc) * * @see org.eclipse.swt.events.KeyAdapter#keyReleased(org.eclipse.swt.events.KeyEvent) */ public void keyReleased(KeyEvent e) { IContentType contentType = getSelectedContentType(); String charset = contentType.getDefaultCharset(); if (charset == null) charset = ""; //$NON-NLS-1$ setButton.setEnabled(!charset.equals(charsetField.getText())); } }); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/ContentTypesPreferencePage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ContentTypesPreferencePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 752, 9652, 12, 9400, 982, 13, 288, 3639, 14728, 9635, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 3639, 7145, 3744, 3511, 273, 394, 7145, 3744, 12, 23, 16, 629,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 752, 9652, 12, 9400, 982, 13, 288, 3639, 14728, 9635, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 3639, 7145, 3744, 3511, 273, 394, 7145, 3744, 12, 23, 16, 629,...
if (startOnLoad == null || (Boolean.getBoolean(startOnLoad))) {
if (startOnLoad == null || (Boolean.valueOf(startOnLoad).booleanValue())) {
public void init(ServletConfig cfg) throws javax.servlet.ServletException { super.init(cfg); log("Quartz Initializer Servlet loaded, initializing Scheduler..."); StdSchedulerFactory factory; try { String configFile = cfg.getInitParameter("config-file"); String shutdownPref = cfg.getInitParameter("shutdown-on-unload"); if (shutdownPref != null) performShutdown = Boolean.valueOf(shutdownPref).booleanValue(); // get Properties if (configFile != null) { factory = new StdSchedulerFactory(configFile); } else { factory = new StdSchedulerFactory(); } // Should the Scheduler being started now or later String startOnLoad = cfg .getInitParameter("start-scheduler-on-load"); /* * If the "start-scheduler-on-load" init-parameter is not specified, * the scheduler will be started. This is to maintain backwards * compatability. */ if (startOnLoad == null || (Boolean.getBoolean(startOnLoad))) { // Start now scheduler = factory.getScheduler(); scheduler.start(); log("Scheduler has been started..."); } else { log("Scheduler has not been started. Use scheduler.start()"); } log("Storing the Quartz Scheduler Factory in the servlet context at key: " + QUARTZ_FACTORY_KEY); cfg.getServletContext().setAttribute(QUARTZ_FACTORY_KEY, factory); } catch (Exception e) { log("Quartz Scheduler failed to initialize: " + e.toString()); throw new ServletException(e); } }
15562 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15562/a3f8a5f3c572aa3f7c40b9bf7b2496c98387d1f5/QuartzInitializerServlet.java/buggy/src/java/org/quartz/ee/servlet/QuartzInitializerServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1208, 12, 4745, 809, 2776, 13, 1216, 6863, 18, 23231, 18, 4745, 503, 288, 202, 202, 9565, 18, 2738, 12, 7066, 1769, 202, 202, 1330, 2932, 12099, 94, 4378, 3926, 7971, 420...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1208, 12, 4745, 809, 2776, 13, 1216, 6863, 18, 23231, 18, 4745, 503, 288, 202, 202, 9565, 18, 2738, 12, 7066, 1769, 202, 202, 1330, 2932, 12099, 94, 4378, 3926, 7971, 420...
boolean multiple = items.length > 1 || list.getSelectedValue() instanceof GroupFactory;
boolean multiple = items.length > 1 || list.getSelectedValue() instanceof GroupWrapper;
public void mouseReleased(MouseEvent evt) { if (evt.getClickCount() == 1 && evt.isPopupTrigger()) { int index = list.locationToIndex(evt.getPoint()); if (!list.isSelectedIndex(index)) { list.setSelectedIndex(index); } } if (evt.isPopupTrigger() && list.getSelectedIndex() > -1) { // show menus final Object[] items = list.getSelectedValues(); boolean multiple = items.length > 1 || list.getSelectedValue() instanceof GroupFactory; final JPopupMenu menu = new JPopupMenu(); JMenuItem item = new JMenuItem(multiple?"Message all...":"Message");// item.setEnabled(multiple); item.addActionListener(new ActionListener() { /** * Invoked when an action occurs. */ public void actionPerformed(ActionEvent e) { // do the do List <ContactWrapper> allContacts = new ArrayList<ContactWrapper>(items.length); for (Object selected : items) { if (selected instanceof ContactWrapper) { allContacts.add((ContactWrapper) selected); } else if (selected instanceof GroupFactory) { GroupWrapper group = (GroupWrapper) selected; for (int j = 0; j < group.size(); j++) { if (group.get(j) instanceof ContactWrapper) allContacts.add((ContactWrapper) group.get(j)); } } else { System.out.println("This is weird: " + selected.getClass() + ": " + selected); } } if (allContacts.size() == 1) { MessageWindow.openWindow(allContacts.get(0), false); } else MessageGroupWindow.openWindow(allContacts.toArray(new ContactWrapper[allContacts.size()])); } }); menu.add(item); if (list.getSelectedValue() instanceof ContactWrapper) { final JMenuItem itemHide = new JMenuItem("Hide/Unhide (Keep Offline)"); final boolean hide = !((ContactWrapper)list.getSelectedValue()).getPreferences().isHideFromList(); itemHide.addActionListener(new ActionListener() { /** * Invoked when an action occurs. */ public void actionPerformed(ActionEvent e) { // do the do for (Object selected : items) { if (selected instanceof ContactWrapper) { ((ContactWrapper)selected).getPreferences().setHideFromList(hide); ((ContactWrapper)selected).updateDisplayComponent(); } } list.repaint(); } }); menu.add(itemHide); menu.add(ActionAdapter.createMenuItem(MenuManager.COMMAND_BUDDY_REMOVE, new MenuManager.MenuHandler(), 'r')); menu.add(ActionAdapter.createMenuItem(MenuManager.COMMAND_BUDDY_MOVE, new MenuManager.MenuHandler(), 'm')); } // if contact wrapper menu.show(evt.getComponent(), evt.getX(), evt.getY()); } // if more than one selected } // mouseReleased
50053 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50053/7c4d8a61b9ac259be39d27f05e5c2c4687836f2e/PeopleScreen.java/clean/java/ui/com/itbs/aimcer/gui/PeopleScreen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 7644, 26363, 12, 9186, 1133, 6324, 13, 288, 7734, 309, 261, 73, 11734, 18, 588, 6563, 1380, 1435, 422, 404, 597, 6324, 18, 291, 13770, 6518, 10756, 288, 10792, 509, 770, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 7644, 26363, 12, 9186, 1133, 6324, 13, 288, 7734, 309, 261, 73, 11734, 18, 588, 6563, 1380, 1435, 422, 404, 597, 6324, 18, 291, 13770, 6518, 10756, 288, 10792, 509, 770, 273, ...
connect(uri); try { getWorkManager().scheduleWork(this, WorkManager.INDEFINITE, null, null); } catch (WorkException e) { throw new InitialisationException(new Message(Messages.FAILED_TO_SCHEDULE_WORK), e, this); }
public UdpMessageReceiver(AbstractConnector connector, UMOComponent component, UMOEndpoint endpoint) throws InitialisationException { create(connector, component, endpoint); bufferSize = ((UdpConnector) connector).getBufferSize(); uri = endpoint.getEndpointURI().getUri(); try { inetAddress = InetAddress.getByName(uri.getHost()); } catch (UnknownHostException e) { throw new InitialisationException(new Message("udp", 2, uri), e, this); } connect(uri); try { getWorkManager().scheduleWork(this, WorkManager.INDEFINITE, null, null); } catch (WorkException e) { throw new InitialisationException(new Message(Messages.FAILED_TO_SCHEDULE_WORK), e, this); } }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/5469dd005aa4f69700fdbd3782117cce20e16533/UdpMessageReceiver.java/clean/providers/udp/src/java/org/mule/providers/udp/UdpMessageReceiver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 587, 9295, 1079, 12952, 12, 7469, 7487, 8703, 16, 17311, 587, 5980, 1841, 1794, 16, 17311, 587, 5980, 3293, 2494, 13, 1216, 10188, 10742, 503, 565, 288, 3639, 752, 12, 23159, 16, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 587, 9295, 1079, 12952, 12, 7469, 7487, 8703, 16, 17311, 587, 5980, 1841, 1794, 16, 17311, 587, 5980, 3293, 2494, 13, 1216, 10188, 10742, 503, 565, 288, 3639, 752, 12, 23159, 16, 17...
} else if (theClass.isPrimitive()) {
} else if (declaredClass.isPrimitive()) {
private static void writeObject(DataOutput out, Object instance, Class theClass) throws IOException { if (instance == null) { // null instance = new NullInstance(theClass); theClass = NullInstance.class; } UTF8.writeString(out, theClass.getName()); if (theClass.isArray()) { // array int length = Array.getLength(instance); out.writeInt(length); for (int i = 0; i < length; i++) { writeObject(out, Array.get(instance, i), theClass.getComponentType()); } } else if (theClass == String.class) { // String UTF8.writeString(out, (String)instance); } else if (theClass.isPrimitive()) { // primitive type if (theClass == Boolean.TYPE) { // boolean out.writeBoolean(((Boolean)instance).booleanValue()); } else if (theClass == Character.TYPE) { // char out.writeChar(((Character)instance).charValue()); } else if (theClass == Byte.TYPE) { // byte out.writeByte(((Byte)instance).byteValue()); } else if (theClass == Short.TYPE) { // short out.writeShort(((Short)instance).shortValue()); } else if (theClass == Integer.TYPE) { // int out.writeInt(((Integer)instance).intValue()); } else if (theClass == Long.TYPE) { // long out.writeLong(((Long)instance).longValue()); } else if (theClass == Float.TYPE) { // float out.writeFloat(((Float)instance).floatValue()); } else if (theClass == Double.TYPE) { // double out.writeDouble(((Double)instance).doubleValue()); } else if (theClass == Void.TYPE) { // void } else { throw new IllegalArgumentException("Not a known primitive: "+theClass); } } else if (instance instanceof Writable) { // Writable ((Writable)instance).write(out); } else { throw new IOException("Can't write: " + instance + " as " + theClass); } }
50818 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50818/1e027c52d3746fdda27eb01324ca3994c20e6293/RPC.java/clean/src/java/org/apache/nutch/ipc/RPC.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 918, 16306, 12, 751, 1447, 596, 16, 1033, 791, 16, 21394, 1659, 326, 797, 13, 1216, 1860, 288, 565, 309, 261, 1336, 422, 446, 13, 288, 15604, 368, 446, 1377, 791, 273, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 918, 16306, 12, 751, 1447, 596, 16, 1033, 791, 16, 21394, 1659, 326, 797, 13, 1216, 1860, 288, 565, 309, 261, 1336, 422, 446, 13, 288, 15604, 368, 446, 1377, 791, 273, 394, ...
return CONTINUE; }
return CONTINUE; }
public int execute(Object key, Object value, Object arg) { return CONTINUE; }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/addcb75d5d86d9b1fd628d84d22b74cfc41f078e/RubyObject.java/buggy/org/jruby/RubyObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 509, 1836, 12, 921, 498, 16, 1033, 460, 16, 1033, 1501, 13, 288, 10792, 327, 8020, 26725, 31, 7734, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 509, 1836, 12, 921, 498, 16, 1033, 460, 16, 1033, 1501, 13, 288, 10792, 327, 8020, 26725, 31, 7734, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if (bEnableStyles) { lblStyle = new Label(cmpContent, SWT.NONE); GridData gdLStyle = new GridData( GridData.HORIZONTAL_ALIGN_BEGINNING); lblStyle.setLayoutData(gdLStyle); lblStyle.setText(Messages .getString("LineAttributesComposite.Lbl.Style")); lblStyle.setEnabled(bEnableUI);
if ( bEnableStyles ) { lblStyle = new Label( cmpContent, SWT.NONE ); GridData gdLStyle = new GridData( GridData.HORIZONTAL_ALIGN_BEGINNING ); lblStyle.setLayoutData( gdLStyle ); lblStyle.setText( Messages.getString( "LineAttributesComposite.Lbl.Style" ) ); lblStyle.setEnabled( bEnableUI );
private void placeComponents() { FillLayout flMain = new FillLayout(); flMain.marginHeight = 0; flMain.marginWidth = 0; GridLayout glContent = new GridLayout(); glContent.verticalSpacing = 5; glContent.horizontalSpacing = 5; glContent.marginHeight = 4; glContent.marginWidth = 4; glContent.numColumns = 6; this.setLayout(flMain); cmpContent = new Composite(this, SWT.NONE); cmpContent.setLayout(glContent); bEnabled = laCurrent.isVisible(); boolean bEnableUI = bEnabled; if (bEnableVisibility) { cbVisible = new Button(cmpContent, SWT.CHECK); GridData gdCBVisible = new GridData(GridData.FILL_HORIZONTAL); gdCBVisible.horizontalSpan = 6; cbVisible.setLayoutData(gdCBVisible); cbVisible.setText(Messages .getString("LineAttributesComposite.Lbl.IsVisible")); //$NON-NLS-1$ cbVisible.setSelection(laCurrent.isVisible()); cbVisible.addSelectionListener(this); if (bEnabled) { bEnableUI = cbVisible.getSelection(); } } if (bEnableStyles) { lblStyle = new Label(cmpContent, SWT.NONE); GridData gdLStyle = new GridData( GridData.HORIZONTAL_ALIGN_BEGINNING); lblStyle.setLayoutData(gdLStyle); lblStyle.setText(Messages .getString("LineAttributesComposite.Lbl.Style")); //$NON-NLS-1$ lblStyle.setEnabled(bEnableUI); cmbStyle = new LineStyleChooserComposite(cmpContent, SWT.DROP_DOWN | SWT.READ_ONLY, getSWTLineStyle(laCurrent.getStyle())); GridData gdCBStyle = new GridData(GridData.FILL_HORIZONTAL); gdCBStyle.horizontalSpan = 5; cmbStyle.setLayoutData(gdCBStyle); cmbStyle.addListener(this); cmbStyle.setEnabled(bEnableUI); } if (bEnableWidths) { lblWidth = new Label(cmpContent, SWT.NONE); GridData gdLWidth = new GridData( GridData.HORIZONTAL_ALIGN_BEGINNING); lblWidth.setLayoutData(gdLWidth); lblWidth.setText(Messages .getString("LineAttributesComposite.Lbl.Width")); //$NON-NLS-1$ lblWidth.setEnabled(bEnableUI); cmbWidth = new LineWidthChooserComposite(cmpContent, SWT.DROP_DOWN | SWT.READ_ONLY, laCurrent.getThickness()); GridData gdCBWidth = new GridData(GridData.FILL_HORIZONTAL); gdCBWidth.horizontalSpan = 5; cmbWidth.setLayoutData(gdCBWidth); cmbWidth.addListener(this); cmbWidth.setEnabled(bEnableUI); } if (bEnableColor) { lblColor = new Label(cmpContent, SWT.NONE); GridData gdLColor = new GridData( GridData.HORIZONTAL_ALIGN_BEGINNING); lblColor.setLayoutData(gdLColor); lblColor.setText(Messages .getString("LineAttributesComposite.Lbl.Color")); //$NON-NLS-1$ lblColor.setEnabled(bEnableUI); cmbColor = new FillChooserComposite(cmpContent, SWT.DROP_DOWN | SWT.READ_ONLY, this.laCurrent.getColor(), false, false); GridData gdCBColor = new GridData(GridData.FILL_HORIZONTAL); gdCBColor.horizontalSpan = 5; cmbColor.setLayoutData(gdCBColor); cmbColor.addListener(this); cmbColor.setEnabled(bEnableUI); } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/c60a4815037b62e9358af2625eb6236e7c979d0f/LineAttributesComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/LineAttributesComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3166, 7171, 1435, 288, 202, 202, 8026, 3744, 1183, 6376, 273, 394, 14192, 3744, 5621, 202, 202, 2242, 6376, 18, 10107, 2686, 273, 374, 31, 202, 202, 2242, 6376, 18, 10107,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3166, 7171, 1435, 288, 202, 202, 8026, 3744, 1183, 6376, 273, 394, 14192, 3744, 5621, 202, 202, 2242, 6376, 18, 10107, 2686, 273, 374, 31, 202, 202, 2242, 6376, 18, 10107,...
} else {
} else {
private void setupRandPartC() { if (j2 < (int) z) { currentChar = ch2; mCrc.updateCRC(ch2); j2++; } else { currentState = RAND_PART_A_STATE; i2++; count = 0; setupRandPartA(); } }
10884 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10884/8348e0b29d34f62b8f140a99598373fb0cbf7fcb/CBZip2InputStream.java/clean/src/main/java/org/codehaus/plexus/archiver/bzip2/CBZip2InputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3875, 54, 464, 1988, 39, 1435, 288, 3639, 309, 261, 78, 22, 411, 261, 474, 13, 998, 13, 288, 5411, 29445, 273, 462, 22, 31, 5411, 312, 39, 1310, 18, 2725, 26803, 12, 343, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3875, 54, 464, 1988, 39, 1435, 288, 3639, 309, 261, 78, 22, 411, 261, 474, 13, 998, 13, 288, 5411, 29445, 273, 462, 22, 31, 5411, 312, 39, 1310, 18, 2725, 26803, 12, 343, ...
public org.quickfix.field.RegistID getRegistID() throws FieldNotFound { org.quickfix.field.RegistID value = new org.quickfix.field.RegistID();
public quickfix.field.RegistID getRegistID() throws FieldNotFound { quickfix.field.RegistID value = new quickfix.field.RegistID();
public org.quickfix.field.RegistID getRegistID() throws FieldNotFound { org.quickfix.field.RegistID value = new org.quickfix.field.RegistID(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/ExecutionReport.java/buggy/src/java/src/quickfix/fix43/ExecutionReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 1617, 376, 734, 336, 1617, 376, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1617, 376, 734, 460, 273, 394, 2358,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 1617, 376, 734, 336, 1617, 376, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1617, 376, 734, 460, 273, 394, 2358,...
return x.getExpression();
return x.getQualifier();
public ASTNode get() { return x.getExpression(); }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/f7bc2ee5d62baf64b6f044f322b40cdaa75e5dcc/ASTTest.java/clean/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 9183, 907, 336, 1435, 288, 9506, 202, 2463, 619, 18, 588, 2300, 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...
[ 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 9183, 907, 336, 1435, 288, 9506, 202, 2463, 619, 18, 588, 2300, 5621, 1082, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
root = getLocalApiDocRoot(className);
root = apiDocRoot;
private String mapApiDocRoot(String className) { String root = null; if (specifiedPackages.isEmpty() || isSpecifiedPackage(className)) root = getLocalApiDocRoot(className); else root = getExternalApiDocRoot(className); if (root == null) root = ""; return root; }
47201 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47201/79a8c001740f08d96264606e9d548d69f12a9fbf/ClassInfo.java/clean/src/org/umlgraph/doclet/ClassInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 852, 3064, 1759, 2375, 12, 780, 2658, 13, 288, 202, 202, 780, 1365, 273, 446, 31, 202, 202, 430, 261, 13827, 11425, 18, 291, 1921, 1435, 747, 353, 17068, 2261, 12, 12434...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 852, 3064, 1759, 2375, 12, 780, 2658, 13, 288, 202, 202, 780, 1365, 273, 446, 31, 202, 202, 430, 261, 13827, 11425, 18, 291, 1921, 1435, 747, 353, 17068, 2261, 12, 12434...
public List getResultFiles() { return resultFiles; }
public List getResultFiles() { return resultFiles; }
public List getResultFiles() { return resultFiles; }
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/82f517dadfef099f4d5dcbaf1f1676a345fa6d79/BaseStep.java/buggy/src/be/ibridge/kettle/trans/step/BaseStep.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 987, 8601, 2697, 1435, 288, 202, 202, 2463, 563, 2697, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 987, 8601, 2697, 1435, 288, 202, 202, 2463, 563, 2697, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
tokenPropList = new ArrayList();
tokenPropList = null;
public void loadWordPerLineFile(TextBase base, File file) throws IOException, FileNotFoundException { this.tokenizer = new Tokenizer(Tokenizer.SPLIT, " "); if (labels == null) labels = new BasicTextLabels(base); String id = file.getName(); LineNumberReader in = new LineNumberReader(new FileReader(file)); String line; this.textBase = base; StringBuffer buf = new StringBuffer(""); int docNum = 1, start = 0, end = 0; curDocID = id + "-" + docNum; spanList = new ArrayList(); tokenPropList = new ArrayList(); while((line = in.readLine()) != null) { String[] words = line.split("\\s"); if(!(words[0].equals("-DOCSTART-"))) { if(words.length > 2) { start = buf.length(); buf.append(words[0]+" "); end = buf.length()-1; tokenPropList.add(words[1]); if(!words[3].equals("O")) spanList.add(new CharSpan(start,end,words[3],curDocID)); } }else { this.tokenizer = new Tokenizer(Tokenizer.SPLIT, " "); addDocument(buf.toString()); spanList = new ArrayList(); tokenPropList = new ArrayList(); buf = new StringBuffer(""); docNum++; curDocID = id + "-" + docNum; } } in.close(); }
51753 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51753/884e926b745d648e6a60663326e4dd5499849fae/TextBaseLoader.java/clean/src/edu/cmu/minorthird/text/TextBaseLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1262, 3944, 2173, 1670, 812, 12, 1528, 2171, 1026, 16, 1387, 585, 13, 1216, 1860, 16, 13707, 565, 288, 202, 2211, 18, 2316, 1824, 273, 394, 26702, 12, 10524, 18, 17482, 16, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1262, 3944, 2173, 1670, 812, 12, 1528, 2171, 1026, 16, 1387, 585, 13, 1216, 1860, 16, 13707, 565, 288, 202, 2211, 18, 2316, 1824, 273, 394, 26702, 12, 10524, 18, 17482, 16, 3...
* Add parameters into instance option for ( int i = 0; i < paramDefns.size( ); i++ ) { option.addOption( new Integer( i ).toString( ), "param" + i, true, "" ); }
option.addOption("p", "parameter", true, "parameter"); option.addOption("F", "file", true, "parameter file"); BasicParser parser = new BasicParser( ); CommandLine results = null;
protected HashMap parseParameters( ArrayList paramDefns ) { HashMap params = new HashMap( ); /*BasicParser parser = new BasicParser( ); * Add parameters into instance option for ( int i = 0; i < paramDefns.size( ); i++ ) { option.addOption( new Integer( i ).toString( ), "param" + i, //$NON-NLS-1$ true, "" ); //$NON-NLS-1$ } try { CommandLine results = parser.parse( option, args, false ); //add the parameter values into the param hash map. for ( int i = 0; i < paramDefns.size( ); i++ ) { IScalarParameterDefn paramHandle = (IScalarParameterDefn) paramDefns .get( i ); String paramName = paramHandle.getName( ); assert paramName != null; Object result = null; if ( results.hasOption( new Integer( i ).toString( ) ) ) { result = results.getOptionValue( "param" + i ); //$NON-NLS-1$ } if ( result == null ) { result = paramHandle.getDefaultValue( ); if ( ( result != null ) && ( result.equals( "" ) ) ) //$NON-NLS-1$ { result = null; } } if ( result != null ) { int type = paramHandle.getType( ); if ( type == IParameterDefn.TYPE_BOOLEAN ) { result = new Boolean( (String) result ); } params.put( paramName, result ); } } } catch ( org.apache.commons.cli.ParseException pe ) { logger.log( Level.SEVERE, "CLI parseException " + pe.getMessage( ), pe ); //$NON-NLS-1$ }*/ return params; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/e6cd170d84a9ed2d8f1343b14a90fdd7a8d57a33/ReportRunner.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/ReportRunner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 4317, 1109, 2402, 12, 2407, 579, 3262, 2387, 262, 202, 202, 95, 1082, 202, 8658, 859, 273, 394, 4317, 12, 11272, 1082, 202, 20308, 8252, 2678, 2082, 273, 394, 7651, 2678, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 4317, 1109, 2402, 12, 2407, 579, 3262, 2387, 262, 202, 202, 95, 1082, 202, 8658, 859, 273, 394, 4317, 12, 11272, 1082, 202, 20308, 8252, 2678, 2082, 273, 394, 7651, 2678, 12, ...
if (result.isError() || gb.length != bytes.limit()) {
if (gb.length != bytes.limit()) {
public void TestAPISemantics(/*String encoding*/) throws Exception { int rc; ByteBuffer gbval = ByteBuffer.wrap(gb); CharBuffer uniVal = CharBuffer.wrap(unistr); rc = 0; decoder.reset(); /* Convert the whole buffer to Unicode */ try { CharBuffer chars = CharBuffer.allocate(unistr.length()); CoderResult result = decoder.decode(gbval, chars, false); if (result.isError()) { errln("ToChars encountered Error"); rc = 1; } if (!equals(chars, unistr)) { errln("ToChars does not match"); printchars(chars); errln("Expected : "); printchars(unistr); rc = 2; } } catch (Exception e) { errln("ToChars - exception in buffer"); rc = 5; } /* Convert single bytes to Unicode */ try { CharBuffer chars = CharBuffer.allocate(unistr.length()); ByteBuffer b = ByteBuffer.allocate(1); decoder.reset(); byte[] temp = new byte[1]; CoderResult result=null; for (int i = 0; i < gb.length; i++) { b.rewind(); temp[0] = gb[i]; b.put(temp); b.rewind(); result = decoder.decode(b, chars, false); } if (result.isError() || unistr.length() != (chars.limit())) { errln("ToChars single len does not match"); rc = 3; } if (!equals(chars, unistr)) { errln("ToChars single does not match"); printchars(chars); rc = 4; } } catch (Exception e) { errln("ToChars - exception in single"); e.printStackTrace(System.err); rc = 6; } /* Convert the buffer one at a time to Unicode */ try { CharBuffer chars = CharBuffer.allocate(unistr.length()); decoder.reset(); for (int i = 0; i <= gb.length; i++) { gbval.limit(i); CoderResult result = decoder.decode(gbval, chars, false); if (result.isError()) { errln("Error while decoding -- FAILED"); } } if (chars.limit() != unistr.length()) { errln("ToChars Simple buffer len does not match"); rc = 7; } if (!equals(chars, unistr)) { errln("ToChars Simple buffer does not match"); printchars(chars); err(" Expected : "); printchars(unistr); rc = 8; } } catch (Exception e) { errln("ToChars - exception in single buffer"); e.printStackTrace(System.err); rc = 9; } if (rc != 0) { errln("Test Simple ToChars for encoding : FAILED"); } rc = 0; /* Convert the whole buffer from unicode */ try { ByteBuffer bytes = ByteBuffer.allocate(gb.length); encoder.reset(); CoderResult result = encoder.encode(uniVal, bytes, false); if (result.isError()) { errln("FromChars reported error: " + result.toString()); rc = 1; } if (!bytes.equals(gbval)) { errln("FromChars does not match"); printbytes(bytes); rc = 2; } } catch (Exception e) { errln("FromChars - exception in buffer"); e.printStackTrace(System.err); rc = 5; } /* Convert the buffer one char at a time to unicode */ try { ByteBuffer bytes = ByteBuffer.allocate(gb.length); CharBuffer c = CharBuffer.allocate(1); encoder.reset(); char[] temp = new char[1]; CoderResult result= null; for (int i = 0; i < unistr.length(); i++) { temp[0] = unistr.charAt(i); c.put(temp); c.rewind(); result = encoder.encode(c, bytes, false); c.rewind(); } if (result.isError() || gb.length != bytes.limit()) { errln("FromChars single len does not match"); rc = 3; } if (!bytes.equals(gbval)) { errln("FromChars single does not match"); printbytes(bytes); rc = 4; } } catch (Exception e) { errln("FromChars - exception in single"); e.printStackTrace(System.err); rc = 6; } /* Convert one char at a time to unicode */ try { ByteBuffer bytes = ByteBuffer.allocate(gb.length); encoder.reset(); char[] temp = unistr.toCharArray(); CoderResult result=null; for (int i = 0; i <= temp.length; i++) { uniVal.limit(i); result = encoder.encode(uniVal, bytes, false); } if (result.isError() || bytes.limit() != gb.length) { errln("FromChars Simple len does not match"); rc = 7; } if (!bytes.equals(gbval)) { errln("FromChars Simple does not match"); printbytes(bytes); rc = 8; } } catch (Exception e) { errln("FromChars - exception in single buffer"); e.printStackTrace(System.err); rc = 9; } if (rc != 0) { errln("--Test Simple FromChars " + encoding + " --FAILED"); } }
7297 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7297/7e16442b3bbb42d882c9434652f7c9516c01ddf9/TestCharset.java/clean/src/classes/com/ibm/icu4jni/test/charset/TestCharset.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 7766, 2557, 13185, 11119, 12, 20308, 780, 2688, 5549, 13, 1171, 1216, 1185, 288, 202, 202, 474, 4519, 31, 202, 202, 12242, 21649, 1125, 273, 7400, 18, 4113, 12, 4490, 1769,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 7766, 2557, 13185, 11119, 12, 20308, 780, 2688, 5549, 13, 1171, 1216, 1185, 288, 202, 202, 474, 4519, 31, 202, 202, 12242, 21649, 1125, 273, 7400, 18, 4113, 12, 4490, 1769,...
AST tmp1077_AST_in = (AST)_t;
AST tmp1078_AST_in = (AST)_t;
public final void defineframestate(AST _t) throws RecognitionException { AST defineframestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST def = null; AST id = null; AST __t463 = _t; def = _t==ASTNULL ? null :(AST)_t; match(_t,DEFINE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NEW: case SHARED: { def_shared(_t); _t = _retTree; break; } case FRAME: case PRIVATE: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PRIVATE: { AST tmp1077_AST_in = (AST)_t; match(_t,PRIVATE); _t = _t.getNextSibling(); break; } case FRAME: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1078_AST_in = (AST)_t; match(_t,FRAME); _t = _t.getNextSibling(); id = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); if ( inputState.guessing==0 ) { action.frameDef(def, id); } { _loop467: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { form_item(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop467; } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case HEADER: { AST __t469 = _t; AST tmp1079_AST_in = (AST)_t; match(_t,HEADER); _t = _t.getFirstChild(); { int _cnt471=0; _loop471: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { display_item(_t); _t = _retTree; } else { if ( _cnt471>=1 ) { break _loop471; } else {throw new NoViableAltException(_t);} } _cnt471++; } while (true); } _t = __t469; _t = _t.getNextSibling(); break; } case BACKGROUND: { AST __t472 = _t; AST tmp1080_AST_in = (AST)_t; match(_t,BACKGROUND); _t = _t.getFirstChild(); { int _cnt474=0; _loop474: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { display_item(_t); _t = _retTree; } else { if ( _cnt474>=1 ) { break _loop474; } else {throw new NoViableAltException(_t);} } _cnt474++; } while (true); } _t = __t472; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case EXCEPT: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCEPT: { AST __t476 = _t; AST tmp1081_AST_in = (AST)_t; match(_t,EXCEPT); _t = _t.getFirstChild(); { _loop478: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { fld1(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop478; } } while (true); } _t = __t476; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case WITH: { framephrase(_t); _t = _retTree; break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; if ( inputState.guessing==0 ) { action.frameStatementEnd(); } _t = __t463; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 4426, 74, 1940, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 4426, 74, 1940, 395, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4426, 74, 1940, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 4426, 74, 1940, 395, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, ...
+ ( (ComputedColumnHandle) element ).getExpression( );
+ ( (ComputedColumnHandle) element ).getExpression( );
public String getTooltipText( Object element ) { if ( element instanceof Operator ) { return ( (Operator) element ).tooltip; } else if ( element instanceof ILocalizableInfo[] ) { return ( (ILocalizableInfo[]) element )[1].getToolTip( ); } else if ( element instanceof ComputedColumnHandle ) { return TOOLTIP_BINDING_PREFIX + ( (ComputedColumnHandle) element ).getExpression( ); //$NON-NLS-1$ } return getDisplayText( element ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/7abff9adc2e1dbe666760f0a31e9fbb30e31cf0e/ExpressionProvider.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ExpressionProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 19478, 8440, 1528, 12, 1033, 930, 262, 202, 95, 202, 202, 430, 261, 930, 1276, 11097, 262, 202, 202, 95, 1082, 202, 2463, 261, 261, 5592, 13, 930, 262, 18, 19798, 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, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 19478, 8440, 1528, 12, 1033, 930, 262, 202, 95, 202, 202, 430, 261, 930, 1276, 11097, 262, 202, 202, 95, 1082, 202, 2463, 261, 261, 5592, 13, 930, 262, 18, 19798, 31, 2...
return toLocale_helper(this.date, localeDateFormatter);
return toLocale_helper(date, localeDateFormatter);
private String jsFunction_toLocaleDateString() { if (localeDateFormatter == null) localeDateFormatter = DateFormat.getDateInstance(DateFormat.LONG); return toLocale_helper(this.date, localeDateFormatter); }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/dbefc5595ba41854ec04751abfc8db52f70a5796/NativeDate.java/buggy/src/org/mozilla/javascript/NativeDate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 3828, 2083, 67, 869, 3916, 1626, 780, 1435, 288, 3639, 309, 261, 6339, 1626, 5074, 422, 446, 13, 5411, 2573, 1626, 5074, 273, 18371, 18, 588, 1626, 1442, 12, 11878, 18, 14639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 3828, 2083, 67, 869, 3916, 1626, 780, 1435, 288, 3639, 309, 261, 6339, 1626, 5074, 422, 446, 13, 5411, 2573, 1626, 5074, 273, 18371, 18, 588, 1626, 1442, 12, 11878, 18, 14639, ...
private RouteList getRouteList() {
private synchronized RouteList getRouteList() {
private RouteList getRouteList() { if (LogWriter.needsLogging) sipStack.logWriter.logMessage("getRouteList " + this); // Find the top via in the route list. ListIterator li = routeList.listIterator(routeList.size()); boolean flag = true; RouteList retval = new RouteList(); while (li.hasPrevious()) { Route route = (Route) li.previous(); String host = ((SipUri) route.getAddress().getURI()).getHost(); int port = ((SipUri) route.getAddress().getURI()).getPort(); if (port == -1) port = 5060; String transport = ((SipUri) route.getAddress().getURI()).getTransportParam(); String sh = this.sipStack.getHostAddress(); int tp = this.firstTransaction.getPort(); if (flag && sh.equalsIgnoreCase(host) && port == tp) { flag = false; } else retval.addFirst(route.clone()); } // If I am a UA then I am not record routing the request. if (flag) { retval = new RouteList(); li = routeList.listIterator(); while (li.hasNext()) { Route route = (Route) li.next(); retval.add(route.clone()); } } if (LogWriter.needsLogging) { sipStack.logWriter.logMessage("----- "); sipStack.logWriter.logMessage("getRouteList for " + this); if (retval != null) sipStack.logWriter.logMessage("RouteList = " + retval.encode()); sipStack.logWriter.logMessage( "myRouteList = " + routeList.encode()); sipStack.logWriter.logMessage("----- "); } return retval; }
7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/e3c1e25acf20ecd3b5d346f320727b0f8094e744/DialogImpl.java/clean/trunk/src/gov/nist/javax/sip/stack/DialogImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 5179, 682, 13245, 682, 1435, 288, 202, 202, 430, 261, 1343, 2289, 18, 20600, 7735, 13, 1082, 202, 28477, 2624, 18, 1330, 2289, 18, 1330, 1079, 2932, 588, 3255, 682, 315, 397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 5179, 682, 13245, 682, 1435, 288, 202, 202, 430, 261, 1343, 2289, 18, 20600, 7735, 13, 1082, 202, 28477, 2624, 18, 1330, 2289, 18, 1330, 1079, 2932, 588, 3255, 682, 315, 397, ...
case 627:
case 626:
public void ruleAction(int ruleNumber) { switch (ruleNumber) { // // Rule 1: TypeName ::= TypeName . ErrorId // case 1: { //#line 6 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name TypeName = (Name) getRhsSym(1); //#line 8 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, "*")); break; } // // Rule 2: PackageName ::= PackageName . ErrorId // case 2: { //#line 16 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name PackageName = (Name) getRhsSym(1); //#line 18 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, "*")); break; } // // Rule 3: ExpressionName ::= AmbiguousName . ErrorId // case 3: { //#line 26 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 28 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 4: MethodName ::= AmbiguousName . ErrorId // case 4: { //#line 36 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 38 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 5: PackageOrTypeName ::= PackageOrTypeName . ErrorId // case 5: { //#line 46 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 48 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, "*")); break; } // // Rule 6: AmbiguousName ::= AmbiguousName . ErrorId // case 6: { //#line 56 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 58 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 7: FieldAccess ::= Primary . ErrorId // case 7: { //#line 66 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 68 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(), Primary, "*")); break; } // // Rule 8: FieldAccess ::= super . ErrorId // case 8: { //#line 73 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), "*")); break; } // // Rule 9: FieldAccess ::= ClassName . super$sup . ErrorId // case 9: { //#line 76 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 76 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 78 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), "*")); break; } // // Rule 10: MethodInvocation ::= MethodPrimaryPrefix ( ArgumentListopt ) // case 10: { //#line 82 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object MethodPrimaryPrefix = (Object) getRhsSym(1); //#line 82 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 84 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) ((Object[]) MethodPrimaryPrefix)[0]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodPrimaryPrefix)[1]; setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 11: MethodInvocation ::= MethodSuperPrefix ( ArgumentListopt ) // case 11: { //#line 89 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier MethodSuperPrefix = (polyglot.lex.Identifier) getRhsSym(1); //#line 89 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 91 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier identifier = MethodSuperPrefix; setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 12: MethodInvocation ::= MethodClassNameSuperPrefix ( ArgumentListopt ) // case 12: { //#line 95 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object MethodClassNameSuperPrefix = (Object) getRhsSym(1); //#line 95 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 97 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) ((Object[]) MethodClassNameSuperPrefix)[0]; JPGPosition super_pos = (JPGPosition) ((Object[]) MethodClassNameSuperPrefix)[1]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodClassNameSuperPrefix)[2]; setResult(nf.Call(pos(), nf.Super(super_pos, ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 13: MethodPrimaryPrefix ::= Primary . ErrorId$ErrorId // case 13: { //#line 104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 106 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[2]; a[0] = Primary; a[1] = id(getRhsFirstTokenIndex(3)); setResult(a); break; } // // Rule 14: MethodSuperPrefix ::= super . ErrorId$ErrorId // case 14: { //#line 112 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(id(getRhsFirstTokenIndex(3))); break; } // // Rule 15: MethodClassNameSuperPrefix ::= ClassName . super$sup . ErrorId$ErrorId // case 15: { //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(5); //#line 119 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[3]; a[0] = ClassName; a[1] = pos(getRhsFirstTokenIndex(3)); a[2] = id(getRhsFirstTokenIndex(5)); setResult(a); break; } // // Rule 16: identifier ::= IDENTIFIER$ident // case 16: { //#line 94 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken ident = (IToken) getRhsIToken(1); //#line 96 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ident.setKind(X10Parsersym.TK_IDENTIFIER); setResult(id(getRhsFirstTokenIndex(1))); break; } // // Rule 19: IntegralType ::= byte // case 19: { //#line 121 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 20: IntegralType ::= char // case 20: { //#line 126 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 21: IntegralType ::= short // case 21: { //#line 131 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 22: IntegralType ::= int // case 22: { //#line 136 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 23: IntegralType ::= long // case 23: { //#line 141 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 24: FloatingPointType ::= float // case 24: { //#line 147 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 25: FloatingPointType ::= double // case 25: { //#line 152 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 28: TypeName ::= identifier // case 28: { //#line 175 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 177 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 29: TypeName ::= TypeName . identifier // case 29: { //#line 180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(1); //#line 180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 182 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, identifier.getIdentifier())); break; } // // Rule 31: ArrayType ::= Type [ ] // case 31: { //#line 194 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 196 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.array(Type, pos(), 1)); break; } // // Rule 32: PackageName ::= identifier // case 32: { //#line 241 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 243 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 33: PackageName ::= PackageName . identifier // case 33: { //#line 246 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageName = (Name) getRhsSym(1); //#line 246 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 248 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, identifier.getIdentifier())); break; } // // Rule 34: ExpressionName ::= identifier // case 34: { //#line 262 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 264 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 35: ExpressionName ::= AmbiguousName . identifier // case 35: { //#line 267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 269 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 36: MethodName ::= identifier // case 36: { //#line 277 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 279 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 37: MethodName ::= AmbiguousName . identifier // case 37: { //#line 282 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 282 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 284 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 38: PackageOrTypeName ::= identifier // case 38: { //#line 292 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 294 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 39: PackageOrTypeName ::= PackageOrTypeName . identifier // case 39: { //#line 297 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 297 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 299 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, identifier.getIdentifier())); break; } // // Rule 40: AmbiguousName ::= identifier // case 40: { //#line 307 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 309 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 41: AmbiguousName ::= AmbiguousName . identifier // case 41: { //#line 312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 314 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 42: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 42: { //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" PackageNode PackageDeclarationopt = (PackageNode) getRhsSym(1); //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarationsopt = (List) getRhsSym(2); //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarationsopt = (List) getRhsSym(3); //#line 326 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // Add import x10.lang.* by default. Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); int token_pos = (ImportDeclarationsopt.size() == 0 ? TypeDeclarationsopt.size() == 0 ? super.getSize() - 1 : getPrevious(getRhsFirstTokenIndex(3)) : getRhsLastTokenIndex(2) ); Import x10LangImport = nf.Import(pos(token_pos), Import.PACKAGE, x10Lang.toString()); ImportDeclarationsopt.add(x10LangImport); setResult(nf.SourceFile(pos(getLeftSpan(), getRightSpan()), PackageDeclarationopt, ImportDeclarationsopt, TypeDeclarationsopt)); break; } // // Rule 43: ImportDeclarations ::= ImportDeclaration // case 43: { //#line 342 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(1); //#line 344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Import.class, false); l.add(ImportDeclaration); setResult(l); break; } // // Rule 44: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 44: { //#line 349 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarations = (List) getRhsSym(1); //#line 349 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(2); //#line 351 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (ImportDeclaration != null) ImportDeclarations.add(ImportDeclaration); //setResult(l); break; } // // Rule 45: TypeDeclarations ::= TypeDeclaration // case 45: { //#line 357 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(1); //#line 359 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); if (TypeDeclaration != null) l.add(TypeDeclaration); setResult(l); break; } // // Rule 46: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 46: { //#line 365 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarations = (List) getRhsSym(1); //#line 365 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(2); //#line 367 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (TypeDeclaration != null) TypeDeclarations.add(TypeDeclaration); //setResult(l); break; } // // Rule 49: SingleTypeImportDeclaration ::= import TypeName ; // case 49: { //#line 380 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(2); //#line 382 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.CLASS, TypeName.toString())); break; } // // Rule 50: TypeImportOnDemandDeclaration ::= import PackageOrTypeName . * ; // case 50: { //#line 386 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(2); //#line 388 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.PACKAGE, PackageOrTypeName.toString())); break; } // // Rule 53: TypeDeclaration ::= ; // case 53: { //#line 402 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(null); break; } // // Rule 56: ClassModifiers ::= ClassModifiers ClassModifier // case 56: { //#line 414 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifiers = (Flags) getRhsSym(1); //#line 414 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifier = (Flags) getRhsSym(2); //#line 416 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassModifiers.set(ClassModifier)); break; } // // Rule 57: ClassModifier ::= public // case 57: { //#line 424 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 58: ClassModifier ::= protected // case 58: { //#line 429 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 59: ClassModifier ::= private // case 59: { //#line 434 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 60: ClassModifier ::= abstract // case 60: { //#line 439 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 61: ClassModifier ::= static // case 61: { //#line 444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 62: ClassModifier ::= final // case 62: { //#line 449 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 63: ClassModifier ::= strictfp // case 63: { //#line 454 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 64: Super ::= extends ClassType // case 64: { //#line 466 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ClassType = (TypeNode) getRhsSym(2); //#line 468 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassType); break; } // // Rule 65: Interfaces ::= implements InterfaceTypeList // case 65: { //#line 477 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(2); //#line 479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceTypeList); break; } // // Rule 66: InterfaceTypeList ::= InterfaceType // case 66: { //#line 483 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(1); //#line 485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 67: InterfaceTypeList ::= InterfaceTypeList , InterfaceType // case 67: { //#line 490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(1); //#line 490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 492 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceTypeList.add(InterfaceType); setResult(InterfaceTypeList); break; } // // Rule 68: ClassBody ::= { ClassBodyDeclarationsopt } // case 68: { //#line 502 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarationsopt = (List) getRhsSym(2); //#line 504 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(getLeftSpan(), getRightSpan()), ClassBodyDeclarationsopt)); break; } // // Rule 70: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 70: { //#line 509 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarations = (List) getRhsSym(1); //#line 509 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclaration = (List) getRhsSym(2); //#line 511 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassBodyDeclarations.addAll(ClassBodyDeclaration); // setResult(a); break; } // // Rule 72: ClassBodyDeclaration ::= InstanceInitializer // case 72: { //#line 517 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block InstanceInitializer = (Block) getRhsSym(1); //#line 519 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.NONE, InstanceInitializer)); setResult(l); break; } // // Rule 73: ClassBodyDeclaration ::= StaticInitializer // case 73: { //#line 524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block StaticInitializer = (Block) getRhsSym(1); //#line 526 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.STATIC, StaticInitializer)); setResult(l); break; } // // Rule 74: ClassBodyDeclaration ::= ConstructorDeclaration // case 74: { //#line 531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ConstructorDecl ConstructorDeclaration = (ConstructorDecl) getRhsSym(1); //#line 533 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ConstructorDeclaration); setResult(l); break; } // // Rule 76: ClassMemberDeclaration ::= MethodDeclaration // case 76: { //#line 540 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodDeclaration = (MethodDecl) getRhsSym(1); //#line 542 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(MethodDeclaration); setResult(l); break; } // // Rule 77: ClassMemberDeclaration ::= ClassDeclaration // case 77: { //#line 547 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 549 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 78: ClassMemberDeclaration ::= InterfaceDeclaration // case 78: { //#line 554 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 556 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 79: ClassMemberDeclaration ::= ; // case 79: { //#line 563 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); setResult(l); break; } // // Rule 80: VariableDeclarators ::= VariableDeclarator // case 80: { //#line 571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(1); //#line 573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), X10VarDeclarator.class, false); l.add(VariableDeclarator); setResult(l); break; } // // Rule 81: VariableDeclarators ::= VariableDeclarators , VariableDeclarator // case 81: { //#line 578 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(1); //#line 578 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(3); //#line 580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclarators.add(VariableDeclarator); // setResult(VariableDeclarators); break; } // // Rule 83: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 83: { //#line 586 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 586 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 588 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclaratorId.init = VariableInitializer; VariableDeclaratorId.position(pos()); // setResult(VariableDeclaratorId); break; } // // Rule 84: TraditionalVariableDeclaratorId ::= identifier // case 84: { //#line 594 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 596 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier())); break; } // // Rule 85: TraditionalVariableDeclaratorId ::= TraditionalVariableDeclaratorId [ ] // case 85: { //#line 599 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator TraditionalVariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 601 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TraditionalVariableDeclaratorId.dims++; TraditionalVariableDeclaratorId.position(pos()); // setResult(a); break; } // // Rule 87: VariableDeclaratorId ::= identifier [ IdentifierList ] // case 87: { //#line 608 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 608 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(3); //#line 610 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier(), IdentifierList)); break; } // // Rule 88: VariableDeclaratorId ::= [ IdentifierList ] // case 88: { //#line 613 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(2); //#line 615 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), IdentifierList)); break; } // // Rule 92: FieldModifiers ::= FieldModifiers FieldModifier // case 92: { //#line 623 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifiers = (Flags) getRhsSym(1); //#line 623 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifier = (Flags) getRhsSym(2); //#line 625 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(FieldModifiers.set(FieldModifier)); break; } // // Rule 93: FieldModifier ::= public // case 93: { //#line 633 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 94: FieldModifier ::= protected // case 94: { //#line 638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 95: FieldModifier ::= private // case 95: { //#line 643 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 96: FieldModifier ::= static // case 96: { //#line 648 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 97: FieldModifier ::= final // case 97: { //#line 653 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 98: FieldModifier ::= transient // case 98: { //#line 658 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.TRANSIENT); break; } // // Rule 99: MethodDeclaration ::= MethodHeader MethodBody // case 99: { //#line 667 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodHeader = (MethodDecl) getRhsSym(1); //#line 667 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block MethodBody = (Block) getRhsSym(2); //#line 669 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" JPGPosition old_pos = (JPGPosition) MethodHeader.position(); setResult(MethodHeader.body(MethodBody) .position(pos(old_pos.getLeftIToken().getTokenIndex(), getRightSpan()))); break; } // // Rule 101: ResultType ::= void // case 101: { //#line 680 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 102: FormalParameterList ::= LastFormalParameter // case 102: { //#line 700 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(1); //#line 702 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(LastFormalParameter); setResult(l); break; } // // Rule 103: FormalParameterList ::= FormalParameters , LastFormalParameter // case 103: { //#line 707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(3); //#line 709 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(LastFormalParameter); // setResult(FormalParameters); break; } // // Rule 104: FormalParameters ::= FormalParameter // case 104: { //#line 714 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(1); //#line 716 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(FormalParameter); setResult(l); break; } // // Rule 105: FormalParameters ::= FormalParameters , FormalParameter // case 105: { //#line 721 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 721 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 723 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(FormalParameter); // setResult(FormalParameters); break; } // // Rule 106: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 106: { //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(3); //#line 730 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableDeclaratorId != null) setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); else setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), 1), "", new AmbExpr[0])); break; } // // Rule 108: VariableModifiers ::= VariableModifiers VariableModifier // case 108: { //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiers = (Flags) getRhsSym(1); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifier = (Flags) getRhsSym(2); //#line 740 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(VariableModifiers.set(VariableModifier)); break; } // // Rule 109: VariableModifier ::= final // case 109: { //#line 746 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 110: LastFormalParameter ::= VariableModifiersopt Type ...opt$opt VariableDeclaratorId // case 110: { //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(4); //#line 754 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" assert(opt == null); setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); break; } // // Rule 112: MethodModifiers ::= MethodModifiers MethodModifier // case 112: { //#line 766 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifiers = (Flags) getRhsSym(1); //#line 766 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifier = (Flags) getRhsSym(2); //#line 768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(MethodModifiers.set(MethodModifier)); break; } // // Rule 113: MethodModifier ::= public // case 113: { //#line 776 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 114: MethodModifier ::= protected // case 114: { //#line 781 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 115: MethodModifier ::= private // case 115: { //#line 786 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 116: MethodModifier ::= abstract // case 116: { //#line 791 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 117: MethodModifier ::= static // case 117: { //#line 796 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 118: MethodModifier ::= final // case 118: { //#line 801 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 119: MethodModifier ::= native // case 119: { //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NATIVE); break; } // // Rule 120: MethodModifier ::= strictfp // case 120: { //#line 816 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 121: Throws ::= throws ExceptionTypeList // case 121: { //#line 820 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(2); //#line 822 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExceptionTypeList); break; } // // Rule 122: ExceptionTypeList ::= ExceptionType // case 122: { //#line 826 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(1); //#line 828 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(ExceptionType); setResult(l); break; } // // Rule 123: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 123: { //#line 833 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(1); //#line 833 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(3); //#line 835 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExceptionTypeList.add(ExceptionType); // setResult(ExceptionTypeList); break; } // // Rule 126: MethodBody ::= ; // case 126: setResult(null); break; // // Rule 128: StaticInitializer ::= static Block // case 128: { //#line 855 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 857 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 129: SimpleTypeName ::= identifier // case 129: { //#line 872 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 874 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 131: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 131: { //#line 879 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifiers = (Flags) getRhsSym(1); //#line 879 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifier = (Flags) getRhsSym(2); //#line 881 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstructorModifiers.set(ConstructorModifier)); break; } // // Rule 132: ConstructorModifier ::= public // case 132: { //#line 889 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 133: ConstructorModifier ::= protected // case 133: { //#line 894 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 134: ConstructorModifier ::= private // case 134: { //#line 899 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 135: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 135: { //#line 903 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt ExplicitConstructorInvocationopt = (Stmt) getRhsSym(2); //#line 903 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(3); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l; if (ExplicitConstructorInvocationopt == null) l = BlockStatementsopt; else { l = new TypedList(new LinkedList(), Stmt.class, false); l.add(ExplicitConstructorInvocationopt); l.addAll(BlockStatementsopt); } setResult(nf.Block(pos(), l)); break; } // // Rule 136: Arguments ::= ( ArgumentListopt ) // case 136: { //#line 936 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(2); //#line 938 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ArgumentListopt); break; } // // Rule 139: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 139: { //#line 954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifiers = (Flags) getRhsSym(1); //#line 954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifier = (Flags) getRhsSym(2); //#line 956 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceModifiers.set(InterfaceModifier)); break; } // // Rule 140: InterfaceModifier ::= public // case 140: { //#line 964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 141: InterfaceModifier ::= protected // case 141: { //#line 969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 142: InterfaceModifier ::= private // case 142: { //#line 974 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 143: InterfaceModifier ::= abstract // case 143: { //#line 979 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 144: InterfaceModifier ::= static // case 144: { //#line 984 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 145: InterfaceModifier ::= strictfp // case 145: { //#line 989 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 146: ExtendsInterfaces ::= extends InterfaceType // case 146: { //#line 993 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(2); //#line 995 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 147: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 147: { //#line 1000 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExtendsInterfaces = (List) getRhsSym(1); //#line 1000 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExtendsInterfaces.add(InterfaceType); // setResult(ExtendsInterfaces); break; } // // Rule 148: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 148: { //#line 1012 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarationsopt = (List) getRhsSym(2); //#line 1014 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(), InterfaceMemberDeclarationsopt)); break; } // // Rule 150: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 150: { //#line 1019 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarations = (List) getRhsSym(1); //#line 1019 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclaration = (List) getRhsSym(2); //#line 1021 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceMemberDeclarations.addAll(InterfaceMemberDeclaration); // setResult(l); break; } // // Rule 152: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 152: { //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl AbstractMethodDeclaration = (MethodDecl) getRhsSym(1); //#line 1029 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(AbstractMethodDeclaration); setResult(l); break; } // // Rule 153: InterfaceMemberDeclaration ::= ClassDeclaration // case 153: { //#line 1034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1036 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 154: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 154: { //#line 1041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 1043 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 155: InterfaceMemberDeclaration ::= ; // case 155: { //#line 1050 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Collections.EMPTY_LIST); break; } // // Rule 156: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 156: { //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiersopt = (Flags) getRhsSym(1); //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1056 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); l.add(nf.FieldDecl(pos(getRhsFirstTokenIndex(2), getRightSpan()), ConstantModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), d.dims), d.name, d.init)); } setResult(l); break; } // // Rule 158: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 158: { //#line 1074 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiers = (Flags) getRhsSym(1); //#line 1074 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifier = (Flags) getRhsSym(2); //#line 1076 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstantModifiers.set(ConstantModifier)); break; } // // Rule 159: ConstantModifier ::= public // case 159: { //#line 1084 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 160: ConstantModifier ::= static // case 160: { //#line 1089 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 161: ConstantModifier ::= final // case 161: { //#line 1094 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 163: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 163: { //#line 1101 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifiers = (Flags) getRhsSym(1); //#line 1101 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifier = (Flags) getRhsSym(2); //#line 1103 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(AbstractMethodModifiers.set(AbstractMethodModifier)); break; } // // Rule 164: AbstractMethodModifier ::= public // case 164: { //#line 1111 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 165: AbstractMethodModifier ::= abstract // case 165: { //#line 1116 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 166: SimpleName ::= identifier // case 166: { //#line 1172 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1174 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 167: ArrayInitializer ::= { VariableInitializersopt ,opt$opt } // case 167: { //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializersopt = (List) getRhsSym(2); //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 1203 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableInitializersopt == null) setResult(nf.ArrayInit(pos())); else setResult(nf.ArrayInit(pos(), VariableInitializersopt)); break; } // // Rule 168: VariableInitializers ::= VariableInitializer // case 168: { //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(1); //#line 1211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(VariableInitializer); setResult(l); break; } // // Rule 169: VariableInitializers ::= VariableInitializers , VariableInitializer // case 169: { //#line 1216 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializers = (List) getRhsSym(1); //#line 1216 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 1218 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableInitializers.add(VariableInitializer); //setResult(VariableInitializers); break; } // // Rule 170: Block ::= { BlockStatementsopt } // case 170: { //#line 1237 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(2); //#line 1239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Block(pos(), BlockStatementsopt)); break; } // // Rule 171: BlockStatements ::= BlockStatement // case 171: { //#line 1243 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(1); //#line 1245 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.addAll(BlockStatement); setResult(l); break; } // // Rule 172: BlockStatements ::= BlockStatements BlockStatement // case 172: { //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(1); //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(2); //#line 1252 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" BlockStatements.addAll(BlockStatement); //setResult(l); break; } // // Rule 174: BlockStatement ::= ClassDeclaration // case 174: { //#line 1258 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), ClassDeclaration)); setResult(l); break; } // // Rule 175: BlockStatement ::= Statement // case 175: { //#line 1265 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(1); //#line 1267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(Statement); setResult(l); break; } // // Rule 177: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 177: { //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1277 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), LocalDecl.class, false); List s = new TypedList(new LinkedList(), Stmt.class, false); if (VariableDeclarators != null) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext(); ) { X10VarDeclarator d = (X10VarDeclarator) i.next(); d.setFlag(VariableModifiersopt); // use d.flags below and not flags, setFlag may change it. l.add(nf.LocalDecl(d.pos, d.flags, nf.array(Type, pos(d), d.dims), d.name, d.init)); // [IP] TODO: Add X10Local with exploded variables if (d.hasExplodedVars()) s.addAll(X10Formal_c.explode(nf, ts, d.name, pos(d), d.flags, d.names())); } } l.addAll(s); setResult(l); break; } // // Rule 201: IfThenStatement ::= if ( Expression ) Statement // case 201: { //#line 1338 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1338 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1340 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, Statement)); break; } // // Rule 202: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 202: { //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(7); //#line 1346 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, StatementNoShortIf, Statement)); break; } // // Rule 203: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf$true_stmt else StatementNoShortIf$false_stmt // case 203: { //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt true_stmt = (Stmt) getRhsSym(5); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt false_stmt = (Stmt) getRhsSym(7); //#line 1352 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, true_stmt, false_stmt)); break; } // // Rule 204: EmptyStatement ::= ; // case 204: { //#line 1358 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Empty(pos())); break; } // // Rule 205: LabeledStatement ::= identifier : Statement // case 205: { //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(3); //#line 1364 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), Statement)); break; } // // Rule 206: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 206: { //#line 1368 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1368 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(3); //#line 1370 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), StatementNoShortIf)); break; } // // Rule 207: ExpressionStatement ::= StatementExpression ; // case 207: { //#line 1373 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1375 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Eval(pos(), StatementExpression)); break; } // // Rule 215: AssertStatement ::= assert Expression ; // case 215: { //#line 1396 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1398 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), Expression)); break; } // // Rule 216: AssertStatement ::= assert Expression$expr1 : Expression$expr2 ; // case 216: { //#line 1401 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr1 = (Expr) getRhsSym(2); //#line 1401 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr2 = (Expr) getRhsSym(4); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), expr1, expr2)); break; } // // Rule 217: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 217: { //#line 1407 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1407 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlock = (List) getRhsSym(5); //#line 1409 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Switch(pos(), Expression, SwitchBlock)); break; } // // Rule 218: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 218: { //#line 1413 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroupsopt = (List) getRhsSym(2); //#line 1413 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabelsopt = (List) getRhsSym(3); //#line 1415 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroupsopt.addAll(SwitchLabelsopt); setResult(SwitchBlockStatementGroupsopt); break; } // // Rule 220: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 220: { //#line 1421 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroups = (List) getRhsSym(1); //#line 1421 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroup = (List) getRhsSym(2); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroups.addAll(SwitchBlockStatementGroup); // setResult(SwitchBlockStatementGroups); break; } // // Rule 221: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 221: { //#line 1428 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1428 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(2); //#line 1430 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), SwitchElement.class, false); l.addAll(SwitchLabels); l.add(nf.SwitchBlock(pos(), BlockStatements)); setResult(l); break; } // // Rule 222: SwitchLabels ::= SwitchLabel // case 222: { //#line 1437 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(1); //#line 1439 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Case.class, false); l.add(SwitchLabel); setResult(l); break; } // // Rule 223: SwitchLabels ::= SwitchLabels SwitchLabel // case 223: { //#line 1444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(2); //#line 1446 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchLabels.add(SwitchLabel); //setResult(SwitchLabels); break; } // // Rule 224: SwitchLabel ::= case ConstantExpression : // case 224: { //#line 1451 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConstantExpression = (Expr) getRhsSym(2); //#line 1453 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Case(pos(), ConstantExpression)); break; } // // Rule 225: SwitchLabel ::= default : // case 225: { //#line 1460 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Default(pos())); break; } // // Rule 226: WhileStatement ::= while ( Expression ) Statement // case 226: { //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1469 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, Statement)); break; } // // Rule 227: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 227: { //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1475 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, StatementNoShortIf)); break; } // // Rule 228: DoStatement ::= do Statement while ( Expression ) ; // case 228: { //#line 1479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(2); //#line 1479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(5); //#line 1481 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Do(pos(), Statement, Expression)); break; } // // Rule 231: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 231: { //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(9); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, Statement)); break; } // // Rule 232: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 232: { //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(9); //#line 1496 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, StatementNoShortIf)); break; } // // Rule 234: ForInit ::= LocalVariableDeclaration // case 234: { //#line 1501 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List LocalVariableDeclaration = (List) getRhsSym(1); //#line 1503 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ForInit.class, false); l.addAll(LocalVariableDeclaration); //setResult(l); break; } // // Rule 236: StatementExpressionList ::= StatementExpression // case 236: { //#line 1511 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1513 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Eval.class, false); l.add(nf.Eval(pos(), StatementExpression)); setResult(l); break; } // // Rule 237: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 237: { //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List StatementExpressionList = (List) getRhsSym(1); //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(3); //#line 1520 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" StatementExpressionList.add(nf.Eval(pos(), StatementExpression)); //setResult(StatementExpressionList); break; } // // Rule 238: BreakStatement ::= break identifieropt ; // case 238: { //#line 1528 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1530 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Break(pos())); else setResult(nf.Break(pos(), identifieropt.toString())); break; } // // Rule 239: ContinueStatement ::= continue identifieropt ; // case 239: { //#line 1536 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1538 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Continue(pos())); else setResult(nf.Continue(pos(), identifieropt.toString())); break; } // // Rule 240: ReturnStatement ::= return Expressionopt ; // case 240: { //#line 1544 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(2); //#line 1546 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Return(pos(), Expressionopt)); break; } // // Rule 241: ThrowStatement ::= throw Expression ; // case 241: { //#line 1550 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1552 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Throw(pos(), Expression)); break; } // // Rule 242: TryStatement ::= try Block Catches // case 242: { //#line 1562 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1562 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(3); //#line 1564 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catches)); break; } // // Rule 243: TryStatement ::= try Block Catchesopt Finally // case 243: { //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catchesopt = (List) getRhsSym(3); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Finally = (Block) getRhsSym(4); //#line 1569 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catchesopt, Finally)); break; } // // Rule 244: Catches ::= CatchClause // case 244: { //#line 1573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(1); //#line 1575 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Catch.class, false); l.add(CatchClause); setResult(l); break; } // // Rule 245: Catches ::= Catches CatchClause // case 245: { //#line 1580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(1); //#line 1580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(2); //#line 1582 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catches.add(CatchClause); //setResult(Catches); break; } // // Rule 246: CatchClause ::= catch ( FormalParameter ) Block // case 246: { //#line 1587 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1587 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(5); //#line 1589 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Catch(pos(), FormalParameter, Block)); break; } // // Rule 247: Finally ::= finally Block // case 247: { //#line 1593 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 251: PrimaryNoNewArray ::= Type . class // case 251: { //#line 1613 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1615 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 252: PrimaryNoNewArray ::= void . class // case 252: { //#line 1634 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 253: PrimaryNoNewArray ::= this // case 253: { //#line 1640 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos())); break; } // // Rule 254: PrimaryNoNewArray ::= ClassName . this // case 254: { //#line 1643 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1645 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 255: PrimaryNoNewArray ::= ( Expression ) // case 255: { //#line 1648 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1650 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ParExpr(pos(), Expression)); break; } // // Rule 260: Literal ::= IntegerLiteral$IntegerLiteral // case 260: { //#line 1658 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken IntegerLiteral = (IToken) getRhsIToken(1); //#line 1660 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.IntegerLiteral a = int_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 261: Literal ::= LongLiteral$LongLiteral // case 261: { //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken LongLiteral = (IToken) getRhsIToken(1); //#line 1666 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.LongLiteral a = long_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 262: Literal ::= FloatingPointLiteral$FloatLiteral // case 262: { //#line 1670 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken FloatLiteral = (IToken) getRhsIToken(1); //#line 1672 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.FloatLiteral a = float_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 263: Literal ::= DoubleLiteral$DoubleLiteral // case 263: { //#line 1676 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken DoubleLiteral = (IToken) getRhsIToken(1); //#line 1678 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.DoubleLiteral a = double_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 264: Literal ::= BooleanLiteral // case 264: { //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.BooleanLiteral BooleanLiteral = (polyglot.lex.BooleanLiteral) getRhsSym(1); //#line 1684 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.BooleanLit(pos(), BooleanLiteral.getValue().booleanValue())); break; } // // Rule 265: Literal ::= CharacterLiteral$CharacterLiteral // case 265: { //#line 1687 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken CharacterLiteral = (IToken) getRhsIToken(1); //#line 1689 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.CharacterLiteral a = char_lit(getRhsFirstTokenIndex(1)); setResult(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 266: Literal ::= StringLiteral$str // case 266: { //#line 1693 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken str = (IToken) getRhsIToken(1); //#line 1695 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.StringLiteral a = string_lit(getRhsFirstTokenIndex(1)); setResult(nf.StringLit(pos(), a.getValue())); break; } // // Rule 267: Literal ::= null // case 267: { //#line 1701 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.NullLit(pos())); break; } // // Rule 268: BooleanLiteral ::= true$trueLiteral // case 268: { //#line 1705 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken trueLiteral = (IToken) getRhsIToken(1); //#line 1707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 269: BooleanLiteral ::= false$falseLiteral // case 269: { //#line 1710 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken falseLiteral = (IToken) getRhsIToken(1); //#line 1712 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 270: ArgumentList ::= Expression // case 270: { //#line 1725 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(1); //#line 1727 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Expression); setResult(l); break; } // // Rule 271: ArgumentList ::= ArgumentList , Expression // case 271: { //#line 1732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentList = (List) getRhsSym(1); //#line 1732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1734 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ArgumentList.add(Expression); //setResult(ArgumentList); break; } // // Rule 272: DimExprs ::= DimExpr // case 272: { //#line 1768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(1); //#line 1770 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); setResult(l); break; } // // Rule 273: DimExprs ::= DimExprs DimExpr // case 273: { //#line 1775 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List DimExprs = (List) getRhsSym(1); //#line 1775 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(2); //#line 1777 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" DimExprs.add(DimExpr); //setResult(DimExprs); break; } // // Rule 274: DimExpr ::= [ Expression ] // case 274: { //#line 1782 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1784 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Expression.position(pos())); break; } // // Rule 275: Dims ::= [ ] // case 275: { //#line 1790 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(1)); break; } // // Rule 276: Dims ::= Dims [ ] // case 276: { //#line 1793 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Integer Dims = (Integer) getRhsSym(1); //#line 1795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(Dims.intValue() + 1)); break; } // // Rule 277: FieldAccess ::= Primary . identifier // case 277: { //#line 1799 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Primary = (Expr) getRhsSym(1); //#line 1799 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1801 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(), Primary, identifier.getIdentifier())); break; } // // Rule 278: FieldAccess ::= super . identifier // case 278: { //#line 1804 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1806 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 279: FieldAccess ::= ClassName . super$sup . identifier // case 279: { //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken sup = (IToken) getRhsIToken(3); //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 280: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 280: { //#line 1815 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name MethodName = (Name) getRhsSym(1); //#line 1815 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 1817 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Call(pos(), MethodName.prefix == null ? null : MethodName.prefix.toReceiver(), MethodName.name, ArgumentListopt)); break; } // // Rule 282: PostfixExpression ::= ExpressionName // case 282: { //#line 1840 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 1842 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 285: PostIncrementExpression ::= PostfixExpression ++ // case 285: { //#line 1848 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_INC)); break; } // // Rule 286: PostDecrementExpression ::= PostfixExpression -- // case 286: { //#line 1854 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_DEC)); break; } // // Rule 289: UnaryExpression ::= + UnaryExpression // case 289: { //#line 1862 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1864 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.POS, UnaryExpression)); break; } // // Rule 290: UnaryExpression ::= - UnaryExpression // case 290: { //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1869 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NEG, UnaryExpression)); break; } // // Rule 292: PreIncrementExpression ::= ++ UnaryExpression // case 292: { //#line 1874 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1876 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_INC, UnaryExpression)); break; } // // Rule 293: PreDecrementExpression ::= -- UnaryExpression // case 293: { //#line 1880 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1882 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_DEC, UnaryExpression)); break; } // // Rule 295: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 295: { //#line 1887 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1889 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.BIT_NOT, UnaryExpression)); break; } // // Rule 296: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 296: { //#line 1892 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1894 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NOT, UnaryExpression)); break; } // // Rule 299: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 299: { //#line 1906 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1906 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1908 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MUL, UnaryExpression)); break; } // // Rule 300: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 300: { //#line 1911 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1911 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.DIV, UnaryExpression)); break; } // // Rule 301: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 301: { //#line 1916 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1916 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1918 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MOD, UnaryExpression)); break; } // // Rule 303: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 303: { //#line 1923 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1923 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1925 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.ADD, MultiplicativeExpression)); break; } // // Rule 304: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 304: { //#line 1928 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1928 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1930 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.SUB, MultiplicativeExpression)); break; } // // Rule 306: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 306: { //#line 1935 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1935 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(3); //#line 1937 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ShiftExpression, Binary.SHL, AdditiveExpression)); break; } // // Rule 307: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 307: { //#line 1940 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1940 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(4); //#line 1942 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.SHR, AdditiveExpression)); break; } // // Rule 308: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 308: { //#line 1946 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1946 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(5); //#line 1948 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.USHR, AdditiveExpression)); break; } // // Rule 310: RelationalExpression ::= RelationalExpression < ShiftExpression // case 310: { //#line 1954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1956 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LT, ShiftExpression)); break; } // // Rule 311: RelationalExpression ::= RelationalExpression > ShiftExpression // case 311: { //#line 1959 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1959 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1961 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.GT, ShiftExpression)); break; } // // Rule 312: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 312: { //#line 1964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1966 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LE, ShiftExpression)); break; } // // Rule 313: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 313: { //#line 1969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(4); //#line 1971 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), RelationalExpression, Binary.GE, ShiftExpression)); break; } // // Rule 315: EqualityExpression ::= EqualityExpression == RelationalExpression // case 315: { //#line 1985 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1985 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1987 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.EQ, RelationalExpression)); break; } // // Rule 316: EqualityExpression ::= EqualityExpression != RelationalExpression // case 316: { //#line 1990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1992 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.NE, RelationalExpression)); break; } // // Rule 318: AndExpression ::= AndExpression & EqualityExpression // case 318: { //#line 1997 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(1); //#line 1997 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(3); //#line 1999 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AndExpression, Binary.BIT_AND, EqualityExpression)); break; } // // Rule 320: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 320: { //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(1); //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(3); //#line 2006 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ExclusiveOrExpression, Binary.BIT_XOR, AndExpression)); break; } // // Rule 322: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 322: { //#line 2011 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(1); //#line 2011 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(3); //#line 2013 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), InclusiveOrExpression, Binary.BIT_OR, ExclusiveOrExpression)); break; } // // Rule 324: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 324: { //#line 2018 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(1); //#line 2018 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(3); //#line 2020 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalAndExpression, Binary.COND_AND, InclusiveOrExpression)); break; } // // Rule 326: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 326: { //#line 2025 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2025 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(3); //#line 2027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalOrExpression, Binary.COND_OR, ConditionalAndExpression)); break; } // // Rule 328: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 328: { //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalExpression = (Expr) getRhsSym(5); //#line 2034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Conditional(pos(), ConditionalOrExpression, Expression, ConditionalExpression)); break; } // // Rule 331: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 331: { //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr LeftHandSide = (Expr) getRhsSym(1); //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Assign.Operator AssignmentOperator = (Assign.Operator) getRhsSym(2); //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AssignmentExpression = (Expr) getRhsSym(3); //#line 2043 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assign(pos(), LeftHandSide, AssignmentOperator, AssignmentExpression)); break; } // // Rule 332: LeftHandSide ::= ExpressionName // case 332: { //#line 2047 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 2049 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 335: AssignmentOperator ::= = // case 335: { //#line 2057 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ASSIGN); break; } // // Rule 336: AssignmentOperator ::= *= // case 336: { //#line 2062 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MUL_ASSIGN); break; } // // Rule 337: AssignmentOperator ::= /= // case 337: { //#line 2067 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.DIV_ASSIGN); break; } // // Rule 338: AssignmentOperator ::= %= // case 338: { //#line 2072 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MOD_ASSIGN); break; } // // Rule 339: AssignmentOperator ::= += // case 339: { //#line 2077 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ADD_ASSIGN); break; } // // Rule 340: AssignmentOperator ::= -= // case 340: { //#line 2082 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SUB_ASSIGN); break; } // // Rule 341: AssignmentOperator ::= <<= // case 341: { //#line 2087 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SHL_ASSIGN); break; } // // Rule 342: AssignmentOperator ::= > > = // case 342: { //#line 2092 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.SHR_ASSIGN); break; } // // Rule 343: AssignmentOperator ::= > > > = // case 343: { //#line 2098 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.USHR_ASSIGN); break; } // // Rule 344: AssignmentOperator ::= &= // case 344: { //#line 2104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_AND_ASSIGN); break; } // // Rule 345: AssignmentOperator ::= ^= // case 345: { //#line 2109 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_XOR_ASSIGN); break; } // // Rule 346: AssignmentOperator ::= |= // case 346: { //#line 2114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_OR_ASSIGN); break; } // // Rule 349: Dimsopt ::= $Empty // case 349: { //#line 2127 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(0)); break; } // // Rule 351: Catchesopt ::= $Empty // case 351: { //#line 2134 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 353: identifieropt ::= $Empty // case 353: setResult(null); break; // // Rule 354: identifieropt ::= identifier // case 354: { //#line 2141 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2143 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 355: ForUpdateopt ::= $Empty // case 355: { //#line 2149 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 357: Expressionopt ::= $Empty // case 357: setResult(null); break; // // Rule 359: ForInitopt ::= $Empty // case 359: { //#line 2160 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 361: SwitchLabelsopt ::= $Empty // case 361: { //#line 2167 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 363: SwitchBlockStatementGroupsopt ::= $Empty // case 363: { //#line 2174 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 365: VariableModifiersopt ::= $Empty // case 365: { //#line 2181 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 367: VariableInitializersopt ::= $Empty // case 367: setResult(null); break; // // Rule 369: AbstractMethodModifiersopt ::= $Empty // case 369: { //#line 2211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 371: ConstantModifiersopt ::= $Empty // case 371: { //#line 2218 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 373: InterfaceMemberDeclarationsopt ::= $Empty // case 373: { //#line 2225 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 375: ExtendsInterfacesopt ::= $Empty // case 375: { //#line 2232 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 377: InterfaceModifiersopt ::= $Empty // case 377: { //#line 2239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 379: ClassBodyopt ::= $Empty // case 379: setResult(null); break; // // Rule 381: Argumentsopt ::= $Empty // case 381: setResult(null); break; // // Rule 382: Argumentsopt ::= Arguments // case 382: throw new Error("No action specified for rule " + 382); // // Rule 383: ,opt ::= $Empty // case 383: setResult(null); break; // // Rule 385: ArgumentListopt ::= $Empty // case 385: { //#line 2269 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 387: BlockStatementsopt ::= $Empty // case 387: { //#line 2276 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 389: ExplicitConstructorInvocationopt ::= $Empty // case 389: setResult(null); break; // // Rule 391: ConstructorModifiersopt ::= $Empty // case 391: { //#line 2287 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 393: ...opt ::= $Empty // case 393: setResult(null); break; // // Rule 395: FormalParameterListopt ::= $Empty // case 395: { //#line 2298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 397: Throwsopt ::= $Empty // case 397: { //#line 2305 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 399: MethodModifiersopt ::= $Empty // case 399: { //#line 2312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 401: FieldModifiersopt ::= $Empty // case 401: { //#line 2319 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 403: ClassBodyDeclarationsopt ::= $Empty // case 403: { //#line 2326 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 405: Interfacesopt ::= $Empty // case 405: { //#line 2333 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 407: Superopt ::= $Empty // case 407: { //#line 2340 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), "x10.lang.Object").toType()); break; } // // Rule 409: ClassModifiersopt ::= $Empty // case 409: { //#line 2351 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 411: TypeDeclarationsopt ::= $Empty // case 411: { //#line 2363 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 413: ImportDeclarationsopt ::= $Empty // case 413: { //#line 2370 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 415: PackageDeclarationopt ::= $Empty // case 415: setResult(null); break; // // Rule 417: ClassType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 417: { //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 717 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 418: InterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 418: { //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 726 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 419: PackageDeclaration ::= package PackageName ; // case 419: { //#line 732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name PackageName = (Name) getRhsSym(2); //#line 734 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(PackageName.toPackage()); break; } // // Rule 420: NormalClassDeclaration ::= X10ClassModifiersopt class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 420: { //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 740 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(X10Flags.isValue(X10ClassModifiersopt) ? nf.ValueClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody) : nf.ClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 422: X10ClassModifiers ::= X10ClassModifiers X10ClassModifier // case 422: { //#line 753 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiers = (X10Flags) getRhsSym(1); //#line 753 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifier = (X10Flags) getRhsSym(2); //#line 755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags result = X10ClassModifiers.setX(X10ClassModifier); setResult(result); break; } // // Rule 423: X10ClassModifier ::= ClassModifier // case 423: { //#line 761 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags ClassModifier = (Flags) getRhsSym(1); //#line 763 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(ClassModifier)); break; } // // Rule 424: X10ClassModifier ::= safe // case 424: { //#line 768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 425: PropertyList ::= ( Properties WhereClauseopt ) // case 425: { //#line 772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(2); //#line 772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(3); //#line 774 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = Properties; result[1] = WhereClauseopt; setResult(result); break; } // // Rule 426: PropertyList ::= ( WhereClause ) // case 426: { //#line 779 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(2); //#line 781 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = null; result[1] = WhereClause; setResult(result); break; } // // Rule 427: Properties ::= Property // case 427: { //#line 788 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(1); //#line 790 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), PropertyDecl.class, false); l.add(Property); setResult(l); break; } // // Rule 428: Properties ::= Properties , Property // case 428: { //#line 795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(1); //#line 795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(3); //#line 797 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Properties.add(Property); // setResult(FormalParameters); break; } // // Rule 429: Property ::= Type identifier // case 429: { //#line 803 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 803 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(2); //#line 805 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.PropertyDecl(pos(), Flags.PUBLIC.Final(), Type, identifier.getIdentifier())); break; } // // Rule 430: MethodHeader ::= ThisClauseopt MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 430: { //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags MethodModifiersopt = (Flags) getRhsSym(2); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 813 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name c = (MethodDeclarator != null) ? (Name) MethodDeclarator[0] : null; List d = (MethodDeclarator != null) ? (List) MethodDeclarator[1] : null; Integer e = (MethodDeclarator != null) ? (Integer) MethodDeclarator[2] : null; Expr where = (MethodDeclarator != null) ? (Expr) MethodDeclarator[3] : null; if (ResultType.type() == ts.Void() && e != null && e.intValue() > 0) { // TODO: error!!! System.err.println("Fix me - encountered method returning void but with non-zero rank?"); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, MethodModifiersopt, nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e != null ? e.intValue() : 1), c != null ? c.toString() : "", d, where, Throwsopt, null)); break; } // // Rule 431: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 431: { //#line 835 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), ArgumentListopt)); break; } // // Rule 432: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 432: { //#line 840 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 842 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), ArgumentListopt)); break; } // // Rule 433: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 433: { //#line 845 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 845 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 847 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 434: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 434: { //#line 850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 852 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 435: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier PropertyListopt ExtendsInterfacesopt InterfaceBody // case 435: { //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags InterfaceModifiersopt = (Flags) getRhsSym(1); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ExtendsInterfacesopt = (List) getRhsSym(5); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody InterfaceBody = (ClassBody) getRhsSym(6); //#line 858 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(nf.ClassDecl(pos(), InterfaceModifiersopt.Interface(), identifier.getIdentifier(), props, ci, null, ExtendsInterfacesopt, InterfaceBody)); break; } // // Rule 436: AbstractMethodDeclaration ::= ThisClauseopt AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 436: { //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags AbstractMethodModifiersopt = (Flags) getRhsSym(2); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 875 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name c = (Name) MethodDeclarator[0]; List d = (List) MethodDeclarator[1]; Integer e = (Integer) MethodDeclarator[2]; Expr where = (Expr) MethodDeclarator[3]; if (ResultType.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, AbstractMethodModifiersopt , nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e.intValue()), c.toString(), d, where, Throwsopt, null)); break; } // // Rule 437: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 437: { //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ClassOrInterfaceType = (TypeNode) getRhsSym(2); //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(4); //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(6); //#line 900 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ClassBodyopt == null) setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt)); else setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt, ClassBodyopt)); break; } // // Rule 438: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 438: { //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 907 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 439: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 439: { //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name AmbiguousName = (Name) getRhsSym(1); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 915 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 440: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 440: { //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 924 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 441: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 441: { //#line 927 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 927 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 442: MethodInvocation ::= ClassName . super$sup . identifier ( ArgumentListopt ) // case 442: { //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(7); //#line 934 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 444: AssignPropertyCall ::= property ( ArgumentList ) // case 444: { //#line 939 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 941 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AssignPropertyCall(pos(), ArgumentList)); break; } // // Rule 445: Type ::= DataType // case 445: { //#line 950 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(1); //#line 952 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 446: Type ::= nullable < Type > DepParametersopt // case 446: { //#line 955 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 955 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(5); //#line 957 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode t = nf.Nullable(pos(), Type); setResult(DepParametersopt == null ? t : t.dep(null, DepParametersopt)); break; } // // Rule 447: Type ::= future < Type > // case 447: { //#line 963 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 965 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 451: PrimitiveType ::= NumericType DepParametersopt // case 451: { //#line 980 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode NumericType = (TypeNode) getRhsSym(1); //#line 980 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 982 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parser: parsed PrimitiveType |" + NumericType + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? NumericType : ((X10TypeNode) NumericType).dep(null, DepParametersopt)); break; } // // Rule 452: PrimitiveType ::= boolean DepParametersopt // case 452: { //#line 988 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode res = (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.Boolean()); setResult(DepParametersopt==null ? res : res.dep(null, DepParametersopt)); break; } // // Rule 457: ClassOrInterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 457: { //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 1004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode type; if (ts.isPrimitiveTypeName(TypeName.name)) { try { type= (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.primitiveForName(TypeName.name)); } catch (SemanticException e) { throw new InternalCompilerError("Unable to create primitive type for '" + TypeName.name + "'!"); } } else type= (X10TypeNode) TypeName.toType(); // System.out.println("Parser: parsed ClassOrInterfaceType |" + TypeName + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? type : type.dep(null, DepParametersopt)); break; } // // Rule 458: DepParameters ::= ( DepParameterExpr ) // case 458: { //#line 1021 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(2); //#line 1023 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParameterExpr); break; } // // Rule 459: DepParameterExpr ::= ArgumentList WhereClauseopt // case 459: { //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(1); //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(2); //#line 1029 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), ArgumentList, WhereClauseopt)); break; } // // Rule 460: DepParameterExpr ::= WhereClause // case 460: { //#line 1032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(1); //#line 1034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), Collections.EMPTY_LIST, WhereClause)); break; } // // Rule 461: WhereClause ::= : ConstExpression // case 461: { //#line 1038 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1040 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 462: ConstPrimary ::= Literal // case 462: { //#line 1045 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.ast.Lit Literal = (polyglot.ast.Lit) getRhsSym(1); //#line 1047 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Literal); break; } // // Rule 463: ConstPrimary ::= Type . class // case 463: { //#line 1050 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1052 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 464: ConstPrimary ::= void . class // case 464: { //#line 1071 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 465: ConstPrimary ::= this // case 465: { //#line 1077 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos())); break; } // // Rule 466: ConstPrimary ::= here // case 466: { //#line 1082 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Here(pos())); break; } // // Rule 467: ConstPrimary ::= ClassName . this // case 467: { //#line 1085 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1087 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 468: ConstPrimary ::= ( ConstExpression ) // case 468: { //#line 1090 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1092 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 470: ConstPrimary ::= self // case 470: { //#line 1098 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Self(pos())); break; } // // Rule 471: ConstPostfixExpression ::= ConstPrimary // case 471: { //#line 1104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1106 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstPrimary); break; } // // Rule 472: ConstPostfixExpression ::= ExpressionName // case 472: { //#line 1109 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1111 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ExpressionName.toExpr()); break; } // // Rule 473: ConstUnaryExpression ::= ConstPostfixExpression // case 473: { //#line 1114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPostfixExpression = (Expr) getRhsSym(1); //#line 1116 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstPostfixExpression); break; } // // Rule 474: ConstUnaryExpression ::= + ConstUnaryExpression // case 474: { //#line 1119 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1121 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.POS, ConstUnaryExpression)); break; } // // Rule 475: ConstUnaryExpression ::= - ConstUnaryExpression // case 475: { //#line 1124 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1126 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NEG, ConstUnaryExpression)); break; } // // Rule 476: ConstUnaryExpression ::= ! ConstUnaryExpression // case 476: { //#line 1129 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1131 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NOT, ConstUnaryExpression)); break; } // // Rule 477: ConstMultiplicativeExpression ::= ConstUnaryExpression // case 477: { //#line 1135 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(1); //#line 1137 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstUnaryExpression); break; } // // Rule 478: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression * ConstUnaryExpression // case 478: { //#line 1140 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1140 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1142 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MUL, ConstUnaryExpression)); break; } // // Rule 479: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression / ConstUnaryExpression // case 479: { //#line 1145 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1145 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1147 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.DIV, ConstUnaryExpression)); break; } // // Rule 480: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression % ConstUnaryExpression // case 480: { //#line 1150 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1150 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1152 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MOD, ConstUnaryExpression)); break; } // // Rule 481: ConstAdditiveExpression ::= ConstMultiplicativeExpression // case 481: { //#line 1156 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1158 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstMultiplicativeExpression); break; } // // Rule 482: ConstAdditiveExpression ::= ConstAdditiveExpression + ConstMultiplicativeExpression // case 482: { //#line 1161 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1161 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1163 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.ADD, ConstMultiplicativeExpression)); break; } // // Rule 483: ConstAdditiveExpression ::= ConstAdditiveExpression - ConstMultiplicativeExpression // case 483: { //#line 1166 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1166 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1168 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.SUB, ConstMultiplicativeExpression)); break; } // // Rule 484: ConstRelationalExpression ::= ConstAdditiveExpression // case 484: { //#line 1173 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1175 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstAdditiveExpression); break; } // // Rule 485: ConstRelationalExpression ::= ConstRelationalExpression < ConstAdditiveExpression // case 485: { //#line 1178 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1178 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LT, ConstAdditiveExpression)); break; } // // Rule 486: ConstRelationalExpression ::= ConstRelationalExpression > ConstAdditiveExpression // case 486: { //#line 1183 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1183 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1185 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GT, ConstAdditiveExpression)); break; } // // Rule 487: ConstRelationalExpression ::= ConstRelationalExpression <= ConstAdditiveExpression // case 487: { //#line 1188 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1188 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1190 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LE, ConstAdditiveExpression)); break; } // // Rule 488: ConstRelationalExpression ::= ConstRelationalExpression > = ConstAdditiveExpression // case 488: { //#line 1193 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1193 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(4); //#line 1195 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GE, ConstAdditiveExpression)); break; } // // Rule 489: ConstEqualityExpression ::= ConstRelationalExpression // case 489: { //#line 1199 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstRelationalExpression); break; } // // Rule 490: ConstEqualityExpression ::= ConstEqualityExpression == ConstRelationalExpression // case 490: { //#line 1204 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1204 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1206 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.EQ, ConstRelationalExpression)); break; } // // Rule 491: ConstEqualityExpression ::= ConstEqualityExpression != ConstRelationalExpression // case 491: { //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.NE, ConstRelationalExpression)); break; } // // Rule 492: ConstAndExpression ::= ConstEqualityExpression // case 492: { //#line 1215 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1217 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstEqualityExpression); break; } // // Rule 493: ConstAndExpression ::= ConstAndExpression && ConstEqualityExpression // case 493: { //#line 1220 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1220 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(3); //#line 1222 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAndExpression, Binary.COND_AND, ConstEqualityExpression)); break; } // // Rule 494: ConstExclusiveOrExpression ::= ConstAndExpression // case 494: { //#line 1226 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1228 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstAndExpression); break; } // // Rule 495: ConstExclusiveOrExpression ::= ConstExclusiveOrExpression ^ ConstAndExpression // case 495: { //#line 1231 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1231 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(3); //#line 1233 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstExclusiveOrExpression, Binary.BIT_XOR, ConstAndExpression)); break; } // // Rule 496: ConstInclusiveOrExpression ::= ConstExclusiveOrExpression // case 496: { //#line 1237 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExclusiveOrExpression); break; } // // Rule 497: ConstInclusiveOrExpression ::= ConstInclusiveOrExpression || ConstExclusiveOrExpression // case 497: { //#line 1242 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1242 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(3); //#line 1244 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstInclusiveOrExpression, Binary.COND_OR, ConstExclusiveOrExpression)); break; } // // Rule 498: ConstExpression ::= ConstInclusiveOrExpression // case 498: { //#line 1248 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstInclusiveOrExpression); break; } // // Rule 499: ConstExpression ::= ConstInclusiveOrExpression ? ConstExpression$first : ConstExpression // case 499: { //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr first = (Expr) getRhsSym(3); //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(5); //#line 1255 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Conditional(pos(), ConstInclusiveOrExpression, first, ConstExpression)); break; } // // Rule 500: ConstFieldAccess ::= ConstPrimary . identifier // case 500: { //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1262 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(), ConstPrimary, identifier.getIdentifier())); break; } // // Rule 501: ConstFieldAccess ::= super . identifier // case 501: { //#line 1265 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 502: ConstFieldAccess ::= ClassName . super$sup . identifier // case 502: { //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1272 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 504: X10ArrayType ::= Type [ . ] // case 504: { //#line 1288 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1290 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, null)); break; } // // Rule 505: X10ArrayType ::= Type value [ . ] // case 505: { //#line 1293 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1295 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, null)); break; } // // Rule 506: X10ArrayType ::= Type [ DepParameterExpr ] // case 506: { //#line 1298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(3); //#line 1300 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, DepParameterExpr)); break; } // // Rule 507: X10ArrayType ::= Type value [ DepParameterExpr ] // case 507: { //#line 1303 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1303 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(4); //#line 1305 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, DepParameterExpr)); break; } // // Rule 508: ObjectKind ::= value // case 508: throw new Error("No action specified for rule " + 508); // // Rule 509: ObjectKind ::= reference // case 509: throw new Error("No action specified for rule " + 509); // // Rule 510: MethodModifier ::= atomic // case 510: { //#line 1319 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.ATOMIC); break; } // // Rule 511: MethodModifier ::= extern // case 511: { //#line 1324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Flags.NATIVE); break; } // // Rule 512: MethodModifier ::= safe // case 512: { //#line 1329 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 513: MethodModifier ::= sequential // case 513: { //#line 1334 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SEQUENTIAL); break; } // // Rule 514: MethodModifier ::= local // case 514: { //#line 1339 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.LOCAL); break; } // // Rule 515: MethodModifier ::= nonblocking // case 515: { //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.NON_BLOCKING); break; } // // Rule 517: ValueClassDeclaration ::= X10ClassModifiersopt value identifier PropertyListopt Superopt Interfacesopt ClassBody // case 517: { //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 1352 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 518: ValueClassDeclaration ::= X10ClassModifiersopt value class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 518: { //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(5); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(6); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(7); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(8); //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 519: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 519: { //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags ConstructorModifiersopt = (Flags) getRhsSym(1); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] ConstructorDeclarator = (Object[]) getRhsSym(2); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(3); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block ConstructorBody = (Block) getRhsSym(4); //#line 1373 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name a = (Name) ConstructorDeclarator[1]; DepParameterExpr c = (DepParameterExpr) ConstructorDeclarator[2]; List b = (List) ConstructorDeclarator[3]; Expr e = (Expr) ConstructorDeclarator[4]; setResult(nf.ConstructorDecl(pos(), ConstructorModifiersopt, a.toString(), c, b, e, Throwsopt, ConstructorBody)); break; } // // Rule 520: ConstructorDeclarator ::= SimpleTypeName DepParametersopt ( FormalParameterListopt WhereClauseopt ) // case 520: { //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name SimpleTypeName = (Name) getRhsSym(1); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(4); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(5); //#line 1383 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] a = new Object[5]; a[1] = SimpleTypeName; a[2] = DepParametersopt; a[3] = FormalParameterListopt; a[4] = WhereClauseopt; setResult(a); break; } // // Rule 521: ThisClause ::= this DepParameters // case 521: { //#line 1391 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameters = (DepParameterExpr) getRhsSym(2); //#line 1393 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParameters); break; } // // Rule 522: Super ::= extends DataType // case 522: { //#line 1397 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(2); //#line 1399 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 523: MethodDeclarator ::= identifier ( FormalParameterListopt WhereClauseopt ) // case 523: { //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(3); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(4); //#line 1405 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parsing methoddeclarator..."); Object[] a = new Object[5]; a[0] = new Name(nf, ts, pos(), identifier.getIdentifier()); a[1] = FormalParameterListopt; a[2] = new Integer(0); a[3] = WhereClauseopt; setResult(a); break; } // // Rule 524: MethodDeclarator ::= MethodDeclarator [ ] // case 524: { //#line 1415 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(1); //#line 1417 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" MethodDeclarator[2] = new Integer(((Integer) MethodDeclarator[2]).intValue() + 1); // setResult(MethodDeclarator); break; } // // Rule 525: FieldDeclaration ::= ThisClauseopt FieldModifiersopt Type VariableDeclarators ; // case 525: { //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags FieldModifiersopt = (Flags) getRhsSym(2); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List VariableDeclarators = (List) getRhsSym(4); //#line 1425 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), ClassMember.class, false); if (VariableDeclarators != null && VariableDeclarators.size() > 0) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); d.setFlag(FieldModifiersopt); l.add(nf.FieldDecl(d.position(), ThisClauseopt, d.flags, nf.array(Type, Type.position(), d.dims), d.name, d.init)); } } setResult(l); break; } // // Rule 526: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt Dims ArrayInitializer // case 526: { //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(4); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ArrayInit ArrayInitializer = (ArrayInit) getRhsSym(5); //#line 1461 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Dims.intValue(), ArrayInitializer)); break; } // // Rule 527: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr Dims // case 527: { //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(5); //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Collections.singletonList(DimExpr), Dims.intValue())); break; } // // Rule 528: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr DimExprs Dimsopt // case 528: { //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List DimExprs = (List) getRhsSym(5); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dimsopt = (Integer) getRhsSym(6); //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); l.addAll(DimExprs); setResult(nf.NewArray(pos(), ArrayBaseType, l, Dimsopt.intValue())); break; } // // Rule 529: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] // case 529: { //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1482 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, null)); break; } // // Rule 530: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression$distr ] Expression$initializer // case 530: { //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr distr = (Expr) getRhsSym(6); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr initializer = (Expr) getRhsSym(8); //#line 1487 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, distr, initializer)); break; } // // Rule 531: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] ($lparen FormalParameter ) MethodBody // case 531: { //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken lparen = (IToken) getRhsIToken(8); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(9); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(11); //#line 1492 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr initializer = makeInitializer( pos(getRhsFirstTokenIndex(8), getRightSpan()), ArrayBaseType, FormalParameter, MethodBody ); setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, initializer)); break; } // // Rule 532: Valueopt ::= $Empty // case 532: setResult(null); break; // // Rule 533: Valueopt ::= value // case 533: { //#line 1501 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 536: ArrayBaseType ::= nullable < Type > // case 536: { //#line 1508 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1510 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Nullable(pos(), Type)); break; } // // Rule 537: ArrayBaseType ::= future < Type > // case 537: { //#line 1513 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1515 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 538: ArrayBaseType ::= ( Type ) // case 538: { //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1520 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Type); break; } // // Rule 539: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 539: { //#line 1524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1526 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), ExpressionName.toExpr(), (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), ExpressionName.toExpr(), ArgumentList)); break; } // // Rule 540: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 540: { //#line 1531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PrimaryNoNewArray = (Expr) getRhsSym(1); //#line 1531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1533 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), PrimaryNoNewArray, (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), PrimaryNoNewArray, ArgumentList)); break; } // // Rule 557: NowStatement ::= now ( Clock ) Statement // case 557: { //#line 1559 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1559 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1561 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, Statement)); break; } // // Rule 558: ClockedClause ::= clocked ( ClockList ) // case 558: { //#line 1565 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(3); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ClockList); break; } // // Rule 559: AsyncStatement ::= async PlaceExpressionSingleListopt ClockedClauseopt Statement // case 559: { //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(4); //#line 1573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, Statement)); break; } // // Rule 560: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 560: { //#line 1581 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1581 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(3); //#line 1583 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Statement)); break; } // // Rule 561: WhenStatement ::= when ( Expression ) Statement // case 561: { //#line 1590 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1590 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1592 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, Statement)); break; } // // Rule 562: WhenStatement ::= WhenStatement or$or ( Expression ) Statement // case 562: { //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(6); //#line 1597 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, Statement); setResult(WhenStatement); break; } // // Rule 563: ForEachStatement ::= foreach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 563: { //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1604 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 564: AtEachStatement ::= ateach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 564: { //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1614 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 565: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 565: { //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(7); //#line 1624 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, Statement)); break; } // // Rule 566: FinishStatement ::= finish Statement // case 566: { //#line 1631 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(2); //#line 1633 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), Statement)); break; } // // Rule 567: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 567: { //#line 1638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1640 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, StatementNoShortIf)); break; } // // Rule 568: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt ClockedClauseopt StatementNoShortIf // case 568: { //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(4); //#line 1646 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 569: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 569: { //#line 1653 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1655 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), nf.Here(pos(getLeftSpan())), StatementNoShortIf)); break; } // // Rule 570: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 570: { //#line 1659 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1659 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1661 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, StatementNoShortIf)); break; } // // Rule 571: WhenStatementNoShortIf ::= WhenStatement or$or ( Expression ) StatementNoShortIf // case 571: { //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(6); //#line 1666 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, StatementNoShortIf); setResult(WhenStatement); break; } // // Rule 572: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 572: { //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1673 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 573: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 573: { //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1684 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 574: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 574: { //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(7); //#line 1694 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, StatementNoShortIf)); break; } // // Rule 575: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 575: { //#line 1701 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1703 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), StatementNoShortIf)); break; } // // Rule 576: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 576: { //#line 1708 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpression = (Expr) getRhsSym(2); //#line 1710 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(PlaceExpression); break; } // // Rule 578: NextStatement ::= next ; // case 578: { //#line 1718 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Next(pos())); break; } // // Rule 579: AwaitStatement ::= await Expression ; // case 579: { //#line 1722 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(2); //#line 1724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Await(pos(), Expression)); break; } // // Rule 580: ClockList ::= Clock // case 580: { //#line 1728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(1); //#line 1730 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Clock); setResult(l); break; } // // Rule 581: ClockList ::= ClockList , Clock // case 581: { //#line 1735 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(1); //#line 1735 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1737 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClockList.add(Clock); setResult(ClockList); break; } // // Rule 582: Clock ::= Expression // case 582: { //#line 1743 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(1); //#line 1745 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Expression); break; } // // Rule 583: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 583: { //#line 1755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(4); //#line 1757 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Cast(pos(), Type, UnaryExpressionNotPlusMinus)); break; } // // Rule 584: CastExpression ::= ( @ Expression ) UnaryExpressionNotPlusMinus // case 584: { //#line 1760 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1760 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(5); //#line 1762 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.PlaceCast(pos(), Expression, UnaryExpressionNotPlusMinus)); break; } // // Rule 585: RelationalExpression ::= RelationalExpression instanceof Type // case 585: { //#line 1772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1774 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Instanceof(pos(), RelationalExpression, Type)); break; } // // Rule 586: IdentifierList ::= identifier // case 586: { //#line 1780 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1782 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Name.class, false); l.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(l); break; } // // Rule 587: IdentifierList ::= IdentifierList , identifier // case 587: { //#line 1787 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List IdentifierList = (List) getRhsSym(1); //#line 1787 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1789 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IdentifierList.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(IdentifierList); break; } // // Rule 588: Primary ::= here // case 588: { //#line 1796 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(((X10NodeFactory) nf).Here(pos()));//// A "here" expression used to be treated as an ExpressionName instead// of as a primary.//// setResult(new Name(nf, ts, pos(), "here"){// public Expr toExpr() {// return ((X10NodeFactory) nf).Here(pos);// }// }); break; } // // Rule 591: RegionExpression ::= Expression$expr1 : Expression$expr2 // case 591: { //#line 1812 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1812 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1814 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" /*Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(expr1); l.add(expr2); Call regionCall = nf.Call( pos(), x10LangRegionFactoryRegion.prefix.toReceiver(), "region", l ); */ Call regionCall = nf.RegionMaker(pos(), expr1, expr2); setResult(regionCall); break; } // // Rule 592: RegionExpressionList ::= RegionExpression // case 592: { //#line 1830 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(1); //#line 1832 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(RegionExpression); setResult(l); break; } // // Rule 593: RegionExpressionList ::= RegionExpressionList , RegionExpression // case 593: { //#line 1837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(1); //#line 1837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(3); //#line 1839 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" RegionExpressionList.add(RegionExpression); //setResult(RegionExpressionList); break; } // // Rule 594: Primary ::= [ RegionExpressionList ] // case 594: { //#line 1844 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(2); //#line 1846 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); Name x10LangPoint = new Name(nf, ts, pos(), x10Lang, "point"); Name x10LangPointFactory = new Name(nf, ts, pos(), x10LangPoint, "factory"); Name x10LangPointFactoryPoint = new Name(nf, ts, pos(), x10LangPointFactory, "point"); Tuple tuple = nf.Tuple(pos(), x10LangPointFactoryPoint, x10LangRegionFactoryRegion, RegionExpressionList); setResult(tuple); break; } // // Rule 595: AssignmentExpression ::= Expression$expr1 -> Expression$expr2 // case 595: { //#line 1860 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1860 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1862 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ConstantDistMaker call = nf.ConstantDistMaker(pos(), expr1, expr2); setResult(call); break; } // // Rule 596: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 596: { //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1869 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Expression)); break; } // // Rule 597: FieldModifier ::= mutable // case 597: { //#line 1877 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.MUTABLE); break; } // // Rule 598: FieldModifier ::= const // case 598: { //#line 1882 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 599: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 599: throw new Error("No action specified for rule " + 599); // // Rule 600: MethodInvocation ::= MethodName ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 600: throw new Error("No action specified for rule " + 600); // // Rule 601: MethodInvocation ::= Primary . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 601: throw new Error("No action specified for rule " + 601); // // Rule 602: MethodInvocation ::= super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 602: throw new Error("No action specified for rule " + 602); // // Rule 603: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 603: throw new Error("No action specified for rule " + 603); // // Rule 604: MethodInvocation ::= TypeName . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 604: throw new Error("No action specified for rule " + 604); // // Rule 605: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 605: throw new Error("No action specified for rule " + 605); // // Rule 606: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 606: throw new Error("No action specified for rule " + 606); // // Rule 607: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 607: throw new Error("No action specified for rule " + 607); // // Rule 608: MethodModifier ::= synchronized // case 608: { //#line 1913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "\"synchronized\" is an invalid X10 Method Modifier"); setResult(Flags.SYNCHRONIZED); break; } // // Rule 609: FieldModifier ::= volatile // case 609: { //#line 1922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "\"volatile\" is an invalid X10 Field Modifier"); setResult(Flags.VOLATILE); break; } // // Rule 610: SynchronizedStatement ::= synchronized ( Expression ) Block // case 610: { //#line 1929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block Block = (Block) getRhsSym(5); //#line 1931 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "Synchronized Statement is invalid in X10"); setResult(nf.Synchronized(pos(), Expression, Block)); break; } // // Rule 611: ThisClauseopt ::= $Empty // case 611: setResult(null); break; // // Rule 613: PlaceTypeSpecifieropt ::= $Empty // case 613: setResult(null); break; // // Rule 615: DepParametersopt ::= $Empty // case 615: setResult(null); break; // // Rule 617: PropertyListopt ::= $Empty // case 617: setResult(null); break; // // Rule 619: WhereClauseopt ::= $Empty // case 619: setResult(null); break; // // Rule 621: ObjectKindopt ::= $Empty // case 621: setResult(null); break; // // Rule 623: ArrayInitializeropt ::= $Empty // case 623: setResult(null); break; // // Rule 625: PlaceExpressionSingleListopt ::= $Empty // case 625: setResult(null); break; // // Rule 627: ArgumentListopt ::= $Empty // case 627: setResult(null); break; // // Rule 629: X10ClassModifiersopt ::= $Empty // case 629: { //#line 1977 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(Flags.NONE)); break; } // // Rule 631: DepParametersopt ::= $Empty // case 631: setResult(null); break; // // Rule 633: Unsafeopt ::= $Empty // case 633: setResult(null); break; // // Rule 634: Unsafeopt ::= unsafe // case 634: { //#line 1989 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 635: ParamIdopt ::= $Empty // case 635: setResult(null); break; // // Rule 636: ParamIdopt ::= identifier // case 636: { //#line 1996 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1998 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 637: ClockedClauseopt ::= $Empty // case 637: { //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(new TypedList(new LinkedList(), Expr.class, false)); break; } default: break; } return; }
1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/13a8963410bb8c85885791a761267a089892a2fc/X10Parser.java/clean/x10.compiler/src/x10/parser/X10Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 21036, 493, 33, 21036, 263, 1068, 548, 54...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 21036, 493, 33, 21036, 263, 1068, 548, 54...
private void resolveOnlyWeaponAttacks() { Vector results = new Vector(game.actionsSize()); // loop thru received attack actions, getting weapon results for (Enumeration i = game.getActions(); i.hasMoreElements();) { Object o = i.nextElement(); if (o instanceof WeaponAttackAction) { WeaponAttackAction waa = (WeaponAttackAction)o; results.addElement(preTreatWeaponAttack(waa)); } } // loop through weapon results and resolve int cen = Entity.NONE; for (Enumeration i = results.elements(); i.hasMoreElements();) { WeaponResult wr = (WeaponResult)i.nextElement(); resolveWeaponAttack(wr, cen); cen = wr.waa.getEntityId(); } // and clear the attacks Vector game.resetActions(); }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/1ecffa782704db8af19ae40d43a2c0659881281b/Server.java/buggy/megamek/src/megamek/server/Server.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2245, 3386, 3218, 28629, 3075, 22098, 1435, 288, 3639, 5589, 1686, 273, 394, 5589, 12, 13957, 18, 4905, 1225, 10663, 7734, 368, 2798, 286, 8653, 5079, 13843, 4209, 16, 8742, 732,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2245, 3386, 3218, 28629, 3075, 22098, 1435, 288, 3639, 5589, 1686, 273, 394, 5589, 12, 13957, 18, 4905, 1225, 10663, 7734, 368, 2798, 286, 8653, 5079, 13843, 4209, 16, 8742, 732,...
for (Iterator names = modifiedWCProps.keySet().iterator(); names.hasNext();) {
for (Iterator names = modifiedWCProps.keySet().iterator(); names.hasNext();) {
public void logChangedWCProperties(String name, Map modifiedWCProps) throws SVNException { if (modifiedWCProps != null) { Map command = new HashMap(); command.put(SVNLog.NAME_ATTR, name); for (Iterator names = modifiedWCProps.keySet().iterator(); names.hasNext();) { String propName = (String) names.next(); String propValue = (String) modifiedWCProps.get(propName); command.put(SVNLog.PROPERTY_NAME_ATTR, propName); if (propValue != null) { command.put(SVNLog.PROPERTY_VALUE_ATTR, propValue); } else { command.remove(SVNLog.PROPERTY_VALUE_ATTR); } addCommand(SVNLog.MODIFY_WC_PROPERTY, command, false); } } }
5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/8e9f923366b989c3c62646476940df918b6a732b/SVNLog.java/clean/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNLog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 613, 5033, 59, 39, 2297, 12, 780, 508, 16, 1635, 4358, 59, 39, 5047, 13, 1216, 29537, 50, 503, 288, 3639, 309, 261, 7342, 59, 39, 5047, 480, 446, 13, 288, 5411, 1635, 1296,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 613, 5033, 59, 39, 2297, 12, 780, 508, 16, 1635, 4358, 59, 39, 5047, 13, 1216, 29537, 50, 503, 288, 3639, 309, 261, 7342, 59, 39, 5047, 480, 446, 13, 288, 5411, 1635, 1296,...