rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
Context cx = Context.getCurrentContext(); | private static NativeDate checkInstance(Scriptable obj, Function funObj) { if (obj == null || !(obj instanceof NativeDate)) { Context cx = Context.getCurrentContext(); String name = ((NativeFunction) funObj).names[0]; String msg = Context.getMessage1("msg.incompat.call", name); throw NativeGlobal.constructError(cx, "TypeError", msg, funObj); } return (NativeDate) obj; } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/389c4e220eb65fcf55f31adcbb6a3038075ee691/NativeDate.java/clean/js/rhino/org/mozilla/javascript/NativeDate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
16717,
1626,
866,
1442,
12,
3651,
429,
1081,
16,
4766,
5411,
4284,
9831,
2675,
13,
288,
3639,
309,
261,
2603,
422,
446,
747,
401,
12,
2603,
1276,
16717,
1626,
3719,
288,
15604,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16717,
1626,
866,
1442,
12,
3651,
429,
1081,
16,
4766,
5411,
4284,
9831,
2675,
13,
288,
3639,
309,
261,
2603,
422,
446,
747,
401,
12,
2603,
1276,
16717,
1626,
3719,
288,
15604,... | |
stub.addChangeListener(listener2); | observable.addChangeListener(listener2); | public void testChangeListener() throws Exception { assertFalse(stub.hasListeners()); ChangeListener listener1 = new ChangeListener(); assertFalse(stub.firstListenerAdded); stub.addChangeListener(listener1); assertTrue(stub.firstListenerAdded); stub.firstListenerAdded = false; assertTrue(stub.hasListeners()); assertEquals(0, listener1.count); stub.fireChange(); assertEquals(1, listener1.count); assertSame(stub, listener1.source); //Add a second listener as the 1 vs. 2 listener code is different. ChangeListener listener2 = new ChangeListener(); stub.addChangeListener(listener2); assertEquals(0, listener2.count); stub.fireChange(); assertEquals(2, listener1.count); assertEquals(1, listener2.count); //Add a third listener as the 2 vs. 3 or greater code is different. ChangeListener listener3 = new ChangeListener(); stub.addChangeListener(listener3); assertEquals(0, listener3.count); stub.fireChange(); assertEquals(3, listener1.count); assertEquals(2, listener2.count); assertEquals(1, listener3.count); assertFalse(stub.lastListenerRemoved); stub.removeChangeListener(listener1); stub.removeChangeListener(listener2); stub.removeChangeListener(listener3); assertTrue(stub.lastListenerRemoved); assertFalse(stub.hasListeners()); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/c8f2cc5874f2e6247a2cbb9878a80029b7203e0a/AbstractObservableTest.java/buggy/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/internal/databinding/provisional/observable/AbstractObservableTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
15744,
1435,
1216,
1185,
288,
202,
202,
11231,
8381,
12,
12847,
18,
5332,
5583,
10663,
9506,
202,
15744,
2991,
21,
273,
394,
7576,
2223,
5621,
9506,
202,
11231,
8381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15744,
1435,
1216,
1185,
288,
202,
202,
11231,
8381,
12,
12847,
18,
5332,
5583,
10663,
9506,
202,
15744,
2991,
21,
273,
394,
7576,
2223,
5621,
9506,
202,
11231,
8381,
... |
ChemObject chemObject = new ChemObject(); | ChemObject chemObject = builder.newChemObject(); | public void testClone() { ChemObject chemObject = new ChemObject(); chemObject.setFlag(3, true); // test cloning of itself Object clone = chemObject.clone(); assertTrue(clone instanceof ChemObject); } | 45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/2569471249d8066c9cb1c037569a570e039ed288/ChemObjectTest.java/clean/src/org/openscience/cdk/test/ChemObjectTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
10930,
1435,
288,
3639,
26542,
921,
19028,
921,
273,
2089,
18,
2704,
20200,
921,
5621,
3639,
19028,
921,
18,
542,
4678,
12,
23,
16,
638,
1769,
7734,
368,
1842,
927,
22470... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10930,
1435,
288,
3639,
26542,
921,
19028,
921,
273,
2089,
18,
2704,
20200,
921,
5621,
3639,
19028,
921,
18,
542,
4678,
12,
23,
16,
638,
1769,
7734,
368,
1842,
927,
22470... |
throws Exception | throws IOException | protected void processPluginDescriptor( MojoDescriptor mojoDescriptor, String destinationDirectory ) throws Exception { String id = mojoDescriptor.getId(); FileWriter writer = new FileWriter( new File( destinationDirectory, id + "-plugin.xml" ) ); XMLWriter w = new PrettyPrintXMLWriter( writer ); w.startElement( "document" ); // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- w.startElement( "properties" ); w.startElement( "title" ); w.writeText( "Documentation for the " + mojoDescriptor.getId() + " plugin." ); w.endElement(); w.startElement( "author" ); w.addAttribute( "email", "dev@maven.apache.org" ); w.writeText( "Maven development team." ); w.endElement(); w.endElement(); // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- w.startElement( "section" ); w.addAttribute( "name", "Goals" ); w.startElement( "p" ); w.writeText( "The goals for the " + mojoDescriptor.getId() + " are as follows:" ); w.endElement(); // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- w.startElement( "subsection" ); w.addAttribute( "name", mojoDescriptor.getGoal() ); if ( mojoDescriptor.getDescription() != null ) { w.startElement( "p" ); w.writeText( mojoDescriptor.getDescription() ); w.endElement(); } w.startElement( "p" ); w.writeText( "These parameters for this goal: " ); w.endElement(); writeGoalParameterTable( mojoDescriptor, w ); w.endElement(); // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- w.endElement(); // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- w.endElement(); writer.flush(); writer.close(); } | 50542 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50542/24c6328ad361f8e709e2b3fddefd9cde220a0628/PluginXdocGenerator.java/clean/maven-plugin-tools/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/generator/PluginXdocGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1207,
3773,
3187,
12,
15931,
3187,
312,
10007,
3187,
16,
514,
2929,
2853,
262,
3639,
1216,
1860,
565,
288,
3639,
514,
612,
273,
312,
10007,
3187,
18,
26321,
5621,
3639,
24639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1207,
3773,
3187,
12,
15931,
3187,
312,
10007,
3187,
16,
514,
2929,
2853,
262,
3639,
1216,
1860,
565,
288,
3639,
514,
612,
273,
312,
10007,
3187,
18,
26321,
5621,
3639,
24639,
... |
private void drawRoute() { Route route = m_route; if(route == null) return; Graphics2D graphics = (Graphics2D) getOffscreenGraphics(); graphics.setStroke(new BasicStroke(3.5f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND)); graphics.setPaint(Color.red); graphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); Territory current = route.getStart(); Point start = (Point) m_centers.get(current); Ellipse2D oval = new Ellipse2D.Double(start.x - 3, start.y - 3, 6,6); graphics.draw(oval); for(int i = 0; i < route.getLength(); i++) { Territory next = route.at(i); start = (Point) m_centers.get(current); start = new Point(start.x, start.y); Point finish = (Point) m_centers.get(next); finish = new Point(finish.x, finish.y); Shape line = new Line2D.Double(start.x, start.y, finish.x, finish.y); graphics.draw(line ); oval = new Ellipse2D.Double(finish.x - 3, finish.y - 3, 6,6); graphics.draw(oval); current = next; } graphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_DEFAULT); } | 8909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8909/6d4902f6fb4cc244abe3aaada952f389c483c4fe/MapPanel.java/clean/triplea/src/games/strategy/triplea/ui/MapPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3724,
3255,
1435,
202,
95,
202,
202,
3255,
1946,
273,
312,
67,
5547,
31,
202,
202,
430,
12,
5547,
422,
446,
13,
1082,
202,
2463,
31,
9506,
202,
17558,
22,
40,
17313,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3724,
3255,
1435,
202,
95,
202,
202,
3255,
1946,
273,
312,
67,
5547,
31,
202,
202,
430,
12,
5547,
422,
446,
13,
1082,
202,
2463,
31,
9506,
202,
17558,
22,
40,
17313,
2... | ||
ProbabilisticTimer timer) { | ProbabilisticTimer timer, Object key) { | boolean scheduleHash(byte[] C, byte[] V, CachedUrlSet urlSet, ProbabilisticTimer timer) { MessageDigest hasher = null; try { hasher = MessageDigest.getInstance(HASH_ALGORITHM); } catch (NoSuchAlgorithmException ex) { return false; } hasher.update(C, 0, C.length); hasher.update(V, 0, V.length); return HashService.hashNames(urlSet, hasher, timer, new HashCallback(), this); } | 8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/4e2c0bcca126e1326f7b6f953992d98b5f61682e/NamePoll.java/clean/src/org/lockss/poller/NamePoll.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1250,
4788,
2310,
12,
7229,
8526,
385,
16,
1160,
8526,
776,
16,
15771,
1489,
694,
880,
694,
16,
15604,
14610,
22681,
5846,
6777,
5441,
16,
1033,
498,
13,
288,
565,
22485,
15764,
273,
446,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1250,
4788,
2310,
12,
7229,
8526,
385,
16,
1160,
8526,
776,
16,
15771,
1489,
694,
880,
694,
16,
15604,
14610,
22681,
5846,
6777,
5441,
16,
1033,
498,
13,
288,
565,
22485,
15764,
273,
446,... |
in = new DataInputStream( new BufferedInputStream(new FileInputStream(id), 4096)); fileLength = in.available(); | in = new RandomAccessFile(id, "r"); | protected void initFile(String id) throws FormatException, IOException { super.initFile(id); in = new DataInputStream( new BufferedInputStream(new FileInputStream(id), 4096)); fileLength = in.available(); offsets = new Vector(); byte[] list = new byte[4]; String listString; type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (type.equals("RIFF")) { bigChunkSize = size; if (!fcc.equals("AVI ")) { whine("Sorry, AVI RIFF format not found."); } } else { whine("Not an AVI file"); } in.mark(200); while (in.read(list) == 4) { in.reset(); listString = new String(list); if (listString.equals("JUNK")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("JUNK")) { in.skipBytes(size); } } else if (listString.equals("LIST")) { in.mark(100); type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); in.reset(); if (fcc.equals("hdrl")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (type.equals("LIST")) { if (fcc.equals("hdrl")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("avih")) { in.mark(200); dwMicroSecPerFrame = DataTools.read4SignedBytes(in, little); dwMaxBytesPerSec = DataTools.read4SignedBytes(in, little); dwReserved1 = DataTools.read4SignedBytes(in, little); dwFlags = DataTools.read4SignedBytes(in, little); dwTotalFrames = DataTools.read4SignedBytes(in, little); dwInitialFrames = DataTools.read4SignedBytes(in, little); dwStreams = DataTools.read4SignedBytes(in, little); dwSuggestedBufferSize = DataTools.read4SignedBytes(in, little); dwWidth = DataTools.read4SignedBytes(in, little); dwHeight = DataTools.read4SignedBytes(in, little); dwScale = DataTools.read4SignedBytes(in, little); dwRate = DataTools.read4SignedBytes(in, little); dwStart = DataTools.read4SignedBytes(in, little); dwLength = DataTools.read4SignedBytes(in, little); metadata.put("Microseconds per frame", new Integer(dwMicroSecPerFrame)); metadata.put("Max. bytes per second", new Integer(dwMaxBytesPerSec)); metadata.put("Total frames", new Integer(dwTotalFrames)); metadata.put("Initial frames", new Integer(dwInitialFrames)); metadata.put("Frame width", new Integer(dwWidth)); metadata.put("Frame height", new Integer(dwHeight)); metadata.put("Scale factor", new Integer(dwScale)); metadata.put("Frame rate", new Integer(dwRate)); metadata.put("Start time", new Integer(dwStart)); metadata.put("Length", new Integer(dwLength)); in.reset(); in.skipBytes(size); } } } } else if (fcc.equals("strl")) { long startPos = fileLength - in.available(); long streamSize = size; type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (type.equals("LIST")) { if (fcc.equals("strl")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("strh")) { in.mark(200); String fccStreamTypeOld = fccStreamType; fccStreamType = readStringBytes(); if (!fccStreamType.equals("vids")) { fccStreamType = fccStreamTypeOld; } fccStreamHandler = readStringBytes(); dwStreamFlags = DataTools.read4SignedBytes(in, little); dwStreamReserved1 = DataTools.read4SignedBytes(in, little); dwStreamInitialFrames = DataTools.read4SignedBytes(in, little); dwStreamScale = DataTools.read4SignedBytes(in, little); dwStreamRate = DataTools.read4SignedBytes(in, little); dwStreamStart = DataTools.read4SignedBytes(in, little); dwStreamLength = DataTools.read4SignedBytes(in, little); dwStreamSuggestedBufferSize = DataTools.read4SignedBytes(in, little); dwStreamQuality = DataTools.read4SignedBytes(in, little); dwStreamSampleSize = DataTools.read4SignedBytes(in, little); metadata.put("Stream quality", new Integer(dwStreamQuality)); metadata.put("Stream sample size", new Integer(dwStreamSampleSize)); in.reset(); in.skipBytes(size); } type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("strf")) { in.mark(300); bmpSize = DataTools.read4SignedBytes(in, little); bmpWidth = DataTools.read4SignedBytes(in, little); bmpHeight = DataTools.read4SignedBytes(in, little); bmpPlanes = DataTools.read2SignedBytes(in, little); bmpBitsPerPixel = DataTools.read2SignedBytes(in, little); bmpCompression = DataTools.read4SignedBytes(in, little); bmpSizeOfBitmap = DataTools.read4SignedBytes(in, little); bmpHorzResolution = DataTools.read4SignedBytes(in, little); bmpVertResolution = DataTools.read4SignedBytes(in, little); bmpColorsUsed = DataTools.read4SignedBytes(in, little); bmpColorsImportant = DataTools.read4SignedBytes(in, little); bmpTopDown = (bmpHeight < 0); bmpNoOfPixels = bmpWidth * bmpHeight; metadata.put("Bitmap compression value", new Integer(bmpCompression)); metadata.put("Horizontal resolution", new Integer(bmpHorzResolution)); metadata.put("Vertical resolution", new Integer(bmpVertResolution)); metadata.put("Number of colors used", new Integer(bmpColorsUsed)); metadata.put("Bits per pixel", new Integer(bmpBitsPerPixel)); // scan line is padded with zeros to be a multiple of 4 bytes int npad = bmpWidth % 4; if (npad > 0) npad = 4 - npad; bmpScanLineSize = (bmpWidth + npad) * (bmpBitsPerPixel / 8); if (bmpSizeOfBitmap != 0) { bmpActualSize = bmpSizeOfBitmap; } else { // a value of 0 doesn't mean 0 -- it means we have // to calculate it bmpActualSize = bmpScanLineSize * bmpHeight; } if (bmpColorsUsed != 0) { bmpActualColorsUsed = bmpColorsUsed; } else { // a value of 0 means we determine this based on the // bits per pixel if (bmpBitsPerPixel < 16) { bmpActualColorsUsed = 1 << bmpBitsPerPixel; } else { // no palette bmpActualColorsUsed = 0; } } if (bmpCompression != 0) { whine("Sorry, compressed AVI files not supported."); } if (!(bmpBitsPerPixel == 8 || bmpBitsPerPixel == 24 || bmpBitsPerPixel == 32)) { whine("Sorry, " + bmpBitsPerPixel + " bits per pixel not " + "supported"); } if (bmpActualColorsUsed != 0) { // read the palette pr = new byte[bmpColorsUsed]; pg = new byte[bmpColorsUsed]; pb = new byte[bmpColorsUsed]; for (int i=0; i<bmpColorsUsed; i++) { pb[i] = (byte) in.read(); pg[i] = (byte) in.read(); pr[i] = (byte) in.read(); in.read(); } } in.reset(); in.skipBytes(size); } } in.mark(100); type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("strd")) { in.skipBytes(size); } else { in.reset(); } in.mark(100); type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("strn")) { in.skipBytes(size); } else { in.reset(); } } in = new DataInputStream( new BufferedInputStream(new FileInputStream(id), 4096)); in.skipBytes((int) (startPos + 8 + streamSize)); } else if (fcc.equals("movi")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (type.equals("LIST")) { if (fcc.equals("movi")) { in.mark(100); type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (!(type.equals("LIST") && fcc.equals("rec "))) { in.reset(); } in.mark(10); type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); while (type.substring(2).equals("db") || type.substring(2).equals("dc") || type.substring(2).equals("wb")) { if (type.substring(2).equals("db") || type.substring(2).equals("dc")) { offsets.add(new Long(fileLength - in.available())); in.skipBytes(bmpHeight * bmpScanLineSize); } in.mark(10); type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("JUNK")) { in.skipBytes(size); in.mark(10); type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); } } in.reset(); } } } else { // skipping unknown block in.skipBytes(8 + size); } } else { // skipping unknown block type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); in.skipBytes(size); } in.mark(200); } numImages = offsets.size(); initOMEMetadata(); in = new DataInputStream( new BufferedInputStream(new FileInputStream(id), 4096)); } | 55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/a4d6fe10f79636baabec0b085328df83170bca33/AVIReader.java/clean/loci/formats/AVIReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
316,
273,
394,
29382,
12,
1377,
394,
24742,
12,
2704,
11907,
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,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
316,
273,
394,
29382,
12,
1377,
394,
24742,
12,
2704,
11907,
12,
... |
Token xsp; xsp = jj_scanpos; if (jj_3_6()) { jj_scanpos = xsp; if (jj_3R_200()) { jj_scanpos = xsp; if (jj_scan_token(80)) return true; } } | if (jj_3R_200()) return true; | final private boolean jj_3R_187() { Token xsp; xsp = jj_scanpos; if (jj_3_6()) { jj_scanpos = xsp; if (jj_3R_200()) { jj_scanpos = xsp; if (jj_scan_token(80)) return true; } } return false; } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/30dbed0065b5a20aa4e60ae16f7a8e47197c4cee/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
2643,
27,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
67,
26,
10756,
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,
727,
3238,
1250,
10684,
67,
23,
54,
67,
2643,
27,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
67,
26,
10756,
2... |
((MNamespace) handle).removeOwnedElement((MModelElement) value); | ((MNamespace) handle).removeOwnedElement((MModelElement) value); | public static void removeOwnedElement(Object handle, Object value) { if (handle instanceof MNamespace && value instanceof MModelElement) { ((MNamespace) handle).removeOwnedElement((MModelElement) value); } throw new IllegalArgumentException("Unrecognized object " + handle + " or " + value); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/23464f9cbc3169e9d2f1919998cae2c59b514985/ModelFacade.java/buggy/src_new/org/argouml/model/ModelFacade.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1206,
5460,
329,
1046,
12,
921,
1640,
16,
1033,
460,
13,
288,
3639,
309,
261,
4110,
1276,
490,
3402,
597,
460,
1276,
490,
1488,
1046,
13,
288,
5411,
14015,
49,
3402,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1206,
5460,
329,
1046,
12,
921,
1640,
16,
1033,
460,
13,
288,
3639,
309,
261,
4110,
1276,
490,
3402,
597,
460,
1276,
490,
1488,
1046,
13,
288,
5411,
14015,
49,
3402,
13,... |
File fout = new File(XmlFile.prefsDir()+LocoFile.fileLocation+mToEntry.getFileName()); | File fout = new File(LocoFile.getFileLocation()+mToEntry.getFileName()); | boolean doTransfer() { // read the file for the "from" entry, create a new entry, write it out // ensure preferences will be found for read XmlFile.ensurePrefsPresent(XmlFile.prefsDir()); XmlFile.ensurePrefsPresent(XmlFile.prefsDir()+LocoFile.fileLocation); // locate the file File f = new File(mFullFromFilename); // read it LocoFile lf = new LocoFile(); // used as a temporary Element lroot = null; try { lroot = lf.rootFromFile(mFromFile); } catch (Exception e) { log.error("Exception while loading loco XML file: "+mFullFromFilename+" exception: "+e); return false; } // create a new entry from XML info - find the element Element loco = lroot.getChild("locomotive"); mToEntry = new RosterEntry(loco); // set the filename from the ID mToEntry.setId(mToID); mToEntry.ensureFilenameExists(); // transfer the contents to a new file LocoFile newLocoFile = new LocoFile(); File fout = new File(XmlFile.prefsDir()+LocoFile.fileLocation+mToEntry.getFileName()); newLocoFile.writeFile(fout, lroot, mToEntry); return true; } | 2652 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2652/2ce666c09cb5eb0a805ee5c8f311f418219a5b68/ImportRosterItemAction.java/clean/jmri/jmrit/roster/ImportRosterItemAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
741,
5912,
1435,
288,
3639,
368,
855,
326,
585,
364,
326,
315,
2080,
6,
1241,
16,
752,
279,
394,
1241,
16,
1045,
518,
596,
3639,
368,
3387,
12750,
903,
506,
1392,
364,
855,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
741,
5912,
1435,
288,
3639,
368,
855,
326,
585,
364,
326,
315,
2080,
6,
1241,
16,
752,
279,
394,
1241,
16,
1045,
518,
596,
3639,
368,
3387,
12750,
903,
506,
1392,
364,
855,
3639,
... |
protected IASTSwitchStatement createSwitchStatement() { | protected ICPPASTSwitchStatement createSwitchStatement() { | protected IASTSwitchStatement createSwitchStatement() { return new CPPASTSwitchStatement(); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/629a1ea3503ba3daeba179a4d60e3d224c902349/GNUCPPSourceParser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/GNUCPPSourceParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
467,
4258,
4066,
882,
10200,
3406,
752,
10200,
3406,
1435,
288,
3639,
327,
394,
5181,
4066,
882,
10200,
3406,
5621,
565,
289,
2,
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,
377,
4750,
467,
4258,
4066,
882,
10200,
3406,
752,
10200,
3406,
1435,
288,
3639,
327,
394,
5181,
4066,
882,
10200,
3406,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return internalUser.isActive(); } | return internalUser.isActive(); } | public boolean isActive() { return internalUser.isActive(); } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/2b8ca505bb7abac1b4914c5928bf113f742f3bbb/UserBean.java/clean/server/src/com/imcode/imcms/UserBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
1250,
15083,
1435,
288,
1377,
327,
2713,
1299,
18,
291,
3896,
5621,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
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,
565,
1071,
1250,
15083,
1435,
288,
1377,
327,
2713,
1299,
18,
291,
3896,
5621,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
name += " : "; name += tDecl.getTypeName(); | name.append(" : "); name.append(tDecl.getTypeName()); | public String getText(Object element) { if (element instanceof ICElement) { ICElement celem= (ICElement)element; String name = ""; switch(celem.getElementType()){ case ICElement.C_FIELD: case ICElement.C_VARIABLE: case ICElement.C_VARIABLE_DECLARATION: IVariableDeclaration vDecl = (IVariableDeclaration) celem; name = vDecl.getElementName(); if((vDecl.getTypeName() != null) &&(vDecl.getTypeName().length() > 0)){ name += " : "; name += vDecl.getTypeName(); } break; case ICElement.C_FUNCTION: case ICElement.C_FUNCTION_DECLARATION: case ICElement.C_METHOD: case ICElement.C_METHOD_DECLARATION: IFunctionDeclaration fDecl = (IFunctionDeclaration) celem; name = fDecl.getSignature(); if((fDecl.getReturnType() != null) &&(fDecl.getReturnType().length() > 0)){ name += " : "; name += fDecl.getReturnType(); } break; case ICElement.C_STRUCT: case ICElement.C_UNION: case ICElement.C_ENUMERATION: if((celem.getElementName() != null) && (celem.getElementName().length() > 0)){ name = celem.getElementName(); } else if (celem instanceof IVariableDeclaration) { IVariableDeclaration varDecl = (IVariableDeclaration) celem; name = varDecl.getTypeName(); } break; case ICElement.C_TYPEDEF: ITypeDef tDecl = (ITypeDef) celem; name = tDecl.getElementName(); if((tDecl.getTypeName() != null) &&(tDecl.getTypeName().length() > 0)){ name += " : "; name += tDecl.getTypeName(); } break; case ICElement.C_NAMESPACE: if((celem.getElementName() != null) && (celem.getElementName().length() > 0)){ name = celem.getElementName(); } else if (celem instanceof INamespace) { INamespace nDecl = (INamespace) celem; name = nDecl.getTypeName(); } break; default: name= celem.getElementName(); break; } if (celem instanceof IBinary) { IBinary bin = (IBinary)celem; name += " - [" + bin.getCPU() + (bin.isLittleEndian() ? "le" : "be") + "]"; } return name; } return fWorkbenchLabelProvider.getText(element); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/cc325e9b5f84c06cfc5c4b0a68d4540ed70706c9/CElementLabelProvider.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/CElementLabelProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
6701,
12,
921,
930,
13,
288,
202,
202,
430,
261,
2956,
1276,
26899,
1046,
13,
288,
1082,
202,
2871,
1046,
276,
10037,
33,
261,
2871,
1046,
13,
2956,
31,
25083,
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,
225,
202,
482,
514,
6701,
12,
921,
930,
13,
288,
202,
202,
430,
261,
2956,
1276,
26899,
1046,
13,
288,
1082,
202,
2871,
1046,
276,
10037,
33,
261,
2871,
1046,
13,
2956,
31,
25083,
202,
780,
... |
public void visitMethod(PsiMethod method) { super.visitMethod(method); final PsiReferenceList throwsList = method.getThrowsList(); if(throwsList ==null) { return; } final PsiJavaCodeReferenceElement[] references = throwsList.getReferenceElements(); if(references == null) { return; } for (int i = 0; i < references.length; i++) { final PsiClass thrownClass = (PsiClass) references[i].resolve(); if(thrownClass != null) { final String text = thrownClass.getQualifiedName(); for (Iterator iterator = exceptionsList.iterator(); iterator.hasNext();) { final String exceptionClass = (String) iterator.next(); if (text.equals(exceptionClass)) { registerError(references[i]); } } } } } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/2d46d291193579a7564649b4881c7ea8e02eda5b/BadExceptionDeclaredInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/errorhandling/BadExceptionDeclaredInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
11658,
1305,
12,
52,
7722,
1305,
2039,
15329,
9565,
18,
11658,
1305,
12,
2039,
1769,
6385,
52,
7722,
2404,
682,
15069,
682,
33,
2039,
18,
588,
21845,
682,
5621,
430,
12,
15069,
682... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6459,
11658,
1305,
12,
52,
7722,
1305,
2039,
15329,
9565,
18,
11658,
1305,
12,
2039,
1769,
6385,
52,
7722,
2404,
682,
15069,
682,
33,
2039,
18,
588,
21845,
682,
5621,
430,
12,
15069,
682... | ||
public void down(Event evt) { Message msg; //System.out.println("DOWN: " + evt); switch( evt.getType() ) { case Event.VIEW_CHANGE: // this will probably never happen log.error( "NOTE: VIEW_CHANGE Event going down through " + PROTOCOL_NAME ); Vector new_members=((View)evt.getArg()).getMembers(); synchronized(members) { members.removeAllElements(); if(new_members != null && new_members.size() > 0) for(int i=0; i < new_members.size(); i++) members.addElement(new_members.elementAt(i)); } break; case Event.MSG: Object temp_obj = evt.getArg(); if ( temp_obj instanceof Message ) { msg = (Message) temp_obj; // note: a TotalHeader is added to every message (Event.MSG) // that is sent // check if this is a broadcast message if ( msg.getDest() == null ) { // yes, this is a broadcast message // send out a request for a message to be broadcast // (the sequencer will handle this) Address sequencer = getSequencer(); if ( sequencer != null ) { // we only need to send the request to the sequencer (who will broadcast it) msg.setDest( sequencer ); } else { // couldn't find sequencer of the group // for now, just send it to the original destination // (don't need to do anything here) } //msg.putHeader(getName(), TotalHeader.getRequestHeader() ); msg.putHeader(getName(), new TotalHeader(TotalHeader.TOTAL_REQUEST, -1)); } else { // this is a point to point unicast message so just send it to its original destination msg.putHeader(getName(), new TotalHeader( TotalHeader.TOTAL_UNICAST, -1 ) ); // sequence id in header is irrelevant } } else { log.error( "Error: TOTAL_OLD.down() - could not cast argument of Event to a Message (case Event.MSG)" ); } // if ( temp_obj instanceof Message ) break; default: break; } // switch( evt.getType() ) passDown(evt); // Pass on to the layer below us } | 47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/5ad015d9a78e1da3350d9b398b46b2f5d4508564/TOTAL_OLD.java/clean/src/org/jgroups/protocols/TOTAL_OLD.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2588,
12,
1133,
6324,
13,
288,
3639,
2350,
1234,
31,
3639,
368,
3163,
18,
659,
18,
8222,
2932,
12711,
30,
315,
397,
6324,
1769,
3639,
1620,
12,
6324,
18,
588,
559,
1435,
262,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2350,
1234,
31,
3639,
368,
3163,
18,
659,
18,
8222,
2932,
12711,
30,
315,
397,
6324,
1769,
3639,
1620,
12,
6324,
18,
588,
559,
1435,
262,... | ||
changeListenerList.remove(ChangeListener.class, listener); | listenerList.remove(ChangeListener.class, listener); | public void removeChangeListener(ChangeListener listener) { changeListenerList.remove(ChangeListener.class, listener); } | 25352 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25352/14511e3ad21013e92c6399b2bd2ec09a8263e33a/JProgressBar.java/buggy/libjava/javax/swing/JProgressBar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1206,
15744,
12,
15744,
2991,
13,
225,
288,
565,
2991,
682,
18,
4479,
12,
15744,
18,
1106,
16,
2991,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1206,
15744,
12,
15744,
2991,
13,
225,
288,
565,
2991,
682,
18,
4479,
12,
15744,
18,
1106,
16,
2991,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
private void registerActions() { final Application app = ApplicationManager.getApplication(); final IdeaPluginDescriptor[] plugins = app.getPlugins(); for (IdeaPluginDescriptor plugin : plugins) { final Element e = plugin.getActionsDescriptionElement(); if (e != null) { processActionsElement(e, plugin.getPluginClassLoader(), plugin.getPluginId()); } } } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/4972de74093751aa507c641e7a852c8feb15d5e3/ActionManagerImpl.java/clean/action-system/impl/com/intellij/openapi/actionSystem/impl/ActionManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
6459,
4861,
6100,
1435,
95,
6385,
3208,
2910,
33,
3208,
1318,
18,
588,
3208,
5621,
6385,
45,
323,
69,
3773,
3187,
8526,
8057,
33,
2910,
18,
588,
9461,
5621,
1884,
12,
45,
323,
69,
3773... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
6459,
4861,
6100,
1435,
95,
6385,
3208,
2910,
33,
3208,
1318,
18,
588,
3208,
5621,
6385,
45,
323,
69,
3773,
3187,
8526,
8057,
33,
2910,
18,
588,
9461,
5621,
1884,
12,
45,
323,
69,
3773... | ||
this.resolver = resolver; this.name = name; this.args = args; | this(resolver, name, Collections.EMPTY_LIST); | public FunctionCall(XPathFunctionResolver resolver, String name, List args) { this.resolver = resolver; this.name = name; this.args = args; } | 1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/7d27864ffb9b4cf63db1bfad84983248326cfb51/FunctionCall.java/buggy/libjava/gnu/xml/xpath/FunctionCall.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4284,
1477,
12,
14124,
2083,
4301,
5039,
16,
514,
508,
16,
987,
833,
13,
225,
288,
565,
333,
18,
14122,
273,
5039,
31,
565,
333,
18,
529,
273,
508,
31,
565,
333,
18,
1968,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4284,
1477,
12,
14124,
2083,
4301,
5039,
16,
514,
508,
16,
987,
833,
13,
225,
288,
565,
333,
18,
14122,
273,
5039,
31,
565,
333,
18,
529,
273,
508,
31,
565,
333,
18,
1968,
273,
... |
for (i=0;i<m_numInstances;i++) { | for (i=0;i<m_numInstances;i++) { | private double estimateAccuracy(BitSet feature_set, int num_atts) throws Exception { int i; Instances newInstances; int [] fs = new int [num_atts]; double acc = 0.0; double [][] evalArray; double [] instA = new double [num_atts]; int classI = m_theInstances.classIndex(); int index = 0; for (i=0;i<m_numAttributes;i++) if (feature_set.get(i)) fs[index++] = i; // create new hash table m_entries = new Hashtable((int)(m_theInstances.numInstances() * 1.5)); // insert instances into the hash table for (i=0;i<m_numInstances;i++) { Instance inst = m_theInstances.instance(i); for (int j=0;j<fs.length;j++) if (fs[j] == classI) instA[j] = Double.MAX_VALUE; // missing for the class else if (inst.isMissing(fs[j])) instA[j] = Double.MAX_VALUE; else instA[j] = inst.value(fs[j]); insertIntoTable(inst, instA); } if (m_CVFolds == 1) { // calculate leave one out error for (i=0;i<m_numInstances;i++) { Instance inst = m_theInstances.instance(i); for (int j=0;j<fs.length;j++) if (fs[j] == classI) instA[j] = Double.MAX_VALUE; // missing for the class else if (inst.isMissing(fs[j])) instA[j] = Double.MAX_VALUE; else instA[j] = inst.value(fs[j]); double t = classifyInstanceLeaveOneOut(inst, instA); if (m_classIsNominal) { if (t == inst.classValue()) acc+=inst.weight(); } else acc += ((inst.weight() * (t - inst.classValue())) * (inst.weight() * (t - inst.classValue()))); // weight_sum += inst.weight(); } } else { m_theInstances.randomize(m_rr); m_theInstances.stratify(m_CVFolds); // calculate 10 fold cross validation error for (i=0;i<m_CVFolds;i++) { Instances insts = m_theInstances.testCV(m_CVFolds,i); acc += classifyFoldCV(insts, fs); } } if (m_classIsNominal) return (acc / m_theInstances.sumOfWeights()); else return -(Math.sqrt(acc / m_theInstances.sumOfWeights())); } | 6866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6866/f6f62667723170f4030ae82f079e537cd6065be3/DecisionTable.java/clean/classifiers/DecisionTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1645,
11108,
37,
10988,
12,
5775,
694,
2572,
67,
542,
16,
509,
818,
67,
270,
3428,
13,
565,
1216,
1185,
225,
288,
565,
509,
277,
31,
565,
18357,
394,
5361,
31,
565,
509,
5378,
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,
3238,
1645,
11108,
37,
10988,
12,
5775,
694,
2572,
67,
542,
16,
509,
818,
67,
270,
3428,
13,
565,
1216,
1185,
225,
288,
565,
509,
277,
31,
565,
18357,
394,
5361,
31,
565,
509,
5378,
2... |
fdCurrent.setName( cmbFontNames.getText( ) ); | if ( cmbFontNames.getText( ).equals( FONT_AUTO ) ) { fdCurrent.setName( null ); } else { fdCurrent.setName( cmbFontNames.getText( ) ); } | public void widgetSelected( SelectionEvent e ) { Object oSource = e.getSource( ); // Handle with alignment buttons if ( listAlighmentButtons.contains( oSource ) ) { if ( !( (Button) oSource ).getSelection( ) ) { // Keep the selection to restrict at least one selection ( (Button) oSource ).setSelection( true ); return; } selectAllToggleButtons( false ); ( (Button) oSource ).setSelection( true ); } if ( oSource.equals( btnBold ) ) { fdCurrent.setBold( btnBold.getSelection( ) ); updatePreview( ); } else if ( oSource.equals( btnItalic ) ) { fdCurrent.setItalic( btnItalic.getSelection( ) ); updatePreview( ); } else if ( oSource.equals( btnUnderline ) ) { fdCurrent.setUnderline( btnUnderline.getSelection( ) ); updatePreview( ); } else if ( oSource.equals( cbStrikethru ) ) { fdCurrent.setStrikethrough( cbStrikethru.getSelection( ) ); updatePreview( ); } else if ( oSource.equals( cbWrap ) ) { fdCurrent.setWordWrap( cbWrap.getSelection( ) ); updatePreview( ); } else if ( oSource.equals( cmbFontNames ) ) { fdCurrent.setName( cmbFontNames.getText( ) ); updatePreview( ); } else if ( oSource.equals( btnAccept ) ) { bCancelled = false; shell.dispose( ); } else if ( oSource.equals( btnCancel ) ) { this.fdCurrent = this.fdBackup; this.cdCurrent = this.cdBackup; shell.dispose( ); } else if ( oSource.equals( this.btnATopLeft ) ) { fdCurrent.getAlignment( ) .setHorizontalAlignment( HorizontalAlignment.LEFT_LITERAL ); fdCurrent.getAlignment( ) .setVerticalAlignment( VerticalAlignment.TOP_LITERAL ); updatePreview( ); } else if ( oSource.equals( this.btnACenterLeft ) ) { fdCurrent.getAlignment( ) .setHorizontalAlignment( HorizontalAlignment.LEFT_LITERAL ); fdCurrent.getAlignment( ) .setVerticalAlignment( VerticalAlignment.CENTER_LITERAL ); updatePreview( ); } else if ( oSource.equals( this.btnABottomLeft ) ) { fdCurrent.getAlignment( ) .setHorizontalAlignment( HorizontalAlignment.LEFT_LITERAL ); fdCurrent.getAlignment( ) .setVerticalAlignment( VerticalAlignment.BOTTOM_LITERAL ); updatePreview( ); } else if ( oSource.equals( this.btnATopCenter ) ) { fdCurrent.getAlignment( ) .setHorizontalAlignment( HorizontalAlignment.CENTER_LITERAL ); fdCurrent.getAlignment( ) .setVerticalAlignment( VerticalAlignment.TOP_LITERAL ); updatePreview( ); } else if ( oSource.equals( this.btnACenter ) ) { fdCurrent.getAlignment( ) .setHorizontalAlignment( HorizontalAlignment.CENTER_LITERAL ); fdCurrent.getAlignment( ) .setVerticalAlignment( VerticalAlignment.CENTER_LITERAL ); updatePreview( ); } else if ( oSource.equals( this.btnABottomCenter ) ) { fdCurrent.getAlignment( ) .setHorizontalAlignment( HorizontalAlignment.CENTER_LITERAL ); fdCurrent.getAlignment( ) .setVerticalAlignment( VerticalAlignment.BOTTOM_LITERAL ); updatePreview( ); } else if ( oSource.equals( this.btnATopRight ) ) { fdCurrent.getAlignment( ) .setHorizontalAlignment( HorizontalAlignment.RIGHT_LITERAL ); fdCurrent.getAlignment( ) .setVerticalAlignment( VerticalAlignment.TOP_LITERAL ); updatePreview( ); } else if ( oSource.equals( this.btnACenterRight ) ) { fdCurrent.getAlignment( ) .setHorizontalAlignment( HorizontalAlignment.RIGHT_LITERAL ); fdCurrent.getAlignment( ) .setVerticalAlignment( VerticalAlignment.CENTER_LITERAL ); updatePreview( ); } else if ( oSource.equals( this.btnABottomRight ) ) { fdCurrent.getAlignment( ) .setHorizontalAlignment( HorizontalAlignment.RIGHT_LITERAL ); fdCurrent.getAlignment( ) .setVerticalAlignment( VerticalAlignment.BOTTOM_LITERAL ); updatePreview( ); } } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/1e765209f86d9978abab00aed01a2ba0a783081a/FontDefinitionDialog.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FontDefinitionDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3604,
7416,
12,
12977,
1133,
425,
262,
202,
95,
202,
202,
921,
320,
1830,
273,
425,
18,
588,
1830,
12,
11272,
202,
202,
759,
5004,
598,
8710,
9502,
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,
3604,
7416,
12,
12977,
1133,
425,
262,
202,
95,
202,
202,
921,
320,
1830,
273,
425,
18,
588,
1830,
12,
11272,
202,
202,
759,
5004,
598,
8710,
9502,
202,
202,
430,
261,
... |
c.translate( xoff, yoff ); paintNormal( c, block, restyle ); c.translate( -xoff, -yoff ); | c.translate(xoff, yoff); paintNormal(c, block, restyle); c.translate(-xoff, -yoff); | public static void paintFixed( Context c, Box block, boolean restyle ) { Rectangle rect = c.getExtents(); //why this? int xoff = -rect.x; int yoff = -rect.y; if ( block.top_set ) { yoff += block.top; } if ( block.right_set ) { xoff = -rect.x + rect.width - block.width - block.right; } if ( block.left_set ) { xoff = block.left; } if ( block.bottom_set ) { yoff = -rect.y + rect.height - block.height - block.bottom; } c.translate( xoff, yoff ); paintNormal( c, block, restyle ); c.translate( -xoff, -yoff ); } | 52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/8f81e5fe9f6f8593d3c596d30a3f100cb87dbf27/BoxRendering.java/clean/src/java/org/xhtmlrenderer/render/BoxRendering.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
12574,
7505,
12,
1772,
276,
16,
8549,
1203,
16,
1250,
3127,
1362,
262,
288,
3639,
13264,
4917,
273,
276,
18,
588,
2482,
4877,
5621,
3639,
368,
3350,
93,
333,
35,
3639,
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,
760,
918,
12574,
7505,
12,
1772,
276,
16,
8549,
1203,
16,
1250,
3127,
1362,
262,
288,
3639,
13264,
4917,
273,
276,
18,
588,
2482,
4877,
5621,
3639,
368,
3350,
93,
333,
35,
3639,
5... |
DelegationCertificate creatorDelegation = (DelegationCertificate)delegations.get(creator); | DelegationCertificate creatorDelegation = (DelegationCertificate)delegations.get(creator.getName()); | protected void processAction(Action a) throws FIPAException, AuthException { CreateAgent ca = (CreateAgent)a.get_1(); String agentName = ca.getAgentName(); String className = ca.getClassName(); ContainerID container = ca.getContainer(); Iterator arg = ca.getAllArguments(); //return an iterator of all arguments //create the array of string ArrayList listArg = new ArrayList(); while(arg.hasNext()) listArg.add(arg.next().toString()); String[] arguments = new String[listArg.size()]; for(int n = 0; n< listArg.size(); n++) arguments[n] = (String)listArg.get(n); String ownership = UserPrincipal.NONE; AID creator = getRequest().getSender(); ownership = getAgentOwnership(creator); Authority authority = getAuthority(); UserPrincipal user = authority.createUserPrincipal(); user.init(ownership); AgentPrincipal agent = authority.createAgentPrincipal(); agent.init(new AID(agentName, AID.ISGUID), user); IdentityCertificate identity = authority.createIdentityCertificate(); if (identity != null) { identity.setSubject(agent); authority.sign(identity, getIdentity(), new DelegationCertificate[] {getDelegation()}); } DelegationCertificate delegation = authority.createDelegationCertificate(); if (delegation != null) { if (ca.getDelegation() != null) { delegation.decode(ca.getDelegation()); } else { DelegationCertificate creatorDelegation = (DelegationCertificate)delegations.get(creator); delegation.setSubject(agent); if (creatorDelegation != null) for (Iterator i = creatorDelegation.getPermissions().iterator(); i.hasNext(); ) delegation.addPermission(i.next()); authority.sign(delegation, getIdentity(), new DelegationCertificate[] {creatorDelegation}); } } sendReply(ACLMessage.AGREE, createAgreeContent(a)); try { authority.checkAction(Authority.AGENT_CREATE, agent, getIdentity(), new DelegationCertificate[] {(DelegationCertificate)delegations.get(creator)}); myPlatform.create(agentName, className, arguments, container, ownership); // An 'inform Done' message will be sent to the requester only // when the newly created agent will register itself with the // AMS. The new agent's name will be used as the key in the map. ACLMessage reply = getReply(); reply = (ACLMessage)reply.clone(); reply.setPerformative(ACLMessage.INFORM); reply.setContent(doneAction(a)); pendingInforms.put(agentName, new CreationInfo(getRequest(), reply, ownership, identity, delegation)); } catch(UnreachableException ue) { throw new jade.domain.FIPAAgentManagement.InternalError(ue.getMessage()); } catch(AuthException ae) { ACLMessage failure = getReply(); failure.setPerformative(ACLMessage.FAILURE); failure.setContent(createExceptionalMsgContent(a, getRequest().getOntology(), new FIPAException(ae.getMessage()))); send(failure); } } | 5505 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5505/7c9d5c562ff6be9e372f47e75ca194595283da5c/ams.java/buggy/src/jade/domain/ams.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
918,
1207,
1803,
12,
1803,
279,
13,
1216,
478,
2579,
37,
503,
16,
3123,
503,
288,
1082,
202,
1684,
3630,
3474,
273,
261,
1684,
3630,
13,
69,
18,
588,
67,
21,
5621,
1082,
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,
3196,
202,
1117,
918,
1207,
1803,
12,
1803,
279,
13,
1216,
478,
2579,
37,
503,
16,
3123,
503,
288,
1082,
202,
1684,
3630,
3474,
273,
261,
1684,
3630,
13,
69,
18,
588,
67,
21,
5621,
1082,
2... |
_maxPackageRank++; | maxPackageRank++; | private void rankPackagesAndMoveClassesBelow() { // For now, all packages go above the classes and // interfaces int currentColumnPosition = 0; // The number of elements in the current row int currentRow = 0; for (int i = 0; i < _layoutedClassNodes.size(); i++) { ClassdiagramNode node = getClassdiagramNode(i); if (node.isPackage()) { if (currentColumnPosition <= _vMax) { // If there are not too many elements in the current Row node.setRank(currentRow); currentColumnPosition++; } else { node.setRank(++currentRow); currentColumnPosition = 0; } } } // Find the maximum rank of the packages, and move // the classes below the packages for (int i = 0; i < _layoutedClassNodes.size(); i++) { if (getClassdiagramNode(i).isPackage() && (getClassdiagramNode(i).getRank() > _maxPackageRank)) { _maxPackageRank = getClassdiagramNode(i).getRank(); } } _maxPackageRank++; // Move the classes down below the rows containing // the packages. for (int i = 0; i < _layoutedClassNodes.size(); i++) { if (!getClassdiagramNode(i).isPackage()) getClassdiagramNode(i).addRank(_maxPackageRank); } } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/56eeb0d4d18fb3e553e32d15e2c45dccd76eb958/ClassdiagramLayouter.java/clean/src_new/org/argouml/uml/diagram/static_structure/layout/ClassdiagramLayouter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
6171,
11425,
1876,
7607,
4818,
28730,
1435,
288,
3639,
368,
2457,
2037,
16,
777,
5907,
1960,
5721,
326,
3318,
471,
3639,
368,
7349,
3639,
509,
783,
1494,
2555,
273,
374,
31,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
6171,
11425,
1876,
7607,
4818,
28730,
1435,
288,
3639,
368,
2457,
2037,
16,
777,
5907,
1960,
5721,
326,
3318,
471,
3639,
368,
7349,
3639,
509,
783,
1494,
2555,
273,
374,
31,
36... |
DialogProblemFilter dialog = new DialogProblemFilter(getSite().getShell(), problemFilter); | DialogProblemFilter dialog = new DialogProblemFilter(getViewer().getControl().getShell(), problemFilter); | public void openFiltersDialog() { DialogProblemFilter dialog = new DialogProblemFilter(getSite().getShell(), problemFilter); if (dialog.open() == Window.OK) { problemFilter = (ProblemFilter)dialog.getFilter(); problemFilter.saveState(getDialogSettings()); refresh(); } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/8b2380c2af112008f8b15155e9e7e2a15746cd7f/ProblemView.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ProblemView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1696,
5422,
6353,
1435,
288,
202,
202,
6353,
13719,
1586,
6176,
273,
394,
17242,
13719,
1586,
12,
588,
4956,
7675,
588,
13220,
9334,
6199,
1586,
1769,
9506,
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,
1696,
5422,
6353,
1435,
288,
202,
202,
6353,
13719,
1586,
6176,
273,
394,
17242,
13719,
1586,
12,
588,
4956,
7675,
588,
13220,
9334,
6199,
1586,
1769,
9506,
202,
430,
261,
... |
return problem; } | return problem; } | protected static svm_problem convertToSVMProblem(Dataset dataset) { //count number for length svm_problem problem = new svm_problem(); Example.Looper it = dataset.iterator(); problem.l = it.estimatedSize(); problem.y = new double[problem.l]; problem.x = new svm_node[problem.l][]; for (int i = 0; it.hasNext(); i++) { Example example = it.nextExample(); problem.y[i] = example.getLabel().numericLabel(); problem.x[i] = instanceToNodeArray(example); }// outputProblem(problem); return problem; } | 51753 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51753/70715af93a6f31786293c5968972b99948a77ce2/SVMUtils.java/buggy/src/edu/cmu/minorthird/classify/algorithms/svm/SVMUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
760,
272,
3489,
67,
18968,
8137,
55,
7397,
13719,
12,
10656,
3709,
13,
225,
288,
565,
368,
1883,
1300,
364,
769,
565,
272,
3489,
67,
18968,
6199,
273,
394,
272,
3489,
67,
18968,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
760,
272,
3489,
67,
18968,
8137,
55,
7397,
13719,
12,
10656,
3709,
13,
225,
288,
565,
368,
1883,
1300,
364,
769,
565,
272,
3489,
67,
18968,
6199,
273,
394,
272,
3489,
67,
18968,
5... |
if (lengthAdjust == GVTAttributedCharacterIterator.TextAttribute.ADJUST_ALL) { applyStretchTransform(length); | if (!applyScaling) return; if (adjSpacing) { rescaleSpacing(); } else { applyStretchTransform(); | protected void adjustTextSpacing() { aci.first(); Boolean customSpacing = (Boolean) aci.getAttribute( GVTAttributedCharacterIterator.TextAttribute.CUSTOM_SPACING); Float length = (Float) aci.getAttribute( GVTAttributedCharacterIterator.TextAttribute.BBOX_WIDTH); Integer lengthAdjust = (Integer) aci.getAttribute( GVTAttributedCharacterIterator.TextAttribute.LENGTH_ADJUST); if ((customSpacing != null) && customSpacing.booleanValue()) { applySpacingParams(length, lengthAdjust, (Float) aci.getAttribute( GVTAttributedCharacterIterator.TextAttribute.KERNING), (Float) aci.getAttribute( GVTAttributedCharacterIterator.TextAttribute.LETTER_SPACING), (Float) aci.getAttribute( GVTAttributedCharacterIterator.TextAttribute.WORD_SPACING)); } if (lengthAdjust == GVTAttributedCharacterIterator.TextAttribute.ADJUST_ALL) { applyStretchTransform(length); } } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/addf8dc6948ebe42b6e2fb05a20d55153e2e3d4d/GlyphLayout.java/buggy/sources/org/apache/batik/gvt/text/GlyphLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
5765,
1528,
18006,
1435,
288,
3639,
1721,
77,
18,
3645,
5621,
3639,
3411,
1679,
18006,
273,
225,
261,
5507,
13,
1721,
77,
18,
588,
1499,
12,
9079,
611,
58,
56,
861,
11050,
70... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5765,
1528,
18006,
1435,
288,
3639,
1721,
77,
18,
3645,
5621,
3639,
3411,
1679,
18006,
273,
225,
261,
5507,
13,
1721,
77,
18,
588,
1499,
12,
9079,
611,
58,
56,
861,
11050,
70... |
} | } | void makeVariants() { m_variants = new LinkedList(); m_variants.add(new Byte(Byte.MIN_VALUE)); m_variants.add(new Byte((byte)(Byte.MIN_VALUE + 1))); m_variants.add(new Byte((byte)0)); m_variants.add(new Byte((byte)(Byte.MAX_VALUE - 1))); m_variants.add(new Byte(Byte.MAX_VALUE)); } | 12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/cb1364ac6f640a6ad163932b5427367d994b50b6/DataObjectManipulator.java/clean/archive/packaging/test/src/com/arsdigita/persistence/DataObjectManipulator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
918,
1221,
21165,
1435,
288,
10792,
312,
67,
15886,
273,
394,
10688,
5621,
10792,
312,
67,
15886,
18,
1289,
12,
2704,
3506,
12,
3216,
18,
6236,
67,
4051,
10019,
10792,
312,
67,
15886,
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,
1171,
918,
1221,
21165,
1435,
288,
10792,
312,
67,
15886,
273,
394,
10688,
5621,
10792,
312,
67,
15886,
18,
1289,
12,
2704,
3506,
12,
3216,
18,
6236,
67,
4051,
10019,
10792,
312,
67,
15886,
18... |
pathVariablesGroup.createContents(variablesGroup); | pathVariablesGroup.createContents(pageComponent); | protected Control createContents(Composite parent) { Font font = parent.getFont(); // define container & its gridding Composite pageComponent = new Composite(parent, SWT.NULL); GridLayout layout = new GridLayout(); layout.marginWidth = 0; layout.marginHeight = 0; pageComponent.setLayout(layout); GridData data = new GridData(); data.verticalAlignment = GridData.FILL; data.horizontalAlignment = GridData.FILL; pageComponent.setLayoutData(data); pageComponent.setFont(font); final Button enableLinkedResourcesButton = new Button(pageComponent, SWT.CHECK); enableLinkedResourcesButton.setText(WorkbenchMessages.getString("LinkedResourcesPreference.enableLinkedResources")); //$NON-NLS-1$ enableLinkedResourcesButton.setFont(font); enableLinkedResourcesButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { boolean enabled = enableLinkedResourcesButton.getSelection(); Preferences preferences = ResourcesPlugin.getPlugin().getPluginPreferences(); preferences.setValue(ResourcesPlugin.PREF_DISABLE_LINKING, !enabled); updateWidgetState(enabled); if (enabled) { MessageDialog.openWarning( getShell(), WorkbenchMessages.getString("LinkedResourcesPreference.linkedResourcesWarningTitle"), //$NON-NLS-1$ WorkbenchMessages.getString("LinkedResourcesPreference.linkedResourcesWarningMessage")); //$NON-NLS-1$ } } }); //layout the contents variablesGroup = new Group(pageComponent, SWT.NONE); variablesGroup.setText(WorkbenchMessages.getString("LinkedResourcesPreference.variablesGroup")); //$NON-NLS-1$ variablesGroup.setFont(font); layout = new GridLayout(); variablesGroup.setLayout(layout); data = new GridData(GridData.FILL_BOTH); variablesGroup.setLayoutData(data); topLabel = new Label(variablesGroup, SWT.NONE); topLabel.setText(WorkbenchMessages.getString("LinkedResourcesPreference.explanation")); //$NON-NLS-1$ data = new GridData(); data.verticalAlignment = GridData.FILL; data.horizontalAlignment = GridData.FILL; topLabel.setLayoutData(data); topLabel.setFont(font); pathVariablesGroup.createContents(variablesGroup); Preferences preferences = ResourcesPlugin.getPlugin().getPluginPreferences(); boolean enableLinking = !preferences.getBoolean(ResourcesPlugin.PREF_DISABLE_LINKING); enableLinkedResourcesButton.setSelection(enableLinking); updateWidgetState(enableLinking); return pageComponent; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/4d560d177f28ed97af5217961ca9b3bbb2157bcb/LinkedResourcesPreferencePage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/LinkedResourcesPreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
752,
6323,
12,
9400,
982,
13,
288,
202,
202,
5711,
3512,
273,
982,
18,
588,
5711,
5621,
202,
202,
759,
4426,
1478,
473,
2097,
3068,
7459,
202,
202,
9400,
1363,
1841,
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,
1117,
8888,
752,
6323,
12,
9400,
982,
13,
288,
202,
202,
5711,
3512,
273,
982,
18,
588,
5711,
5621,
202,
202,
759,
4426,
1478,
473,
2097,
3068,
7459,
202,
202,
9400,
1363,
1841,
27... |
} | } | public String getSystemUser() { return "sysdba"; } // getSystemUser | 50953 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50953/4b7291900ca7b2684a9d46781a450e57a92af66f/DB_Fyracle.java/buggy/dbPort/src/org/compiere/db/DB_Fyracle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
12996,
1299,
1435,
202,
95,
202,
202,
2463,
315,
9499,
1966,
69,
14432,
202,
97,
202,
759,
202,
588,
3163,
1299,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
514,
12996,
1299,
1435,
202,
95,
202,
202,
2463,
315,
9499,
1966,
69,
14432,
202,
97,
202,
759,
202,
588,
3163,
1299,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
void addConstraintText (String[] saBefore, String sText, String[] saAfter) { if ((m_crCurrent != null) && isInEditMode()) { int nSelStart = -1; int nSelEnd = -1; this.m_fHandleCaretUpdates = false; m_jtpConstraintEditor.replaceSelection (""); if (saBefore != null) { m_jtpConstraintEditor.setCharacterAttributes (s_sasField, true); for (int i = 0; i < saBefore.length; i++) { if (i == 0) { nSelStart = m_jtpConstraintEditor.getSelectionStart(); nSelEnd = nSelStart + saBefore[i].length(); } m_jtpConstraintEditor.replaceSelection (saBefore[i]); } m_jtpConstraintEditor.setCharacterAttributes (s_sasNormalText, true); } m_jtpConstraintEditor.replaceSelection (sText); if (saAfter != null) { m_jtpConstraintEditor.setCharacterAttributes (s_sasField, true); for (int i = 0; i < saAfter.length; i++) { if ((i == 0) && (nSelStart == -1)) { nSelStart = m_jtpConstraintEditor.getSelectionStart(); nSelEnd = nSelStart + saAfter[i].length(); } m_jtpConstraintEditor.replaceSelection (saAfter[i]); } m_jtpConstraintEditor.setCharacterAttributes (s_sasNormalText, true); } | void addConstraintText(String[] saBefore, String sText, String[] saAfter) { if ((m_crCurrent != null) && isInEditMode()) { int nSelStart = -1; int nSelEnd = -1; | void addConstraintText (String[] saBefore, String sText, String[] saAfter) { if ((m_crCurrent != null) && isInEditMode()) { int nSelStart = -1; int nSelEnd = -1; this.m_fHandleCaretUpdates = false; m_jtpConstraintEditor.replaceSelection (""); if (saBefore != null) { m_jtpConstraintEditor.setCharacterAttributes (s_sasField, true); for (int i = 0; i < saBefore.length; i++) { if (i == 0) { nSelStart = m_jtpConstraintEditor.getSelectionStart(); nSelEnd = nSelStart + saBefore[i].length(); } m_jtpConstraintEditor.replaceSelection (saBefore[i]); } m_jtpConstraintEditor.setCharacterAttributes (s_sasNormalText, true); } m_jtpConstraintEditor.replaceSelection (sText); if (saAfter != null) { m_jtpConstraintEditor.setCharacterAttributes (s_sasField, true); for (int i = 0; i < saAfter.length; i++) { if ((i == 0) && (nSelStart == -1)) { nSelStart = m_jtpConstraintEditor.getSelectionStart(); nSelEnd = nSelStart + saAfter[i].length(); } m_jtpConstraintEditor.replaceSelection (saAfter[i]); } m_jtpConstraintEditor.setCharacterAttributes (s_sasNormalText, true); } if (nSelStart != -1) { m_jtpConstraintEditor.paintImmediately ( 0, 0, m_jtpConstraintEditor.getWidth(), m_jtpConstraintEditor.getHeight()); m_jtpConstraintEditor.setSelectionStart (nSelStart); m_jtpConstraintEditor.setSelectionEnd (nSelEnd); } this.m_fHandleCaretUpdates = true; /* java.awt.Frame fTop = (java.awt.Frame) getTopLevelAncestor(); fTop.toFront(); fTop.requestFocus(); m_jtpConstraintEditor.requestFocus();*/ } } | 6381 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6381/9cb875bba90e0f89c83030d5b5fd4e9676c2fdd9/OCLEditor.java/clean/ocl/src/tudresden/ocl/gui/OCLEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
527,
5806,
1528,
261,
780,
8526,
7864,
4649,
16,
11794,
514,
272,
1528,
16,
11794,
514,
8526,
7864,
4436,
13,
288,
565,
309,
14015,
81,
67,
3353,
3935,
480,
446,
13,
597,
8048,
466... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
527,
5806,
1528,
261,
780,
8526,
7864,
4649,
16,
11794,
514,
272,
1528,
16,
11794,
514,
8526,
7864,
4436,
13,
288,
565,
309,
14015,
81,
67,
3353,
3935,
480,
446,
13,
597,
8048,
466... |
if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else if (ex instanceof RuntimeException) { errObj = ex; exType = RUNTIME; } else { errObj = ex; exType = OTHER; | for (;;) { if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else if (ex instanceof WrappedException) { Object w = ((WrappedException) ex).unwrap(); if (w instanceof Throwable) { ex = (Throwable) w; continue; } errObj = ex; exType = RUNTIME; } else if (ex instanceof RuntimeException) { errObj = ex; exType = RUNTIME; } else { errObj = ex; exType = OTHER; } break; | public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = (fnOrScript.argNames == null) ? 0 : fnOrScript.argNames.length; final int maxLocals = theData.itsMaxLocals; final int maxTryDepth = theData.itsMaxTryDepth; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_SCOPE_SHFT = LOCAL_SHFT + maxLocals;// stack[0 <= i < VAR_SHFT]: stack data// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_SCOPE_SHFT]: used for newtemp/usetemp// stack[TRY_SCOPE_SHFT <= i]: try scopes// when 0 <= i < LOCAL_SHFT and stack[x] == DBL_MRK,// sDbl[i] gives the number value final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[TRY_SCOPE_SHFT + maxTryDepth]; double[] sDbl = new double[TRY_SCOPE_SHFT]; int stackTop = -1; byte[] iCode = theData.itsICode; String[] strings = theData.itsStringTable; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { int definedArgs = fnOrScript.argCount; if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; double lDbl; int rIntValue; double rDbl;// tryStack[2 * i]: starting pc of catch block// tryStack[2 * i + 1]: starting pc of finally block int[] tryStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } /* Save the security domain. Must restore upon normal exit. * If we exit the interpreter loop by throwing an exception, * set cx.interpreterSecurityDomain to null, and require the * catching function to restore it. */ Object savedSecurityDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; Object result = undefined; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : if (tryStackTop == 0) { tryStack = new int[maxTryDepth * 2]; } i = getTarget(iCode, pc + 1); if (i == pc) i = 0; tryStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; tryStack[tryStackTop * 2 + 1] = i; stack[TRY_SCOPE_SHFT + tryStackTop] = scope; ++tryStackTop; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; case TokenStream.GETBASE : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; // what about class cast exception here for lhs? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case TokenStream.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = getShort(iCode, pc + 1); name = strings[getShort(iCode, pc + 3)]; count = getShort(iCode, pc + 5); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; case TokenStream.CALL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { i = getShort(iCode, pc + 1); if (i != -1) lhs = strings[i]; } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.NEW : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && getShort(iCode, pc + 1) != -1) { // special code for better error message for call // to undefined lhs = strings[getShort(iCode, pc + 1)]; } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = strings[getShort(iCode, pc + 1)]; pc += 2; break; case SHORTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case INTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = theData. itsDoubleTable[getShort(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = getShort(iCode, pc + 1); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = getShort(iCode, pc + 1); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case SOURCEFILE_ICODE : cx.interpreterSourceFile = theData.itsSourceFile; break; case LINE_ICODE : case BREAKPOINT_ICODE : i = getShort(iCode, pc + 1); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == BREAKPOINT_ICODE || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Throwable ex) { cx.interpreterSecurityDomain = null; if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, RUNTIME = 2, OTHER = 3; int exType; Object errObj; // Object seen by catch if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { // an offical ECMA error object, errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else if (ex instanceof RuntimeException) { errObj = ex; exType = RUNTIME; } else { errObj = ex; // Error instance exType = OTHER; } if (exType != OTHER && cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, errObj); } boolean rethrow = true; if (exType != OTHER && tryStackTop > 0) { --tryStackTop; if (exType == SCRIPT_THROW || exType == ECMA) { // Check for catch only for // JavaScriptException and EcmaError pc = tryStack[tryStackTop * 2]; if (pc != 0) { // Has catch block rethrow = false; } } if (rethrow) { pc = tryStack[tryStackTop * 2 + 1]; if (pc != 0) { // has finally block rethrow = false; errObj = ex; } } } if (rethrow) { if (frame != null) cx.popFrame(); if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; if (exType == ECMA || exType == RUNTIME) throw (RuntimeException)ex; throw (Error)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // prepare stack and restore this function's security domain. scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; stackTop = 0; stack[0] = errObj; cx.interpreterSecurityDomain = theData.securityDomain; } } cx.interpreterSecurityDomain = savedSecurityDomain; if (frame != null) cx.popFrame(); if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; } | 54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/e584b07f01915e9b138ee22baec22c7cb40db81b/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
282,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
282,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
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,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
282,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
282,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
3... |
if(finished) return; if(sfi != null) sfi.cancel(); if(metadataPutter != null) metadataPutter.cancel(); | ClientPutState oldSFI = null; ClientPutState oldMetadataPutter = null; synchronized(this) { if(finished) return; finished = true; oldSFI = sfi; oldMetadataPutter = metadataPutter; } if(oldSFI != null) oldSFI.cancel(); if(oldMetadataPutter != null) oldMetadataPutter.cancel(); | private synchronized void fail(InserterException e) { Logger.minor(this, "Failing: "+e, e); if(finished) return; if(sfi != null) sfi.cancel(); if(metadataPutter != null) metadataPutter.cancel(); finished = true; cb.onFailure(e, this); } | 56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/a99fbfa9db79808f376d90d1b435c8efcfb94698/SingleFileInserter.java/buggy/src/freenet/client/async/SingleFileInserter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
3852,
918,
2321,
12,
382,
550,
387,
503,
425,
13,
288,
1082,
202,
3328,
18,
17364,
12,
2211,
16,
315,
3754,
310,
30,
13773,
73,
16,
425,
1769,
1082,
202,
430,
12,
13527,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3852,
918,
2321,
12,
382,
550,
387,
503,
425,
13,
288,
1082,
202,
3328,
18,
17364,
12,
2211,
16,
315,
3754,
310,
30,
13773,
73,
16,
425,
1769,
1082,
202,
430,
12,
13527,
1... |
Enumeration enum = elements(); UmlModelEventPump pump = UmlModelEventPump.getPump(); while (enum.hasMoreElements()) { Object o = enum.nextElement(); if (o instanceof MElementListener) { MElementListener listener = (MElementListener)o; Fig fig = (Fig)o; pump.removeModelEventListener(listener, (MBase)fig.getOwner()); } } | Enumeration enum = elements(); UmlModelEventPump pump = UmlModelEventPump.getPump(); while (enum.hasMoreElements()) { Object o = enum.nextElement(); if (o instanceof MElementListener) { MElementListener listener = (MElementListener) o; Fig fig = (Fig) o; pump.removeModelEventListener(listener, (MBase) fig.getOwner()); } } | public void removeAsTarget() { Enumeration enum = elements(); UmlModelEventPump pump = UmlModelEventPump.getPump(); while (enum.hasMoreElements()) { Object o = enum.nextElement(); if (o instanceof MElementListener) { MElementListener listener = (MElementListener)o; Fig fig = (Fig)o; pump.removeModelEventListener(listener, (MBase)fig.getOwner()); } } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/UMLDiagram.java/clean/src_new/org/argouml/uml/diagram/ui/UMLDiagram.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1206,
1463,
2326,
1435,
288,
1377,
13864,
2792,
273,
2186,
5621,
1377,
587,
781,
1488,
1133,
52,
2801,
293,
2801,
273,
587,
781,
1488,
1133,
52,
2801,
18,
588,
52,
2801,
5621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1206,
1463,
2326,
1435,
288,
1377,
13864,
2792,
273,
2186,
5621,
1377,
587,
781,
1488,
1133,
52,
2801,
293,
2801,
273,
587,
781,
1488,
1133,
52,
2801,
18,
588,
52,
2801,
5621,
... |
int LA16_190 = input.LA(1); if ( LA16_190=='n' ) {return s276;} return s50; | int LA16_191 = input.LA(1); if ( LA16_191=='n' ) {return s277;} return s51; | public DFA.State transition(IntStream input) throws RecognitionException { int LA16_190 = input.LA(1); if ( LA16_190=='n' ) {return s276;} return s50; } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/cb210a30853642e270a3bba6ce570409f6046852/RuleParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
463,
2046,
18,
1119,
6007,
12,
1702,
1228,
810,
13,
1216,
9539,
288,
7734,
509,
2928,
2313,
67,
30454,
273,
810,
18,
2534,
12,
21,
1769,
7734,
309,
261,
2928,
2313,
67,
30454,
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
463,
2046,
18,
1119,
6007,
12,
1702,
1228,
810,
13,
1216,
9539,
288,
7734,
509,
2928,
2313,
67,
30454,
273,
810,
18,
2534,
12,
21,
1769,
7734,
309,
261,
2928,
2313,
67,
30454,
18... |
newShell.setText("Boog Ditekted!"); | newShell.setText("Bug detected!"); | protected void configureShell(Shell newShell) { super.configureShell(newShell); newShell.setSize(400, 300); newShell.setText("Boog Ditekted!"); } | 11075 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11075/14d1a2c30709980b4ebb365933030e4e05690592/MainWindow.java/clean/g2gui/src/net/mldonkey/g2gui/view/MainWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4750,
918,
5068,
13220,
12,
13220,
394,
13220,
13,
288,
5411,
2240,
18,
14895,
13220,
12,
2704,
13220,
1769,
5411,
394,
13220,
18,
542,
1225,
12,
16010,
16,
11631,
1769,
5411,
394,
13220,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4750,
918,
5068,
13220,
12,
13220,
394,
13220,
13,
288,
5411,
2240,
18,
14895,
13220,
12,
2704,
13220,
1769,
5411,
394,
13220,
18,
542,
1225,
12,
16010,
16,
11631,
1769,
5411,
394,
13220,
... |
TripleKey key = new TripleKey(localhost, port, ssf); UnicastConnectionManager man = (UnicastConnectionManager)servers.get(key); | try{ host = InetAddress.getByName(host).getHostAddress(); }catch(Exception _){} TripleKey key = new TripleKey(host, port, csf); UnicastConnectionManager man = (UnicastConnectionManager)clients.get(key); | public static synchronized UnicastConnectionManager getInstance(int port, RMIServerSocketFactory ssf) throws RemoteException {//System.out.println("getInstance: " + port + "," + ssf); if (ssf == null) { ssf = defaultSocketFactory; } TripleKey key = new TripleKey(localhost, port, ssf); UnicastConnectionManager man = (UnicastConnectionManager)servers.get(key); if (man == null) { man = new UnicastConnectionManager(port, ssf); if (debug) { nsmanager++; System.out.println("\n\n ****** " + nsmanager + " server managers.\n\n"); } // The provided port might not be the set port. key.port = man.serverPort; servers.put(key, man); } return (man);} | 27835 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27835/5314ba6e881ffb6402fd73f386bae6900a5ad617/UnicastConnectionManager.java/buggy/libjava/gnu/java/rmi/server/UnicastConnectionManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
760,
3852,
1351,
12544,
1952,
1318,
3694,
12,
474,
1756,
16,
534,
7492,
2081,
4534,
1733,
5202,
74,
13,
1216,
18361,
288,
759,
3163,
18,
659,
18,
8222,
2932,
588,
1442,
30,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
760,
3852,
1351,
12544,
1952,
1318,
3694,
12,
474,
1756,
16,
534,
7492,
2081,
4534,
1733,
5202,
74,
13,
1216,
18361,
288,
759,
3163,
18,
659,
18,
8222,
2932,
588,
1442,
30,
315,
397,
1... |
WorkbenchWizardElement wizard = category.findWizard(wizardId); | WorkbenchWizardElement wizard = category.findWizard(wizardId,false); | protected void selectPreviouslySelectedCategoryAndWizard() { String categoryId = (String)settings.get(STORE_SELECTED_CATEGORY_ID); if (categoryId == null) return; WizardCollectionElement category = wizardCategories.findChildCollection(new Path(categoryId)); if (category == null) return; // category no longer exists, or has moved StructuredSelection selection = new StructuredSelection(category); categoryTreeViewer.setSelection(selection); selectionChanged(new SelectionChangedEvent(categoryTreeViewer,selection)); String wizardId = (String)settings.get(STORE_SELECTED_WIZARD_ID); if (wizardId == null) return; WorkbenchWizardElement wizard = category.findWizard(wizardId); if (wizard == null) return; // wizard no longer exists, or has moved selection = new StructuredSelection(wizard); wizardSelectionViewer.setSelection(selection); selectionChanged(new SelectionChangedEvent(wizardSelectionViewer,selection));} | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/21a84983193449a5a593b87fceae47ecd3620f21/NewWizardNewPage.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/dialogs/NewWizardNewPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
2027,
8351,
715,
7416,
4457,
1876,
27130,
1435,
288,
202,
780,
28311,
273,
261,
780,
13,
4272,
18,
588,
12,
13651,
67,
4803,
2056,
67,
24847,
67,
734,
1769,
202,
430,
261,
4743,
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,
4750,
918,
2027,
8351,
715,
7416,
4457,
1876,
27130,
1435,
288,
202,
780,
28311,
273,
261,
780,
13,
4272,
18,
588,
12,
13651,
67,
4803,
2056,
67,
24847,
67,
734,
1769,
202,
430,
261,
4743,
5... |
if (standardLib == null) { return "/nostdlib" + (includeDefaultReferences ? "-" : "+"); } else { return null; } | return "/nostdlib" + (includeDefaultReferences ? "-" : "+"); | protected String getIncludeDefaultReferencesParameter() { if (standardLib == null) { return "/nostdlib" + (includeDefaultReferences ? "-" : "+"); } else { return null; } } | 17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/c3fe4590e01e93e00f8882d66cb07870735f1a55/DotnetCompile.java/buggy/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/DotnetCompile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
7854,
1571,
1868,
8221,
1662,
1435,
288,
3639,
309,
261,
10005,
5664,
422,
446,
13,
288,
5411,
327,
2206,
8265,
72,
2941,
6,
397,
261,
6702,
1868,
8221,
692,
7514,
294,
13773,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
7854,
1571,
1868,
8221,
1662,
1435,
288,
3639,
309,
261,
10005,
5664,
422,
446,
13,
288,
5411,
327,
2206,
8265,
72,
2941,
6,
397,
261,
6702,
1868,
8221,
692,
7514,
294,
13773,
... |
generatePushWrappedArgs(cfw, parms); | generatePushWrappedArgs(cfw, parms, parms.length); | private static void generateMethod(ClassFileWriter cfw, String genName, String methodName, Class[] parms, Class returnType) { StringBuffer sb = new StringBuffer(); int firstLocal = appendMethodSignature(parms, returnType, sb); String methodSignature = sb.toString(); cfw.startMethod(methodName, methodSignature, ClassFileWriter.ACC_PUBLIC); int DELEGEE = firstLocal; int FUNCTION = firstLocal + 1; int LOCALS_END = firstLocal + 2; cfw.add(ByteCode.ALOAD_0); cfw.add(ByteCode.GETFIELD, genName, "delegee", "Lorg/mozilla/javascript/Scriptable;"); cfw.add(ByteCode.DUP); cfw.addAStore(DELEGEE); cfw.addPush(methodName); cfw.addInvoke(ByteCode.INVOKESTATIC, "org/mozilla/javascript/JavaAdapter", "getFunction", "(Lorg/mozilla/javascript/Scriptable;" +"Ljava/lang/String;" +")Lorg/mozilla/javascript/Function;"); cfw.add(ByteCode.DUP); cfw.addAStore(FUNCTION); // Prepare stack to call calMethod // push scope cfw.addALoad(DELEGEE); // push thisObj cfw.add(ByteCode.ALOAD_0); cfw.add(ByteCode.GETFIELD, genName, "self", "Lorg/mozilla/javascript/Scriptable;"); // push function cfw.addALoad(FUNCTION); // push arguments generatePushWrappedArgs(cfw, parms); // push bits to indicate which parameters should be wrapped if (parms.length > 64) { // If it will be an issue, then passing a static boolean array // can be an option, but for now using simple bitmask throw Context.reportRuntimeError0( "JavaAdapter can not subclass methods with more then" +" 64 arguments."); } long convertionMask = 0; for (int i = 0; i != parms.length; ++i) { if (!parms[i].isPrimitive()) { convertionMask |= (1 << i); } } cfw.addPush(convertionMask); // go through utility method, which creates a Context to run the // method in. cfw.addInvoke(ByteCode.INVOKESTATIC, "org/mozilla/javascript/JavaAdapter", "callMethod", "(Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Function;" +"[Ljava/lang/Object;" +"J" +")Ljava/lang/Object;"); generateReturnResult(cfw, returnType); cfw.stopMethod((short)LOCALS_END, null); } | 12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/d46b05eb59632c32fcd0c01db8e2efb0969ac914/JavaAdapter.java/buggy/src/org/mozilla/javascript/JavaAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
2103,
1305,
12,
797,
812,
2289,
6080,
91,
16,
514,
3157,
461,
16,
4766,
4202,
514,
4918,
16,
1659,
8526,
17902,
16,
4766,
4202,
1659,
9424,
13,
565,
288,
3639,
6674,
239... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2103,
1305,
12,
797,
812,
2289,
6080,
91,
16,
514,
3157,
461,
16,
4766,
4202,
514,
4918,
16,
1659,
8526,
17902,
16,
4766,
4202,
1659,
9424,
13,
565,
288,
3639,
6674,
239... |
assert symbol != Symbol.NONE : Debug.show(clasz) + "." + name; | assert !symbol.isNone(): Debug.show(clasz) + "." + name; | private void addSub(Symbol clasz, int count) { Name name = Names.SUB; Symbol symbol = clasz.lookup(name); assert symbol != Symbol.NONE : Debug.show(clasz) + "." + name; Symbol[] alts = symbol.alternativeSymbols(); // !!! assert count + 1 == alts.length : (count + 1) + " != " + alts.length; boolean pos = false; for (int i = 0; i < alts.length; i++) { switch (alts[i].type()) { case MethodType(Symbol[] vparams, _): if (vparams.length == 0) { // !!! System.out.println("!!! Ignoring pico bridge method " + Debug.show(clasz) + "." + name); break; } addPrimitive(alts[i], Primitive.SUB); count--; break; case PolyType(Symbol[] tparams, _): addPrimitive(alts[i], Primitive.NEG); assert !pos; pos = true; break; default: System.out.println("!!! symbol = " + Debug.show(alts[i])); throw Debug.abort("illegal case" , alts[i].type()); } } assert pos : pos; } | 5590 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5590/a4ce35f874f0e0a83ea44929a46324d9fa8efa5d/Primitives.java/clean/sources/scalac/backend/Primitives.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
25716,
12,
5335,
23268,
94,
16,
509,
1056,
13,
288,
3639,
1770,
508,
273,
5276,
18,
8362,
31,
3639,
8565,
3273,
273,
23268,
94,
18,
8664,
12,
529,
1769,
3639,
1815,
401,
7175... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25716,
12,
5335,
23268,
94,
16,
509,
1056,
13,
288,
3639,
1770,
508,
273,
5276,
18,
8362,
31,
3639,
8565,
3273,
273,
23268,
94,
18,
8664,
12,
529,
1769,
3639,
1815,
401,
7175... |
String property = System.getProperty(PROP_INSTALL_AREA); | String property = FrameworkProperties.getProperty(PROP_INSTALL_AREA); | private static URL computeInstallConfigurationLocation() { String property = System.getProperty(PROP_INSTALL_AREA); if (property != null) { try { return new URL(property); } catch (MalformedURLException e) { // do nothing here since it is basically impossible to get a bogus url } } return null; } | 2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/795e339493dd76d146d62fd4fd2526e831c650bd/LocationManager.java/buggy/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/LocationManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
1976,
3671,
6410,
1750,
2735,
1435,
288,
202,
202,
780,
1272,
273,
2332,
18,
588,
1396,
12,
15811,
67,
28865,
67,
20933,
1769,
202,
202,
430,
261,
4468,
480,
446,
13,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
1976,
3671,
6410,
1750,
2735,
1435,
288,
202,
202,
780,
1272,
273,
2332,
18,
588,
1396,
12,
15811,
67,
28865,
67,
20933,
1769,
202,
202,
430,
261,
4468,
480,
446,
13,
28... |
throws RepositoryMetadataManagementException | throws RepositoryMetadataManagementException | public void install( RepositoryMetadata metadata, ArtifactRepository local, String remoteRepositoryId ) throws RepositoryMetadataManagementException { String realignedPath = local.formatAsFile( metadata.getRepositoryPath() ); realignedPath = realignedPath.replace( File.separatorChar, '/' ); if ( !realignedPath.startsWith( "/" ) ) { realignedPath = "/" + realignedPath; } realignedPath = "/REPOSITORY-INF/" + remoteRepositoryId + realignedPath; File metadataFile = new File( local.getBasedir(), realignedPath ).getAbsoluteFile(); try { File dir = metadataFile.getParentFile(); if ( !dir.exists() ) { dir.mkdirs(); } FileUtils.copyFile( metadata.getFile(), metadataFile ); } catch ( IOException e ) { throw new RepositoryMetadataManagementException( metadata, "Failed to install repository metadata.", e ); } } | 1315 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1315/4b53aba3bb6839694970739baeb1918bbf4acec0/DefaultRepositoryMetadataManager.java/buggy/maven-artifact-manager/src/main/java/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3799,
12,
6281,
2277,
1982,
16,
14022,
3305,
1191,
16,
514,
2632,
3305,
548,
262,
565,
1216,
6281,
2277,
10998,
503,
565,
288,
3639,
514,
2863,
724,
329,
743,
273,
1191,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3799,
12,
6281,
2277,
1982,
16,
14022,
3305,
1191,
16,
514,
2632,
3305,
548,
262,
565,
1216,
6281,
2277,
10998,
503,
565,
288,
3639,
514,
2863,
724,
329,
743,
273,
1191,
18,
... |
{ return isSetField(); } | { return isSetField(193); } | public boolean isSetSettlDate2() { return isSetField(); } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/1c56c8c61d9267e011713f8c63e876ba41ea46ca/Quote.java/clean/src/java/src/org/quickfix/fix44/Quote.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
694,
6172,
1626,
22,
1435,
282,
288,
327,
13532,
974,
12,
3657,
23,
1769,
289,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
694,
6172,
1626,
22,
1435,
282,
288,
327,
13532,
974,
12,
3657,
23,
1769,
289,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
public PatternDescr lhs_and() throws RecognitionException { PatternDescr d; PatternDescr left = null; PatternDescr right = null; d = null; try { // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:849:17: (left= lhs_unary ( ('and'|'&&') opt_eol right= lhs_unary )* ) // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:849:17: left= lhs_unary ( ('and'|'&&') opt_eol right= lhs_unary )* { AndDescr and = null; following.push(FOLLOW_lhs_unary_in_lhs_and2349); left=lhs_unary(); following.pop(); d = left; // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:851:17: ( ('and'|'&&') opt_eol right= lhs_unary )* loop56: do { int alt56=2; int LA56_0 = input.LA(1); if ( (LA56_0>=52 && LA56_0<=53) ) { alt56=1; } switch (alt56) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:851:19: ('and'|'&&') opt_eol right= lhs_unary { if ( (input.LA(1)>=52 && input.LA(1)<=53) ) { input.consume(); errorRecovery=false; } else { MismatchedSetException mse = new MismatchedSetException(null,input); recoverFromMismatchedSet(input,mse,FOLLOW_set_in_lhs_and2358); throw mse; } following.push(FOLLOW_opt_eol_in_lhs_and2363); opt_eol(); following.pop(); following.push(FOLLOW_lhs_unary_in_lhs_and2370); right=lhs_unary(); following.pop(); if ( and == null ) { and = new AndDescr(); and.addDescr( left ); d = and; } and.addDescr( right ); } break; default : break loop56; } } while (true); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/506adcf4556609ba2040aab4c53c1e38dbf7c80e/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6830,
16198,
8499,
67,
464,
1435,
1216,
9539,
288,
6647,
6830,
16198,
302,
31,
3639,
6830,
16198,
2002,
273,
446,
31,
3639,
6830,
16198,
2145,
273,
446,
31,
540,
202,
202,
72,
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,
6830,
16198,
8499,
67,
464,
1435,
1216,
9539,
288,
6647,
6830,
16198,
302,
31,
3639,
6830,
16198,
2002,
273,
446,
31,
3639,
6830,
16198,
2145,
273,
446,
31,
540,
202,
202,
72,
273,
... | ||
if (becameFinal) { if (myQName == oldCache.getSuperQualifiedName(subclassId)) { if (myDependencyCache.markClass(subclassQName)) { if (LOG.isDebugEnabled()) { LOG.debug("Mark dependent class " + myDependencyCache.resolve(subclassQName) + "; reason: the class " + myDependencyCache.resolve(myQName) + " was made final"); | for (final MemberInfo changedMember : myChangedMembers) { if (changedMember instanceof MethodInfo) { final MethodInfo oldMethod = (MethodInfo)changedMember; MethodChangeDescription changeDescription = (MethodChangeDescription)myChangeDescriptions.get(oldMethod); if (changeDescription.becameAbstract) { if (!ClsUtil.isAbstract(oldCache.getFlags(subclassId))) { if (myDependencyCache.markClass(subclassQName)) { if (LOG.isDebugEnabled()) { LOG.debug( "Mark dependent class " + myDependencyCache.resolve(subclassQName) + "; reason: changed base method " + oldMethod); } } return true; } } int derivedMethod = oldCache.findMethodsBySignature(oldCache.getClassDeclarationId(subclassQName), oldMethod.getDescriptor(symbolTable), symbolTable); if (derivedMethod != Cache.UNKNOWN) { if (myDependencyCache.markClass(subclassQName)) { if (LOG.isDebugEnabled()) { LOG.debug("Mark dependent class " + myDependencyCache.resolve(subclassQName) + "; reason: changed base method " + oldMethod); } } return true; | private void processInheritanceDependencies(boolean hasRemovedMethods) throws CacheCorruptedException { final Cache oldCache = myDependencyCache.getCache(); final Cache newCache = myDependencyCache.getNewClassesCache(); boolean becameFinal = !CacheUtils.isFinal(oldCache, myQName) && CacheUtils.isFinal(newCache, myQName); final SymbolTable symbolTable = myDependencyCache.getSymbolTable(); final Set<MemberInfo> removedConcreteMethods = fetchNonAbstractMethods(myRemovedMembers); final int[] subclasses = oldCache.getSubclasses(oldCache.getClassId(myQName)); for (final int subclassQName : subclasses) { if (myDependencyCache.isClassInfoMarked(subclassQName)) { continue; } int subclassId = oldCache.getClassId(subclassQName); if (subclassId == Cache.UNKNOWN) { continue; } if (hasRemovedMethods && myIsRemoteInterface && !CacheUtils.isInterface(oldCache, subclassQName)) { if (myDependencyCache.markClass(subclassQName)) { if (LOG.isDebugEnabled()) { LOG.debug("Mark dependent class " + myDependencyCache.resolve(subclassQName) + "; reason: methods were removed from remote interface: " + myDependencyCache.resolve(myQName)); } } continue; } if (mySuperClassAdded || mySuperInterfaceAdded) { if (myDependencyCache.markClass(subclassQName)) { if (LOG.isDebugEnabled()) { LOG.debug("Mark dependent class " + myDependencyCache.resolve(subclassQName) + "; reason: the superlist of " + myDependencyCache.resolve(myQName) + " is changed"); } } continue; } // if info became final, mark direct inheritors if (becameFinal) { if (myQName == oldCache.getSuperQualifiedName(subclassId)) { if (myDependencyCache.markClass(subclassQName)) { if (LOG.isDebugEnabled()) { LOG.debug("Mark dependent class " + myDependencyCache.resolve(subclassQName) + "; reason: the class " + myDependencyCache.resolve(myQName) + " was made final"); } } continue; } } // process added members for (final MemberInfo member : myAddedMembers) { if (member instanceof MethodInfo) { final MethodInfo method = (MethodInfo)member; if (method.isAbstract()) { // all derived classes should be marked in case an abstract method was added if (myDependencyCache.markClass(subclassQName)) { if (LOG.isDebugEnabled()) { LOG.debug("Mark dependent class " + myDependencyCache.resolve(subclassQName) + "; reason: added abstract method to " + myDependencyCache.resolve(myQName)); } } break; } if (!method.isPrivate()) { int derivedMethod = oldCache .findMethodsBySignature(oldCache.getClassDeclarationId(subclassQName), method.getDescriptor(symbolTable), symbolTable); if (derivedMethod != Cache.UNKNOWN) { if (!method.getReturnTypeDescriptor(symbolTable) .equals(CacheUtils.getMethodReturnTypeDescriptor(oldCache, derivedMethod, symbolTable))) { if (myDependencyCache.markClass(subclassQName)) { if (LOG.isDebugEnabled()) { LOG.debug("Mark dependent class " + myDependencyCache.resolve(subclassQName) + "; reason: return types of method " + method + " in base and derived classes are different"); } } break; } if (MakeUtil.isMoreAccessible(method.getFlags(), oldCache.getMethodFlags(derivedMethod))) { if (myDependencyCache.markClass(subclassQName)) { if (LOG.isDebugEnabled()) { LOG.debug("Mark dependent class " + myDependencyCache.resolve(subclassQName) + "; reason: the method " + method + " in derived class is less accessible than in base class"); } } break; } if (!CacheUtils.areArraysContentsEqual(method.getThrownExceptions(), oldCache.getMethodThrownExceptions(derivedMethod))) { if (myDependencyCache.markClass(subclassQName)) { if (LOG.isDebugEnabled()) { LOG.debug("Mark dependent class " + myDependencyCache.resolve(subclassQName) + "; reason: exception lists of " + method + " in base and derived classes are different"); } } break; } } if (hasGenericsNameClashes(method, oldCache, subclassQName)) { if (myDependencyCache.markClass(subclassQName)) { if (LOG.isDebugEnabled()) { LOG.debug("Mark dependent class " + myDependencyCache.resolve(subclassQName) + "; reason: found method with the same name, different generic signature, but the same erasure as " + method); } } break; } } } else if (member instanceof FieldInfo) { if (oldCache.findFieldByName(oldCache.getClassDeclarationId(subclassQName), member.getName()) != Cache.UNKNOWN) { if (myDependencyCache.markClass(subclassQName)) { if (LOG.isDebugEnabled()) { LOG.debug("Mark dependent class " + myDependencyCache.resolve(subclassQName) + "; reason: added field " + member + " to base class"); } } break; } } } // process changed members for (final MemberInfo changedMember : myChangedMembers) { if (changedMember instanceof MethodInfo) { final MethodInfo oldMethod = (MethodInfo)changedMember; MethodChangeDescription changeDescription = (MethodChangeDescription)myChangeDescriptions.get(oldMethod); if (changeDescription.becameAbstract) { if (!ClsUtil.isAbstract(oldCache.getFlags(subclassId))) { // if the subclass was not abstract if (myDependencyCache.markClass(subclassQName)) { if (LOG.isDebugEnabled()) { LOG.debug( "Mark dependent class " + myDependencyCache.resolve(subclassQName) + "; reason: changed base method " + oldMethod); } } break; } } int derivedMethod = oldCache .findMethodsBySignature(oldCache.getClassDeclarationId(subclassQName), oldMethod.getDescriptor(symbolTable), symbolTable); if (derivedMethod != Cache.UNKNOWN) { if (myDependencyCache.markClass(subclassQName)) { if (LOG.isDebugEnabled()) { LOG .debug("Mark dependent class " + myDependencyCache.resolve(subclassQName) + "; reason: changed base method " + oldMethod); } } break; } } } if (!ClsUtil.isAbstract(oldCache.getFlags(subclassId))) { if (hasUnimplementedAbstractMethods(subclassQName, new HashSet<MemberInfo>(removedConcreteMethods))) { if (myDependencyCache.markClass(subclassQName)) { if (LOG.isDebugEnabled()) { LOG.debug("Mark dependent class " + myDependencyCache.resolve(subclassQName) + "; reason: the class should be declared abstract because abstract method implementation was removed from its superclass: " + myDependencyCache.resolve(myQName)); } } } } } } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/7b1074744cec86754f2ea660e13d17d40b557940/DependencyProcessor.java/buggy/compiler/impl/com/intellij/compiler/make/DependencyProcessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1207,
28255,
8053,
12,
6494,
711,
10026,
4712,
13,
1216,
4379,
22701,
329,
503,
288,
565,
727,
4379,
1592,
1649,
273,
3399,
7787,
1649,
18,
588,
1649,
5621,
565,
727,
4379,
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,
918,
1207,
28255,
8053,
12,
6494,
711,
10026,
4712,
13,
1216,
4379,
22701,
329,
503,
288,
565,
727,
4379,
1592,
1649,
273,
3399,
7787,
1649,
18,
588,
1649,
5621,
565,
727,
4379,
394... |
public org.openmicroscopy.omero.model.Group getGroup() { | public Group getGroup() { | public org.openmicroscopy.omero.model.Group getGroup() { return this.group; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/ImageInfo.java/clean/components/common/src/org/openmicroscopy/omero/model/ImageInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3756,
11751,
1435,
288,
3639,
327,
333,
18,
1655,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3756,
11751,
1435,
288,
3639,
327,
333,
18,
1655,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
throw new SAXNotSupportedException ("not while parsing"); | { throw new SAXNotSupportedException("not while parsing"); } | public void setFeature (String featureId, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException { boolean state; // Features with a defined value, we just change it if we can. state = getFeature (featureId); if (state == value) return; if (parser != null) throw new SAXNotSupportedException ("not while parsing"); if ((FEATURE + "namespace-prefixes").equals (featureId)) { // in this implementation, this only affects xmlns reporting xmlNames = value; // forcibly prevent illegal parser state if (!xmlNames) namespaces = true; return; } if ((FEATURE + "namespaces").equals (featureId)) { namespaces = value; // forcibly prevent illegal parser state if (!namespaces) xmlNames = true; return; } if ((FEATURE + "external-general-entities").equals (featureId)) { extGE = value; return; } if ((FEATURE + "external-parameter-entities") .equals (featureId)) { extPE = value; return; } if ((FEATURE + "resolve-dtd-uris").equals (featureId)) { resolveAll = value; return; } if ((FEATURE + "use-entity-resolver2").equals (featureId)) { useResolver2 = value; return; } throw new SAXNotRecognizedException (featureId); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/24330cfb4cc445da21a71a819ce54efe764fab6e/SAXDriver.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/SAXDriver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
28669,
261,
780,
2572,
548,
16,
1250,
460,
13,
565,
1216,
10168,
1248,
5650,
9367,
503,
16,
10168,
25482,
565,
288,
202,
6494,
202,
2019,
31,
202,
202,
759,
28920,
598,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28669,
261,
780,
2572,
548,
16,
1250,
460,
13,
565,
1216,
10168,
1248,
5650,
9367,
503,
16,
10168,
25482,
565,
288,
202,
6494,
202,
2019,
31,
202,
202,
759,
28920,
598,
279,
... |
actTds.rollback(); | if( !actTds.autoCommit ) actTds.rollback(); else actTds.commit(); | public void rollback() throws java.sql.SQLException, java.io.IOException, com.internetcds.jdbc.tds.TdsUnknownPacketSubType, com.internetcds.jdbc.tds.TdsException { String sql = "IF @@TRANCOUNT > 0 ROLLBACK TRAN "; if( actTds == null ) { throw new SQLException("Statement is closed"); } internalExecuteQuery(actTds,sql); skipToEnd(actTds); actTds.rollback(); connection.freeTds(actTds); actTds = null; } | 439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/9b2a5e448e4b05755a66c49a23171af56a29bb2c/TdsStatement.java/buggy/trunk/jtds/src.old/main/com/internetcds/jdbc/tds/TdsStatement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
8006,
1435,
1377,
1216,
2252,
18,
4669,
18,
23116,
16,
2252,
18,
1594,
18,
14106,
16,
532,
18,
267,
798,
14175,
2377,
18,
24687,
18,
88,
2377,
18,
56,
2377,
4874,
6667,
30511... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
8006,
1435,
1377,
1216,
2252,
18,
4669,
18,
23116,
16,
2252,
18,
1594,
18,
14106,
16,
532,
18,
267,
798,
14175,
2377,
18,
24687,
18,
88,
2377,
18,
56,
2377,
4874,
6667,
30511... |
private String columnValue(ResultSet rs, Column column) throws Exception { Object obj = rs.getObject(column.name); String columnType = column.type; if (obj == null) { return "NULL"; } /* * Output for an INTEGER column, handling Doubles and Integers * in the result set */ if (columnType.startsWith("INTEGER")) { if (obj.getClass() == Double.class) { try { Double result = (Double) obj; return integerFormatter.format(result.doubleValue()); } catch (ClassCastException cce) { System.out.println("CCE: " + column.name + " to Long from: " + obj.getClass().getName() + " - " + obj.toString()); throw cce; } } else { try { Integer result = (Integer) obj; return result.toString(); } catch (ClassCastException cce) { System.out.println("CCE: " + column.name + " to Integer from: " + obj.getClass().getName() + " - " + obj.toString()); throw cce; } } /* * Output for an SMALLINT column, handling Integers * in the result set */ } else if (columnType.startsWith("SMALLINT")) { if (obj.getClass() == Boolean.class) { Boolean result = (Boolean) obj; if (result.booleanValue()) { return "1"; } else { return "0"; } } else { try { Integer result = (Integer) obj; return result.toString(); } catch (ClassCastException cce) { System.out.println("CCE: " + column.name + " to Integer from: " + obj.getClass().getName() + " - " + obj.toString()); throw cce; } } /* * Output for an BIGINT column, handling Doubles and Longs * in the result set */ } else if (columnType.startsWith("BIGINT")) { if (obj.getClass() == Double.class) { try { Double result = (Double) obj; return integerFormatter.format(result.doubleValue()); } catch (ClassCastException cce) { System.out.println("CCE: " + column.name + " to Double from: " + obj.getClass().getName() + " - " + obj.toString()); throw cce; } } else { try { Long result = (Long) obj; return result.toString(); } catch (ClassCastException cce) { System.out.println("CCE: " + column.name + " to Long from: " + obj.getClass().getName() + " - " + obj.toString()); throw cce; } } /* * Output for a String, managing embedded quotes */ } else if (columnType.startsWith("VARCHAR")) { return embedQuotes((String) obj); /* * Output for a TIMESTAMP */ } else if (columnType.startsWith("TIMESTAMP")) { Timestamp ts = (Timestamp) obj; if (sqlQuery.isOracle()) { return "TIMESTAMP '" + ts + "'"; } else { return "'" + ts + "'"; } //return "'" + ts + "'" ; /* * Output for a DATE */ } else if (columnType.startsWith("DATE")) { Date dt = (Date) obj; if (sqlQuery.isOracle()) { return "DATE '" + dateFormatter.format(dt) + "'"; } else { return "'" + dateFormatter.format(dt) + "'"; } /* * Output for a FLOAT */ } else if (columnType.startsWith("REAL")) { Float result = (Float) obj; return result.toString(); /* * Output for a DECIMAL(length, places) */ } else if (columnType.startsWith("DECIMAL")) { final Matcher matcher = decimalDataTypeRegex.matcher(columnType); if (!matcher.matches()) { throw new Exception("Bad DECIMAL column type for " + columnType); } DecimalFormat formatter = new DecimalFormat(decimalFormat(matcher.group(1), matcher.group(2))); if (obj.getClass() == Double.class) { try { Double result = (Double) obj; return formatter.format(result.doubleValue()); } catch (ClassCastException cce) { System.out.println("CCE: " + column.name + " to Double from: " + obj.getClass().getName() + " - " + obj.toString()); throw cce; } } else { // should be (obj.getClass() == BigDecimal.class) try { BigDecimal result = (BigDecimal) obj; return formatter.format(result); } catch (ClassCastException cce) { System.out.println("CCE: " + column.name + " to BigDecimal from: " + obj.getClass().getName() + " - " + obj.toString()); throw cce; } } /* * Output for a BOOLEAN (Postgres) or BIT (other DBMSs) */ } else if (columnType.startsWith("BOOLEAN") || columnType.startsWith("BIT")) { Boolean result = (Boolean) obj; return result.toString(); } throw new Exception("Unknown column type: " + columnType + " for column: " + column.name); } | 51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/MondrianFoodMartLoader.java/clean/testsrc/main/mondrian/test/loader/MondrianFoodMartLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
30297,
12,
13198,
3597,
16,
4753,
1057,
13,
1216,
1185,
288,
202,
202,
921,
1081,
273,
3597,
18,
588,
921,
12,
2827,
18,
529,
1769,
3639,
514,
27280,
273,
1057,
18,
723,
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,
3238,
514,
30297,
12,
13198,
3597,
16,
4753,
1057,
13,
1216,
1185,
288,
202,
202,
921,
1081,
273,
3597,
18,
588,
921,
12,
2827,
18,
529,
1769,
3639,
514,
27280,
273,
1057,
18,
723,
31,
... | ||
while ( e != null ) { Module currentRoot = e.getRoot( ); assert currentRoot != null; | e = e.getVirtualParent( ); } else { | protected Object getPropertyFromParent( Module module, ElementPropertyDefn prop ) { Object value = null; DesignElement e = getExtendsElement( ); while ( e != null ) { Module currentRoot = e.getRoot( ); assert currentRoot != null; // If we can find the value here, return it. value = e.getPropertyFromSelf( currentRoot, prop ); if ( value != null ) return value; e = e.getExtendsElement( ); } return value; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/7b53f443be7bd25a8e257bd783c10b1aecb8b963/DesignElement.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/core/DesignElement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1033,
3911,
1265,
3054,
12,
5924,
1605,
16,
1082,
202,
1046,
1396,
3262,
82,
2270,
262,
202,
95,
202,
202,
921,
460,
273,
446,
31,
202,
202,
15478,
1046,
425,
273,
336,
19581... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
3911,
1265,
3054,
12,
5924,
1605,
16,
1082,
202,
1046,
1396,
3262,
82,
2270,
262,
202,
95,
202,
202,
921,
460,
273,
446,
31,
202,
202,
15478,
1046,
425,
273,
336,
19581... |
ret.append("}"); | ret.append('}'); | public String toString() { StringBuffer ret = new StringBuffer(1000); String comma = ""; ret.append(_spec.getName()).append(" {"); for (Iterator i = _spec.getFields().keySet().iterator(); i.hasNext();) { ret.append(comma); String name = (String) i.next(); ret.append(name).append("=").append(_payload.get(name)); comma = ", "; } ret.append("}"); return ret.toString(); } | 49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/62fd59041864b4ed1f43adc676de6bfb5ea977f3/Message.java/buggy/src/freenet/io/comm/Message.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1762,
1435,
288,
202,
202,
780,
1892,
325,
273,
394,
6674,
12,
18088,
1769,
202,
202,
780,
8716,
273,
1408,
31,
3639,
325,
18,
6923,
24899,
2793,
18,
17994,
1435,
2934,
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,
225,
202,
482,
514,
1762,
1435,
288,
202,
202,
780,
1892,
325,
273,
394,
6674,
12,
18088,
1769,
202,
202,
780,
8716,
273,
1408,
31,
3639,
325,
18,
6923,
24899,
2793,
18,
17994,
1435,
2934,
6... |
mime_type.startsWith("text/html")) { | mime_type.startsWith("text/")) { | private void servePlain(URLConnection conn, String mime_type) throws TinyWebThreadException, IOException { byte[] buffer = new byte[SCAN_BUF_SIZE]; InputStream content = conn.getInputStream(); int numBytes = -1; if (content == null) sendError( 500, "Internal Error", "Couldn't read file." ); boolean translate = Translator.isTranslating() && !nonTranslatedPath(path); boolean preprocess = SERVER_PARSED_MIME_TYPE.equals(mime_type); if (mime_type == null || (preprocess && translate) || mime_type.startsWith("text/html")) { PushbackInputStream pb = new PushbackInputStream (content, SCAN_BUF_SIZE + 1); numBytes = pb.read(buffer); if (numBytes < 1) sendError( 500, "Internal Error", "Couldn't read file." ); pb.unread(buffer, 0, numBytes); content = pb; if (mime_type == null) mime_type = getDefaultMimeType(buffer, numBytes); if ((preprocess && translate) || mime_type.startsWith("text/html")) { String scanBuf = new String (buffer, 0, numBytes, DASH_CHARSET); translate = translate && !containsNoTranslateTag(scanBuf); preprocess = preprocess || containsServerParseOverride(scanBuf); } } if (preprocess) servePreprocessedFile(content, translate); else if (translate && mime_type.startsWith("text/html")) serveTranslatedFile(content, mime_type); else { discardHeader(); sendHeaders(200, "OK", mime_type, conn.getContentLength(), conn.getLastModified(), null); while (-1 != (numBytes = content.read(buffer))) { outputStream.write(buffer, 0, numBytes); } outputStream.flush(); content.close(); } } | 5494 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5494/892f8ed787bd6ea82ef792128db0184b3641cbee/TinyWebServer.java/buggy/pspdash/TinyWebServer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
12175,
13360,
12,
14790,
1487,
16,
514,
4892,
67,
723,
13,
5411,
1216,
399,
11652,
4079,
3830,
503,
16,
1860,
3639,
288,
5411,
1160,
8526,
1613,
273,
394,
1160,
63,
2312,
1258,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3238,
918,
12175,
13360,
12,
14790,
1487,
16,
514,
4892,
67,
723,
13,
5411,
1216,
399,
11652,
4079,
3830,
503,
16,
1860,
3639,
288,
5411,
1160,
8526,
1613,
273,
394,
1160,
63,
2312,
1258,... |
out.println("<UL>"); | out.println("<table cellpadding=6><tr><th class=\"standard\">File</th><th class=\"standard\">Size</th class=\"standard\"><th class=\"standard\">Format</th></tr>"); | private void listBitstreams() throws IOException { JspWriter out = pageContext.getOut(); HttpServletRequest request = (HttpServletRequest) pageContext.getRequest(); out.print("<table align=center class=\"miscTable\"><tr>"); out.println("<td class=evenRowEvenCol><P><strong>Files:</strong></P>"); Bundle[] bundles = item.getBundles(); if (bundles.length == 0) { out.println("<P>There are no files associated with this item.</P>"); } else { out.println("<UL>"); for (int i = 0; i < bundles.length; i++) { Bitstream[] bitstreams = bundles[i].getBitstreams(); for (int k = 0; k < bitstreams.length ; k++) { // Skip internal types if (!bitstreams[k].getFormat().isInternal()) { out.print("<LI><A TARGET=_blank HREF=\""); out.print(request.getContextPath()); out.print("/retrieve/"); out.print(bitstreams[k].getID()); out.print("\">"); out.print(bitstreams[k].getName()); out.print("</A> - "); out.print(bitstreams[k].getSize()); out.print(" bytes; " + bitstreams[k].getFormatDescription()); out.println("</LI>"); } } } out.println("</UL>"); } out.println("</td></tr></table>"); } | 31338 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31338/6a35ab9fcff19f288ec7f9e286044fc07f857a15/ItemTag.java/clean/dspace/src/org/dspace/app/webui/jsptag/ItemTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
666,
5775,
16320,
1435,
3639,
1216,
1860,
565,
288,
3639,
19300,
2289,
596,
273,
21442,
18,
588,
1182,
5621,
3639,
9984,
590,
273,
5411,
261,
2940,
18572,
13,
21442,
18,
588,
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,
3238,
918,
666,
5775,
16320,
1435,
3639,
1216,
1860,
565,
288,
3639,
19300,
2289,
596,
273,
21442,
18,
588,
1182,
5621,
3639,
9984,
590,
273,
5411,
261,
2940,
18572,
13,
21442,
18,
588,
6... |
CPathContainerWizard wizard = new CPathContainerWizard(elem, null, fCurrCProject, getRawPathEntries(), new int[] { | CPathContainerWizard wizard = new CPathContainerWizard(elem, null, fCurrCProject, getRawPathEntries(), new int[]{ | protected CPElement[] openContainerSelectionDialog(CPElement existing) { IPathEntry elem = null; String title; if (existing == null) { title = CPathEntryMessages.getString("IncludeSymbolEntryPage.ContainerDialog.new.title"); //$NON-NLS-1$ } else { title = CPathEntryMessages.getString("IncludeSymbolEntryPage.ContainerDialog.edit.title"); //$NON-NLS-1$ elem = existing.getPathEntry(); } CPathContainerWizard wizard = new CPathContainerWizard(elem, null, fCurrCProject, getRawPathEntries(), new int[] { IPathEntry.CDT_INCLUDE, IPathEntry.CDT_MACRO}); wizard.setWindowTitle(title); if (CPathContainerWizard.openWizard(getShell(), wizard) == Window.OK) { IPathEntry parent = wizard.getEntriesParent(); IPathEntry[] elements = wizard.getEntries(); if (elements != null) { CPElement[] res = new CPElement[elements.length]; CPElementGroup group = getSelectedGroup(); for (int i = 0; i < res.length; i++) { if (elements[i].getEntryKind() == IPathEntry.CDT_INCLUDE) { res[i] = new CPElement(fCurrCProject, IPathEntry.CDT_INCLUDE, group.getResource().getFullPath(), group.getResource()); res[i].setAttribute(CPElement.INCLUDE, ((IIncludeEntry) elements[i]).getIncludePath()); res[i].setAttribute(CPElement.BASE_REF, parent.getPath()); } else if (elements[i].getEntryKind() == IPathEntry.CDT_MACRO) { res[i] = new CPElement(fCurrCProject, IPathEntry.CDT_MACRO, group.getResource().getFullPath(), group.getResource()); res[i].setAttribute(CPElement.MACRO_NAME, ((IMacroEntry) elements[i]).getMacroName()); res[i].setAttribute(CPElement.BASE_REF, parent.getPath()); } } return res; } } return null; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/53738dc5bfed46178452b79843ccf0ac0f233d45/CPathIncludeSymbolEntryPage.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/dialogs/cpaths/CPathIncludeSymbolEntryPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
5181,
1046,
8526,
1696,
2170,
6233,
6353,
12,
4258,
1046,
2062,
13,
288,
202,
202,
45,
743,
1622,
3659,
273,
446,
31,
202,
202,
780,
2077,
31,
202,
202,
430,
261,
11711,
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,
225,
202,
1117,
5181,
1046,
8526,
1696,
2170,
6233,
6353,
12,
4258,
1046,
2062,
13,
288,
202,
202,
45,
743,
1622,
3659,
273,
446,
31,
202,
202,
780,
2077,
31,
202,
202,
430,
261,
11711,
422,... |
return newString(getValue().toLowerCase()); | return newString(toString().toLowerCase()); | public RubyString downcase() { return newString(getValue().toLowerCase()); } | 1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/9f2efc63a858fa0507245b207025eab027840a04/RubyString.java/clean/src/org/jruby/RubyString.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
780,
21662,
1435,
288,
202,
202,
2463,
394,
780,
12,
24805,
7675,
869,
5630,
10663,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
19817,
780,
21662,
1435,
288,
202,
202,
2463,
394,
780,
12,
24805,
7675,
869,
5630,
10663,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
e.printStackTrace(); | public void transform() throws BuildException { checkOptions(); try { Element root = document.getDocumentElement(); if (NOFRAMES.equals(format)) { //createCascadingStyleSheet(); createSinglePageSummary(root); } else { createFrameStructure(); createCascadingStyleSheet(); createPackageList(root); createClassList(root); createPackageOverview(root); createAllTestSuiteDetails(root); createAllPackageDetails(root); } } catch (Exception e){ e.printStackTrace(); throw new BuildException("Errors while applying transformations", e); } } | 506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/af7fb0127af235ba48a1e9ada6f7fc45847e53fa/AggregateTransformer.java/buggy/src/main/org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2510,
1435,
1216,
18463,
288,
3639,
866,
1320,
5621,
3639,
775,
288,
5411,
3010,
1365,
273,
1668,
18,
588,
2519,
1046,
5621,
4766,
565,
309,
261,
3417,
15072,
55,
18,
14963,
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,
918,
2510,
1435,
1216,
18463,
288,
3639,
866,
1320,
5621,
3639,
775,
288,
5411,
3010,
1365,
273,
1668,
18,
588,
2519,
1046,
5621,
4766,
565,
309,
261,
3417,
15072,
55,
18,
14963,
12... | |
assertTrue("Unexcepted Exception: " + e.getMessage(), false); | assertTrue("Unexpected Exception: " + e.getMessage(), false); | void getBreakLocationTest(final JTextComponent c) { Document doc = c.getDocument(); Graphics g = c.getGraphics(); FontMetrics fm = g.getFontMetrics(); Element root = doc.getDefaultRootElement(); Segment seg = new Segment(); for (int i = 0; i < root.getElementCount(); i++) { Element currentElem = root.getElement(i); int start = currentElem.getStartOffset(); int end = currentElem.getEndOffset(); for (int j = start; j < Math.min(start + 10,end); j++) { try { doc.getText(start, (end - start), seg); } catch (BadLocationException e) { assertTrue("Unexcepted Exception: " + e.getMessage(), false); } int textWidth = Utilities .getTabbedTextWidth(seg, fm, 23, te, j); for (int k = 0; k < textWidth; k++) { int target = 23 + k; //TODO This test have to fail assertEquals(Utilities.getBreakLocation(seg, fm, 23, target, te, j), getBreakLocation(seg, fm, 23, target, te, j)); assertEquals(Utilities.getBreakLocation(seg, fm, 23, target, null, j), getBreakLocation(seg, fm, 23, target, null, j)); } } } } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/87f9b296c72b9c79e26774019e145f4b43632216/UtilitiesTest.java/buggy/modules/swing/src/test/api/java/common/javax/swing/text/UtilitiesTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
2882,
870,
2735,
4709,
12,
6385,
804,
1528,
1841,
276,
13,
288,
3639,
4319,
997,
273,
276,
18,
588,
2519,
5621,
3639,
16830,
314,
273,
276,
18,
588,
17558,
5621,
3639,
10063,
5653,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
2882,
870,
2735,
4709,
12,
6385,
804,
1528,
1841,
276,
13,
288,
3639,
4319,
997,
273,
276,
18,
588,
2519,
5621,
3639,
16830,
314,
273,
276,
18,
588,
17558,
5621,
3639,
10063,
5653,
... |
newChart.getTitle( ).getLabel( ).getCaption( ).setValue( CHART_TITLE ); | newChart.getTitle( ).getLabel( ).getCaption( ).setValue( CHART_TITLE ); | public Chart getModel( String sSubType, Orientation orientation, String sDimension, Chart currentChart ) { ChartWithoutAxes newChart = null; if ( currentChart != null ) { newChart = (ChartWithoutAxes) getConvertedChart( currentChart, sSubType, sDimension ); if ( newChart != null ) { return newChart; } } newChart = ChartWithoutAxesImpl.create( ); newChart.setType( TYPE_LITERAL ); newChart.setSubType( sSubType ); newChart.setDimension( getDimensionFor( sDimension ) ); newChart.setUnits( "Points" ); //$NON-NLS-1$ if ( newChart.getDimension( ) .equals( ChartDimension.TWO_DIMENSIONAL_WITH_DEPTH_LITERAL ) ) { newChart.setSeriesThickness( 15 ); } SeriesDefinition sdX = SeriesDefinitionImpl.create( ); sdX.getSeriesPalette( ).update( 0 ); Series categorySeries = SeriesImpl.create( ); sdX.getSeries( ).add( categorySeries ); sdX.getQuery( ).setDefinition( "Base Series" ); //$NON-NLS-1$ newChart.getTitle( ).getLabel( ).getCaption( ).setValue( CHART_TITLE ); //$NON-NLS-1$ SeriesDefinition sdY = SeriesDefinitionImpl.create( ); sdY.getSeriesPalette( ).update( 0 ); Series valueSeries = PieSeriesImpl.create( ); valueSeries.getLabel( ).setVisible( true ); valueSeries.setSeriesIdentifier( "valueSeriesIdentifier" ); //$NON-NLS-1$ ( (PieSeries) valueSeries ).getTitle( ) .getCaption( ) .setValue( "valueSeries" ); //$NON-NLS-1$ ( (PieSeries) valueSeries ).setStacked( false ); ( (PieSeries) valueSeries ).setExplosion( 0 ); sdY.getSeries( ).add( valueSeries ); sdX.getSeriesDefinitions( ).add( sdY ); newChart.getSeriesDefinitions( ).add( sdX ); addSampleData( newChart ); return newChart; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/ae8909f5c697c610266e491d0af9a02eed14e2e4/PieChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/PieChart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14804,
7454,
12,
514,
272,
30511,
16,
531,
12556,
9820,
16,
1082,
202,
780,
272,
8611,
16,
14804,
783,
7984,
262,
202,
95,
202,
202,
7984,
8073,
26494,
394,
7984,
273,
446,
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,
225,
202,
482,
14804,
7454,
12,
514,
272,
30511,
16,
531,
12556,
9820,
16,
1082,
202,
780,
272,
8611,
16,
14804,
783,
7984,
262,
202,
95,
202,
202,
7984,
8073,
26494,
394,
7984,
273,
446,
31... |
if (getDoubleValue() > 0.0) { | if (value > 0.0) { | public RubyInteger truncate() { if (getDoubleValue() > 0.0) { return floor(); } else if (getDoubleValue() < 0.0) { return ceil(); } else { return RubyFixnum.zero(getRuntime()); } } | 46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyFloat.java/clean/src/org/jruby/RubyFloat.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
4522,
10310,
1435,
288,
3639,
309,
261,
1132,
405,
374,
18,
20,
13,
288,
5411,
327,
6346,
5621,
3639,
289,
469,
309,
261,
588,
5265,
620,
1435,
411,
374,
18,
20,
13,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
4522,
10310,
1435,
288,
3639,
309,
261,
1132,
405,
374,
18,
20,
13,
288,
5411,
327,
6346,
5621,
3639,
289,
469,
309,
261,
588,
5265,
620,
1435,
411,
374,
18,
20,
13,
288,
... |
getContentPane().removeAll(); | getContentPane().remove(monthPanel); getContentPane().remove(weekPanel); | public void onDayClick(DayItem day) { int dayOfMonth = day.getDayOfMonth(); Calendar cal = monthPanel.getCalendar(); cal.set(Calendar.DAY_OF_MONTH, dayOfMonth); dayPanel.showDay(cal); getContentPane().removeAll(); getContentPane().add(dayPanel, BorderLayout.CENTER); getContentPane().validate(); this.repaint(); } | 12183 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12183/44e1db2c3ad94169f15cb1b9b631ee1f5b4b27bd/CalendarFrame.java/buggy/trunk/applications/calendar/src/org/lucane/applications/calendar/gui/CalendarFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
603,
4245,
6563,
12,
4245,
1180,
2548,
13,
225,
202,
95,
202,
202,
474,
25371,
273,
2548,
18,
588,
4245,
14941,
5621,
202,
202,
7335,
1443,
273,
3138,
5537,
18,
588,
7335... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
603,
4245,
6563,
12,
4245,
1180,
2548,
13,
225,
202,
95,
202,
202,
474,
25371,
273,
2548,
18,
588,
4245,
14941,
5621,
202,
202,
7335,
1443,
273,
3138,
5537,
18,
588,
7335... |
workingSetButton = new Button(composite, SWT.CHECK); | workingSetButton = new Button(group, SWT.CHECK); | protected Control createDialogArea(Composite parent) { Composite composite = (Composite) super.createDialogArea(parent); workingSetButton = new Button(composite, SWT.CHECK); workingSetButton.setText(WorkbenchMessages.getString("FilterDialog.workingSet")); //$NON-NLS-1$ workingSetButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { handleWorkingSetButtonSelection(); } }); mruList = new Combo(composite, SWT.DROP_DOWN | SWT.READ_ONLY); GridData data = new GridData(GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER); mruList.setLayoutData(data); mruList.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { handleMruListSelection(); } }); initializeMru(); initializeWorkingSet(); return composite; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/cab4ef1828b264a43bc5811762fd496e810e22f0/FilterDialog.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/dialogs/FilterDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
752,
6353,
5484,
12,
9400,
982,
13,
288,
202,
202,
9400,
9635,
273,
261,
9400,
13,
2240,
18,
2640,
6353,
5484,
12,
2938,
1769,
202,
202,
20478,
694,
3616,
273,
394,
125... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8888,
752,
6353,
5484,
12,
9400,
982,
13,
288,
202,
202,
9400,
9635,
273,
261,
9400,
13,
2240,
18,
2640,
6353,
5484,
12,
2938,
1769,
202,
202,
20478,
694,
3616,
273,
394,
125... |
if (obj instanceof Scriptable) { | try { | public static Object setProto(Object obj, Object value, Scriptable scope) { Scriptable start; if (obj instanceof Scriptable) { start = (Scriptable) obj; } else { start = toObject(scope, obj); } Scriptable result = value == null ? null : toObject(scope, value); Scriptable s = result; while (s != null) { if (s == start) { throw Context.reportRuntimeError1( "msg.cyclic.value", "__proto__"); } s = s.getPrototype(); } if (start == null) { throw NativeGlobal.typeError0("msg.null.to.object", scope); } start.setPrototype(result); return result; } | 19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/ef099c4a0db1431d6335ff685079a191c41f4335/ScriptRuntime.java/clean/src/org/mozilla/javascript/ScriptRuntime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
444,
6262,
12,
921,
1081,
16,
1033,
460,
16,
22780,
2146,
13,
288,
3639,
22780,
787,
31,
3639,
775,
288,
5411,
787,
273,
261,
3651,
429,
13,
1081,
31,
3639,
289,
469,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
444,
6262,
12,
921,
1081,
16,
1033,
460,
16,
22780,
2146,
13,
288,
3639,
22780,
787,
31,
3639,
775,
288,
5411,
787,
273,
261,
3651,
429,
13,
1081,
31,
3639,
289,
469,
... |
{ return new String(" "); } | { return new String(" "); } | public String getIdentifierQuoteString() throws SQLException { return new String(" "); } | 46312 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46312/6a061da272f04e1463864065f87f1f3fd61d6162/DatabaseMetaData.java/buggy/src/interfaces/jdbc/postgresql/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
9650,
10257,
780,
1435,
1216,
6483,
202,
95,
202,
202,
2463,
394,
514,
2932,
315,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
9650,
10257,
780,
1435,
1216,
6483,
202,
95,
202,
202,
2463,
394,
514,
2932,
315,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public void crack40( Message message, SessionID sessionID ) | public void crack40( Message message, SessionID sessionID ) | public void crack40( Message message, SessionID sessionID ) throws UnsupportedMessageType, FieldNotFound, IncorrectTagValue { MsgType msgType = new MsgType(); message.getHeader().getField(msgType); String msgTypeValue = msgType.getValue(); if( msgTypeValue.equals("0") ) onMessage( (Heartbeat)message, sessionID ); else if( msgTypeValue.equals("A") ) onMessage( (Logon)message, sessionID ); else if( msgTypeValue.equals("1") ) onMessage( (TestRequest)message, sessionID ); else if( msgTypeValue.equals("2") ) onMessage( (ResendRequest)message, sessionID ); else if( msgTypeValue.equals("3") ) onMessage( (Reject)message, sessionID ); else if( msgTypeValue.equals("4") ) onMessage( (SequenceReset)message, sessionID ); else if( msgTypeValue.equals("5") ) onMessage( (Logout)message, sessionID ); else if( msgTypeValue.equals("7") ) onMessage( (Advertisement)message, sessionID ); else if( msgTypeValue.equals("6") ) onMessage( (IndicationofInterest)message, sessionID ); else if( msgTypeValue.equals("B") ) onMessage( (News)message, sessionID ); else if( msgTypeValue.equals("C") ) onMessage( (Email)message, sessionID ); else if( msgTypeValue.equals("R") ) onMessage( (QuoteRequest)message, sessionID ); else if( msgTypeValue.equals("S") ) onMessage( (Quote)message, sessionID ); else if( msgTypeValue.equals("D") ) onMessage( (NewOrderSingle)message, sessionID ); else if( msgTypeValue.equals("8") ) onMessage( (ExecutionReport)message, sessionID ); else if( msgTypeValue.equals("Q") ) onMessage( (DontKnowTrade)message, sessionID ); else if( msgTypeValue.equals("G") ) onMessage( (OrderCancelReplaceRequest)message, sessionID ); else if( msgTypeValue.equals("F") ) onMessage( (OrderCancelRequest)message, sessionID ); else if( msgTypeValue.equals("9") ) onMessage( (OrderCancelReject)message, sessionID ); else if( msgTypeValue.equals("H") ) onMessage( (OrderStatusRequest)message, sessionID ); else if( msgTypeValue.equals("J") ) onMessage( (Allocation)message, sessionID ); else if( msgTypeValue.equals("P") ) onMessage( (AllocationACK)message, sessionID ); else if( msgTypeValue.equals("E") ) onMessage( (NewOrderList)message, sessionID ); else if( msgTypeValue.equals("N") ) onMessage( (ListStatus)message, sessionID ); else if( msgTypeValue.equals("L") ) onMessage( (ListExecute)message, sessionID ); else if( msgTypeValue.equals("K") ) onMessage( (ListCancelRequest)message, sessionID ); else if( msgTypeValue.equals("M") ) onMessage( (ListStatusRequest)message, sessionID ); else onMessage( message, sessionID ); } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/1550773ed3d856616a145b520aada7f5e496c228/MessageCracker.java/buggy/src/java/src/quickfix/fix40/MessageCracker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
276,
21580,
7132,
12,
2350,
883,
16,
3877,
734,
13737,
262,
565,
1216,
7221,
24563,
16,
2286,
2768,
16,
657,
6746,
1805,
620,
225,
288,
565,
8671,
559,
1234,
559,
273,
394,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
276,
21580,
7132,
12,
2350,
883,
16,
3877,
734,
13737,
262,
565,
1216,
7221,
24563,
16,
2286,
2768,
16,
657,
6746,
1805,
620,
225,
288,
565,
8671,
559,
1234,
559,
273,
394,
8... |
if (fEnumeration.elementAt(i).equals(ob)) { present = true; break; | if (fEnumerationType[i] == type && fEnumeration.elementAt(i).equals(ob)) { if(type == XSConstants.LIST_DT || type == XSConstants.LISTOFUNION_DT) { ShortList enumItemType = fEnumerationItemType[i]; if(enumItemType.equals(itemType)) { present = true; break; } } else { present = true; break; } | private void checkFacets(ValidatedInfo validatedInfo) throws InvalidDatatypeValueException { Object ob = validatedInfo.actualValue; String content = validatedInfo.normalizedValue; // For QName and NOTATION types, we don't check length facets if (fValidationDV != DV_QNAME && fValidationDV != DV_NOTATION) { int length = fDVs[fValidationDV].getDataLength(ob); // maxLength if ( (fFacetsDefined & FACET_MAXLENGTH) != 0 ) { if ( length > fMaxLength ) { throw new InvalidDatatypeValueException("cvc-maxLength-valid", new Object[]{content, Integer.toString(length), Integer.toString(fMaxLength), fTypeName}); } } //minLength if ( (fFacetsDefined & FACET_MINLENGTH) != 0 ) { if ( length < fMinLength ) { throw new InvalidDatatypeValueException("cvc-minLength-valid", new Object[]{content, Integer.toString(length), Integer.toString(fMinLength), fTypeName}); } } //length if ( (fFacetsDefined & FACET_LENGTH) != 0 ) { if ( length != fLength ) { throw new InvalidDatatypeValueException("cvc-length-valid", new Object[]{content, Integer.toString(length), Integer.toString(fLength), fTypeName}); } } } //enumeration if ( ((fFacetsDefined & FACET_ENUMERATION) != 0 ) ) { boolean present = false; for (int i = 0; i < fEnumeration.size(); i++) { if (fEnumeration.elementAt(i).equals(ob)) { present = true; break; } } if(!present){ throw new InvalidDatatypeValueException("cvc-enumeration-valid", new Object [] {content, fEnumeration.toString()}); } } //fractionDigits if ((fFacetsDefined & FACET_FRACTIONDIGITS) != 0) { int scale = fDVs[fValidationDV].getFractionDigits(ob); if (scale > fFractionDigits) { throw new InvalidDatatypeValueException("cvc-fractionDigits-valid", new Object[] {content, Integer.toString(scale), Integer.toString(fFractionDigits)}); } } //totalDigits if ((fFacetsDefined & FACET_TOTALDIGITS)!=0) { int totalDigits = fDVs[fValidationDV].getTotalDigits(ob); if (totalDigits > fTotalDigits) { throw new InvalidDatatypeValueException("cvc-totalDigits-valid", new Object[] {content, Integer.toString(totalDigits), Integer.toString(fTotalDigits)}); } } int compare; //maxinclusive if ( (fFacetsDefined & FACET_MAXINCLUSIVE) != 0 ) { compare = fDVs[fValidationDV].compare(ob, fMaxInclusive); if (compare != -1 && compare != 0) { throw new InvalidDatatypeValueException("cvc-maxInclusive-valid", new Object[] {content, fMaxInclusive, fTypeName}); } } //maxExclusive if ( (fFacetsDefined & FACET_MAXEXCLUSIVE) != 0 ) { compare = fDVs[fValidationDV].compare(ob, fMaxExclusive ); if (compare != -1) { throw new InvalidDatatypeValueException("cvc-maxExclusive-valid", new Object[] {content, fMaxExclusive, fTypeName}); } } //minInclusive if ( (fFacetsDefined & FACET_MININCLUSIVE) != 0 ) { compare = fDVs[fValidationDV].compare(ob, fMinInclusive); if (compare != 1 && compare != 0) { throw new InvalidDatatypeValueException("cvc-minInclusive-valid", new Object[] {content, fMinInclusive, fTypeName}); } } //minExclusive if ( (fFacetsDefined & FACET_MINEXCLUSIVE) != 0 ) { compare = fDVs[fValidationDV].compare(ob, fMinExclusive); if (compare != 1) { throw new InvalidDatatypeValueException("cvc-minExclusive-valid", new Object[] {content, fMinExclusive, fTypeName}); } } } | 1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/e46c49004bfd32d97c79a434d165ad891b930fb1/XSSimpleTypeDecl.java/buggy/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
866,
6645,
2413,
12,
24258,
966,
10266,
966,
13,
1216,
1962,
20228,
9738,
288,
9506,
202,
921,
3768,
273,
10266,
966,
18,
18672,
620,
31,
202,
202,
780,
913,
273,
10266,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
866,
6645,
2413,
12,
24258,
966,
10266,
966,
13,
1216,
1962,
20228,
9738,
288,
9506,
202,
921,
3768,
273,
10266,
966,
18,
18672,
620,
31,
202,
202,
780,
913,
273,
10266,
... |
Field serialPersistentFields = | final Field serialPersistentFields = | private void setFields(Class cl) { if (!isSerializable() || isExternalizable()) { fields = NO_FIELDS; return; } try { Field serialPersistentFields = cl.getDeclaredField("serialPersistentFields"); serialPersistentFields.setAccessible(true); int modifiers = serialPersistentFields.getModifiers(); if (Modifier.isStatic(modifiers) && Modifier.isFinal(modifiers) && Modifier.isPrivate(modifiers)) { fields = getSerialPersistentFields(cl); if (fields != null) { Arrays.sort (fields); calculateOffsets(); return; } } } catch (NoSuchFieldException ignore) { } catch (IllegalAccessException ignore) { } int num_good_fields = 0; Field[] all_fields = cl.getDeclaredFields(); int modifiers; // set non-serializable fields to null in all_fields for (int i = 0; i < all_fields.length; i++) { modifiers = all_fields[i].getModifiers(); if (Modifier.isTransient(modifiers) || Modifier.isStatic(modifiers)) all_fields[i] = null; else num_good_fields++; } // make a copy of serializable (non-null) fields fields = new ObjectStreamField[ num_good_fields ]; for (int from = 0, to = 0; from < all_fields.length; from++) if (all_fields[from] != null) { Field f = all_fields[from]; fields[to] = new ObjectStreamField(f.getName(), f.getType()); to++; } Arrays.sort(fields); calculateOffsets(); } | 56365 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56365/287ecb3eab399e579158e4cbd037261f67ffbc1b/ObjectStreamClass.java/clean/libjava/java/io/ObjectStreamClass.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
444,
2314,
12,
797,
927,
13,
225,
288,
565,
309,
16051,
291,
21682,
1435,
747,
353,
6841,
6934,
10756,
1377,
288,
202,
2821,
273,
3741,
67,
12683,
31,
202,
2463,
31,
1377,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
444,
2314,
12,
797,
927,
13,
225,
288,
565,
309,
16051,
291,
21682,
1435,
747,
353,
6841,
6934,
10756,
1377,
288,
202,
2821,
273,
3741,
67,
12683,
31,
202,
2463,
31,
1377,
28... |
if (vmClasses != null) { vmRepositories = new String[2]; vmRepositories[0] = vmClasses + "/jksvm.jar"; vmRepositories[0] = vmClasses; vmRepositories[1] = vmClasses + "\\rvmrt.jar"; vmRepositories[1] = vmClasses + "/rvmrt.jar"; } | setVmRepositories( vmClasses ); | static void boot(String vmClasses) { if (vmClasses != null) { vmRepositories = new String[2]; //-#if RVM_WITH_JKSVM_JAR vmRepositories[0] = vmClasses + "/jksvm.jar"; //-#else vmRepositories[0] = vmClasses; //-#endif //-#if RVM_FOR_CYGWIN vmRepositories[1] = vmClasses + "\\rvmrt.jar"; //-#else vmRepositories[1] = vmClasses + "/rvmrt.jar"; //-#endif } if (VM.TraceRepositoryReading) { VM.sysWrite("VM_ClassLoader.boot:\n"); for (int i = 0, n = vmRepositories.length; i < n; ++i) VM.sysWrite(" " + vmRepositories[i] + "\n"); } // Zip file caching caches = new ZipFile[10]; zipCacheCount = 0; // Resource caching resourceCache = new Hashtable(); resourceNullKey = new VM_BinaryData( (byte[])null ); } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/b50ef93406b2ef984f8285babf993d262ec89fae/VM_ClassLoader.java/clean/rvm/src/vm/classLoader/VM_ClassLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
918,
4835,
12,
780,
4268,
4818,
13,
288,
565,
309,
261,
3489,
4818,
480,
446,
13,
288,
1377,
4268,
18429,
273,
394,
514,
63,
22,
15533,
1377,
368,
17,
7,
430,
534,
7397,
67,
9147... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
918,
4835,
12,
780,
4268,
4818,
13,
288,
565,
309,
261,
3489,
4818,
480,
446,
13,
288,
1377,
4268,
18429,
273,
394,
514,
63,
22,
15533,
1377,
368,
17,
7,
430,
534,
7397,
67,
9147... |
public void ruleAction(int ruleNumber) { switch (ruleNumber) { // // Rule 1: TypeName ::= TypeName . ErrorId // case 1: { //#line 6 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name TypeName = (Name) getRhsSym(1); //#line 8 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name PackageName = (Name) getRhsSym(1); //#line 18 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 28 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 38 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 48 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 58 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 68 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(), Primary, "*")); break; } // // Rule 8: FieldAccess ::= super . ErrorId // case 8: { //#line 73 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 76 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 78 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object MethodPrimaryPrefix = (Object) getRhsSym(1); //#line 82 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 84 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier MethodSuperPrefix = (polyglot.lex.Identifier) getRhsSym(1); //#line 89 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 91 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Object MethodClassNameSuperPrefix = (Object) getRhsSym(1); //#line 95 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 97 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 104 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 106 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 114 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 117 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(5); //#line 119 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken ident = (IToken) getRhsIToken(1); //#line 96 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 20: IntegralType ::= char // case 20: { //#line 126 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 21: IntegralType ::= short // case 21: { //#line 131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 22: IntegralType ::= int // case 22: { //#line 136 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 23: IntegralType ::= long // case 23: { //#line 141 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 24: FloatingPointType ::= float // case 24: { //#line 147 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 25: FloatingPointType ::= double // case 25: { //#line 152 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 28: TypeName ::= identifier // case 28: { //#line 175 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 177 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(1); //#line 180 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 182 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 196 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.array(Type, pos(), 1)); break; } // // Rule 32: PackageName ::= identifier // case 32: { //#line 241 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 243 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageName = (Name) getRhsSym(1); //#line 246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 248 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 264 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 267 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 269 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 279 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 284 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 294 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 297 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 299 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 309 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 312 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 314 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" PackageNode PackageDeclarationopt = (PackageNode) getRhsSym(1); //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarationsopt = (List) getRhsSym(2); //#line 324 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarationsopt = (List) getRhsSym(3); //#line 326 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(1); //#line 344 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarations = (List) getRhsSym(1); //#line 349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(2); //#line 351 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(1); //#line 359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarations = (List) getRhsSym(1); //#line 365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(2); //#line 367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(2); //#line 382 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(2); //#line 388 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(null); break; } // // Rule 56: ClassModifiers ::= ClassModifiers ClassModifier // case 56: { //#line 414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifiers = (Flags) getRhsSym(1); //#line 414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifier = (Flags) getRhsSym(2); //#line 416 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassModifiers.set(ClassModifier)); break; } // // Rule 57: ClassModifier ::= public // case 57: { //#line 424 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 58: ClassModifier ::= protected // case 58: { //#line 429 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 59: ClassModifier ::= private // case 59: { //#line 434 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 60: ClassModifier ::= abstract // case 60: { //#line 439 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 61: ClassModifier ::= static // case 61: { //#line 444 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 62: ClassModifier ::= final // case 62: { //#line 449 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 63: ClassModifier ::= strictfp // case 63: { //#line 454 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 64: Super ::= extends ClassType // case 64: { //#line 466 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ClassType = (TypeNode) getRhsSym(2); //#line 468 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassType); break; } // // Rule 65: Interfaces ::= implements InterfaceTypeList // case 65: { //#line 477 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(2); //#line 479 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceTypeList); break; } // // Rule 66: InterfaceTypeList ::= InterfaceType // case 66: { //#line 483 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(1); //#line 485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(1); //#line 490 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 492 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceTypeList.add(InterfaceType); setResult(InterfaceTypeList); break; } // // Rule 68: ClassBody ::= { ClassBodyDeclarationsopt } // case 68: { //#line 502 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarationsopt = (List) getRhsSym(2); //#line 504 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarations = (List) getRhsSym(1); //#line 509 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclaration = (List) getRhsSym(2); //#line 511 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassBodyDeclarations.addAll(ClassBodyDeclaration); // setResult(a); break; } // // Rule 72: ClassBodyDeclaration ::= InstanceInitializer // case 72: { //#line 517 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block InstanceInitializer = (Block) getRhsSym(1); //#line 519 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block StaticInitializer = (Block) getRhsSym(1); //#line 526 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ConstructorDecl ConstructorDeclaration = (ConstructorDecl) getRhsSym(1); //#line 533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodDeclaration = (MethodDecl) getRhsSym(1); //#line 542 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 549 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 556 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(1); //#line 573 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(1); //#line 578 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(3); //#line 580 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclarators.add(VariableDeclarator); // setResult(VariableDeclarators); break; } // // Rule 83: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 83: { //#line 586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 588 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier())); break; } // // Rule 85: TraditionalVariableDeclaratorId ::= TraditionalVariableDeclaratorId [ ] // case 85: { //#line 599 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator TraditionalVariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 601 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 608 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(3); //#line 610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier(), IdentifierList)); break; } // // Rule 88: VariableDeclaratorId ::= [ IdentifierList ] // case 88: { //#line 613 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(2); //#line 615 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), IdentifierList)); break; } // // Rule 92: FieldModifiers ::= FieldModifiers FieldModifier // case 92: { //#line 623 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifiers = (Flags) getRhsSym(1); //#line 623 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifier = (Flags) getRhsSym(2); //#line 625 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(FieldModifiers.set(FieldModifier)); break; } // // Rule 93: FieldModifier ::= public // case 93: { //#line 633 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 94: FieldModifier ::= protected // case 94: { //#line 638 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 95: FieldModifier ::= private // case 95: { //#line 643 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 96: FieldModifier ::= static // case 96: { //#line 648 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 97: FieldModifier ::= final // case 97: { //#line 653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 98: FieldModifier ::= transient // case 98: { //#line 658 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.TRANSIENT); break; } // // Rule 100: ResultType ::= void // case 100: { //#line 675 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 101: FormalParameterList ::= LastFormalParameter // case 101: { //#line 695 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(1); //#line 697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(LastFormalParameter); setResult(l); break; } // // Rule 102: FormalParameterList ::= FormalParameters , LastFormalParameter // case 102: { //#line 702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(3); //#line 704 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(LastFormalParameter); // setResult(FormalParameters); break; } // // Rule 103: FormalParameters ::= FormalParameter // case 103: { //#line 709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(1); //#line 711 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(FormalParameter); setResult(l); break; } // // Rule 104: FormalParameters ::= FormalParameters , FormalParameter // case 104: { //#line 716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 718 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(FormalParameter); // setResult(FormalParameters); break; } // // Rule 105: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 105: { //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(3); //#line 725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 107: VariableModifiers ::= VariableModifiers VariableModifier // case 107: { //#line 733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiers = (Flags) getRhsSym(1); //#line 733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifier = (Flags) getRhsSym(2); //#line 735 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(VariableModifiers.set(VariableModifier)); break; } // // Rule 108: VariableModifier ::= final // case 108: { //#line 741 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 109: LastFormalParameter ::= VariableModifiersopt Type ...opt$opt VariableDeclaratorId // case 109: { //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 747 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(4); //#line 749 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 111: MethodModifiers ::= MethodModifiers MethodModifier // case 111: { //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifiers = (Flags) getRhsSym(1); //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifier = (Flags) getRhsSym(2); //#line 763 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(MethodModifiers.set(MethodModifier)); break; } // // Rule 112: MethodModifier ::= public // case 112: { //#line 771 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 113: MethodModifier ::= protected // case 113: { //#line 776 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 114: MethodModifier ::= private // case 114: { //#line 781 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 115: MethodModifier ::= abstract // case 115: { //#line 786 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 116: MethodModifier ::= static // case 116: { //#line 791 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 117: MethodModifier ::= final // case 117: { //#line 796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 118: MethodModifier ::= native // case 118: { //#line 806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NATIVE); break; } // // Rule 119: MethodModifier ::= strictfp // case 119: { //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 120: Throws ::= throws ExceptionTypeList // case 120: { //#line 815 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(2); //#line 817 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExceptionTypeList); break; } // // Rule 121: ExceptionTypeList ::= ExceptionType // case 121: { //#line 821 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(1); //#line 823 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(ExceptionType); setResult(l); break; } // // Rule 122: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 122: { //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(1); //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(3); //#line 830 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExceptionTypeList.add(ExceptionType); // setResult(ExceptionTypeList); break; } // // Rule 125: MethodBody ::= ; // case 125: setResult(null); break; // // Rule 127: StaticInitializer ::= static Block // case 127: { //#line 850 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 128: SimpleTypeName ::= identifier // case 128: { //#line 867 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 869 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 130: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 130: { //#line 874 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifiers = (Flags) getRhsSym(1); //#line 874 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifier = (Flags) getRhsSym(2); //#line 876 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstructorModifiers.set(ConstructorModifier)); break; } // // Rule 131: ConstructorModifier ::= public // case 131: { //#line 884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 132: ConstructorModifier ::= protected // case 132: { //#line 889 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 133: ConstructorModifier ::= private // case 133: { //#line 894 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 134: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 134: { //#line 898 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt ExplicitConstructorInvocationopt = (Stmt) getRhsSym(2); //#line 898 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(3); //#line 900 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l; l = new TypedList(new LinkedList(), Stmt.class, false); if (ExplicitConstructorInvocationopt == null) { l.add(nf.SuperCall(pos(), Collections.EMPTY_LIST)); } else { l.add(ExplicitConstructorInvocationopt); } l.addAll(BlockStatementsopt); setResult(nf.Block(pos(), l)); break; } // // Rule 135: Arguments ::= ( ArgumentListopt ) // case 135: { //#line 933 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(2); //#line 935 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ArgumentListopt); break; } // // Rule 138: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 138: { //#line 951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifiers = (Flags) getRhsSym(1); //#line 951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifier = (Flags) getRhsSym(2); //#line 953 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceModifiers.set(InterfaceModifier)); break; } // // Rule 139: InterfaceModifier ::= public // case 139: { //#line 961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 140: InterfaceModifier ::= protected // case 140: { //#line 966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 141: InterfaceModifier ::= private // case 141: { //#line 971 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 142: InterfaceModifier ::= abstract // case 142: { //#line 976 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 143: InterfaceModifier ::= static // case 143: { //#line 981 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 144: InterfaceModifier ::= strictfp // case 144: { //#line 986 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 145: ExtendsInterfaces ::= extends InterfaceType // case 145: { //#line 990 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(2); //#line 992 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 146: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 146: { //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExtendsInterfaces = (List) getRhsSym(1); //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 999 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExtendsInterfaces.add(InterfaceType); // setResult(ExtendsInterfaces); break; } // // Rule 147: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 147: { //#line 1009 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarationsopt = (List) getRhsSym(2); //#line 1011 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(), InterfaceMemberDeclarationsopt)); break; } // // Rule 149: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 149: { //#line 1016 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarations = (List) getRhsSym(1); //#line 1016 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclaration = (List) getRhsSym(2); //#line 1018 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceMemberDeclarations.addAll(InterfaceMemberDeclaration); // setResult(l); break; } // // Rule 151: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 151: { //#line 1024 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl AbstractMethodDeclaration = (MethodDecl) getRhsSym(1); //#line 1026 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(AbstractMethodDeclaration); setResult(l); break; } // // Rule 152: InterfaceMemberDeclaration ::= ClassDeclaration // case 152: { //#line 1031 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1033 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 153: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 153: { //#line 1038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 1040 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 154: InterfaceMemberDeclaration ::= ; // case 154: { //#line 1047 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Collections.EMPTY_LIST); break; } // // Rule 155: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 155: { //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiersopt = (Flags) getRhsSym(1); //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1051 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1053 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 157: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 157: { //#line 1071 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiers = (Flags) getRhsSym(1); //#line 1071 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifier = (Flags) getRhsSym(2); //#line 1073 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstantModifiers.set(ConstantModifier)); break; } // // Rule 158: ConstantModifier ::= public // case 158: { //#line 1081 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 159: ConstantModifier ::= static // case 159: { //#line 1086 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 160: ConstantModifier ::= final // case 160: { //#line 1091 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 162: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 162: { //#line 1098 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifiers = (Flags) getRhsSym(1); //#line 1098 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifier = (Flags) getRhsSym(2); //#line 1100 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(AbstractMethodModifiers.set(AbstractMethodModifier)); break; } // // Rule 163: AbstractMethodModifier ::= public // case 163: { //#line 1108 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 164: AbstractMethodModifier ::= abstract // case 164: { //#line 1113 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 165: SimpleName ::= identifier // case 165: { //#line 1169 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 166: ArrayInitializer ::= { VariableInitializersopt ,opt$opt } // case 166: { //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializersopt = (List) getRhsSym(2); //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 1200 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableInitializersopt == null) setResult(nf.ArrayInit(pos())); else setResult(nf.ArrayInit(pos(), VariableInitializersopt)); break; } // // Rule 167: VariableInitializers ::= VariableInitializer // case 167: { //#line 1206 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(1); //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(VariableInitializer); setResult(l); break; } // // Rule 168: VariableInitializers ::= VariableInitializers , VariableInitializer // case 168: { //#line 1213 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializers = (List) getRhsSym(1); //#line 1213 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 1215 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableInitializers.add(VariableInitializer); //setResult(VariableInitializers); break; } // // Rule 169: Block ::= { BlockStatementsopt } // case 169: { //#line 1234 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(2); //#line 1236 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Block(pos(), BlockStatementsopt)); break; } // // Rule 170: BlockStatements ::= BlockStatement // case 170: { //#line 1240 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(1); //#line 1242 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.addAll(BlockStatement); setResult(l); break; } // // Rule 171: BlockStatements ::= BlockStatements BlockStatement // case 171: { //#line 1247 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(1); //#line 1247 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(2); //#line 1249 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" BlockStatements.addAll(BlockStatement); //setResult(l); break; } // // Rule 173: BlockStatement ::= ClassDeclaration // case 173: { //#line 1255 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 174: BlockStatement ::= Statement // case 174: { //#line 1262 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(1); //#line 1264 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(Statement); setResult(l); break; } // // Rule 176: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 176: { //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1272 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1274 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 200: IfThenStatement ::= if ( Expression ) Statement // case 200: { //#line 1335 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1335 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1337 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, Statement)); break; } // // Rule 201: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 201: { //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1341 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(7); //#line 1343 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, StatementNoShortIf, Statement)); break; } // // Rule 202: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf$true_stmt else StatementNoShortIf$false_stmt // case 202: { //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt true_stmt = (Stmt) getRhsSym(5); //#line 1347 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt false_stmt = (Stmt) getRhsSym(7); //#line 1349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, true_stmt, false_stmt)); break; } // // Rule 203: EmptyStatement ::= ; // case 203: { //#line 1355 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Empty(pos())); break; } // // Rule 204: LabeledStatement ::= identifier : Statement // case 204: { //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(3); //#line 1361 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), Statement)); break; } // // Rule 205: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 205: { //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(3); //#line 1367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), StatementNoShortIf)); break; } // // Rule 206: ExpressionStatement ::= StatementExpression ; // case 206: { //#line 1370 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1372 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Eval(pos(), StatementExpression)); break; } // // Rule 214: AssertStatement ::= assert Expression ; // case 214: { //#line 1393 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1395 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), Expression)); break; } // // Rule 215: AssertStatement ::= assert Expression$expr1 : Expression$expr2 ; // case 215: { //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr1 = (Expr) getRhsSym(2); //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr2 = (Expr) getRhsSym(4); //#line 1400 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), expr1, expr2)); break; } // // Rule 216: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 216: { //#line 1404 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1404 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlock = (List) getRhsSym(5); //#line 1406 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Switch(pos(), Expression, SwitchBlock)); break; } // // Rule 217: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 217: { //#line 1410 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroupsopt = (List) getRhsSym(2); //#line 1410 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabelsopt = (List) getRhsSym(3); //#line 1412 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroupsopt.addAll(SwitchLabelsopt); setResult(SwitchBlockStatementGroupsopt); break; } // // Rule 219: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 219: { //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroups = (List) getRhsSym(1); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroup = (List) getRhsSym(2); //#line 1420 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroups.addAll(SwitchBlockStatementGroup); // setResult(SwitchBlockStatementGroups); break; } // // Rule 220: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 220: { //#line 1425 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1425 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(2); //#line 1427 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 221: SwitchLabels ::= SwitchLabel // case 221: { //#line 1434 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(1); //#line 1436 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Case.class, false); l.add(SwitchLabel); setResult(l); break; } // // Rule 222: SwitchLabels ::= SwitchLabels SwitchLabel // case 222: { //#line 1441 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1441 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(2); //#line 1443 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchLabels.add(SwitchLabel); //setResult(SwitchLabels); break; } // // Rule 223: SwitchLabel ::= case ConstantExpression : // case 223: { //#line 1448 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConstantExpression = (Expr) getRhsSym(2); //#line 1450 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Case(pos(), ConstantExpression)); break; } // // Rule 224: SwitchLabel ::= default : // case 224: { //#line 1457 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Default(pos())); break; } // // Rule 225: WhileStatement ::= while ( Expression ) Statement // case 225: { //#line 1464 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1464 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1466 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, Statement)); break; } // // Rule 226: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 226: { //#line 1470 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1470 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1472 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, StatementNoShortIf)); break; } // // Rule 227: DoStatement ::= do Statement while ( Expression ) ; // case 227: { //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(2); //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(5); //#line 1478 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Do(pos(), Statement, Expression)); break; } // // Rule 230: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 230: { //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1485 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(9); //#line 1487 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, Statement)); break; } // // Rule 231: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 231: { //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1491 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(9); //#line 1493 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, StatementNoShortIf)); break; } // // Rule 233: ForInit ::= LocalVariableDeclaration // case 233: { //#line 1498 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List LocalVariableDeclaration = (List) getRhsSym(1); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ForInit.class, false); l.addAll(LocalVariableDeclaration); //setResult(l); break; } // // Rule 235: StatementExpressionList ::= StatementExpression // case 235: { //#line 1508 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1510 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 236: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 236: { //#line 1515 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List StatementExpressionList = (List) getRhsSym(1); //#line 1515 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(3); //#line 1517 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" StatementExpressionList.add(nf.Eval(pos(), StatementExpression)); //setResult(StatementExpressionList); break; } // // Rule 237: BreakStatement ::= break identifieropt ; // case 237: { //#line 1525 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1527 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Break(pos())); else setResult(nf.Break(pos(), identifieropt.toString())); break; } // // Rule 238: ContinueStatement ::= continue identifieropt ; // case 238: { //#line 1533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1535 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Continue(pos())); else setResult(nf.Continue(pos(), identifieropt.toString())); break; } // // Rule 239: ReturnStatement ::= return Expressionopt ; // case 239: { //#line 1541 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(2); //#line 1543 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Return(pos(), Expressionopt)); break; } // // Rule 240: ThrowStatement ::= throw Expression ; // case 240: { //#line 1547 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1549 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Throw(pos(), Expression)); break; } // // Rule 241: TryStatement ::= try Block Catches // case 241: { //#line 1559 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1559 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(3); //#line 1561 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catches)); break; } // // Rule 242: TryStatement ::= try Block Catchesopt Finally // case 242: { //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catchesopt = (List) getRhsSym(3); //#line 1564 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Finally = (Block) getRhsSym(4); //#line 1566 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catchesopt, Finally)); break; } // // Rule 243: Catches ::= CatchClause // case 243: { //#line 1570 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(1); //#line 1572 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Catch.class, false); l.add(CatchClause); setResult(l); break; } // // Rule 244: Catches ::= Catches CatchClause // case 244: { //#line 1577 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(1); //#line 1577 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(2); //#line 1579 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catches.add(CatchClause); //setResult(Catches); break; } // // Rule 245: CatchClause ::= catch ( FormalParameter ) Block // case 245: { //#line 1584 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1584 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(5); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Catch(pos(), FormalParameter, Block)); break; } // // Rule 246: Finally ::= finally Block // case 246: { //#line 1590 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1592 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 250: PrimaryNoNewArray ::= Type . class // case 250: { //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1612 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 251: PrimaryNoNewArray ::= void . class // case 251: { //#line 1631 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 252: PrimaryNoNewArray ::= this // case 252: { //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos())); break; } // // Rule 253: PrimaryNoNewArray ::= ClassName . this // case 253: { //#line 1640 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1642 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 254: PrimaryNoNewArray ::= ( Expression ) // case 254: { //#line 1645 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1647 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ParExpr(pos(), Expression)); break; } // // Rule 259: Literal ::= IntegerLiteral$IntegerLiteral // case 259: { //#line 1655 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken IntegerLiteral = (IToken) getRhsIToken(1); //#line 1657 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 260: Literal ::= LongLiteral$LongLiteral // case 260: { //#line 1661 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken LongLiteral = (IToken) getRhsIToken(1); //#line 1663 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 261: Literal ::= FloatingPointLiteral$FloatLiteral // case 261: { //#line 1667 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken FloatLiteral = (IToken) getRhsIToken(1); //#line 1669 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 262: Literal ::= DoubleLiteral$DoubleLiteral // case 262: { //#line 1673 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken DoubleLiteral = (IToken) getRhsIToken(1); //#line 1675 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 263: Literal ::= BooleanLiteral // case 263: { //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.BooleanLiteral BooleanLiteral = (polyglot.lex.BooleanLiteral) getRhsSym(1); //#line 1681 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.BooleanLit(pos(), BooleanLiteral.getValue().booleanValue())); break; } // // Rule 264: Literal ::= CharacterLiteral$CharacterLiteral // case 264: { //#line 1684 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken CharacterLiteral = (IToken) getRhsIToken(1); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.CharacterLiteral a = char_lit(getRhsFirstTokenIndex(1)); setResult(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 265: Literal ::= StringLiteral$str // case 265: { //#line 1690 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken str = (IToken) getRhsIToken(1); //#line 1692 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.StringLiteral a = string_lit(getRhsFirstTokenIndex(1)); setResult(nf.StringLit(pos(), a.getValue())); break; } // // Rule 266: Literal ::= null // case 266: { //#line 1698 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.NullLit(pos())); break; } // // Rule 267: BooleanLiteral ::= true$trueLiteral // case 267: { //#line 1702 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken trueLiteral = (IToken) getRhsIToken(1); //#line 1704 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 268: BooleanLiteral ::= false$falseLiteral // case 268: { //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken falseLiteral = (IToken) getRhsIToken(1); //#line 1709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 269: ArgumentList ::= Expression // case 269: { //#line 1722 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(1); //#line 1724 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Expression); setResult(l); break; } // // Rule 270: ArgumentList ::= ArgumentList , Expression // case 270: { //#line 1729 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentList = (List) getRhsSym(1); //#line 1729 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1731 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ArgumentList.add(Expression); //setResult(ArgumentList); break; } // // Rule 271: DimExprs ::= DimExpr // case 271: { //#line 1765 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(1); //#line 1767 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); setResult(l); break; } // // Rule 272: DimExprs ::= DimExprs DimExpr // case 272: { //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List DimExprs = (List) getRhsSym(1); //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(2); //#line 1774 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" DimExprs.add(DimExpr); //setResult(DimExprs); break; } // // Rule 273: DimExpr ::= [ Expression ] // case 273: { //#line 1779 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1781 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Expression.position(pos())); break; } // // Rule 274: Dims ::= [ ] // case 274: { //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(1)); break; } // // Rule 275: Dims ::= Dims [ ] // case 275: { //#line 1790 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Integer Dims = (Integer) getRhsSym(1); //#line 1792 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(Dims.intValue() + 1)); break; } // // Rule 276: FieldAccess ::= Primary . identifier // case 276: { //#line 1796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Primary = (Expr) getRhsSym(1); //#line 1796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1798 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(), Primary, identifier.getIdentifier())); break; } // // Rule 277: FieldAccess ::= super . identifier // case 277: { //#line 1801 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 278: FieldAccess ::= ClassName . super$sup . identifier // case 278: { //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken sup = (IToken) getRhsIToken(3); //#line 1806 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1808 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 279: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 279: { //#line 1812 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name MethodName = (Name) getRhsSym(1); //#line 1812 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 1814 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Call(pos(), MethodName.prefix == null ? null : MethodName.prefix.toReceiver(), MethodName.name, ArgumentListopt)); break; } // // Rule 281: PostfixExpression ::= ExpressionName // case 281: { //#line 1837 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 1839 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 284: PostIncrementExpression ::= PostfixExpression ++ // case 284: { //#line 1845 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1847 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_INC)); break; } // // Rule 285: PostDecrementExpression ::= PostfixExpression -- // case 285: { //#line 1851 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1853 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_DEC)); break; } // // Rule 288: UnaryExpression ::= + UnaryExpression // case 288: { //#line 1859 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1861 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.POS, UnaryExpression)); break; } // // Rule 289: UnaryExpression ::= - UnaryExpression // case 289: { //#line 1864 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1866 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NEG, UnaryExpression)); break; } // // Rule 291: PreIncrementExpression ::= ++ UnaryExpression // case 291: { //#line 1871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1873 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_INC, UnaryExpression)); break; } // // Rule 292: PreDecrementExpression ::= -- UnaryExpression // case 292: { //#line 1877 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1879 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_DEC, UnaryExpression)); break; } // // Rule 294: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 294: { //#line 1884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1886 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.BIT_NOT, UnaryExpression)); break; } // // Rule 295: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 295: { //#line 1889 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1891 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NOT, UnaryExpression)); break; } // // Rule 298: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 298: { //#line 1903 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1903 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1905 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MUL, UnaryExpression)); break; } // // Rule 299: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 299: { //#line 1908 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1908 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1910 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.DIV, UnaryExpression)); break; } // // Rule 300: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 300: { //#line 1913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1915 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MOD, UnaryExpression)); break; } // // Rule 302: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 302: { //#line 1920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1922 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.ADD, MultiplicativeExpression)); break; } // // Rule 303: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 303: { //#line 1925 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1925 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1927 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.SUB, MultiplicativeExpression)); break; } // // Rule 305: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 305: { //#line 1932 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1932 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(3); //#line 1934 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ShiftExpression, Binary.SHL, AdditiveExpression)); break; } // // Rule 306: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 306: { //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(4); //#line 1939 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 307: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 307: { //#line 1943 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1943 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(5); //#line 1945 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 309: RelationalExpression ::= RelationalExpression < ShiftExpression // case 309: { //#line 1951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1951 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1953 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LT, ShiftExpression)); break; } // // Rule 310: RelationalExpression ::= RelationalExpression > ShiftExpression // case 310: { //#line 1956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1958 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.GT, ShiftExpression)); break; } // // Rule 311: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 311: { //#line 1961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1961 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1963 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LE, ShiftExpression)); break; } // // Rule 312: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 312: { //#line 1966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1966 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(4); //#line 1968 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 314: EqualityExpression ::= EqualityExpression == RelationalExpression // case 314: { //#line 1982 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1982 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1984 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.EQ, RelationalExpression)); break; } // // Rule 315: EqualityExpression ::= EqualityExpression != RelationalExpression // case 315: { //#line 1987 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1987 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1989 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.NE, RelationalExpression)); break; } // // Rule 317: AndExpression ::= AndExpression & EqualityExpression // case 317: { //#line 1994 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(1); //#line 1994 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(3); //#line 1996 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AndExpression, Binary.BIT_AND, EqualityExpression)); break; } // // Rule 319: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 319: { //#line 2001 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(1); //#line 2001 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(3); //#line 2003 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ExclusiveOrExpression, Binary.BIT_XOR, AndExpression)); break; } // // Rule 321: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 321: { //#line 2008 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(1); //#line 2008 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(3); //#line 2010 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), InclusiveOrExpression, Binary.BIT_OR, ExclusiveOrExpression)); break; } // // Rule 323: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 323: { //#line 2015 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(1); //#line 2015 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(3); //#line 2017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalAndExpression, Binary.COND_AND, InclusiveOrExpression)); break; } // // Rule 325: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 325: { //#line 2022 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2022 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(3); //#line 2024 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalOrExpression, Binary.COND_OR, ConditionalAndExpression)); break; } // // Rule 327: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 327: { //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 2029 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalExpression = (Expr) getRhsSym(5); //#line 2031 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Conditional(pos(), ConditionalOrExpression, Expression, ConditionalExpression)); break; } // // Rule 330: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 330: { //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr LeftHandSide = (Expr) getRhsSym(1); //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Assign.Operator AssignmentOperator = (Assign.Operator) getRhsSym(2); //#line 2038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AssignmentExpression = (Expr) getRhsSym(3); //#line 2040 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assign(pos(), LeftHandSide, AssignmentOperator, AssignmentExpression)); break; } // // Rule 331: LeftHandSide ::= ExpressionName // case 331: { //#line 2044 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 2046 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 334: AssignmentOperator ::= = // case 334: { //#line 2054 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ASSIGN); break; } // // Rule 335: AssignmentOperator ::= *= // case 335: { //#line 2059 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MUL_ASSIGN); break; } // // Rule 336: AssignmentOperator ::= /= // case 336: { //#line 2064 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.DIV_ASSIGN); break; } // // Rule 337: AssignmentOperator ::= %= // case 337: { //#line 2069 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MOD_ASSIGN); break; } // // Rule 338: AssignmentOperator ::= += // case 338: { //#line 2074 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ADD_ASSIGN); break; } // // Rule 339: AssignmentOperator ::= -= // case 339: { //#line 2079 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SUB_ASSIGN); break; } // // Rule 340: AssignmentOperator ::= <<= // case 340: { //#line 2084 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SHL_ASSIGN); break; } // // Rule 341: AssignmentOperator ::= > > = // case 341: { //#line 2089 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.SHR_ASSIGN); break; } // // Rule 342: AssignmentOperator ::= > > > = // case 342: { //#line 2095 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.USHR_ASSIGN); break; } // // Rule 343: AssignmentOperator ::= &= // case 343: { //#line 2101 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_AND_ASSIGN); break; } // // Rule 344: AssignmentOperator ::= ^= // case 344: { //#line 2106 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_XOR_ASSIGN); break; } // // Rule 345: AssignmentOperator ::= |= // case 345: { //#line 2111 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_OR_ASSIGN); break; } // // Rule 348: Dimsopt ::= $Empty // case 348: { //#line 2124 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(0)); break; } // // Rule 350: Catchesopt ::= $Empty // case 350: { //#line 2131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 352: identifieropt ::= $Empty // case 352: setResult(null); break; // // Rule 353: identifieropt ::= identifier // case 353: { //#line 2138 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2140 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 354: ForUpdateopt ::= $Empty // case 354: { //#line 2146 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 356: Expressionopt ::= $Empty // case 356: setResult(null); break; // // Rule 358: ForInitopt ::= $Empty // case 358: { //#line 2157 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 360: SwitchLabelsopt ::= $Empty // case 360: { //#line 2164 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 362: SwitchBlockStatementGroupsopt ::= $Empty // case 362: { //#line 2171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 364: VariableModifiersopt ::= $Empty // case 364: { //#line 2178 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 366: VariableInitializersopt ::= $Empty // case 366: setResult(null); break; // // Rule 368: AbstractMethodModifiersopt ::= $Empty // case 368: { //#line 2208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 370: ConstantModifiersopt ::= $Empty // case 370: { //#line 2215 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 372: InterfaceMemberDeclarationsopt ::= $Empty // case 372: { //#line 2222 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 374: ExtendsInterfacesopt ::= $Empty // case 374: { //#line 2229 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 376: InterfaceModifiersopt ::= $Empty // case 376: { //#line 2236 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 378: ClassBodyopt ::= $Empty // case 378: setResult(null); break; // // Rule 380: Argumentsopt ::= $Empty // case 380: setResult(null); break; // // Rule 381: Argumentsopt ::= Arguments // case 381: throw new Error("No action specified for rule " + 381); // // Rule 382: ,opt ::= $Empty // case 382: setResult(null); break; // // Rule 384: ArgumentListopt ::= $Empty // case 384: { //#line 2266 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 386: BlockStatementsopt ::= $Empty // case 386: { //#line 2273 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 388: ExplicitConstructorInvocationopt ::= $Empty // case 388: setResult(null); break; // // Rule 390: ConstructorModifiersopt ::= $Empty // case 390: { //#line 2284 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 392: ...opt ::= $Empty // case 392: setResult(null); break; // // Rule 394: FormalParameterListopt ::= $Empty // case 394: { //#line 2295 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 396: Throwsopt ::= $Empty // case 396: { //#line 2302 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 398: MethodModifiersopt ::= $Empty // case 398: { //#line 2309 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 400: FieldModifiersopt ::= $Empty // case 400: { //#line 2316 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 402: ClassBodyDeclarationsopt ::= $Empty // case 402: { //#line 2323 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 404: Interfacesopt ::= $Empty // case 404: { //#line 2330 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 406: Superopt ::= $Empty // case 406: { //#line 2337 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), "x10.lang.Object").toType()); break; } // // Rule 408: ClassModifiersopt ::= $Empty // case 408: { //#line 2348 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 410: TypeDeclarationsopt ::= $Empty // case 410: { //#line 2360 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 412: ImportDeclarationsopt ::= $Empty // case 412: { //#line 2367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 414: PackageDeclarationopt ::= $Empty // case 414: setResult(null); break; // // Rule 416: ClassType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 416: { //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 417: InterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 417: { //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 732 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 734 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 418: PackageDeclaration ::= package PackageName ; // case 418: { //#line 740 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name PackageName = (Name) getRhsSym(2); //#line 742 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(PackageName.toPackage()); break; } // // Rule 419: NormalClassDeclaration ::= X10ClassModifiersopt class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 419: { //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 746 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 748 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 421: X10ClassModifiers ::= X10ClassModifiers X10ClassModifier // case 421: { //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiers = (X10Flags) getRhsSym(1); //#line 761 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifier = (X10Flags) getRhsSym(2); //#line 763 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags result = X10ClassModifiers.setX(X10ClassModifier); setResult(result); break; } // // Rule 422: X10ClassModifier ::= ClassModifier // case 422: { //#line 769 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags ClassModifier = (Flags) getRhsSym(1); //#line 771 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(ClassModifier)); break; } // // Rule 423: X10ClassModifier ::= safe // case 423: { //#line 776 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 424: PropertyList ::= ( Properties WhereClauseopt ) // case 424: { //#line 780 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(2); //#line 780 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(3); //#line 782 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = Properties; result[1] = WhereClauseopt; setResult(result); break; } // // Rule 425: PropertyList ::= ( WhereClause ) // case 425: { //#line 787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(2); //#line 789 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = null; result[1] = WhereClause; setResult(result); break; } // // Rule 426: Properties ::= Property // case 426: { //#line 796 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(1); //#line 798 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), PropertyDecl.class, false); l.add(Property); setResult(l); break; } // // Rule 427: Properties ::= Properties , Property // case 427: { //#line 803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(1); //#line 803 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(3); //#line 805 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Properties.add(Property); // setResult(FormalParameters); break; } // // Rule 428: Property ::= Type identifier // case 428: { //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(2); //#line 813 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.PropertyDecl(pos(), Flags.PUBLIC.Final(), Type, identifier.getIdentifier())); break; } // // Rule 429: MethodDeclaration ::= ThisClauseopt MethodModifiersopt ResultType MethodDeclarator Throwsopt MethodBody // case 429: { //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags MethodModifiersopt = (Flags) getRhsSym(2); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 826 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(6); //#line 828 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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, MethodBody)); break; } // // Rule 430: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 430: { //#line 850 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), ArgumentListopt)); break; } // // Rule 431: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 431: { //#line 855 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 857 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), ArgumentListopt)); break; } // // Rule 432: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 432: { //#line 860 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 860 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 862 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 433: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 433: { //#line 865 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 865 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 867 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 434: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier PropertyListopt ExtendsInterfacesopt InterfaceBody // case 434: { //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags InterfaceModifiersopt = (Flags) getRhsSym(1); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ExtendsInterfacesopt = (List) getRhsSym(5); //#line 871 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody InterfaceBody = (ClassBody) getRhsSym(6); //#line 873 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 435: AbstractMethodDeclaration ::= ThisClauseopt AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 435: { //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags AbstractMethodModifiersopt = (Flags) getRhsSym(2); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 888 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 890 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 436: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 436: { //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ClassOrInterfaceType = (TypeNode) getRhsSym(2); //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(4); //#line 913 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(6); //#line 915 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 437: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 437: { //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 920 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 922 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 438: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 438: { //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name AmbiguousName = (Name) getRhsSym(1); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 930 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 439: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 439: { //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 939 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 440: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 440: { //#line 942 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 942 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 441: MethodInvocation ::= ClassName . super$sup . identifier ( ArgumentListopt ) // case 441: { //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 947 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(7); //#line 949 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 443: AssignPropertyCall ::= property ( ArgumentList ) // case 443: { //#line 954 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 956 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AssignPropertyCall(pos(), ArgumentList)); break; } // // Rule 444: Type ::= DataType // case 444: { //#line 965 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(1); //#line 967 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 445: Type ::= nullable < Type > DepParametersopt // case 445: { //#line 970 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 970 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(5); //#line 972 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10TypeNode t = nf.Nullable(pos(), Type); setResult(DepParametersopt == null ? t : t.dep(null, DepParametersopt)); break; } // // Rule 446: Type ::= future < Type > // case 446: { //#line 978 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 980 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 450: PrimitiveType ::= NumericType DepParametersopt // case 450: { //#line 995 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode NumericType = (TypeNode) getRhsSym(1); //#line 995 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 997 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 451: PrimitiveType ::= boolean DepParametersopt // case 451: { //#line 1003 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1005 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 456: ClassOrInterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 456: { //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1017 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 1019 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 457: DepParameters ::= ( DepParameterExpr ) // case 457: { //#line 1036 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(2); //#line 1038 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParameterExpr); break; } // // Rule 458: DepParameterExpr ::= ArgumentList WhereClauseopt // case 458: { //#line 1042 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(1); //#line 1042 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(2); //#line 1044 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), ArgumentList, WhereClauseopt)); break; } // // Rule 459: DepParameterExpr ::= WhereClause // case 459: { //#line 1047 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(1); //#line 1049 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), Collections.EMPTY_LIST, WhereClause)); break; } // // Rule 460: WhereClause ::= : ConstExpression // case 460: { //#line 1053 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1055 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 461: ConstPrimary ::= Literal // case 461: { //#line 1060 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.ast.Lit Literal = (polyglot.ast.Lit) getRhsSym(1); //#line 1062 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Literal); break; } // // Rule 462: ConstPrimary ::= Type . class // case 462: { //#line 1065 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1067 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 463: ConstPrimary ::= void . class // case 463: { //#line 1086 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 464: ConstPrimary ::= this // case 464: { //#line 1092 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos())); break; } // // Rule 465: ConstPrimary ::= here // case 465: { //#line 1097 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Here(pos())); break; } // // Rule 466: ConstPrimary ::= ClassName . this // case 466: { //#line 1100 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1102 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 467: ConstPrimary ::= ( ConstExpression ) // case 467: { //#line 1105 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1107 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 469: ConstPrimary ::= self // case 469: { //#line 1113 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Self(pos())); break; } // // Rule 470: ConstPostfixExpression ::= ConstPrimary // case 470: { //#line 1119 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1121 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstPrimary); break; } // // Rule 471: ConstPostfixExpression ::= ExpressionName // case 471: { //#line 1124 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1126 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ExpressionName.toExpr()); break; } // // Rule 472: ConstUnaryExpression ::= ConstPostfixExpression // case 472: { //#line 1129 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPostfixExpression = (Expr) getRhsSym(1); //#line 1131 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstPostfixExpression); break; } // // Rule 473: ConstUnaryExpression ::= + ConstUnaryExpression // case 473: { //#line 1134 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1136 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.POS, ConstUnaryExpression)); break; } // // Rule 474: ConstUnaryExpression ::= - ConstUnaryExpression // case 474: { //#line 1139 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1141 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NEG, ConstUnaryExpression)); break; } // // Rule 475: ConstUnaryExpression ::= ! ConstUnaryExpression // case 475: { //#line 1144 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1146 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NOT, ConstUnaryExpression)); break; } // // Rule 476: ConstMultiplicativeExpression ::= ConstUnaryExpression // case 476: { //#line 1150 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(1); //#line 1152 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstUnaryExpression); break; } // // Rule 477: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression * ConstUnaryExpression // case 477: { //#line 1155 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1155 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1157 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MUL, ConstUnaryExpression)); break; } // // Rule 478: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression / ConstUnaryExpression // case 478: { //#line 1160 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1160 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1162 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.DIV, ConstUnaryExpression)); break; } // // Rule 479: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression % ConstUnaryExpression // case 479: { //#line 1165 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1165 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1167 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MOD, ConstUnaryExpression)); break; } // // Rule 480: ConstAdditiveExpression ::= ConstMultiplicativeExpression // case 480: { //#line 1171 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1173 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstMultiplicativeExpression); break; } // // Rule 481: ConstAdditiveExpression ::= ConstAdditiveExpression + ConstMultiplicativeExpression // case 481: { //#line 1176 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1176 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1178 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.ADD, ConstMultiplicativeExpression)); break; } // // Rule 482: ConstAdditiveExpression ::= ConstAdditiveExpression - ConstMultiplicativeExpression // case 482: { //#line 1181 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1181 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1183 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.SUB, ConstMultiplicativeExpression)); break; } // // Rule 483: ConstRelationalExpression ::= ConstAdditiveExpression // case 483: { //#line 1188 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1190 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstAdditiveExpression); break; } // // Rule 484: ConstRelationalExpression ::= ConstRelationalExpression < ConstAdditiveExpression // case 484: { //#line 1193 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1193 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1195 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LT, ConstAdditiveExpression)); break; } // // Rule 485: ConstRelationalExpression ::= ConstRelationalExpression > ConstAdditiveExpression // case 485: { //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1198 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1200 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GT, ConstAdditiveExpression)); break; } // // Rule 486: ConstRelationalExpression ::= ConstRelationalExpression <= ConstAdditiveExpression // case 486: { //#line 1203 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1203 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1205 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LE, ConstAdditiveExpression)); break; } // // Rule 487: ConstRelationalExpression ::= ConstRelationalExpression > = ConstAdditiveExpression // case 487: { //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1208 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(4); //#line 1210 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GE, ConstAdditiveExpression)); break; } // // Rule 488: ConstEqualityExpression ::= ConstRelationalExpression // case 488: { //#line 1214 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1216 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstRelationalExpression); break; } // // Rule 489: ConstEqualityExpression ::= ConstEqualityExpression == ConstRelationalExpression // case 489: { //#line 1219 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1219 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1221 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.EQ, ConstRelationalExpression)); break; } // // Rule 490: ConstEqualityExpression ::= ConstEqualityExpression != ConstRelationalExpression // case 490: { //#line 1224 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1224 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1226 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.NE, ConstRelationalExpression)); break; } // // Rule 491: ConstAndExpression ::= ConstEqualityExpression // case 491: { //#line 1230 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1232 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstEqualityExpression); break; } // // Rule 492: ConstAndExpression ::= ConstAndExpression && ConstEqualityExpression // case 492: { //#line 1235 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1235 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(3); //#line 1237 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAndExpression, Binary.COND_AND, ConstEqualityExpression)); break; } // // Rule 493: ConstExclusiveOrExpression ::= ConstAndExpression // case 493: { //#line 1241 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1243 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstAndExpression); break; } // // Rule 494: ConstExclusiveOrExpression ::= ConstExclusiveOrExpression ^ ConstAndExpression // case 494: { //#line 1246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1246 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(3); //#line 1248 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstExclusiveOrExpression, Binary.BIT_XOR, ConstAndExpression)); break; } // // Rule 495: ConstInclusiveOrExpression ::= ConstExclusiveOrExpression // case 495: { //#line 1252 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1254 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstExclusiveOrExpression); break; } // // Rule 496: ConstInclusiveOrExpression ::= ConstInclusiveOrExpression || ConstExclusiveOrExpression // case 496: { //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1257 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(3); //#line 1259 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstInclusiveOrExpression, Binary.COND_OR, ConstExclusiveOrExpression)); break; } // // Rule 497: ConstExpression ::= ConstInclusiveOrExpression // case 497: { //#line 1263 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1265 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ConstInclusiveOrExpression); break; } // // Rule 498: ConstExpression ::= ConstInclusiveOrExpression ? ConstExpression$first : ConstExpression // case 498: { //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr first = (Expr) getRhsSym(3); //#line 1268 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(5); //#line 1270 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Conditional(pos(), ConstInclusiveOrExpression, first, ConstExpression)); break; } // // Rule 499: ConstFieldAccess ::= ConstPrimary . identifier // case 499: { //#line 1275 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1275 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1277 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(), ConstPrimary, identifier.getIdentifier())); break; } // // Rule 500: ConstFieldAccess ::= super . identifier // case 500: { //#line 1280 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1282 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 501: ConstFieldAccess ::= ClassName . super$sup . identifier // case 501: { //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 1285 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1287 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 503: X10ArrayType ::= Type [ . ] // case 503: { //#line 1303 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1305 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, null)); break; } // // Rule 504: X10ArrayType ::= Type value [ . ] // case 504: { //#line 1308 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1310 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, null)); break; } // // Rule 505: X10ArrayType ::= Type [ DepParameterExpr ] // case 505: { //#line 1313 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1313 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(3); //#line 1315 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, DepParameterExpr)); break; } // // Rule 506: X10ArrayType ::= Type value [ DepParameterExpr ] // case 506: { //#line 1318 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1318 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(4); //#line 1320 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, DepParameterExpr)); break; } // // Rule 507: ObjectKind ::= value // case 507: throw new Error("No action specified for rule " + 507); // // Rule 508: ObjectKind ::= reference // case 508: throw new Error("No action specified for rule " + 508); // // Rule 509: MethodModifier ::= atomic // case 509: { //#line 1334 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.ATOMIC); break; } // // Rule 510: MethodModifier ::= extern // case 510: { //#line 1339 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Flags.NATIVE); break; } // // Rule 511: MethodModifier ::= safe // case 511: { //#line 1344 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 512: MethodModifier ::= sequential // case 512: { //#line 1349 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SEQUENTIAL); break; } // // Rule 513: MethodModifier ::= local // case 513: { //#line 1354 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.LOCAL); break; } // // Rule 514: MethodModifier ::= nonblocking // case 514: { //#line 1359 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.NON_BLOCKING); break; } // // Rule 516: ValueClassDeclaration ::= X10ClassModifiersopt value identifier PropertyListopt Superopt Interfacesopt ClassBody // case 516: { //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 1365 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 1367 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 517: ValueClassDeclaration ::= X10ClassModifiersopt value class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 517: { //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(5); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(6); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(7); //#line 1375 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(8); //#line 1377 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 518: { //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags ConstructorModifiersopt = (Flags) getRhsSym(1); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] ConstructorDeclarator = (Object[]) getRhsSym(2); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(3); //#line 1386 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block ConstructorBody = (Block) getRhsSym(4); //#line 1388 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 519: ConstructorDeclarator ::= SimpleTypeName DepParametersopt ( FormalParameterListopt WhereClauseopt ) // case 519: { //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name SimpleTypeName = (Name) getRhsSym(1); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(4); //#line 1396 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(5); //#line 1398 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 520: ThisClause ::= this DepParameters // case 520: { //#line 1406 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameters = (DepParameterExpr) getRhsSym(2); //#line 1408 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DepParameters); break; } // // Rule 521: Super ::= extends DataType // case 521: { //#line 1412 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(2); //#line 1414 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 522: MethodDeclarator ::= identifier ( FormalParameterListopt WhereClauseopt ) // case 522: { //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(3); //#line 1418 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(4); //#line 1420 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 523: MethodDeclarator ::= MethodDeclarator [ ] // case 523: { //#line 1430 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(1); //#line 1432 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" MethodDeclarator[2] = new Integer(((Integer) MethodDeclarator[2]).intValue() + 1); // setResult(MethodDeclarator); break; } // // Rule 524: FieldDeclaration ::= ThisClauseopt FieldModifiersopt Type VariableDeclarators ; // case 524: { //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Flags FieldModifiersopt = (Flags) getRhsSym(2); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1438 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List VariableDeclarators = (List) getRhsSym(4); //#line 1440 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 525: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt Dims ArrayInitializer // case 525: { //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(4); //#line 1474 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ArrayInit ArrayInitializer = (ArrayInit) getRhsSym(5); //#line 1476 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 526: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr Dims // case 526: { //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1480 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(5); //#line 1482 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 527: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr DimExprs Dimsopt // case 527: { //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List DimExprs = (List) getRhsSym(5); //#line 1486 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Integer Dimsopt = (Integer) getRhsSym(6); //#line 1488 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 528: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] // case 528: { //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1495 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1497 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, null)); break; } // // Rule 529: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression$distr ] Expression$initializer // case 529: { //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr distr = (Expr) getRhsSym(6); //#line 1500 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr initializer = (Expr) getRhsSym(8); //#line 1502 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, distr, initializer)); break; } // // Rule 530: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] ($lparen FormalParameter ) MethodBody // case 530: { //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken lparen = (IToken) getRhsIToken(8); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(9); //#line 1505 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(11); //#line 1507 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 531: Valueopt ::= $Empty // case 531: setResult(null); break; // // Rule 532: Valueopt ::= value // case 532: { //#line 1516 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 535: ArrayBaseType ::= nullable < Type > // case 535: { //#line 1523 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1525 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Nullable(pos(), Type)); break; } // // Rule 536: ArrayBaseType ::= future < Type > // case 536: { //#line 1528 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1530 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 537: ArrayBaseType ::= ( Type ) // case 537: { //#line 1533 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1535 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Type); break; } // // Rule 538: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 538: { //#line 1539 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1539 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1541 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 539: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 539: { //#line 1546 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PrimaryNoNewArray = (Expr) getRhsSym(1); //#line 1546 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1548 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 556: NowStatement ::= now ( Clock ) Statement // case 556: { //#line 1574 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1574 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1576 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, Statement)); break; } // // Rule 557: ClockedClause ::= clocked ( ClockList ) // case 557: { //#line 1580 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(3); //#line 1582 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(ClockList); break; } // // Rule 558: AsyncStatement ::= async PlaceExpressionSingleListopt ClockedClauseopt Statement // case 558: { //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1586 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(4); //#line 1588 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, Statement)); break; } // // Rule 559: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 559: { //#line 1596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1596 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(3); //#line 1598 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Statement)); break; } // // Rule 560: WhenStatement ::= when ( Expression ) Statement // case 560: { //#line 1605 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1605 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1607 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, Statement)); break; } // // Rule 561: WhenStatement ::= WhenStatement or$or ( Expression ) Statement // case 561: { //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1610 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(6); //#line 1612 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, Statement); setResult(WhenStatement); break; } // // Rule 562: ForEachStatement ::= foreach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 562: { //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1617 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1619 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 563: AtEachStatement ::= ateach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 563: { //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1627 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1629 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 564: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 564: { //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1637 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(7); //#line 1639 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, Statement)); break; } // // Rule 565: FinishStatement ::= finish Statement // case 565: { //#line 1646 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(2); //#line 1648 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), Statement)); break; } // // Rule 566: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 566: { //#line 1653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1653 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1655 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, StatementNoShortIf)); break; } // // Rule 567: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt ClockedClauseopt StatementNoShortIf // case 567: { //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1659 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(4); //#line 1661 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 568: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 568: { //#line 1668 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1670 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), nf.Here(pos(getLeftSpan())), StatementNoShortIf)); break; } // // Rule 569: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 569: { //#line 1674 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1674 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1676 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, StatementNoShortIf)); break; } // // Rule 570: WhenStatementNoShortIf ::= WhenStatement or$or ( Expression ) StatementNoShortIf // case 570: { //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1679 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(6); //#line 1681 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, StatementNoShortIf); setResult(WhenStatement); break; } // // Rule 571: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 571: { //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1686 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1688 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 572: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 572: { //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1697 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1699 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 573: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 573: { //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1707 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(7); //#line 1709 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, StatementNoShortIf)); break; } // // Rule 574: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 574: { //#line 1716 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1718 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), StatementNoShortIf)); break; } // // Rule 575: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 575: { //#line 1723 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpression = (Expr) getRhsSym(2); //#line 1725 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(PlaceExpression); break; } // // Rule 577: NextStatement ::= next ; // case 577: { //#line 1733 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Next(pos())); break; } // // Rule 578: AwaitStatement ::= await Expression ; // case 578: { //#line 1737 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(2); //#line 1739 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Await(pos(), Expression)); break; } // // Rule 579: ClockList ::= Clock // case 579: { //#line 1743 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(1); //#line 1745 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Clock); setResult(l); break; } // // Rule 580: ClockList ::= ClockList , Clock // case 580: { //#line 1750 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(1); //#line 1750 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1752 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ClockList.add(Clock); setResult(ClockList); break; } // // Rule 581: Clock ::= Expression // case 581: { //#line 1758 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(1); //#line 1760 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Expression); break; } // // Rule 582: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 582: { //#line 1770 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1770 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(4); //#line 1772 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Cast(pos(), Type, UnaryExpressionNotPlusMinus)); break; } // // Rule 583: CastExpression ::= ( @ Expression ) UnaryExpressionNotPlusMinus // case 583: { //#line 1775 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1775 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(5); //#line 1777 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.PlaceCast(pos(), Expression, UnaryExpressionNotPlusMinus)); break; } // // Rule 584: RelationalExpression ::= RelationalExpression instanceof Type // case 584: { //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1787 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1789 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Instanceof(pos(), RelationalExpression, Type)); break; } // // Rule 585: IdentifierList ::= identifier // case 585: { //#line 1795 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1797 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 586: IdentifierList ::= IdentifierList , identifier // case 586: { //#line 1802 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List IdentifierList = (List) getRhsSym(1); //#line 1802 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1804 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" IdentifierList.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(IdentifierList); break; } // // Rule 587: Primary ::= here // case 587: { //#line 1811 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 590: RegionExpression ::= Expression$expr1 : Expression$expr2 // case 590: { //#line 1827 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1827 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1829 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 591: RegionExpressionList ::= RegionExpression // case 591: { //#line 1845 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(1); //#line 1847 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(RegionExpression); setResult(l); break; } // // Rule 592: RegionExpressionList ::= RegionExpressionList , RegionExpression // case 592: { //#line 1852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(1); //#line 1852 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(3); //#line 1854 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" RegionExpressionList.add(RegionExpression); //setResult(RegionExpressionList); break; } // // Rule 593: Primary ::= [ RegionExpressionList ] // case 593: { //#line 1859 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(2); //#line 1861 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/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 594: AssignmentExpression ::= Expression$expr1 -> Expression$expr2 // case 594: { //#line 1875 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1875 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1877 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" ConstantDistMaker call = nf.ConstantDistMaker(pos(), expr1, expr2); setResult(call); break; } // // Rule 595: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 595: { //#line 1882 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1882 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1884 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Expression)); break; } // // Rule 596: FieldModifier ::= mutable // case 596: { //#line 1892 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.MUTABLE); break; } // // Rule 597: FieldModifier ::= const // case 597: { //#line 1897 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 598: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 598: throw new Error("No action specified for rule " + 598); // // Rule 599: MethodInvocation ::= MethodName ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 599: throw new Error("No action specified for rule " + 599); // // Rule 600: MethodInvocation ::= Primary . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 600: throw new Error("No action specified for rule " + 600); // // Rule 601: MethodInvocation ::= super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 601: throw new Error("No action specified for rule " + 601); // // Rule 602: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 602: throw new Error("No action specified for rule " + 602); // // Rule 603: MethodInvocation ::= TypeName . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 603: throw new Error("No action specified for rule " + 603); // // Rule 604: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 604: throw new Error("No action specified for rule " + 604); // // Rule 605: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 605: throw new Error("No action specified for rule " + 605); // // Rule 606: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 606: throw new Error("No action specified for rule " + 606); // // Rule 607: MethodModifier ::= synchronized // case 607: { //#line 1928 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "\"synchronized\" is an invalid X10 Method Modifier", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(Flags.SYNCHRONIZED); break; } // // Rule 608: FieldModifier ::= volatile // case 608: { //#line 1937 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "\"volatile\" is an invalid X10 Field Modifier", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(Flags.VOLATILE); break; } // // Rule 609: SynchronizedStatement ::= synchronized ( Expression ) Block // case 609: { //#line 1944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1944 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" Block Block = (Block) getRhsSym(5); //#line 1946 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, "Synchronized Statement is invalid in X10", getErrorPosition(getLeftSpan(), getRightSpan())); setResult(nf.Synchronized(pos(), Expression, Block)); break; } // // Rule 610: ThisClauseopt ::= $Empty // case 610: setResult(null); break; // // Rule 612: PlaceTypeSpecifieropt ::= $Empty // case 612: setResult(null); break; // // Rule 614: DepParametersopt ::= $Empty // case 614: setResult(null); break; // // Rule 616: PropertyListopt ::= $Empty // case 616: setResult(null); break; // // Rule 618: WhereClauseopt ::= $Empty // case 618: setResult(null); break; // // Rule 620: ObjectKindopt ::= $Empty // case 620: setResult(null); break; // // Rule 622: ArrayInitializeropt ::= $Empty // case 622: setResult(null); break; // // Rule 624: PlaceExpressionSingleListopt ::= $Empty // case 624: setResult(null); break; // // Rule 626: ArgumentListopt ::= $Empty // case 626: setResult(null); break; // // Rule 628: X10ClassModifiersopt ::= $Empty // case 628: { //#line 1992 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(Flags.NONE)); break; } // // Rule 630: DepParametersopt ::= $Empty // case 630: setResult(null); break; // // Rule 632: Unsafeopt ::= $Empty // case 632: setResult(null); break; // // Rule 633: Unsafeopt ::= unsafe // case 633: { //#line 2004 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 634: ParamIdopt ::= $Empty // case 634: setResult(null); break; // // Rule 635: ParamIdopt ::= identifier // case 635: { //#line 2011 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2013 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 636: ClockedClauseopt ::= $Empty // case 636: { //#line 2019 "C:/Docume~1/Administrator/MyDocu~1/work/x10/cvs/x10.compiler/src/x10/parser/x10.g" setResult(new TypedList(new LinkedList(), Expr.class, false)); break; } default: break; } return; } | 1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/f8e1720cd66996a6339b992bf154aa0d019240a3/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... | ||
poly.addPoint(bounds.x + bounds.width - rightCorner, bounds.y + (int)border.top() - adjust); poly.addPoint(bounds.x + leftCorner, bounds.y + (int)border.top() - adjust); | poly.addPoint(bounds.x + bounds.width - rightCorner, bounds.y + (int) border.top() - adjust); poly.addPoint(bounds.x + leftCorner, bounds.y + (int) border.top() - adjust); | private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if (isClipRegion) { adjust = 0; snuggle = 1; } else { adjust = 1; snuggle = 0; } int rightCorner = (((sides & RIGHT) == RIGHT) ? (int)border.right() : adjust); int leftCorner = (((sides & LEFT) == LEFT) ? (int)border.left() - adjust : 0); int topCorner = (((sides & TOP) == TOP) ? (int)border.top() - adjust : 0); int bottomCorner = (((sides & BOTTOM) == BOTTOM) ? (int)border.bottom() : adjust); Polygon poly = null; if (currentSide == TOP) { if ((int)border.top() != 1) { // use polygons for borders over 1px wide poly = new Polygon(); poly.addPoint(bounds.x, bounds.y); poly.addPoint(bounds.x + bounds.width - adjust, bounds.y); poly.addPoint(bounds.x + bounds.width - rightCorner, bounds.y + (int)border.top() - adjust); poly.addPoint(bounds.x + leftCorner, bounds.y + (int)border.top() - adjust); } } else if (currentSide == BOTTOM) { if ((int)border.bottom() != 1) { poly = new Polygon(); // upper right poly.addPoint(bounds.x + bounds.width - rightCorner, bounds.y + bounds.height - (int)border.bottom()); // upper left poly.addPoint(bounds.x + leftCorner, bounds.y + bounds.height - (int)border.bottom()); // lower left poly.addPoint(bounds.x, bounds.y + bounds.height - adjust); // lower right poly.addPoint(bounds.x + bounds.width - adjust, bounds.y + bounds.height - adjust); } } else if (currentSide == RIGHT) { if ((int)border.right() != 1) { poly = new Polygon(); poly.addPoint(bounds.x + bounds.width - adjust, bounds.y); poly.addPoint(bounds.x + bounds.width - (int)border.right(), bounds.y + topCorner - snuggle); poly.addPoint(bounds.x + bounds.width - (int)border.right(), bounds.y + bounds.height - bottomCorner + snuggle); poly.addPoint(bounds.x + bounds.width - adjust, bounds.y + bounds.height - adjust); } } else if (currentSide == LEFT) { if ((int)border.left() != 1) { poly = new Polygon(); poly.addPoint(bounds.x, bounds.y); poly.addPoint(bounds.x + (int)border.left() - adjust, bounds.y + topCorner - snuggle); poly.addPoint(bounds.x + (int)border.left() - adjust, bounds.y + bounds.height - bottomCorner + snuggle); poly.addPoint(bounds.x, bounds.y + bounds.height - adjust); } } return poly; } | 53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/1ca686f10a0033c5e79968a5d664589db0fef2ec/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
12681,
336,
1919,
941,
1259,
11787,
12,
6385,
13264,
4972,
16,
727,
13525,
1396,
694,
5795,
16,
727,
509,
22423,
16,
509,
783,
8895,
16,
1250,
353,
15339,
5165,
13,
288,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
12681,
336,
1919,
941,
1259,
11787,
12,
6385,
13264,
4972,
16,
727,
13525,
1396,
694,
5795,
16,
727,
509,
22423,
16,
509,
783,
8895,
16,
1250,
353,
15339,
5165,
13,
288,
3639,
... |
if (mSession.isHackEnabled(EnabledHack.WM5)) if (new ImapMessage.WindowsMobile5Converter().accept(mm)) { ByteArrayOutputStream baosCopy = new ByteArrayOutputStream(); mm.writeTo(baosCopy); mm = new Mime.FixedMimeMessage(JMSession.getSession(), new ByteArrayInputStream(baosCopy.toByteArray())); } | boolean doFETCH(String tag, String sequenceSet, int attributes, List<ImapPartSpecifier> parts, boolean byUID) throws IOException, ImapParseException { if (!checkState(tag, ImapSession.STATE_SELECTED)) return CONTINUE_PROCESSING; // 6.4.8: "However, server implementations MUST implicitly include the UID message // data item as part of any FETCH response caused by a UID command, regardless // of whether a UID was specified as a message data item to the FETCH." if (byUID) attributes |= FETCH_UID; boolean markRead = mSession.getFolder().isWritable() && (attributes & FETCH_MARK_READ) != 0; List<ImapPartSpecifier> fullMessage = new ArrayList<ImapPartSpecifier>(); if (parts != null && !parts.isEmpty()) for (Iterator<ImapPartSpecifier> it = parts.iterator(); it.hasNext(); ) { ImapPartSpecifier pspec = it.next(); if (pspec.isEntireMessage()) { it.remove(); fullMessage.add(pspec); } } String command = (byUID ? "UID FETCH" : "FETCH"); boolean allPresent = true; Set<ImapMessage> i4set; synchronized (mMailbox) { i4set = mSession.getFolder().getSubsequence(sequenceSet, byUID); } allPresent = byUID || !i4set.contains(null); for (ImapMessage i4msg : i4set) { if (i4msg == null) continue; ByteArrayOutputStream baos = new ByteArrayOutputStream(); ByteArrayOutputStream baosDebug = ZimbraLog.imap.isDebugEnabled() ? new ByteArrayOutputStream() : null; PrintStream result = new PrintStream(new ByteUtil.TeeOutputStream(baos, baosDebug), false, "utf-8"); try { boolean markMessage = markRead && (i4msg.flags & Flag.FLAG_UNREAD) != 0; boolean empty = true; byte[] raw = null; result.print('*'); result.print(' '); result.print(i4msg.seq); result.print(" FETCH ("); if ((attributes & FETCH_UID) != 0) { result.print(empty ? "" : " "); result.print("UID "); result.print(i4msg.uid); empty = false; } if ((attributes & FETCH_INTERNALDATE) != 0) { result.print(empty ? "" : " "); result.print(i4msg.getDate(mTimeFormat)); empty = false; } if ((attributes & FETCH_RFC822_SIZE) != 0) { result.print(empty ? "" : " "); result.print("RFC822.SIZE "); result.print(i4msg.getSize()); empty = false; } if (!fullMessage.isEmpty()) { raw = mMailbox.getMessageById(getContext(), i4msg.id).getMessageContent(); for (ImapPartSpecifier pspec : fullMessage) { result.print(empty ? "" : " "); pspec.write(result, baos, raw); empty = false; } } if (!parts.isEmpty() || (attributes & ~FETCH_FROM_CACHE) != 0) { // don't use msg.getMimeMessage() because it implicitly expands TNEF attachments MimeMessage mm; try { InputStream is = raw != null ? new ByteArrayInputStream(raw) : mMailbox.getMessageById(getContext(), i4msg.id).getRawMessage(); mm = new Mime.FixedMimeMessage(JMSession.getSession(), is); if (mSession.isHackEnabled(EnabledHack.WM5)) if (new ImapMessage.WindowsMobile5Converter().accept(mm)) { // FIXME: terrible hack to work around JavaMail repulsiveness ByteArrayOutputStream baosCopy = new ByteArrayOutputStream(); mm.writeTo(baosCopy); mm = new Mime.FixedMimeMessage(JMSession.getSession(), new ByteArrayInputStream(baosCopy.toByteArray())); } is.close(); } catch (IOException e) { throw ServiceException.FAILURE("error closing stream for message " + i4msg.id, e); } if ((attributes & FETCH_BODY) != 0) { result.print(empty ? "" : " "); result.print("BODY "); i4msg.serializeStructure(result, mm, false); empty = false; } if ((attributes & FETCH_BODYSTRUCTURE) != 0) { result.print(empty ? "" : " "); result.print("BODYSTRUCTURE "); i4msg.serializeStructure(result, mm, true); empty = false; } if ((attributes & FETCH_ENVELOPE) != 0) { result.print(empty ? "" : " "); result.print("ENVELOPE "); i4msg.serializeEnvelope(result, mm); empty = false; } for (ImapPartSpecifier pspec : parts) { result.print(empty ? "" : " "); pspec.write(result, baos, mm); empty = false; } } // FIXME: optimize by doing a single mark-read op on multiple messages if (markMessage) mMailbox.alterTag(getContext(), i4msg.id, MailItem.TYPE_MESSAGE, Flag.ID_FLAG_UNREAD, false); // 6.4.5: "The \Seen flag is implicitly set; if this causes the flags to // change, they SHOULD be included as part of the FETCH responses." if ((attributes & FETCH_FLAGS) != 0 || markMessage) { mSession.getFolder().undirtyMessage(i4msg); result.print(empty ? "" : " "); result.print(i4msg.getFlags(mSession)); empty = false; } } catch (ImapPartSpecifier.BinaryDecodingException e) { // don't write this response line if we're returning NO baos = baosDebug = null; throw new ImapParseException(tag, "UNKNOWN-CTE", "unknown content-type-encoding"); } catch (ServiceException e) { ZimbraLog.imap.warn("ignoring error during " + command + ": ", e); continue; } catch (MessagingException e) { ZimbraLog.imap.warn("ignoring error during " + command + ": ", e); continue; } finally { result.write(')'); baos.write(LINE_SEPARATOR_BYTES); if (mOutputStream != null && baos != null) mOutputStream.write(baos.toByteArray()); if (baosDebug != null) ZimbraLog.imap.debug(" S: " + baosDebug); } } sendNotifications(false, false); if (allPresent) sendOK(tag, command + " completed"); else { // RFC 2180 4.1.2: "The server MAY allow the EXPUNGE of a multi-accessed mailbox, // and on subsequent FETCH commands return FETCH responses only // for non-expunged messages and a tagged NO." sendNO(tag, "some of the requested messages no longer exist"); } return CONTINUE_PROCESSING; } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/9a64ea77cbf7a32511261c7e4674aa0e12722e39/ImapHandler.java/buggy/ZimbraServer/src/java/com/zimbra/cs/imap/ImapHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
741,
20231,
12,
780,
1047,
16,
514,
3102,
694,
16,
509,
1677,
16,
987,
32,
20827,
1988,
21416,
34,
2140,
16,
1250,
635,
3060,
13,
1216,
1860,
16,
467,
1458,
13047,
288,
3639,
309,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
741,
20231,
12,
780,
1047,
16,
514,
3102,
694,
16,
509,
1677,
16,
987,
32,
20827,
1988,
21416,
34,
2140,
16,
1250,
635,
3060,
13,
1216,
1860,
16,
467,
1458,
13047,
288,
3639,
309,... | |
setHandlersMapsRef(int localVariable, int[] reachableHandlerBBNums, int reachableHandlerCount, byte[][] bbMaps) { | private void setHandlersMapsRef(int localVariable, int[] reachableHandlerBBNums, int reachableHandlerCount, byte[][] bbMaps) { | setHandlersMapsRef(int localVariable, int[] reachableHandlerBBNums, int reachableHandlerCount, byte[][] bbMaps) { for (int i=0; i<reachableHandlerCount; i++) { if (bbMaps[reachableHandlerBBNums[i]][localVariable] != REFERENCE) bbMaps[reachableHandlerBBNums[i]][localVariable] = SET_TO_NONREFERENCE; } } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/b6e9a7609b6d65ca2adc45813bc3cf2ba1e5a604/VM_BuildReferenceMaps.java/buggy/rvm/src/vm/compilers/baseline/GCMap/VM_BuildReferenceMaps.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
444,
6919,
8903,
1957,
12,
474,
1191,
3092,
16,
509,
8526,
19234,
1503,
9676,
25532,
16,
10792,
509,
19234,
1503,
1380,
16,
1160,
63,
6362,
65,
7129,
8903,
13,
288,
565,
364,
261,
474,
277,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
444,
6919,
8903,
1957,
12,
474,
1191,
3092,
16,
509,
8526,
19234,
1503,
9676,
25532,
16,
10792,
509,
19234,
1503,
1380,
16,
1160,
63,
6362,
65,
7129,
8903,
13,
288,
565,
364,
261,
474,
277,
... |
while (currentSlash + 1 < str.length() && str.charAt(currentSlash + 1) == ' ') currentSlash++; | while (currentSlash + 1 < str.length() && Character.isWhitespace(str.charAt(currentSlash + 1))) currentSlash++; | protected void reparse(String str) { final List<FileReference> referencesList = new ArrayList<FileReference>(); int currentSlash = -1; while (currentSlash + 1 < str.length() && str.charAt(currentSlash + 1) == ' ') currentSlash++; if (currentSlash + 1 < str.length() && str.charAt(currentSlash + 1) == SEPARATOR) currentSlash++; int index = 0; while (true) { final int nextSlash = str.indexOf(SEPARATOR, currentSlash + 1); final String subreferenceText = nextSlash > 0 ? str.substring(currentSlash + 1, nextSlash) : str.substring(currentSlash + 1); if (subreferenceText.length() > 0 || myAllowEmptyFileReferenceAtEnd) { // ? check at end FileReference currentContextRef = new FileReference(this, new TextRange(myStartInElement + currentSlash + 1, myStartInElement + ( nextSlash > 0 ? nextSlash : str.length())), index++, subreferenceText); referencesList.add(currentContextRef); } if ((currentSlash = nextSlash) < 0) { break; } } setReferences(referencesList.toArray(new FileReference[referencesList.size()])); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/93d66895dd6e3bfc14544700da803b751eebd318/FileReferenceSet.java/clean/source/com/intellij/psi/impl/source/resolve/reference/impl/providers/FileReferenceSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
283,
2670,
12,
780,
609,
13,
288,
565,
727,
987,
32,
812,
2404,
34,
5351,
682,
273,
394,
2407,
32,
812,
2404,
34,
5621,
565,
509,
783,
11033,
273,
300,
21,
31,
565,
1323,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
283,
2670,
12,
780,
609,
13,
288,
565,
727,
987,
32,
812,
2404,
34,
5351,
682,
273,
394,
2407,
32,
812,
2404,
34,
5621,
565,
509,
783,
11033,
273,
300,
21,
31,
565,
1323,
... |
ModuleFile mf = new ModuleFile(utilFile, utilFile.getName(), reference.getRuntimePath(), utilFile.getModificationStamp() + utilFile.getLocalTimeStamp()); | ModuleFile mf = new ModuleFile(utilFile, utilFile.getName(), reference.getRuntimePath()); utilMembers.add(mf); } else { File extFile = ((VirtualArchiveComponent)virtualComp).getUnderlyingDiskFile(); ModuleFile mf = new ModuleFile(extFile, extFile.getName(), reference.getRuntimePath()); | protected List getUtilMembers(IVirtualComponent vc) { List utilMembers = new ArrayList(); IVirtualReference[] components = vc.getReferences(); for (int i = 0; i < components.length; i++) { IVirtualReference reference = components[i]; IVirtualComponent virtualComp = reference.getReferencedComponent(); if (virtualComp != null && virtualComp.isBinary()) { IPath archivePath = ((VirtualArchiveComponent)virtualComp).getWorkspaceRelativePath(); if (archivePath != null) { //TODO Only supporting workspace files for now IFile utilFile = ResourcesPlugin.getWorkspace().getRoot().getFile(archivePath); ModuleFile mf = new ModuleFile(utilFile, utilFile.getName(), reference.getRuntimePath(), utilFile.getModificationStamp() + utilFile.getLocalTimeStamp()); utilMembers.add(mf); } } } return utilMembers; } | 8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/f8b78e9064c9d629270035275fba67ea894610bf/ComponentDeployable.java/buggy/plugins/org.eclipse.wst.web/static_web_project/org/eclipse/wst/web/internal/deployables/ComponentDeployable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
987,
336,
1304,
6918,
12,
45,
6466,
1841,
12802,
13,
288,
202,
202,
682,
1709,
6918,
273,
394,
2407,
5621,
202,
202,
45,
6466,
2404,
8526,
4085,
273,
12802,
18,
588,
8221,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
987,
336,
1304,
6918,
12,
45,
6466,
1841,
12802,
13,
288,
202,
202,
682,
1709,
6918,
273,
394,
2407,
5621,
202,
202,
45,
6466,
2404,
8526,
4085,
273,
12802,
18,
588,
8221,
56... |
public static double jsFunction_setFullYear(Context cx, Scriptable thisObj, Object[] args, Function funObj) { return makeDate(thisObj, args, 3, true, funObj); | private double jsFunction_setFullYear(Object[] args) { return makeDate(args, 3, true); | public static double jsFunction_setFullYear(Context cx, Scriptable thisObj, Object[] args, Function funObj) { return makeDate(thisObj, args, 3, true, funObj); } | 19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/5af1999afa2517f3fdd455bd42c304be785b5b59/NativeDate.java/buggy/org/mozilla/javascript/NativeDate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1645,
3828,
2083,
67,
542,
5080,
5593,
12,
1042,
9494,
16,
4766,
7734,
22780,
15261,
16,
4766,
7734,
1033,
8526,
833,
16,
4766,
7734,
4284,
9831,
2675,
13,
565,
288,
3639,
327,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1645,
3828,
2083,
67,
542,
5080,
5593,
12,
1042,
9494,
16,
4766,
7734,
22780,
15261,
16,
4766,
7734,
1033,
8526,
833,
16,
4766,
7734,
4284,
9831,
2675,
13,
565,
288,
3639,
327,... |
public void mMISC() throws RecognitionException { int MISC_StartIndex = input.index(); try { int type = MISC; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; if ( backtracking>0 && alreadyParsedRule(input, 43) ) { return ; } // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:885:17: ( '!' | '@' | '$' | '%' | '^' | '&' | '*' | '_' | '-' | '+' | '|' | ',' | '{' | '}' | '[' | ']' | '=' | '/' | '(' | ')' | '\'' | '\\' | '||' | '&&' | '<<<' | '++' | '--' | '>>>' | '==' | '+=' | '=+' | '-=' | '=-' | '*=' | '=*' | '/=' | '=/' ) int alt1=37; switch ( input.LA(1) ) { case '!': alt1=1; break; case '@': alt1=2; break; case '$': alt1=3; break; case '%': alt1=4; break; case '^': alt1=5; break; case '&': int LA1_6 = input.LA(2); if ( LA1_6=='&' ) { alt1=24; } else { alt1=6;} break; case '*': int LA1_7 = input.LA(2); if ( LA1_7=='=' ) { alt1=34; } else { alt1=7;} break; case '_': alt1=8; break; case '-': switch ( input.LA(2) ) { case '=': alt1=32; break; case '-': alt1=27; break; default: alt1=9;} break; case '+': switch ( input.LA(2) ) { case '=': alt1=30; break; case '+': alt1=26; break; default: alt1=10;} break; case '|': int LA1_11 = input.LA(2); if ( LA1_11=='|' ) { alt1=23; } else { alt1=11;} break; case ',': alt1=12; break; case '{': alt1=13; break; case '}': alt1=14; break; case '[': alt1=15; break; case ']': alt1=16; break; case '=': switch ( input.LA(2) ) { case '+': alt1=31; break; case '-': alt1=33; break; case '*': alt1=35; break; case '/': alt1=37; break; case '=': alt1=29; break; default: alt1=17;} break; case '/': int LA1_18 = input.LA(2); if ( LA1_18=='=' ) { alt1=36; } else { alt1=18;} break; case '(': alt1=19; break; case ')': alt1=20; break; case '\'': alt1=21; break; case '\\': alt1=22; break; case '<': alt1=25; break; case '>': alt1=28; break; default: if (backtracking>0) {failed=true; return ;} NoViableAltException nvae = new NoViableAltException("884:1: MISC : ( \'!\' | \'@\' | \'$\' | \'%\' | \'^\' | \'&\' | \'*\' | \'_\' | \'-\' | \'+\' | \'|\' | \',\' | \'{\' | \'}\' | \'[\' | \']\' | \'=\' | \'/\' | \'(\' | \')\' | \'\\\'\' | \'\\\\\' | \'||\' | \'&&\' | \'<<<\' | \'++\' | \'--\' | \'>>>\' | \'==\' | \'+=\' | \'=+\' | \'-=\' | \'=-\' | \'*=\' | \'=*\' | \'/=\' | \'=/\' );", 1, 0, input); throw nvae; } switch (alt1) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:885:17: '!' { match('!'); if (failed) return ; } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:885:23: '@' { match('@'); if (failed) return ; } break; case 3 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:885:29: '$' { match('$'); if (failed) return ; } break; case 4 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:885:35: '%' { match('%'); if (failed) return ; } break; case 5 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:885:41: '^' { match('^'); if (failed) return ; } break; case 6 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:885:47: '&' { match('&'); if (failed) return ; } break; case 7 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:885:53: '*' { match('*'); if (failed) return ; } break; case 8 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:885:59: '_' { match('_'); if (failed) return ; } break; case 9 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:885:65: '-' { match('-'); if (failed) return ; } break; case 10 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:885:71: '+' { match('+'); if (failed) return ; } break; case 11 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:886:19: '|' { match('|'); if (failed) return ; } break; case 12 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:886:25: ',' { match(','); if (failed) return ; } break; case 13 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:886:31: '{' { match('{'); if (failed) return ; } break; case 14 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:886:37: '}' { match('}'); if (failed) return ; } break; case 15 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:886:43: '[' { match('['); if (failed) return ; } break; case 16 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:886:49: ']' { match(']'); if (failed) return ; } break; case 17 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:886:55: '=' { match('='); if (failed) return ; } break; case 18 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:886:61: '/' { match('/'); if (failed) return ; } break; case 19 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:886:67: '(' { match('('); if (failed) return ; } break; case 20 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:886:73: ')' { match(')'); if (failed) return ; } break; case 21 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:886:79: '\'' { match('\''); if (failed) return ; } break; case 22 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:886:86: '\\' { match('\\'); if (failed) return ; } break; case 23 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:887:19: '||' { match("||"); if (failed) return ; } break; case 24 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:887:26: '&&' { match("&&"); if (failed) return ; } break; case 25 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:887:33: '<<<' { match("<<<"); if (failed) return ; } break; case 26 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:887:41: '++' { match("++"); if (failed) return ; } break; case 27 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:887:48: '--' { match("--"); if (failed) return ; } break; case 28 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:887:55: '>>>' { match(">>>"); if (failed) return ; } break; case 29 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:887:63: '==' { match("=="); if (failed) return ; } break; case 30 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:887:70: '+=' { match("+="); if (failed) return ; } break; case 31 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:887:77: '=+' { match("=+"); if (failed) return ; } break; case 32 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:887:84: '-=' { match("-="); if (failed) return ; } break; case 33 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:887:91: '=-' { match("=-"); if (failed) return ; } break; case 34 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:887:97: '*=' { match("*="); if (failed) return ; } break; case 35 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:887:104: '=*' { match("=*"); if (failed) return ; } break; case 36 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:888:19: '/=' { match("/="); if (failed) return ; } break; case 37 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:888:26: '=/' { match("=/"); if (failed) return ; } break; } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { if ( backtracking>0 ) { memoize(input, 43, MISC_StartIndex); } } } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/bf3305a89ef5e916acbab744c38aaaec83bf67ff/RuleParserLexer.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
7492,
2312,
1435,
1216,
9539,
288,
3639,
509,
20806,
2312,
67,
16792,
273,
810,
18,
1615,
5621,
3639,
775,
288,
5411,
509,
618,
273,
20806,
2312,
31,
5411,
509,
787,
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,
918,
312,
7492,
2312,
1435,
1216,
9539,
288,
3639,
509,
20806,
2312,
67,
16792,
273,
810,
18,
1615,
5621,
3639,
775,
288,
5411,
509,
618,
273,
20806,
2312,
31,
5411,
509,
787,
273,
... | ||
public Vector buildPerspectives() { // should only build once if(_perspectives != null) return _perspectives; // this are meant for pane-1 of NavigatorPane, they all have // Project as their only prerequiste. These trees tend to be 3 // to 5 levels deep and sometimes have recursion. NavPerspective packageCentric = new NavPerspective("combobox.item.package-centric"); NavPerspective diagramCentric = new NavPerspective("combobox.item.diagram-centric"); NavPerspective inheritanceCentric = new NavPerspective("combobox.item.inheritance-centric"); NavPerspective classAssociation = new NavPerspective("combobox.item.class-associations"); NavPerspective navAssociation = new NavPerspective("combobox.item.navigable-associations"); NavPerspective aggregateCentric = new NavPerspective("combobox.item.aggregate-centric"); NavPerspective compositeCentric = new NavPerspective("combobox.item.composite-centric"); NavPerspective classStates = new NavPerspective("combobox.item.class-states"); NavPerspective stateCentric = new NavPerspective("combobox.item.state-centric"); NavPerspective stateTransitions = new NavPerspective("combobox.item.state-transitions"); NavPerspective transitionCentric = new NavPerspective("combobox.item.transitions-centric"); NavPerspective transitionPaths = new NavPerspective("combobox.item.transitions-paths"); NavPerspective collabCentric = new NavPerspective("combobox.item.collaboration-centric"); NavPerspective depCentric = new NavPerspective("combobox.item.dependency-centric"); // These are intended for pane-2 of NavigatorPane, the tend to be // simple and shallow, and have something in pane-1 as a prerequiste // TODO i8n NavPerspective useCaseToExtensionPoint = new NavPerspective("Extension Points of Use Case"); NavPerspective classToBehStr = new NavPerspective("misc.features-of-class"); NavPerspective classToBeh = new NavPerspective("misc.methods-of-class"); NavPerspective classToStr = new NavPerspective("misc.attributes-of-class"); NavPerspective machineToState = new NavPerspective("misc.states-of-class"); NavPerspective machineToTransition = new NavPerspective("misc.transitions-of-class"); // TODO i8n NavPerspective classCentric = new NavPerspective("Class - centric"); // -------------- GO rules -------------------------- // Subsystem is travsersed via Classifier. Eugenio GoFilteredChildren modelToPackages = new GoFilteredChildren( "misc.package.subpackages", new GoModelToElements(), new PredAND( new PredInstanceOf(MPackage.class), new PredNotInstanceOf(MSubsystem.class))); GoFilteredChildren modelToClassifiers = new GoFilteredChildren( "misc.package.classifiers", new GoModelToElements(), new PredInstanceOf(MClassifier.class)); // AssociationClass is traversed via Classifier. Eugenio GoFilteredChildren modelToAssociations = new GoFilteredChildren( "misc.package.associations", new GoModelToElements(), new PredAND( new PredInstanceOf(MAssociation.class), new PredNotInstanceOf(MAssociationClass.class))); GoFilteredChildren modelToGeneralizations = new GoFilteredChildren( "misc.package.generalizations", new GoModelToElements(), new PredInstanceOf(MGeneralization.class)); // Extend and include are traversed via use case. GoFilteredChildren modelToExtendsAndIncludes = new GoFilteredChildren( "Package->Extends/Includes", new GoModelToElements(), new PredOR( new PredInstanceOf(MExtend.class), new PredInstanceOf(MInclude.class))); GoFilteredChildren modelToDependencies = new GoFilteredChildren( "misc.package.dependencies", new GoModelToElements(), new PredInstanceOf(MDependency.class)); GoFilteredChildren modelToInstances = new GoFilteredChildren( "misc.package.instances", new GoModelToElements(), new PredInstanceOf(MObject.class)); GoFilteredChildren modelToLinks = new GoFilteredChildren( "misc.package.links", new GoModelToElements(), new PredInstanceOf(MLink.class)); GoFilteredChildren modelToCollaboration = new GoFilteredChildren( "misc.package.collaborations", new GoModelToElements(), new PredInstanceOf(MCollaboration.class)); GoFilteredChildren modelToComponentInstance = new GoFilteredChildren( "misc.package.componentinstance", new GoModelToElements(), new PredInstanceOf(MComponentInstance.class)); GoFilteredChildren modelToNodeInstance = new GoFilteredChildren( "misc.package.nodeinstance", new GoModelToElements(), new PredInstanceOf(MNodeInstance.class)); GoFilteredChildren machineToFinalState = new GoFilteredChildren( "misc.state-machine.final-states", new GoMachineToState(), PredIsFinalState.TheInstance); GoFilteredChildren machineToInitialState = new GoFilteredChildren( "misc.state-machine.initial-states", new GoMachineToState(), PredIsStartState.TheInstance); transitionPaths.addSubTreeModel(machineToInitialState); GoFilteredChildren compositeToFinalStates = new GoFilteredChildren( "misc.state.final-substates", new GoCompositeStateToSubvertex(), PredIsFinalState.TheInstance); GoFilteredChildren compositeToInitialStates = new GoFilteredChildren( "misc.state.initial-substates", new GoCompositeStateToSubvertex(), PredIsStartState.TheInstance); // ---------------- building the perspectives packageCentric.addSubTreeModel(new GoProjectToModel()); packageCentric.addSubTreeModel(new GoModelToDiagram()); packageCentric.addSubTreeModel(new GoModelElementToComment()); packageCentric.addSubTreeModel(modelToPackages); packageCentric.addSubTreeModel(modelToClassifiers); packageCentric.addSubTreeModel(modelToAssociations); packageCentric.addSubTreeModel(modelToExtendsAndIncludes); packageCentric.addSubTreeModel(modelToInstances); packageCentric.addSubTreeModel(modelToLinks); packageCentric.addSubTreeModel(new GoModelToCollaboration()); packageCentric.addSubTreeModel(modelToComponentInstance); packageCentric.addSubTreeModel(modelToNodeInstance); packageCentric.addSubTreeModel(modelToGeneralizations); packageCentric.addSubTreeModel(modelToDependencies); packageCentric.addSubTreeModel(new GoUseCaseToExtensionPoint()); packageCentric.addSubTreeModel(new GoClassifierToStructuralFeature()); packageCentric.addSubTreeModel(new GoClassifierToBeh()); packageCentric.addSubTreeModel(new GoCollaborationInteraction()); packageCentric.addSubTreeModel(new GoInteractionMessage()); packageCentric.addSubTreeModel(new GoMessageAction()); packageCentric.addSubTreeModel(new GoSignalToReception()); packageCentric.addSubTreeModel(new GoLinkStimuli()); packageCentric.addSubTreeModel(new GoStimulusToAction()); packageCentric.addSubTreeModel(new GoClassifierToCollaboration()); packageCentric.addSubTreeModel(new GoOperationToCollaboration()); packageCentric.addSubTreeModel(new GoOperationToCollaborationDiagram()); // rules for statemachinediagram and activitydiagram packageCentric.addSubTreeModel(new GoBehavioralFeatureToStateMachine()); packageCentric.addSubTreeModel(new GoBehavioralFeatureToStateDiagram()); packageCentric.addSubTreeModel(new GoClassifierToStateMachine()); packageCentric.addSubTreeModel(new GoMachineToState()); packageCentric.addSubTreeModel(new GoCompositeStateToSubvertex()); packageCentric.addSubTreeModel(new GoStateToInternalTrans()); packageCentric.addSubTreeModel(new GoStateMachineToTransition()); packageCentric.addSubTreeModel(new GoStateToDoActivity()); packageCentric.addSubTreeModel(new GoStateToEntry()); packageCentric.addSubTreeModel(new GoStateToExit()); diagramCentric.addSubTreeModel(new GoProjectToDiagram()); diagramCentric.addSubTreeModel(new GoDiagramToNode()); diagramCentric.addSubTreeModel(new GoDiagramToEdge()); diagramCentric.addSubTreeModel(new GoUseCaseToExtensionPoint()); diagramCentric.addSubTreeModel(new GoClassifierToStructuralFeature()); diagramCentric.addSubTreeModel(new GoClassifierToBeh()); inheritanceCentric.addSubTreeModel(new GoProjectToModel()); inheritanceCentric.addSubTreeModel(new GoModelToBaseElements()); inheritanceCentric.addSubTreeModel(new GoGenElementToDerived()); classAssociation.addSubTreeModel(new GoProjectToModel()); classAssociation.addSubTreeModel(new GoModelToDiagram()); classAssociation.addSubTreeModel(new GoModelToClass()); classAssociation.addSubTreeModel(new GoClassToAssociatedClass()); navAssociation.addSubTreeModel(new GoProjectToModel()); navAssociation.addSubTreeModel(new GoModelToDiagram()); navAssociation.addSubTreeModel(new GoModelToClass()); navAssociation.addSubTreeModel(new GoClassToNavigableClass()); stateCentric.addSubTreeModel(new GoProjectToStateMachine()); stateCentric.addSubTreeModel(new GoMachineDiagram()); stateCentric.addSubTreeModel(new GoMachineToState()); stateCentric.addSubTreeModel(new GoCompositeStateToSubvertex()); stateCentric.addSubTreeModel(new GoStateToIncomingTrans()); stateCentric.addSubTreeModel(new GoStateToOutgoingTrans()); transitionCentric.addSubTreeModel(new GoProjectToStateMachine()); transitionCentric.addSubTreeModel(new GoMachineDiagram()); transitionCentric.addSubTreeModel(new GoMachineToTrans()); transitionCentric.addSubTreeModel(new GoTransitionToSource()); transitionCentric.addSubTreeModel(new GoTransitionToTarget()); transitionPaths.addSubTreeModel(new GoProjectToStateMachine()); transitionPaths.addSubTreeModel(new GoMachineDiagram()); transitionPaths.addSubTreeModel(compositeToInitialStates); transitionPaths.addSubTreeModel(new GoStateToDownstream()); collabCentric.addSubTreeModel(new GoProjectToCollaboration()); collabCentric.addSubTreeModel(new GoCollaborationDiagram()); collabCentric.addSubTreeModel(new GoModelToElements()); collabCentric.addSubTreeModel(new GoAssocRoleMessages()); collabCentric.addSubTreeModel(new GoCollaborationInteraction()); collabCentric.addSubTreeModel(new GoInteractionMessages()); useCaseToExtensionPoint.addSubTreeModel(new GoUseCaseToExtensionPoint()); classToBehStr.addSubTreeModel(new GoClassifierToStructuralFeature()); classToBehStr.addSubTreeModel(new GoClassifierToBeh()); classToBeh.addSubTreeModel(new GoClassifierToBeh()); classToStr.addSubTreeModel(new GoClassifierToStructuralFeature()); machineToState.addSubTreeModel(new GoMachineToState()); machineToTransition.addSubTreeModel(new GoMachineToTrans()); classCentric.addSubTreeModel(new GoProjectToModel()); classCentric.addSubTreeModel(new GoModelToDiagram()); classCentric.addSubTreeModel(modelToPackages); classCentric.addSubTreeModel(modelToClassifiers); classCentric.addSubTreeModel(new GoClassToSummary()); classCentric.addSubTreeModel(new GoSummaryToAssociation()); classCentric.addSubTreeModel(new GoSummaryToAttribute()); classCentric.addSubTreeModel(new GoSummaryToOperation()); classCentric.addSubTreeModel(new GoSummaryToInheritance()); classCentric.addSubTreeModel(new GoSummaryToIncomingDependency()); classCentric.addSubTreeModel(new GoSummaryToOutgoingDependency()); // add each perspective to a vector for the ComboBox: Vector perspectives = new Vector(); perspectives.add(packageCentric); perspectives.add(classCentric); perspectives.add(diagramCentric); perspectives.add(inheritanceCentric); perspectives.add(classAssociation); perspectives.add(navAssociation); perspectives.add(stateCentric); perspectives.add(transitionCentric); perspectives.add(transitionPaths); perspectives.add(collabCentric); perspectives.add(depCentric); return perspectives; } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/1de82fde02a61c9bdec214aae29c615c3554fab5/NavigatorPane.java/buggy/src_new/org/argouml/ui/NavigatorPane.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5589,
1361,
14781,
1181,
3606,
1435,
288,
7734,
368,
1410,
1338,
1361,
3647,
3639,
309,
24899,
10422,
1181,
3606,
480,
446,
13,
5411,
327,
389,
10422,
1181,
3606,
31,
7734,
368,
333,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5589,
1361,
14781,
1181,
3606,
1435,
288,
7734,
368,
1410,
1338,
1361,
3647,
3639,
309,
24899,
10422,
1181,
3606,
480,
446,
13,
5411,
327,
389,
10422,
1181,
3606,
31,
7734,
368,
333,
... | ||
private String makeString(int tag, byte[] value) | private static String makeString(int tag, byte[] value) | private String makeString(int tag, byte[] value) throws IOException { Charset charset = null; switch (tag & 0x1F) { case NUMERIC_STRING: case PRINTABLE_STRING: case T61_STRING: case VIDEOTEX_STRING: case IA5_STRING: case GRAPHIC_STRING: case ISO646_STRING: case GENERAL_STRING: charset = Charset.forName("ISO-8859-1"); break; case UNIVERSAL_STRING: // XXX The docs say UniversalString is encoded in four bytes // per character, but Java has no support (yet) for UTF-32. //return new String(buf, "UTF-32"); case BMP_STRING: charset = Charset.forName("UTF-16BE"); break; case UTF8_STRING: charset = Charset.forName("UTF-8"); break; default: throw new DEREncodingException("unknown string tag"); } if (charset == null) throw new DEREncodingException("no decoder"); CharsetDecoder decoder = charset.newDecoder(); CharBuffer result = decoder.decode(ByteBuffer.wrap(value)); char[] buf = new char[result.remaining()]; result.get(buf); return new String(buf); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/50dc6879c9be89f646fdff68c58f785e3dc0b90e/DERReader.java/buggy/core/src/classpath/gnu/gnu/java/security/der/DERReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
514,
1221,
780,
12,
474,
1047,
16,
1160,
8526,
460,
13,
565,
1216,
1860,
225,
288,
565,
12080,
4856,
273,
446,
31,
565,
1620,
261,
2692,
473,
374,
92,
21,
42,
13,
1377,
288... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
514,
1221,
780,
12,
474,
1047,
16,
1160,
8526,
460,
13,
565,
1216,
1860,
225,
288,
565,
12080,
4856,
273,
446,
31,
565,
1620,
261,
2692,
473,
374,
92,
21,
42,
13,
1377,
288... |
return name == null ? "lambda" : Compilation.mangleName(name); | return name == null ? "lambda" : Compilation.mangleName(name, 0); | public String getJavaName () { String name = getName(); return name == null ? "lambda" : Compilation.mangleName(name); } | 40769 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/40769/ae2ea5515a6e96d857e7b3a4d43f854aa0611ada/ModuleExp.java/buggy/gnu/expr/ModuleExp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
18911,
461,
1832,
225,
288,
565,
514,
508,
273,
1723,
5621,
565,
327,
508,
422,
446,
692,
315,
14661,
6,
294,
22416,
18,
81,
4341,
461,
12,
529,
16,
374,
1769,
225,
289,
2,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
514,
18911,
461,
1832,
225,
288,
565,
514,
508,
273,
1723,
5621,
565,
327,
508,
422,
446,
692,
315,
14661,
6,
294,
22416,
18,
81,
4341,
461,
12,
529,
16,
374,
1769,
225,
289,
2,... |
retval = new EqualPtg(data, offset); | retval = new EqualPtg(in); | public static Ptg createPtg(byte [] data, int offset) { byte id = data[ offset + 0 ]; Ptg retval = null; final byte valueRef = ReferencePtg.sid + 0x20; final byte arrayRef = ReferencePtg.sid + 0x40; final byte valueFunc = FuncPtg.sid + 0x20; final byte arrayFunc = FuncPtg.sid + 0x40; final byte valueFuncVar = FuncVarPtg.sid +0x20; final byte arrayFuncVar = FuncVarPtg.sid+0x40; final byte valueArea = AreaPtg.sid + 0x20; final byte arrayArea = AreaPtg.sid + 0x40; switch (id) { case AddPtg.sid : retval = new AddPtg(data, offset); break; case SubtractPtg.sid : retval = new SubtractPtg(data, offset); break; case BoolPtg.sid: retval = new BoolPtg(data, offset); break; case IntPtg.sid : retval = new IntPtg(data, offset); break; case DividePtg.sid : retval = new DividePtg(data, offset); break; case MultiplyPtg.sid : retval = new MultiplyPtg(data, offset); break; case PowerPtg.sid : retval = new PowerPtg(data, offset); break; case EqualPtg.sid: retval = new EqualPtg(data, offset); break; case GreaterThanPtg.sid: retval = new GreaterThanPtg(data, offset); break; case LessThanPtg.sid: retval = new LessThanPtg(data, offset); break; case LessEqualPtg.sid: retval = new LessEqualPtg(data, offset); break; case GreaterEqualPtg.sid: retval = new GreaterEqualPtg(data, offset); break; case NotEqualPtg.sid: retval = new NotEqualPtg(data, offset); break; case ConcatPtg.sid : retval = new ConcatPtg(data, offset); break; case AreaPtg.sid : retval = new AreaPtg(data, offset); break; case valueArea: retval = new AreaPtg(data, offset); break; case arrayArea: retval = new AreaPtg(data, offset); break; case MemErrPtg.sid : // 0x27 These 3 values case MemErrPtg.sid+0x20 : // 0x47 documented in case MemErrPtg.sid+0x40 : // 0x67 openOffice.org doc. retval = new MemErrPtg(data, offset); break; case AttrPtg.sid : retval = new AttrPtg(data, offset); break; case ReferencePtg.sid : retval = new ReferencePtg(data, offset); break; case valueRef : retval = new ReferencePtg(data, offset); break; case arrayRef : retval = new ReferencePtg(data, offset); break; case ParenthesisPtg.sid : retval = new ParenthesisPtg(data, offset); break; case MemFuncPtg.sid : retval = new MemFuncPtg(data, offset); break; case UnionPtg.sid : retval = new UnionPtg(data, offset); break; case FuncPtg.sid : retval = new FuncPtg(data, offset); break; case valueFunc : retval = new FuncPtg(data, offset); break; case arrayFunc : retval = new FuncPtg(data, offset); break; case FuncVarPtg.sid : retval = new FuncVarPtg(data, offset); break; case valueFuncVar : retval = new FuncVarPtg(data, offset); break; case arrayFuncVar : retval = new FuncVarPtg(data, offset); break; case NumberPtg.sid : retval = new NumberPtg(data, offset); break; case StringPtg.sid : retval = new StringPtg(data, offset); break; case NamePtg.sid : // 0x23 These 3 values case NamePtg.sid+0x20 : // 0x43 documented in case NamePtg.sid+0x40 : // 0x63 openOffice.org doc. retval = new NamePtg(data, offset); break; case NameXPtg.sid : // 0x39 case NameXPtg.sid+0x20 : // 0x45 case NameXPtg.sid+0x40 : // 0x79 retval = new NameXPtg(data, offset); break; case ExpPtg.sid : retval = new ExpPtg(data, offset); break; case Area3DPtg.sid : // 0x3b These 3 values case Area3DPtg.sid+0x20 : // 0x5b documented in case Area3DPtg.sid+0x40 : // 0x7b openOffice.org doc. retval = new Area3DPtg(data, offset); break; case Ref3DPtg.sid: // 0x3a These 3 values case Ref3DPtg.sid+0x20: // 0x5a documented in case Ref3DPtg.sid+0x40: // 0x7a openOffice.org doc. retval = new Ref3DPtg(data, offset); break; case DeletedArea3DPtg.sid : // 0x3c case DeletedArea3DPtg.sid+0x20 : // 0x5c case DeletedArea3DPtg.sid+0x40 : // 0x7c retval = new DeletedArea3DPtg(data, offset); break; case DeletedRef3DPtg.sid: // 0x3d case DeletedRef3DPtg.sid+0x20: // 0x5d case DeletedRef3DPtg.sid+0x40: // 0x7d retval = new DeletedRef3DPtg(data, offset); break; case MissingArgPtg.sid: retval = new MissingArgPtg(data,offset); break; case UnaryPlusPtg.sid: retval=new UnaryPlusPtg(data,offset); break; case UnaryMinusPtg.sid: retval=new UnaryMinusPtg(data,offset); break; default : //retval = new UnknownPtg(); throw new java.lang.UnsupportedOperationException( Integer.toHexString(( int ) id) + " (" + ( int ) id + ")"); } if (id > 0x60) { retval.setClass(CLASS_ARRAY); } else if (id > 0x40) { retval.setClass(CLASS_VALUE); } else retval.setClass(CLASS_REF); return retval; } | 509 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/509/ada69333b277a95ccfc608144b991cfd8d1a9d37/Ptg.java/buggy/src/java/org/apache/poi/hssf/record/formula/Ptg.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
453,
88,
75,
752,
16484,
75,
12,
7229,
5378,
501,
16,
509,
1384,
13,
565,
288,
3639,
1160,
612,
377,
273,
501,
63,
1384,
397,
374,
308,
31,
3639,
453,
88,
75,
225,
5221,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
453,
88,
75,
752,
16484,
75,
12,
7229,
5378,
501,
16,
509,
1384,
13,
565,
288,
3639,
1160,
612,
377,
273,
501,
63,
1384,
397,
374,
308,
31,
3639,
453,
88,
75,
225,
5221,
... |
getSDModel().getDefinitionsDocuments().size() > 0); | getSDModel().getOpenDefinitionsDocuments().size() > 0); | protected void assertNotEmpty() { assertTrue("number of documents", getSDModel().getDefinitionsDocuments().size() > 0); } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/1b9869851f567b7b6474eabaac96584b4771f5f3/SingleDisplayModelTest.java/buggy/drjava/src/edu/rice/cs/drjava/model/SingleDisplayModelTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1815,
18431,
1435,
288,
565,
1815,
5510,
2932,
2696,
434,
7429,
3113,
9079,
1322,
40,
1488,
7675,
588,
3678,
7130,
12922,
7675,
1467,
1435,
405,
374,
1769,
225,
289,
2,
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,
4750,
918,
1815,
18431,
1435,
288,
565,
1815,
5510,
2932,
2696,
434,
7429,
3113,
9079,
1322,
40,
1488,
7675,
588,
3678,
7130,
12922,
7675,
1467,
1435,
405,
374,
1769,
225,
289,
2,
-100,
-... |
return RubyFixnum.zero(runtime); | return RubyFixnum.zero(getRuntime()); | public IRubyObject putc(IRubyObject object) { int c; if (object.isKindOf(getRuntime().getClasses().getStringClass())) { String value = ((RubyString) object).toString(); if (value.length() > 0) { c = value.charAt(0); } else { throw new TypeError(getRuntime(), "Cannot convert String to Integer"); } } else if (object.isKindOf(getRuntime().getClasses().getFixnumClass())){ c = RubyFixnum.fix2int(object); } else { // What case will this work for? c = RubyFixnum.fix2int(object.callMethod("to_i")); } try { handler.putc(c); } catch (ErrnoError e) { return RubyFixnum.zero(runtime); } return RubyFixnum.newFixnum(getRuntime(), c); } | 45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyIO.java/clean/src/org/jruby/RubyIO.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
1378,
71,
12,
7937,
10340,
921,
733,
13,
288,
3639,
509,
276,
31,
7734,
309,
261,
1612,
18,
291,
5677,
951,
12,
588,
5576,
7675,
588,
4818,
7675,
588,
780,
797,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
1378,
71,
12,
7937,
10340,
921,
733,
13,
288,
3639,
509,
276,
31,
7734,
309,
261,
1612,
18,
291,
5677,
951,
12,
588,
5576,
7675,
588,
4818,
7675,
588,
780,
797,... |
if (getDestroyedCriticals(CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_HIP, loc) > 0) { | if (getBadCriticals(CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_HIP, loc) > 0) { | public PilotingRollData addEntityBonuses(PilotingRollData roll) { int[] locsToCheck = new int[4]; int destroyedLegs = 0; locsToCheck = new int[4]; locsToCheck[0] = Mech.LOC_RLEG; locsToCheck[1] = Mech.LOC_LLEG; locsToCheck[2] = Mech.LOC_RARM; locsToCheck[3] = Mech.LOC_LARM; destroyedLegs = countDestroyedLegs(); if ( destroyedLegs == 0 ) roll.addModifier(-2, "Quad bonus"); for ( int i = 0; i < locsToCheck.length; i++ ) { int loc = locsToCheck[i]; if (isLocationDestroyed(loc)) { if ( destroyedLegs > 1 ) roll.addModifier(5, getLocationName(loc) + " destroyed"); } else { // check for damaged hip actuators if (getDestroyedCriticals(CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_HIP, loc) > 0) { roll.addModifier(2, getLocationName(loc) + " Hip Actuator destroyed"); if (!game.getOptions().booleanOption("maxtech_leg_damage")) continue; } // upper leg actuators? if (getDestroyedCriticals(CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_UPPER_LEG, loc) > 0) { roll.addModifier(1, getLocationName(loc) + " Upper Leg Actuator destroyed"); } // lower leg actuators? if (getDestroyedCriticals(CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_LOWER_LEG, loc) > 0) { roll.addModifier(1, getLocationName(loc) + " Lower Leg Actuator destroyed"); } // foot actuators? if (getDestroyedCriticals(CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_FOOT, loc) > 0) { roll.addModifier(1, getLocationName(loc) + " Foot Actuator destroyed"); } } } return super.addEntityBonuses(roll); } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/874156ef708f4cb436dd1899851ca8811fe1ba20/QuadMech.java/buggy/megamek/src/megamek/common/QuadMech.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
453,
330,
17128,
24194,
751,
527,
1943,
38,
265,
6117,
12,
52,
330,
17128,
24194,
751,
5824,
13,
288,
1377,
509,
8526,
1515,
11634,
1564,
273,
394,
509,
63,
24,
15533,
1377,
509,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
453,
330,
17128,
24194,
751,
527,
1943,
38,
265,
6117,
12,
52,
330,
17128,
24194,
751,
5824,
13,
288,
1377,
509,
8526,
1515,
11634,
1564,
273,
394,
509,
63,
24,
15533,
1377,
509,
... |
showError = (itemToEdit == null); | if (dso != null && dso.getType() == Constants.ITEM) { itemToEdit = (Item) dso; showError = false; } else { showError = true; } | protected void doDSGet(Context context, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException { /* * GET with no parameters displays "find by handle/id" form * parameter item_id -> find and edit item with internal ID item_id * parameter handle -> find and edit corresponding item * if internal ID or Handle are invalid, "find by handle/id" form * is displayed again with error message */ int internalID = UIUtil.getIntParameter(request, "item_id"); String handle = request.getParameter("handle"); boolean showError = false; // See if an item ID or Handle was passed in Item itemToEdit = null; if (internalID > 0) { itemToEdit = Item.find(context, internalID); showError = (itemToEdit == null); } else if (handle != null && !handle.equals("")) { // FIXME: Handles might resolve to other things itemToEdit = (Item) HandleManager.resolveToObject(context, handle); showError = (itemToEdit == null); } // Show edit form if appropriate if (itemToEdit != null) { showEditForm(context, request, response, itemToEdit); } else { if (showError) { request.setAttribute("invalid.id", new Boolean(true)); } JSPManager.showJSP(request, response, "/admin/get-item-id.jsp"); } } | 31338 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31338/221d7ca45c4690dc856edfa997a6fbe41573ce7d/EditItemServlet.java/clean/dspace/src/org/dspace/app/webui/servlet/admin/EditItemServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
741,
3948,
967,
12,
1042,
819,
16,
3639,
9984,
590,
16,
3639,
12446,
766,
13,
3639,
1216,
16517,
16,
1860,
16,
6483,
16,
23859,
503,
565,
288,
3639,
1748,
540,
380,
4978,
598... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
3948,
967,
12,
1042,
819,
16,
3639,
9984,
590,
16,
3639,
12446,
766,
13,
3639,
1216,
16517,
16,
1860,
16,
6483,
16,
23859,
503,
565,
288,
3639,
1748,
540,
380,
4978,
598... |
visualisiereBiene(selbst); System.out.println(id + ": visualisation abgeschlossen"); | public void zuschauen() { //visualisiereFelder(karte); System.out.println(id + ": schaue zu (" + position.gibPosition().gibXPosition() + ", " + position.gibPosition().gibYPosition() + " )"); if (!(position.gibIDsTanzendeBienen().isEmpty())) { int zielBiene = ((Integer)position.gibIDsTanzendeBienen().iterator().next()).intValue(); long nAktCode = handler.aktionZuschauen(aktCode, zielBiene); if (!( nAktCode == 0L)) { aktCode = nAktCode; } ausschnittHolen(); //visualisiereBiene(selbst); } else { System.out.println(id + "keine tanzenden Bienen anwesend!!!"); long nAktCode = handler.aktionZuschauen(aktCode, 111); if (!( nAktCode == 0L)) { aktCode = nAktCode; } } } | 12198 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12198/65767443b3b38c2bacb742c0be2b6fe63abd73a7/BienenstockAgent.java/clean/branches/eugen/source/agents/bienenstock/BienenstockAgent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
11623,
291,
77,
822,
18808,
4009,
12,
1786,
70,
334,
1769,
2332,
18,
659,
18,
8222,
12,
350,
397,
6398,
11623,
10742,
1223,
2852,
343,
7873,
275,
8863,
225,
11623,
291,
77,
822,
18808,
4009,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
11623,
291,
77,
822,
18808,
4009,
12,
1786,
70,
334,
1769,
2332,
18,
659,
18,
8222,
12,
350,
397,
6398,
11623,
10742,
1223,
2852,
343,
7873,
275,
8863,
225,
11623,
291,
77,
822,
18808,
4009,
... | |
} else { Vector pendingVector = (Vector) pendingCreates.get(src); Block pendingBlocks[] = (Block[]) pendingVector.toArray(new Block[pendingVector.size()]); | } FileUnderConstruction pendingFile = (FileUnderConstruction) pendingCreates.get(src); int nrBlocks = pendingFile.size(); Block pendingBlocks[] = (Block[]) pendingFile.toArray(new Block[nrBlocks]); | public synchronized int completeFile(UTF8 src, UTF8 holder) { if (dir.getFile(src) != null || pendingCreates.get(src) == null) { LOG.info("Failed to complete " + src + " because dir.getFile()==" + dir.getFile(src) + " and " + pendingCreates.get(src)); return OPERATION_FAILED; } else if (! checkFileProgress(src)) { return STILL_WAITING; } else { Vector pendingVector = (Vector) pendingCreates.get(src); Block pendingBlocks[] = (Block[]) pendingVector.toArray(new Block[pendingVector.size()]); // // We have the pending blocks, but they won't have // length info in them (as they were allocated before // data-write took place). So we need to add the correct // length info to each // // REMIND - mjc - this is very inefficient! We should // improve this! // for (int i = 0; i < pendingBlocks.length; i++) { Block b = pendingBlocks[i]; TreeSet containingNodes = (TreeSet) blocksMap.get(b); DatanodeInfo node = (DatanodeInfo) containingNodes.first(); for (Iterator it = node.getBlockIterator(); it.hasNext(); ) { Block cur = (Block) it.next(); if (b.getBlockId() == cur.getBlockId()) { b.setNumBytes(cur.getNumBytes()); break; } } } // // Now we can add the (name,blocks) tuple to the filesystem // if (dir.addFile(src, pendingBlocks)) { // The file is no longer pending pendingCreates.remove(src); for (int i = 0; i < pendingBlocks.length; i++) { pendingCreateBlocks.remove(pendingBlocks[i]); } synchronized (leases) { Lease lease = (Lease) leases.get(holder); if (lease != null) { lease.completedCreate(src); if (! lease.hasLocks()) { leases.remove(holder); sortedLeases.remove(lease); } } } // // REMIND - mjc - this should be done only after we wait a few secs. // The namenode isn't giving datanodes enough time to report the // replicated blocks that are automatically done as part of a client // write. // // Now that the file is real, we need to be sure to replicate // the blocks. for (int i = 0; i < pendingBlocks.length; i++) { TreeSet containingNodes = (TreeSet) blocksMap.get(pendingBlocks[i]); if (containingNodes.size() < this.desiredReplication) { synchronized (neededReplications) { LOG.info("Completed file " + src + ", at holder " + holder + ". There is/are only " + containingNodes.size() + " copies of block " + pendingBlocks[i] + ", so replicating up to " + this.desiredReplication); neededReplications.add(pendingBlocks[i]); } } } return COMPLETE_SUCCESS; } else { System.out.println("AddFile() for " + src + " failed"); } LOG.info("Dropped through on file add...."); } return OPERATION_FAILED; } | 50370 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50370/ba0ca973d8fbf49c1b7c2d29e7763226576364e8/FSNamesystem.java/clean/src/java/org/apache/hadoop/dfs/FSNamesystem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
509,
3912,
812,
12,
5159,
28,
1705,
16,
6380,
28,
10438,
13,
288,
3639,
309,
261,
1214,
18,
29925,
12,
4816,
13,
480,
446,
747,
4634,
2729,
18,
588,
12,
4816,
13,
422,
446... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
509,
3912,
812,
12,
5159,
28,
1705,
16,
6380,
28,
10438,
13,
288,
3639,
309,
261,
1214,
18,
29925,
12,
4816,
13,
480,
446,
747,
4634,
2729,
18,
588,
12,
4816,
13,
422,
446... |
; return ((((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].avgPeriod)) > ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod))) ? ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].avgPeriod)) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod))) + 4; } | ; return ((( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].avgPeriod) ) > ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].avgPeriod) )) ? ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].avgPeriod) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].avgPeriod) )) + 4; } | public int CDLMATHOLD_Lookback(double optInPenetration) { ; return ((((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].avgPeriod)) > ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod))) ? ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].avgPeriod)) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod))) + 4; } | 51465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51465/cf65b93eedaca922be2993fe424b023f73c7562d/Core.java/buggy/trunk/ta-lib/java/src/TA/Lib/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
385,
8914,
49,
3275,
11846,
67,
9794,
823,
12,
9056,
2153,
382,
24251,
278,
7034,
13,
288,
202,
202,
31,
202,
202,
2463,
261,
12443,
12,
2211,
18,
71,
464,
298,
2628,
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,
225,
202,
482,
509,
385,
8914,
49,
3275,
11846,
67,
9794,
823,
12,
9056,
2153,
382,
24251,
278,
7034,
13,
288,
202,
202,
31,
202,
202,
2463,
261,
12443,
12,
2211,
18,
71,
464,
298,
2628,
6... |
public AID ShowAIDGui(AID agentIdentifier, boolean ed, boolean checkMandatorySlots) { this.out = null; this.editable = ed; this.checkSlots = checkMandatorySlots; if(agentIdentifier == null) this.agentAID = new AID(); else this.agentAID = agentIdentifier; JLabel label; JPanel mainPanel = new JPanel(); mainPanel.setLayout(new BoxLayout(mainPanel,BoxLayout.Y_AXIS)); //Name JPanel namePanel = new JPanel(); namePanel.setLayout(new BoxLayout(namePanel,BoxLayout.X_AXIS)); label = new JLabel("NAME"); label.setPreferredSize(new Dimension(80,26)); label.setMinimumSize(new Dimension(80,26)); label.setMaximumSize(new Dimension(80,26)); namePanel.add(label); isLocalName = new JCheckBox(); isLocalName.setVisible(ed); //if the AID is editable then the checkbox is show otherwise no. isLocalName.setToolTipText("Select if the name is not a GUID."); namePanel.add(isLocalName); nameText = new JTextField(); nameText.setBackground(Color.white); nameText.setText(agentAID.getName()); nameText.setPreferredSize(new Dimension(125,26)); nameText.setMinimumSize(new Dimension(125,26)); nameText.setMaximumSize(new Dimension(125,26)); nameText.setEditable(editable); namePanel.add(nameText); mainPanel.add(namePanel); //Addresses JPanel addressesPanel = new JPanel(); addressesPanel.setLayout(new BorderLayout()); addressesPanel.setBorder(BorderFactory.createTitledBorder("Addresses")); addressListPanel = new VisualStringList(agentAID.getAllAddresses(),parentGUI); addressListPanel.setDimension(new Dimension(200,40)); addressListPanel.setEnabled(editable); addressesPanel.add(addressListPanel); mainPanel.add(addressesPanel); //Resolvers JPanel resolversPanel = new JPanel(); resolversPanel.setLayout(new BorderLayout()); resolversPanel.setBorder(BorderFactory.createTitledBorder("Resolvers")); resolverListPanel = new VisualAIDList(agentAID.getAllResolvers(),parentGUI); resolverListPanel.setDimension(new Dimension(200,40)); resolverListPanel.setEnabled(editable); resolverListPanel.setCheckMandatorySlots(checkMandatorySlots); resolversPanel.add(resolverListPanel); mainPanel.add(resolversPanel); //Properties JPanel propertiesPanel = new JPanel(); propertiesPanel.setLayout(new BorderLayout()); propertiesPanel.setBorder(BorderFactory.createTitledBorder("Properties")); propertiesListPanel = new VisualPropertiesList(agentAID.getAllUserDefinedSlot(),parentGUI); propertiesListPanel.setDimension(new Dimension(200,40)); propertiesListPanel.setEnabled(editable); propertiesPanel.add(propertiesListPanel); mainPanel.add(propertiesPanel); //Button Ok-Cancel JPanel buttonPanel = new JPanel(); buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.X_AXIS)); JButton okButton = new JButton("OK"); okButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { String param = (String)e.getActionCommand(); if(param.equals("OK")) { if(editable) { String name = (nameText.getText()).trim(); if (checkSlots) if (name.length() == 0) { JOptionPane.showMessageDialog(thisGUI,"AID must have a non-empty name.","Error Message",JOptionPane.ERROR_MESSAGE); return; } out = new AID(); if(isLocalName.isSelected()) out.setLocalName(name); else out.setName(name); //addresses Enumeration addresses = addressListPanel.getContent(); while(addresses.hasMoreElements()) out.addAddresses((String)addresses.nextElement()); //resolvers Enumeration resolvers = resolverListPanel.getContent(); while(resolvers.hasMoreElements()) out.addResolvers((AID)resolvers.nextElement()); //Properties Properties new_prop = propertiesListPanel.getContentProperties(); Enumeration key_en = new_prop.propertyNames(); while(key_en.hasMoreElements()) { String key = (String)key_en.nextElement(); out.addUserDefinedSlot(key, new_prop.getProperty(key)); } } else out = agentAID; dispose(); } } }); buttonPanel.add(okButton); if(editable) { JButton cancelButton = new JButton("Cancel"); cancelButton.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e) { String param = e.getActionCommand(); if(param.equals("Cancel")) { out = null; dispose(); } } }); buttonPanel.add(cancelButton); } mainPanel.add(buttonPanel); getContentPane().add(mainPanel, BorderLayout.CENTER); pack(); setResizable(false); setModal(true); //setVisible(true); ShowCorrect(); return out; } | 5505 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5505/ad924c3d04e4f347c7ea98a9308ba643a00b946b/AIDGui.java/buggy/src/jade/gui/AIDGui.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
202,
482,
432,
734,
9674,
37,
734,
18070,
12,
37,
734,
4040,
3004,
16,
1250,
1675,
16,
1250,
866,
49,
10018,
16266,
13,
225,
202,
95,
3196,
225,
333,
18,
659,
273,
446,
31,
3196,
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,
282,
202,
482,
432,
734,
9674,
37,
734,
18070,
12,
37,
734,
4040,
3004,
16,
1250,
1675,
16,
1250,
866,
49,
10018,
16266,
13,
225,
202,
95,
3196,
225,
333,
18,
659,
273,
446,
31,
3196,
202,... | ||
editorCell.addEditorCell(this.createCellAlternation(context, node)); | editorCell.addEditorCell(this.createRowCell1(context, node)); | public EditorCell createRowCell(EditorContext context, SNode node) { EditorCell_Collection editorCell = EditorCell_Collection.createHorizontal(context, node); editorCell.setSelectable(true); editorCell.setDrawBorder(true); editorCell.setGridLayout(false); editorCell.setDrawBrackets(false); editorCell.setBracketsColor(Color.black); editorCell.setUsesBraces(false); editorCell.setCanBeFolded(false); editorCell.addEditorCell(this.createRoleCell(context, node)); if(LinkDeclaration_Editor._QueryFunction_NodeCondition_1146605577666(node, context.getOperationContext().getScope())) { editorCell.addEditorCell(this.createMetaClassCell(context, node)); } if(LinkDeclaration_Editor._QueryFunction_NodeCondition_1146605728892(node, context.getOperationContext().getScope())) { editorCell.addEditorCell(this.createSourceCardinalityCell(context, node)); } if(LinkDeclaration_Editor._QueryFunction_NodeCondition_1146605762247(node, context.getOperationContext().getScope())) { editorCell.addEditorCell(this.createLinkDeclaration_SpecializedMetaclassCell(context, node)); } if(LinkDeclaration_Editor._QueryFunction_NodeCondition_1146606011485(node, context.getOperationContext().getScope())) { editorCell.addEditorCell(this.createLinkDeclaration_SpecializedSourceCardinalityCell(context, node)); } editorCell.addEditorCell(this.createConstantCell(context, node, "target:")); editorCell.addEditorCell(this.createTargetReferenceCell(context, node)); editorCell.addEditorCell(this.createCellAlternation(context, node)); editorCell.putUserObject(EditorCell.CELL_ID, "1084189569970"); editorCell.setLayoutConstraint(""); ((EditorCell_Basic)editorCell).setParseable(false); return editorCell; } | 14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/02c0163b0600db599a05f7c2acc2c72fd6ea8492/LinkDeclaration_Editor.java/clean/source_gen/jetbrains/mps/bootstrap/structureLanguage/editor/LinkDeclaration_Editor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
18451,
4020,
752,
1999,
4020,
12,
6946,
1042,
819,
16,
348,
907,
756,
13,
288,
565,
18451,
4020,
67,
2532,
4858,
4020,
273,
18451,
4020,
67,
2532,
18,
2640,
14457,
12,
2472,
16,
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,
282,
1071,
18451,
4020,
752,
1999,
4020,
12,
6946,
1042,
819,
16,
348,
907,
756,
13,
288,
565,
18451,
4020,
67,
2532,
4858,
4020,
273,
18451,
4020,
67,
2532,
18,
2640,
14457,
12,
2472,
16,
7... |
public String printComment(String userName, Comment comment) | public String printComment(String userName, Comment comment) throws RemoteException | public String printComment(String userName, Comment comment) { try { return comment.printComment(userName); } catch (RemoteException re) { throw new EJBException("Unable to print Comment (exception: "+re+")<br>\n"); } } | 5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/69c37257a1581e015b5a8a01582a0f0d4a10936c/SB_AboutMeBean.java/buggy/EJB_Session_facade/edu/rice/rubis/beans/SB_AboutMeBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1172,
4469,
12,
780,
12065,
16,
9821,
2879,
13,
1216,
18361,
225,
288,
565,
775,
565,
288,
1377,
327,
2879,
18,
1188,
4469,
12,
1355,
461,
1769,
565,
289,
565,
1044,
261,
516... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1172,
4469,
12,
780,
12065,
16,
9821,
2879,
13,
1216,
18361,
225,
288,
565,
775,
565,
288,
1377,
327,
2879,
18,
1188,
4469,
12,
1355,
461,
1769,
565,
289,
565,
1044,
261,
516... |
Soar2D.control.stepSimulation(); | Soar2D.control.startSimulation(true, true); | public void widgetSelected(SelectionEvent e) { Soar2D.control.stepSimulation(); } | 47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/5c66db8bd3021a132f57e83faf0bb2a81c538108/SimulationButtons.java/buggy/SoarSuite/Environments/Soar2D/src/soar2d/visuals/SimulationButtons.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
9506,
202,
10225,
297,
22,
40,
18,
7098,
18,
4119,
18419,
5621,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
9506,
202,
10225,
297,
22,
40,
18,
7098,
18,
4119,
18419,
5621,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
SimpleDateFormat formatter = new SimpleDateFormat(DateFormatFactory.getFormat()); | DateFormat formatter = DateFormatFactory.getDateFormat(); | public static void writefile(String info, Date date, String fileName) throws CruiseControlException { SimpleDateFormat formatter = new SimpleDateFormat(DateFormatFactory.getFormat()); StringBuffer sb = new StringBuffer(); sb.append(info); sb.append(formatter.format(date)); sb.append("</span>"); FileWriter fw = null; try { fw = new FileWriter(fileName); fw.write(sb.toString()); } catch (IOException ioe) { throw new CruiseControlException("Error writing file: " + fileName, ioe); } finally { if (fw != null) { try { fw.close(); } catch (IOException ignore) { } } } } | 55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/8e766620314baa765a728e4f54940240ccebe816/CurrentBuildFileWriter.java/clean/main/src/net/sourceforge/cruisecontrol/util/CurrentBuildFileWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1045,
768,
12,
780,
1123,
16,
2167,
1509,
16,
514,
3968,
13,
1216,
385,
8653,
784,
3367,
503,
288,
3639,
18371,
4453,
273,
18371,
1733,
18,
588,
11878,
5621,
3639,
6674,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1045,
768,
12,
780,
1123,
16,
2167,
1509,
16,
514,
3968,
13,
1216,
385,
8653,
784,
3367,
503,
288,
3639,
18371,
4453,
273,
18371,
1733,
18,
588,
11878,
5621,
3639,
6674,
... |
if (TRACE_REDIRECT) SystemInterface.debugmsg("redirecting "+this+" to point to "+that); | if (TRACE_REDIRECT) SystemInterface.debugmsg("redirecting " + this + " to point to " + that); | public void redirect(jq_CompiledCode that) { CodeAddress newEntrypoint = that.getEntrypoint(); if (TRACE_REDIRECT) SystemInterface.debugmsg("redirecting "+this+" to point to "+that); if (entrypoint.difference(start.offset(5)) >= 0) { if (TRACE_REDIRECT) SystemInterface.debugmsg("redirecting via trampoline"); // both should start with "push EBP" jq.Assert(entrypoint.peek1() == newEntrypoint.peek1()); // put target address (just after push EBP) entrypoint.offset(-4).poke4(newEntrypoint.difference(entrypoint)+1); // put jump instruction entrypoint.offset(-5).poke1((byte)0xE9); // JMP // put backward branch to jump instruction entrypoint.offset(1).poke2((short)0xF8EB); // JMP } else { if (TRACE_REDIRECT) SystemInterface.debugmsg("redirecting by rewriting targets"); Iterator it = CodeAllocator.getCompiledMethods(); while (it.hasNext()) { jq_CompiledCode cc = (jq_CompiledCode)it.next(); cc.patchDirectBindCalls(this.method, that); } } } | 3029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3029/00a532e6f2ba445338d1d9c981b5171cdc044fd4/jq_CompiledCode.java/buggy/joeq_core/joeq/Class/jq_CompiledCode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3136,
12,
78,
85,
67,
20733,
1085,
716,
13,
288,
3639,
3356,
1887,
24086,
1153,
273,
716,
18,
588,
1622,
1153,
5621,
3639,
309,
261,
23827,
67,
25103,
13,
2332,
1358,
18,
414... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3136,
12,
78,
85,
67,
20733,
1085,
716,
13,
288,
3639,
3356,
1887,
24086,
1153,
273,
716,
18,
588,
1622,
1153,
5621,
3639,
309,
261,
23827,
67,
25103,
13,
2332,
1358,
18,
414... |
private AnAction processGroupElement(Element element, final ClassLoader loader, PluginId pluginId) { final Application app = ApplicationManager.getApplication(); final IdeaPluginDescriptor plugin = app.getPlugin(pluginId); @NonNls final String resBundleName = plugin != null ? plugin.getResourceBundleBaseName() : ACTIONS_BUNDLE; ResourceBundle bundle = null; if (resBundleName != null) { bundle = ResourceBundle.getBundle(resBundleName, Locale.getDefault(), loader); } if (LOG.isDebugEnabled()) { LOG.debug("enter: processGroupElement(" + element.getName() + ")"); } if (!GROUP_ELEMENT_NAME.equals(element.getName())) { LOG.error("unexpected name of element \"" + element.getName() + "\""); return null; } String className = element.getAttributeValue(CLASS_ATTR_NAME); if (className == null) { // use default group if class isn't specified className = DefaultActionGroup.class.getName(); } try { Class aClass = Class.forName(className, true, loader); Object obj = new ConstructorInjectionComponentAdapter(className, aClass).getComponentInstance(ApplicationManager.getApplication().getPicoContainer()); if (!(obj instanceof ActionGroup)) { LOG.error("class with name \"" + className + "\" should be instance of " + ActionGroup.class.getName()); return null; } if (element.getChildren().size() != element.getChildren(ADD_TO_GROUP_ELEMENT_NAME).size() ) { // if (!(obj instanceof DefaultActionGroup)) { LOG.error("class with name \"" + className + "\" should be instance of " + DefaultActionGroup.class.getName() + " because there are children specified"); return null; } } ActionGroup group = (ActionGroup)obj; // read ID and register loaded group String id = element.getAttributeValue(ID_ATTR_NAME); if (id != null && id.length() == 0) { LOG.error("ID of the group cannot be an empty string"); return null; } if (Boolean.valueOf(element.getAttributeValue(INTERNAL_ATTR_NAME)).booleanValue() && !ApplicationManagerEx.getApplicationEx().isInternal()) { myNotRegisteredInternalActionIds.add(id); return null; } if (id != null) { registerAction(id, group); } // text Presentation presentation = group.getTemplatePresentation(); String text = loadTextForElement(element, bundle, id, GROUP_ELEMENT_NAME); presentation.setText(text); // description String description = loadDescriptionForElement(element, bundle, id, GROUP_ELEMENT_NAME); presentation.setDescription(description); // icon setIcon(element.getAttributeValue(ICON_ATTR_NAME), className, loader, presentation); // popup String popup = element.getAttributeValue(POPAP_ATTR_NAME); if (popup != null) { group.setPopup(Boolean.valueOf(popup).booleanValue()); } // process all group's children. There are other groups, actions, references and links for (final Object o : element.getChildren()) { Element child = (Element)o; String name = child.getName(); if (ACTION_ELEMENT_NAME.equals(name)) { AnAction action = processActionElement(child, loader, pluginId); if (action != null) { assertActionIsGroupOrStub(action); ((DefaultActionGroup)group).add(action, this); } } else if (SEPARATOR_ELEMENT_NAME.equals(name)) { processSeparatorNode((DefaultActionGroup)group, child); } else if (GROUP_ELEMENT_NAME.equals(name)) { AnAction action = processGroupElement(child, loader, pluginId); if (action != null) { ((DefaultActionGroup)group).add(action, this); } } else if (ADD_TO_GROUP_ELEMENT_NAME.equals(name)) { processAddToGroupNode(group, child); } else if (REFERENCE_ELEMENT_NAME.equals(name)) { AnAction action = processReferenceElement(child); if (action != null) { ((DefaultActionGroup)group).add(action, this); } } else { LOG.error("unexpected name of element \"" + name + "\n"); return null; } } return group; } catch (ClassNotFoundException e) { LOG.error("class with name \"" + className + "\" not found"); return null; } catch (Exception e) { LOG.error("cannot create class \"" + className + "\"", e); return null; } } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/4972de74093751aa507c641e7a852c8feb15d5e3/ActionManagerImpl.java/clean/action-system/impl/com/intellij/openapi/actionSystem/impl/ActionManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
979,
1803,
2567,
1114,
1046,
12,
1046,
2956,
16,
6385,
7805,
6714,
16,
3773,
548,
4094,
548,
15329,
6385,
3208,
2910,
33,
3208,
1318,
18,
588,
3208,
5621,
6385,
45,
323,
69,
3773,
3187,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
979,
1803,
2567,
1114,
1046,
12,
1046,
2956,
16,
6385,
7805,
6714,
16,
3773,
548,
4094,
548,
15329,
6385,
3208,
2910,
33,
3208,
1318,
18,
588,
3208,
5621,
6385,
45,
323,
69,
3773,
3187,
... | ||
setToolTipText(Messages.getString("addGlobalTaskAction.tooltip")); | setToolTipText(MarkerMessages.addGlobalTaskAction_tooltip); | public ActionAddGlobalTask(IWorkbenchPart part) { setText(Messages.getString("addGlobalTaskAction.title")); //$NON-NLS-1$ setImageDescriptor(IDEWorkbenchPlugin.getIDEImageDescriptor(ENABLED_IMAGE_PATH)); setToolTipText(Messages.getString("addGlobalTaskAction.tooltip")); //$NON-NLS-1$ this.part = part; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/9fd38ff5015f18d343d054773283a2bca6122227/ActionAddGlobalTask.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionAddGlobalTask.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
986,
5160,
2174,
12,
45,
2421,
22144,
1988,
1087,
13,
288,
3639,
7883,
12,
5058,
18,
588,
780,
2932,
1289,
5160,
2174,
1803,
18,
2649,
7923,
1769,
4329,
3993,
17,
5106,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
986,
5160,
2174,
12,
45,
2421,
22144,
1988,
1087,
13,
288,
3639,
7883,
12,
5058,
18,
588,
780,
2932,
1289,
5160,
2174,
1803,
18,
2649,
7923,
1769,
4329,
3993,
17,
5106,
17,
... |
throws IncorrectOperationException { final PsiExpressionStatement statement = (PsiExpressionStatement)element; final PsiAssignmentExpression assigmentExpression = (PsiAssignmentExpression)statement.getExpression(); final PsiConditionalExpression rhs = (PsiConditionalExpression)assigmentExpression.getRExpression(); final PsiExpression lhs = assigmentExpression.getLExpression(); final String lhsText = lhs.getText(); final PsiJavaToken sign = assigmentExpression.getOperationSign(); final String operator = sign.getText(); assert rhs != null; final PsiExpression condition = rhs.getCondition(); final PsiExpression thenExpression = rhs.getThenExpression(); final PsiExpression elseExpression = rhs.getElseExpression(); assert thenExpression != null; assert elseExpression != null; @NonNls final String ifStatementString = "if(" + condition.getText() + ')' + '{' + lhsText + operator + thenExpression.getText() + ';' + '}' + "else" + '{' + lhsText + operator + elseExpression.getText() + ';' + '}'; replaceStatement(ifStatementString, statement); } | throws IncorrectOperationException { final PsiExpressionStatement statement = (PsiExpressionStatement)element; final PsiAssignmentExpression assigmentExpression = (PsiAssignmentExpression)statement.getExpression(); final PsiConditionalExpression rhs = (PsiConditionalExpression)assigmentExpression.getRExpression(); final PsiExpression lhs = assigmentExpression.getLExpression(); final String lhsText = lhs.getText(); final PsiJavaToken sign = assigmentExpression.getOperationSign(); final String operator = sign.getText(); assert rhs != null; final PsiExpression condition = rhs.getCondition(); final PsiExpression thenExpression = rhs.getThenExpression(); final PsiExpression elseExpression = rhs.getElseExpression(); assert thenExpression != null; assert elseExpression != null; @NonNls final String ifStatementString = "if(" + condition.getText() + ')' + lhsText + operator + thenExpression.getText() + "; else " + lhsText + operator + elseExpression.getText() + ';'; replaceStatement(ifStatementString, statement); } | private static void replaceConditionalAssignment(PsiElement element) throws IncorrectOperationException { final PsiExpressionStatement statement = (PsiExpressionStatement)element; final PsiAssignmentExpression assigmentExpression = (PsiAssignmentExpression)statement.getExpression(); final PsiConditionalExpression rhs = (PsiConditionalExpression)assigmentExpression.getRExpression(); final PsiExpression lhs = assigmentExpression.getLExpression(); final String lhsText = lhs.getText(); final PsiJavaToken sign = assigmentExpression.getOperationSign(); final String operator = sign.getText(); assert rhs != null; final PsiExpression condition = rhs.getCondition(); final PsiExpression thenExpression = rhs.getThenExpression(); final PsiExpression elseExpression = rhs.getElseExpression(); assert thenExpression != null; assert elseExpression != null; @NonNls final String ifStatementString = "if(" + condition.getText() + ')' + '{' + lhsText + operator + thenExpression.getText() + ';' + '}' + "else" + '{' + lhsText + operator + elseExpression.getText() + ';' + '}'; replaceStatement(ifStatementString, statement); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/4a657090da89db22fd1794270f60907c66fe047e/ReplaceConditionalWithIfIntention.java/clean/plugins/IntentionPowerPak/src/com/siyeh/ipp/conditional/ReplaceConditionalWithIfIntention.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
1453,
14132,
7729,
12,
52,
7722,
1046,
930,
13,
565,
1216,
657,
6746,
10602,
288,
565,
727,
453,
7722,
2300,
3406,
3021,
273,
1377,
261,
52,
7722,
2300,
3406,
13,
2956,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1453,
14132,
7729,
12,
52,
7722,
1046,
930,
13,
565,
1216,
657,
6746,
10602,
288,
565,
727,
453,
7722,
2300,
3406,
3021,
273,
1377,
261,
52,
7722,
2300,
3406,
13,
2956,
... |
property = (String) eval.getFirstChild().getResult(); | property = eval.getNode().jjtGetChild(eval.getNode().jjtGetNumChildren() - 1).toString(); if (property.startsWith("\"") && property.endsWith("\"")) { property = property.substring(1, property.length() - 1); } | public Object convertValue(Map context, Object target, Member member, String property, Object value, Class toClass) { if (value == null) { return null; } // // Process the conversion using the default mappings, if one exists // TypeConverter tc = null; // allow this method to be called without any context // i.e. it can be called with as little as "Object value" and "Class toClass" if (target != null) { Class clazz = null; clazz = target.getClass(); // this is to handle weird issues with setValue with a different type if ((target instanceof CompoundRoot) && (context != null)) { OgnlContext ognlContext = (OgnlContext) context; Evaluation eval = ognlContext.getCurrentEvaluation(); if (eval == null) { eval = ognlContext.getLastEvaluation(); // since the upgrade to ognl-2.6.3.jar, eval is null here // and this null check was being caoucht by an outer try/catch which ignored it ! if (eval != null) { clazz = eval.getResult().getClass(); property = (String) eval.getLastChild().getResult(); } } else { clazz = eval.getLastChild().getSource().getClass(); property = (String) eval.getFirstChild().getResult(); } } if (!noMapping.contains(clazz)) { try { Map mapping = (Map) mappings.get(clazz); if (mapping == null) { mapping = new HashMap(); mappings.put(clazz, mapping); String className = clazz.getName(); String resource = className.replace('.', '/') + "-conversion.properties"; InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream(resource); if (is != null) { Properties props = new Properties(); props.load(is); mapping.putAll(props); for (Iterator iterator = mapping.entrySet().iterator(); iterator.hasNext();) { Map.Entry entry = (Map.Entry) iterator.next(); entry.setValue(createTypeConverter((String) entry.getValue())); } } else { noMapping.add(clazz); } } tc = (TypeConverter) mapping.get(property); } catch (Throwable t) { noMapping.add(clazz); } } } if (tc == null) { if (toClass.equals(String.class) && !(value.getClass().equals(String.class) || value.getClass().equals(String[].class))) { // when converting to a string, use the source target's class's converter if (defaultMappings.containsKey(value.getClass().getName())) { tc = (TypeConverter) defaultMappings.get(value.getClass().getName()); } } else { // when converting from a string, use the toClass's converter if (defaultMappings.containsKey(toClass.getName())) { // converting from String tc = (TypeConverter) defaultMappings.get(toClass.getName()); } } } if (tc != null) { try { Object returnVal = tc.convertValue(context, target, member, property, value, toClass); if (returnVal == null) { handleConversionException(property, value, target); } return returnVal; } catch (Exception e) { handleConversionException(property, value, target); return null; } } if (defaultTypeConverter != null) { try { Object returnVal = defaultTypeConverter.convertValue(context, target, member, property, value, toClass); if (returnVal == null) { handleConversionException(property, value, target); } return returnVal; } catch (Exception e) { handleConversionException(property, value, target); return null; } } else { try { Object returnVal = super.convertValue(context, target, member, property, value, toClass); if (returnVal == null) { handleConversionException(property, value, target); } return returnVal; } catch (Exception e) { handleConversionException(property, value, target); return null; } } } | 16468 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/16468/df2bcf843ef8f0bc0fc17b984c1e6423122b893e/XWorkConverter.java/buggy/src/java/com/opensymphony/xwork/util/XWorkConverter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1765,
620,
12,
863,
819,
16,
1033,
1018,
16,
8596,
3140,
16,
514,
1272,
16,
1033,
460,
16,
1659,
358,
797,
13,
288,
3639,
309,
261,
1132,
422,
446,
13,
288,
5411,
327,
446... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1765,
620,
12,
863,
819,
16,
1033,
1018,
16,
8596,
3140,
16,
514,
1272,
16,
1033,
460,
16,
1659,
358,
797,
13,
288,
3639,
309,
261,
1132,
422,
446,
13,
288,
5411,
327,
446... |
if (debug) System.out.println("string: "+inputParams.substring(start, newstart)); | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { if (debug) System.out.println("--- YAWLXForms Servlet ---"); sessionHandle = request.getParameter("sessionHandle"); if (debug) System.out.println("sessionHandle: "+sessionHandle); userID = request.getParameter("userID"); if (debug) System.out.println("userID: "+userID); String root = request.getParameter("root"); if (debug) System.out.println("root: "+root); specID = request.getParameter("specID"); if (debug) System.out.println("specID: "+specID); workItemID = request.getParameter("workItemID"); if (debug) System.out.println("workItemID: "+workItemID); String task = request.getParameter("task"); if (debug) System.out.println("XF form name: "+task); String wir = request.getParameter("workitem"); if (debug) System.out.println("WIR XML: "+wir); if (request.getParameter("schema") != null){ if (debug) System.out.println("schema = "+request.getParameter("schema")); processUpload(request.getParameter("schema"), "schema", task); } if (request.getParameter("instance") != null){ if (debug) System.out.println("instance = "+request.getParameter("instance")); processUpload(request.getParameter("instance"), "instance", task); } // inputParams will appear separated by commas in the format below // eg: nameofartist,nameofrecord,nameofsong, String inputParams = request.getParameter("inputparams"); int start = 0; if (inputParams != null){ if (inputParams.compareTo("") != 0){ int end = inputParams.length(); if (debug) System.out.println("input params: "+inputParams); // finish parsing when start = end while (start < end){ int newstart = inputParams.indexOf(',', start); if (debug) System.out.println("start: "+start+", newstart: "+newstart); s.add(inputParams.substring(start, newstart)); if (debug) System.out.println("string: "+inputParams.substring(start, newstart)); start = newstart+1; } } } // begin Schema2XForms process buildForm(task+".xsd", task+".xml", task, root); } | 51637 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51637/d57463b5298f76f58dfae0b6f344213d3574b499/YAWLServlet.java/buggy/yawl/build/yawlXForms/src/au/edu/qut/yawl/xformsupload/YAWLServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
741,
3349,
12,
2940,
18572,
590,
16,
12446,
766,
13,
202,
15069,
16517,
16,
1860,
288,
9506,
202,
430,
261,
4148,
13,
2332,
18,
659,
18,
8222,
2932,
6062,
1624,
12999,
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,
1117,
918,
741,
3349,
12,
2940,
18572,
590,
16,
12446,
766,
13,
202,
15069,
16517,
16,
1860,
288,
9506,
202,
430,
261,
4148,
13,
2332,
18,
659,
18,
8222,
2932,
6062,
1624,
12999,
4... | |
public int getMaxlength() { | public String getMaxlength() { | public int getMaxlength() { return (this.maxlength); } | 2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/1ddd30eadabbdd1696b53c1713d20f4d68a2d2e2/BaseInputTag.java/buggy/src/share/org/apache/struts/taglib/BaseInputTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
7288,
2469,
1435,
288,
202,
2463,
261,
2211,
18,
27875,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
7288,
2469,
1435,
288,
202,
2463,
261,
2211,
18,
27875,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
os = new OutputStreamWriter(new FileOutputStream(myTmpFile), "UTF-8"); | os = new OutputStreamWriter(SVNFileUtil.openFileForWriting(myTmpFile), "UTF-8"); | public void save() throws SVNException { Writer os = null; try { os = new OutputStreamWriter(new FileOutputStream(myTmpFile), "UTF-8"); for (Iterator commands = myCache.iterator(); commands.hasNext();) { Map command = (Map) commands.next(); String name = (String) command.remove(""); os.write("<"); os.write(name); for (Iterator attrs = command.keySet().iterator(); attrs.hasNext();) { String attr = (String) attrs.next(); String value = (String) command.get(attr); if (value == null) { continue; } value = SVNTranslator.xmlEncode(value); os.write("\n "); os.write(attr); os.write("=\""); os.write(value); os.write("\""); } os.write("/>\n"); } } catch (IOException e) { SVNErrorManager.error(0, e); } finally { if (os != null) { try { os.close(); } catch (IOException e) { } } myCache = null; } try { SVNFileUtil.rename(myTmpFile, myFile); SVNFileUtil.setReadonly(myFile, true); } catch (IOException e) { SVNErrorManager.error(0, e); } } | 5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/6c2a9b21ad94c8ea1ae6d43c84b3c1225fe4e460/SVNLog.java/buggy/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNLog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1923,
1435,
1216,
29537,
50,
503,
288,
3639,
5497,
1140,
273,
446,
31,
7734,
775,
288,
5411,
1140,
273,
394,
24248,
12,
23927,
50,
812,
1304,
18,
3190,
812,
1290,
18835,
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,
918,
1923,
1435,
1216,
29537,
50,
503,
288,
3639,
5497,
1140,
273,
446,
31,
7734,
775,
288,
5411,
1140,
273,
394,
24248,
12,
23927,
50,
812,
1304,
18,
3190,
812,
1290,
18835,
12,
... |
public void removed (MElementEvent mee) { _logger.debug("removed(" + mee + ")"); notifyModelChanged(mee); | public void removed(MElementEvent mee) { LOG.debug("removed(" + mee + ")"); notifyModelChanged(mee); | public void removed (MElementEvent mee) { _logger.debug("removed(" + mee + ")"); // TODO: Do we need to model change notify here? // yes since we need to update the GUI notifyModelChanged(mee); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/9d9fba9678db064948a25d85695d46f114e57b6e/UmlModelListener.java/buggy/src_new/org/argouml/model/uml/UmlModelListener.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3723,
261,
12310,
1133,
312,
1340,
13,
288,
3639,
389,
4901,
18,
4148,
2932,
14923,
2932,
397,
312,
1340,
397,
7310,
1769,
565,
368,
2660,
30,
225,
2256,
732,
1608,
358,
938,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3723,
261,
12310,
1133,
312,
1340,
13,
288,
3639,
389,
4901,
18,
4148,
2932,
14923,
2932,
397,
312,
1340,
397,
7310,
1769,
565,
368,
2660,
30,
225,
2256,
732,
1608,
358,
938,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.