rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
public CommandlineParser(Main main, String[] arguments) { | public CommandlineParser(String[] arguments) { | public CommandlineParser(Main main, String[] arguments) { this.arguments = arguments; this.main = main; processArguments(); } | 47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/d38821551a58969cd2593b463d93df5f32bf3c14/CommandlineParser.java/clean/src/org/jruby/util/CommandlineParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3498,
1369,
2678,
12,
780,
8526,
1775,
13,
288,
3639,
333,
18,
7099,
273,
1775,
31,
3639,
333,
18,
5254,
273,
2774,
31,
3639,
1207,
4628,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3498,
1369,
2678,
12,
780,
8526,
1775,
13,
288,
3639,
333,
18,
7099,
273,
1775,
31,
3639,
333,
18,
5254,
273,
2774,
31,
3639,
1207,
4628,
5621,
565,
289,
2,
-100,
-100,
-100,
-100... |
Thread connectBack = new ManagedThread( new Runnable() { | TCP_CONNECT_BACKER.add(new Runnable() { | protected void handleTCPConnectBackRedirect(TCPConnectBackRedirect tcp, Connection source) { // only allow other UPs to send you this message.... if (!source.isSupernodeSupernodeConnection()) return; final int portToContact = tcp.getConnectBackPort(); final String addrToContact =tcp.getConnectBackAddress().getHostAddress(); // only connect back if you aren't connected to the host - that is the // whole point of redirect after all.... Endpoint endPoint = new Endpoint(addrToContact, portToContact); if (_manager.isConnectedTo(endPoint.getAddress())) return; // keep track of who you tried connecting back too, don't do it too // much.... Object placeHolder = _tcpConnectBacks.get(addrToContact); if (placeHolder == null) { try { _tcpConnectBacks.put(addrToContact, new Object()); } catch (NoMoreStorageException nomo) { return; // we've done too many connect backs, stop.... } } else return; // we've connected back to this guy recently.... Thread connectBack = new ManagedThread( new Runnable() { public void run() { Socket sock = null; OutputStream os = null; try { sock = Sockets.connect(addrToContact, portToContact, 12); os = sock.getOutputStream(); os.write("\n\n".getBytes()); } catch (IOException ignored) { } catch (SecurityException ignored) { } catch (Throwable t) { ErrorService.error(t); } finally { if(sock != null) try { sock.close(); } catch(IOException ignored) {} if(os != null) try { os.close(); } catch(IOException ignored) {} } } }, "TCPConnectBackThread"); connectBack.start(); } | 5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/54f34db59f64c95e28e4c1bf671a90d07c526373/MessageRouter.java/clean/components/gnutella-core/src/main/java/com/limegroup/gnutella/MessageRouter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1640,
13891,
5215,
2711,
5961,
12,
13891,
5215,
2711,
5961,
9658,
16,
4766,
7734,
4050,
1084,
13,
288,
3639,
368,
1338,
1699,
1308,
7376,
87,
358,
1366,
1846,
333,
883,
6265,
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,
4750,
918,
1640,
13891,
5215,
2711,
5961,
12,
13891,
5215,
2711,
5961,
9658,
16,
4766,
7734,
4050,
1084,
13,
288,
3639,
368,
1338,
1699,
1308,
7376,
87,
358,
1366,
1846,
333,
883,
6265,
3... |
/* | public void postCompile(File classesDir, Device device) throws BuildException { String[] fileNames = FileUtil.filterDirectory( classesDir, ".class", true ); ArrayList filesList = new ArrayList( fileNames.length ); for (int i = 0; i < fileNames.length; i++) { String fileName = fileNames[i]; if (!(fileName.endsWith("StyleSheet.class") || fileName.endsWith("MasterCanvas.class") //|| fileName.endsWith("ScreenChangeAnimation.class") //|| (fileName.indexOf("screenanimations") != -1) //|| fileName.endsWith("Locale.class") //|| fileName.endsWith("Debug.class") )) { filesList.add( new File( classesDir, fileName ) ); //} else { // System.out.println("ScreenChanger: skipping class " + fileName); } } File[] files = (File[]) filesList.toArray( new File[ filesList.size() ] ); try { System.out.println("MasterCanvas: mapping of Display.setCurrent() for " + files.length + " class files."); boolean useDefaultPackage = this.environment.hasSymbol("polish.useDefaultPackage"); String masterCanvasClassName; if ( useDefaultPackage ) { masterCanvasClassName = "MasterCanvas"; } else { masterCanvasClassName = "de/enough/polish/ui/MasterCanvas"; } MethodMapper mapper = new MethodMapper(); mapper.setClassLoader(device.getClassLoader()); boolean enableScreenEffects = this.environment.hasSymbol("polish.css.screen-change-animation"); if (enableScreenEffects) { String styleSheetClass; if (this.environment.hasSymbol("polish.useDefaultPackage")) { styleSheetClass = "StyleSheet"; } else { styleSheetClass = "de/enough/polish/ui/StyleSheet"; } mapper.addMapping( new MethodInvocationMapping( true, "javax/microedition/lcdui/Display", "setCurrent", "(Ljavax/microedition/lcdui/Displayable;)V", false, styleSheetClass, "setCurrent", "(Ljavax/microedition/lcdui/Display;Ljavax/microedition/lcdui/Displayable;)V") ); } else { mapper.addMapping( new MethodInvocationMapping( true, "javax/microedition/lcdui/Display", "setCurrent", "(Ljavax/microedition/lcdui/Displayable;)V", false, masterCanvasClassName, "setCurrent", "(Ljavax/microedition/lcdui/Display;Ljavax/microedition/lcdui/Displayable;)V") ); } mapper.addMapping( new MethodInvocationMapping( true, "javax/microedition/lcdui/Display", "getCurrent", "()Ljavax/microedition/lcdui/Displayable;", false, masterCanvasClassName, "getCurrent", "(Ljavax/microedition/lcdui/Display;)Ljavax/microedition/lcdui/Displayable;") ); String accessibleCanvasClassName; if ( useDefaultPackage ) { accessibleCanvasClassName = "AccessibleCanvas"; } else { accessibleCanvasClassName = "de/enough/polish/ui/AccessibleCanvas"; } // Optional mapping of javax.microedition.lcdui.Canvas if ("true".equals(this.environment.getVariable("polish.MasterCanvas.mapCanvasCalls"))) { // mapping of repaint(): mapper.addMapping( new MethodInvocationMapping( true, "javax.microedition.lcdui.Canvas", "repaint", "()V", false, masterCanvasClassName, "repaintCanvas", "(Ljavax.microedition.lcdui.Canvas;)V")); // mapping of isShown(): mapper.addMapping( new MethodInvocationMapping( true, "javax.microedition.lcdui.Canvas", "isShown", "()V", false, masterCanvasClassName, "isCanvasShown", "(Ljavax.microedition.lcdui.Canvas;)V")); } else { // map only AccessibleCanvas calls: // mapping of repaint(): mapper.addMapping( new MethodInvocationMapping( true, accessibleCanvasClassName, "repaint", "()V", false, masterCanvasClassName, "repaintAccessibleCanvas", "(L" + accessibleCanvasClassName + ";)V")); // mapping of isShown(): mapper.addMapping( new MethodInvocationMapping( true, accessibleCanvasClassName, "isShown", "()V", false, masterCanvasClassName, "isAccessibleCanvasShown", "(L" + accessibleCanvasClassName + ";)V")); } mapper.doMethodMapping(files); } catch (IOException e) { e.printStackTrace(); throw new BuildException("Unable to map Display.setCurrent( Displayable ) to StyleSheet.setCurrent( Display, Displayable ): " + e.toString(), e ); } } | 9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/77ba2946b2e0cfde50e9db940d1ce3dd5f3ed612/MasterCanvasPostCompiler.java/buggy/enough-polish-build/source/extensions/de/enough/polish/postcompile/mastercanvas/MasterCanvasPostCompiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1748,
918,
1748,
1603,
9937,
12,
812,
1748,
3318,
1621,
16,
1748,
6077,
1748,
2346,
13,
202,
15069,
1748,
18463,
1748,
225,
202,
95,
202,
202,
780,
8526,
1748,
27375,
1748,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1748,
918,
1748,
1603,
9937,
12,
812,
1748,
3318,
1621,
16,
1748,
6077,
1748,
2346,
13,
202,
15069,
1748,
18463,
1748,
225,
202,
95,
202,
202,
780,
8526,
1748,
27375,
1748,
273,... | |
source.buf.toString()); | sourceToString(0)); | public Object parse(TokenStream ts) throws IOException { this.ok = true; Source source = new Source(); int tt; // last token from getToken(); int baseLineno = ts.getLineno(); // line number where source starts /* so we have something to add nodes to until * we've collected all the source */ Object tempBlock = nf.createLeaf(TokenStream.BLOCK); while (true) { ts.flags |= ts.TSF_REGEXP; tt = ts.getToken(); ts.flags &= ~ts.TSF_REGEXP; if (tt <= ts.EOF) { break; } if (tt == ts.FUNCTION) { try { nf.addChildToBack(tempBlock, function(ts, source, false)); /* function doesn't add its own final EOL, * because it gets SEMI + EOL from Statement when it's * a nested function; so we need to explicitly add an * EOL here. */ source.append((char)ts.EOL); wellTerminated(ts, ts.FUNCTION); } catch (JavaScriptException e) { this.ok = false; break; } } else { ts.ungetToken(tt); nf.addChildToBack(tempBlock, statement(ts, source)); } } if (!this.ok) { // XXX ts.clearPushback() call here? return null; } Object pn = nf.createScript(tempBlock, ts.getSourceName(), baseLineno, ts.getLineno(), source.buf.toString()); return pn; } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/3d2e81a014b22cf4d1eb8921bd4229c2ca7ff017/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1109,
12,
1345,
1228,
3742,
13,
3639,
1216,
1860,
565,
288,
3639,
333,
18,
601,
273,
638,
31,
3639,
4998,
1084,
273,
394,
4998,
5621,
3639,
509,
3574,
31,
1850,
368,
1142,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1109,
12,
1345,
1228,
3742,
13,
3639,
1216,
1860,
565,
288,
3639,
333,
18,
601,
273,
638,
31,
3639,
4998,
1084,
273,
394,
4998,
5621,
3639,
509,
3574,
31,
1850,
368,
1142,
1... |
log.debug( "++++ initializing pool with following settings:" ); log.debug( "++++ initial size: " + initConn ); log.debug( "++++ min spare : " + minConn ); log.debug( "++++ max spare : " + maxConn ); | buckets = new ArrayList<String>(); availPool = new Hashtable<String,Map<SockIO,Long>>( servers.length * initConn ); busyPool = new Hashtable<String,Map<SockIO,Long>>( servers.length * initConn ); hostDeadDur = new Hashtable<String,Long>(); hostDead = new Hashtable<String,Date>(); createShift = new Hashtable<String,Integer>(); maxCreate = (poolMultiplier > minConn) ? minConn : minConn / poolMultiplier; | public synchronized void initialize() { // check to see if already initialized if ( initialized && ( buckets != null ) && ( availPool != null ) && ( busyPool != null ) ) { log.error( "++++ trying to initialize an already initialized pool" ); return; } // initialize empty maps buckets = new ArrayList<String>(); availPool = new Hashtable<String,Map<SockIO,Long>>( servers.length * initConn ); busyPool = new Hashtable<String,Map<SockIO,Long>>( servers.length * initConn ); hostDeadDur = new Hashtable<String,Long>(); hostDead = new Hashtable<String,Date>(); createShift = new Hashtable<String,Integer>(); maxCreate = (poolMultiplier > minConn) ? minConn : minConn / poolMultiplier; // only create up to maxCreate connections at once log.debug( "++++ initializing pool with following settings:" ); log.debug( "++++ initial size: " + initConn ); log.debug( "++++ min spare : " + minConn ); log.debug( "++++ max spare : " + maxConn ); // if servers is not set, or it empty, then // throw a runtime exception if ( servers == null || servers.length <= 0 ) { log.error( "++++ trying to initialize with no servers" ); throw new IllegalStateException( "++++ trying to initialize with no servers" ); } for ( int i = 0; i < servers.length; i++ ) { // add to bucket // with weights if we have them if ( weights != null && weights.length > i ) { for ( int k = 0; k < weights[i].intValue(); k++ ) { buckets.add( servers[i] ); log.debug( "++++ added " + servers[i] + " to server bucket" ); } } else { buckets.add( servers[i] ); log.debug( "++++ added " + servers[i] + " to server bucket" ); } // create initial connections log.debug( "+++ creating initial connections (" + initConn + ") for host: " + servers[i] ); for ( int j = 0; j < initConn; j++ ) { SockIO socket = createSocket( servers[i] ); if ( socket == null ) { log.error( "++++ failed to create connection to: " + servers[i] + " -- only " + j + " created." ); break; } addSocketToPool( availPool, servers[i], socket ); log.debug( "++++ created and added socket: " + socket.toString() + " for host " + servers[i] ); } } // mark pool as initialized this.initialized = true; // start maint thread if (this.maintSleep > 0) this.startMaintThread(); } | 57489 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57489/c0e6fc2e9f7743873a8a542aa3159f0b73dbc87f/SockIOPool.java/buggy/src/com/danga/MemCached/SockIOPool.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
4046,
1435,
288,
202,
202,
759,
866,
358,
2621,
309,
1818,
6454,
202,
202,
430,
261,
6454,
9506,
202,
10,
10,
261,
9169,
480,
446,
262,
9506,
202,
10,
10,
261,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
4046,
1435,
288,
202,
202,
759,
866,
358,
2621,
309,
1818,
6454,
202,
202,
430,
261,
6454,
9506,
202,
10,
10,
261,
9169,
480,
446,
262,
9506,
202,
10,
10,
261,
15... |
throws NotImplementedException | public void keyPressed(KeyEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
498,
24624,
12,
653,
1133,
425,
13,
4202,
288,
1377,
368,
2660,
30,
18734,
1410,
506,
2731,
2674,
16,
309,
6967,
35,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
498,
24624,
12,
653,
1133,
425,
13,
4202,
288,
1377,
368,
2660,
30,
18734,
1410,
506,
2731,
2674,
16,
309,
6967,
35,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
Integer n = (Integer) newTemp.getProp(Node.USES_PROP); if (n == null) { n = new Integer(1); } else { if (n.intValue() < Integer.MAX_VALUE) n = new Integer(n.intValue() + 1); | int n = newTemp.getIntProp(Node.USES_PROP, 0); if (n != Integer.MAX_VALUE) { newTemp.putIntProp(Node.USES_PROP, n + 1); | public Node createUseTemp(Node newTemp) { int type = newTemp.getType(); if (type == TokenStream.NEWTEMP) { Node result = new Node(TokenStream.USETEMP); result.putProp(Node.TEMP_PROP, newTemp); Integer n = (Integer) newTemp.getProp(Node.USES_PROP); if (n == null) { n = new Integer(1); } else { if (n.intValue() < Integer.MAX_VALUE) n = new Integer(n.intValue() + 1); } newTemp.putProp(Node.USES_PROP, n); return result; } return newTemp.cloneNode(); } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/f6c346cc7699c007b0b9b27d9c3cdb5446052c64/IRFactory.java/clean/js/rhino/src/org/mozilla/javascript/IRFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
752,
3727,
7185,
12,
907,
394,
7185,
13,
288,
3639,
509,
618,
273,
394,
7185,
18,
588,
559,
5621,
3639,
309,
261,
723,
422,
3155,
1228,
18,
12917,
10258,
13,
288,
5411,
2029... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2029,
752,
3727,
7185,
12,
907,
394,
7185,
13,
288,
3639,
509,
618,
273,
394,
7185,
18,
588,
559,
5621,
3639,
309,
261,
723,
422,
3155,
1228,
18,
12917,
10258,
13,
288,
5411,
2029... |
form.setChoosenSchedulerName(choosenScheduler.getSchedulerName()); | form.setChoosenSchedulerName(chosenScheduler.getSchedulerName()); | private void populateSchedulerForm(Scheduler choosenScheduler, ChooseSchedulerForm form) throws Exception{ Collection scheduleCollection = new StdSchedulerFactory().getAllSchedulers(); Iterator itr = scheduleCollection.iterator(); form.setSchedulers(new ArrayList()); try { form.setChoosenSchedulerName(choosenScheduler.getSchedulerName()); while (itr.hasNext()) { Scheduler scheduler = (Scheduler) itr.next(); form.getSchedulers().add(scheduler); } } catch (SchedulerException e) { throw new Exception(e); } SchedulerDTO schedForm = new SchedulerDTO(); schedForm.setSchedulerName(choosenScheduler.getSchedulerName()); schedForm.setNumJobsExecuted(String.valueOf(choosenScheduler.getMetaData().numJobsExecuted())); if (choosenScheduler.getMetaData().jobStoreSupportsPersistence()) { schedForm.setPersistenceType("value.scheduler.persiststenceType.database"); } else { schedForm.setPersistenceType("value.scheduler.persiststenceType.memory"); // mp possible bugfix } schedForm.setRunningSince(String.valueOf(choosenScheduler.getMetaData().runningSince())); if (choosenScheduler.isShutdown()) { schedForm.setState("value.scheduler.state.stopped"); } else if (choosenScheduler.isPaused()) { schedForm.setState("value.scheduler.state.paused"); } else { schedForm.setState("value.scheduler.state.started"); } schedForm.setThreadPoolSize(String.valueOf(choosenScheduler.getMetaData().getThreadPoolSize())); schedForm.setVersion(choosenScheduler.getMetaData().getVersion()); schedForm.setSummary(choosenScheduler.getMetaData().getSummary()); List jobDetails = choosenScheduler.getCurrentlyExecutingJobs(); for (Iterator iter = jobDetails.iterator(); iter.hasNext();) { JobExecutionContext job = (JobExecutionContext) iter.next(); JobDetail jobDetail = job.getJobDetail(); JobDetailForm jobForm = new JobDetailForm(); jobForm.setGroupName(jobDetail.getGroup()); jobForm.setName(jobDetail.getName()); jobForm.setDescription(jobDetail.getDescription()); jobForm.setJobClass(jobDetail.getJobClass().getName()); form.getExecutingJobs().add(jobForm); } String calendars[] = choosenScheduler.getCalendarNames(); List jobListeners = choosenScheduler.getGlobalJobListeners(); for (Iterator iter = jobListeners.iterator(); iter.hasNext();) { JobListener jobListener = (JobListener) iter.next(); ListenerForm listenerForm = new ListenerForm(); listenerForm.setListenerName(jobListener.getName()); listenerForm.setListenerClass(jobListener.getClass().getName()); schedForm.getGlobalJobListeners().add(listenerForm); } // The section commented out below is not currently used, but may be used to show triggers that have been // added to jobs /* List triggerListeners = choosenScheduler.getGlobalTriggerListeners(); for (Iterator iter = triggerListeners.iterator(); iter.hasNext();) { TriggerListener triggerListener = (TriggerListener) iter.next(); ListenerForm listenerForm = new ListenerForm(); listenerForm.setListenerName(triggerListener.getName()); listenerForm.setListenerClass(triggerListener.getClass().getName()); schedForm.getGlobalJobListeners().add(listenerForm); } Set jobListenerNames = choosenScheduler.getJobListenerNames(); for (Iterator iter = jobListenerNames.iterator(); iter.hasNext();) { JobListener jobListener = choosenScheduler.getJobListener((String) iter.next()); ListenerForm listenerForm = new ListenerForm(); listenerForm.setListenerName(jobListener.getName()); listenerForm.setListenerClass(jobListener.getClass().getName()); schedForm.getRegisteredJobListeners().add(listenerForm); } Set triggerListenerNames = choosenScheduler.getTriggerListenerNames(); for (Iterator iter = triggerListenerNames.iterator(); iter.hasNext();) { TriggerListener triggerListener = choosenScheduler.getTriggerListener((String) iter.next()); ListenerForm listenerForm = new ListenerForm(); listenerForm.setListenerName(triggerListener.getName()); listenerForm.setListenerClass(triggerListener.getClass().getName()); schedForm.getRegisteredTriggerListeners().add(listenerForm); } List schedulerListeners = choosenScheduler.getSchedulerListeners(); for (Iterator iter = schedulerListeners.iterator(); iter.hasNext();) { SchedulerListener schedulerListener = (SchedulerListener) iter.next(); ListenerForm listenerForm = new ListenerForm(); listenerForm.setListenerClass(schedulerListener.getClass().getName()); schedForm.getSchedulerListeners().add(listenerForm); } */ //TODO fix this form.setScheduler(schedForm);} | 15562 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15562/cf8b3f774fbf60bc13321102f88001037b9d4252/ScheduleControler.java/buggy/webapp/src/org/quartz/ui/web/action/schedule/ScheduleControler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
6490,
11870,
1204,
12,
11870,
5011,
8918,
11870,
16,
25593,
11870,
1204,
646,
13,
202,
15069,
1185,
95,
202,
202,
2532,
4788,
2532,
273,
225,
394,
6276,
11870,
1733,
7675,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
6490,
11870,
1204,
12,
11870,
5011,
8918,
11870,
16,
25593,
11870,
1204,
646,
13,
202,
15069,
1185,
95,
202,
202,
2532,
4788,
2532,
273,
225,
394,
6276,
11870,
1733,
7675,
... |
update(!MylarUiPlugin.getPrefs().getBoolean(ID)); | update(!MylarUiPlugin.getDefault().getPreferenceStore().getBoolean(ID)); | public void run() { update(!MylarUiPlugin.getPrefs().getBoolean(ID)); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/dbebd30c6a516eb6f2e26117358f9e8914a9fc8a/ShowQualifiedNamesAction.java/buggy/org.eclipse.mylyn.ide.ui/src/org/eclipse/mylyn/internal/ide/ui/actions/ShowQualifiedNamesAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
288,
202,
202,
2725,
12,
5,
12062,
7901,
13943,
3773,
18,
588,
1386,
2556,
7675,
588,
5507,
12,
734,
10019,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
288,
202,
202,
2725,
12,
5,
12062,
7901,
13943,
3773,
18,
588,
1386,
2556,
7675,
588,
5507,
12,
734,
10019,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
return RubyFixnum.newFixnum(getRuntime(), getSize()); | return getRuntime().newFixnum(getSize()); | public RubyFixnum size() { return RubyFixnum.newFixnum(getRuntime(), getSize()); } | 45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyMatchData.java/clean/src/org/jruby/RubyMatchData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
8585,
2107,
963,
1435,
288,
3639,
327,
18814,
7675,
2704,
8585,
2107,
12,
588,
1225,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
8585,
2107,
963,
1435,
288,
3639,
327,
18814,
7675,
2704,
8585,
2107,
12,
588,
1225,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
public void visitTypeCastExpression(@NotNull PsiTypeCastExpression expression) { super.visitTypeCastExpression(expression); final PsiExpression operand = expression.getOperand(); if (operand == null) { return; } final PsiType operandType = operand.getType(); if (operandType == null) { return; } final PsiType type = expression.getType(); if (type == null) { return; } final PsiType expectedType = ExpectedTypeUtils.findExpectedType(expression, true); if (expectedType == null) { return; } if (expectedType.equals(type)) { return; } final PsiClass resolved = PsiUtil.resolveClassInType(expectedType); if (resolved != null && !resolved.isPhysical()) { return; } if (expectedType.isAssignableFrom(operandType)) { return; //then it's redundant, and caught by the built-in exception } if(isTypeParameter(expectedType)) { return; } if(expectedType instanceof PsiArrayType) { final PsiArrayType arrayType = (PsiArrayType) expectedType; final PsiType componentType = arrayType.getDeepComponentType(); if(isTypeParameter(componentType)) { return; } } if (ClassUtils.isPrimitiveNumericType(type) || ClassUtils.isPrimitiveNumericType(expectedType)) { return; } final String typeText = type.getCanonicalText(); final String expectedTypeText = expectedType.getCanonicalText(); if (TypeConversionUtil.isPrimitiveWrapper(typeText) || TypeConversionUtil.isPrimitiveWrapper(expectedTypeText)) { return; } final PsiTypeElement castTypeElement = expression.getCastType(); registerError(castTypeElement, expectedType); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/c0407ff2e96433617e2f28044bd6915d154d1cef/OverlyStrongTypeCastInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/abstraction/OverlyStrongTypeCastInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
11658,
559,
9735,
2300,
26964,
5962,
52,
7722,
559,
9735,
2300,
8692,
15329,
9565,
18,
11658,
559,
9735,
2300,
12,
8692,
1769,
6385,
52,
7722,
2300,
4063,
464,
33,
8692,
18,
588,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
11658,
559,
9735,
2300,
26964,
5962,
52,
7722,
559,
9735,
2300,
8692,
15329,
9565,
18,
11658,
559,
9735,
2300,
12,
8692,
1769,
6385,
52,
7722,
2300,
4063,
464,
33,
8692,
18,
588,
1... | ||
protected void parseSamples() throws IOException, UnsupportedChromatogramFormatException { skipTo(header.samples_offset); // load values from file int count = (int)header.samples; int[][] trace = new int[4][count]; int[] maxVal = new int[] { Integer.MIN_VALUE, Integer.MIN_VALUE, Integer.MIN_VALUE, Integer.MIN_VALUE }; for (int n = 0 ; n < 4 ; n++) readSamplesInto(trace[n]); // stored values are delta-delta values; reprocess into actual values // algorithm cribbed from io_lib's delta_samples function in misc_scf.c int[] p_sample1 = new int[] { 0, 0, 0, 0 }; int[] p_sample2 = new int[] { 0, 0, 0, 0 }; for (int n = 0 ; n < 4 ; n++) { for (int i = 1 ; i < trace[n].length ; i++) { p_sample1[n] += trace[n][i]; trace[n][i] = p_sample1[n] + p_sample2[n]; p_sample2[n] = trace[n][i]; maxVal[n] = Math.max(maxVal[n], trace[n][i]); } } // set into output SCF chromat object try { out.setTrace(DNATools.a(), trace[0], maxVal[0]); out.setTrace(DNATools.c(), trace[1], maxVal[1]); out.setTrace(DNATools.g(), trace[2], maxVal[2]); out.setTrace(DNATools.t(), trace[3], maxVal[3]); } catch (IllegalSymbolException ise) { throw new BioError("Can't happen", ise); } } | 50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/eb6d8b74a887e2fafe71e2381fbc7ea25ca32c73/SCF.java/clean/src/org/biojava/bio/program/scf/SCF.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4750,
918,
1109,
13239,
1435,
1216,
1860,
16,
7221,
30761,
270,
5553,
9291,
288,
5411,
2488,
774,
12,
3374,
18,
7319,
67,
3348,
1769,
5411,
368,
1262,
924,
628,
585,
5411,
509,
1056,
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,
540,
4750,
918,
1109,
13239,
1435,
1216,
1860,
16,
7221,
30761,
270,
5553,
9291,
288,
5411,
2488,
774,
12,
3374,
18,
7319,
67,
3348,
1769,
5411,
368,
1262,
924,
628,
585,
5411,
509,
1056,
273,... | ||
addAction(menu, IContextMenuConstants.GROUP_ADDITIONS, "Inspect"); | protected void editorContextMenuAboutToShow(IMenuManager menu) { super.editorContextMenuAboutToShow(menu); addGroup(menu, ITextEditorActionConstants.GROUP_EDIT, IContextMenuConstants.GROUP_GENERATE); addGroup(menu, ITextEditorActionConstants.GROUP_FIND, IContextMenuConstants.GROUP_SEARCH); addAction(menu, IContextMenuConstants.GROUP_GENERATE, "ContentAssistProposal"); //$NON-NLS-1$ addGroup(menu, IContextMenuConstants.GROUP_SEARCH, IContextMenuConstants.GROUP_SHOW); addAction(menu, IContextMenuConstants.GROUP_SHOW, "OpenOnSelection"); //$NON-NLS-1$ addAction(menu, IContextMenuConstants.GROUP_SHOW, "OpenHierarchyOnSelection"); //$NON-NLS-1$ addAction(menu, IContextMenuConstants.GROUP_ADDITIONS, "Display"); //$NON-NLS-1$ addAction(menu, IContextMenuConstants.GROUP_ADDITIONS, "Run"); //$NON-NLS-1$ addAction(menu, IContextMenuConstants.GROUP_ADDITIONS, "Inspect"); //$NON-NLS-1$ } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/4acd8ad43ced3688a7043c083334f834cb131320/JavaSnippetEditor.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/snippeteditor/JavaSnippetEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4858,
27315,
24813,
774,
5706,
12,
3445,
2104,
1318,
3824,
13,
288,
202,
202,
9565,
18,
9177,
27315,
24813,
774,
5706,
12,
5414,
1769,
202,
202,
1289,
1114,
12,
5414,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4858,
27315,
24813,
774,
5706,
12,
3445,
2104,
1318,
3824,
13,
288,
202,
202,
9565,
18,
9177,
27315,
24813,
774,
5706,
12,
5414,
1769,
202,
202,
1289,
1114,
12,
5414,
16,
... | |
DateFormat.SHORT, DateFormat.MEDIUM, locale ); | DateFormat.MEDIUM, DateFormat.MEDIUM, locale ); | static final Date doVidateDateTime( String value, ULocale locale ) throws ValidationValueException { DateFormat formatter = DateFormat.getDateTimeInstance( DateFormat.SHORT, DateFormat.MEDIUM, locale ); try { return formatter.parse( value ); } catch ( ParseException e ) { throw new ValidationValueException( value, PropertyValueException.DESIGN_EXCEPTION_INVALID_VALUE, DesignChoiceConstants.PARAM_TYPE_DATETIME ); } } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/8c417ffcb7487ce35684948e66f0434fba54e556/ParameterValidationUtil.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/util/ParameterValidationUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
727,
2167,
741,
58,
350,
340,
5096,
12,
514,
460,
16,
29145,
2573,
262,
1082,
202,
15069,
5684,
9738,
202,
95,
202,
202,
11878,
4453,
273,
18371,
18,
588,
5096,
1442,
12,
950... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
727,
2167,
741,
58,
350,
340,
5096,
12,
514,
460,
16,
29145,
2573,
262,
1082,
202,
15069,
5684,
9738,
202,
95,
202,
202,
11878,
4453,
273,
18371,
18,
588,
5096,
1442,
12,
950... |
damagedAreas = devRects; | damagedAreas = devRLM; | public void repaint(List areas) throws InterruptedException { if (areas == null) return; // long t0 = System.currentTimeMillis(); // if (lastFrame != -1) { // System.out.println("InterFrame time: " + (t0-lastFrame)); // } // lastFrame = t0; CachableRed cr; WritableRaster syncRaster; WritableRaster copyRaster; updateWorkingBuffers(); if ((rootCR == null) || (workingBaseRaster == null)) return; cr = rootCR; syncRaster = workingBaseRaster; copyRaster = workingRaster; Rectangle srcR = rootCR.getBounds(); Rectangle dstR = workingRaster.getBounds(); if ((dstR.x < srcR.x) || (dstR.y < srcR.y) || (dstR.x+dstR.width > srcR.x+srcR.width) || (dstR.y+dstR.height > srcR.y+srcR.height)) cr = new PadRed(cr, dstR, PadMode.ZERO_PAD, null); List devRects = new ArrayList(areas.size()); Iterator iter = areas.iterator(); Rectangle dr = copyRaster.getBounds(); float dmgSz = 0f; while (iter.hasNext()) { Shape s = (Shape)iter.next(); Rectangle r; r = usr2dev.createTransformedShape(s).getBounds(); if (!dr.intersects(r)) continue; r = dr.intersection(r); devRects.add(r); dmgSz += r.width*(float)r.height; } boolean repaintAll = (dmgSz > offScreenWidth*offScreenHeight*0.9f); // Ensure only one thread works on baseRaster at a time... synchronized (syncRaster) { // System.out.println("Dynamic:"); if (repaintAll) { // System.out.println("Repainting All"); cr.copyData(copyRaster); } else { if ((isDoubleBuffered) && (currentRaster != null) && (damagedAreas != null)) { iter = damagedAreas.iterator(); Rectangle sr = currentRaster.getBounds(); while (iter.hasNext()) { Rectangle r = (Rectangle)iter.next(); Raster src = currentRaster.createWritableChild (r.x, r.y, r.width, r.height, r.x, r.y, null); GraphicsUtil.copyData(src, copyRaster); } } iter = devRects.iterator(); while (iter.hasNext()) { Rectangle r = (Rectangle)iter.next(); WritableRaster dst = copyRaster.createWritableChild (r.x, r.y, r.width, r.height, r.x, r.y, null); cr.copyData(dst); } } } if (Thread.currentThread().isInterrupted()) return; // System.out.println("Dmg: " + damagedAreas); // System.out.println("Areas: " + devRects); // Swap the buffers if the rendering completed cleanly. BufferedImage tmpBI = workingOffScreen; workingBaseRaster = currentBaseRaster; workingRaster = currentRaster; workingOffScreen = currentOffScreen; currentRaster = copyRaster; currentBaseRaster = syncRaster; currentOffScreen = tmpBI; damagedAreas = devRects; } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/f4c104da8e1a0f8c7e290babf791f9b939cc4771/DynamicRenderer.java/buggy/sources/org/apache/batik/gvt/renderer/DynamicRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
24962,
12,
682,
15586,
13,
1216,
7558,
288,
3639,
309,
261,
21766,
422,
446,
13,
5411,
327,
31,
3639,
368,
1525,
268,
20,
273,
2332,
18,
2972,
28512,
5621,
3639,
368,
309,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24962,
12,
682,
15586,
13,
1216,
7558,
288,
3639,
309,
261,
21766,
422,
446,
13,
5411,
327,
31,
3639,
368,
1525,
268,
20,
273,
2332,
18,
2972,
28512,
5621,
3639,
368,
309,
26... |
cv.visitMethodInsn(INVOKESTATIC, "org/codehaus/groovy/runtime/InvokerHelper", type.getName() + "Unbox", returnString); | cv.visitMethodInsn( INVOKESTATIC, "org/codehaus/groovy/runtime/InvokerHelper", type.getName() + "Unbox", returnString); | public void unbox(Class type) { if (type.isPrimitive() && type != void.class) { String returnString = "(Ljava/lang/Object;)" + getTypeDescription(type.getName()); cv.visitMethodInsn(INVOKESTATIC, "org/codehaus/groovy/runtime/InvokerHelper", type.getName() + "Unbox", returnString); } } | 6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/6c4a0cfa9c4ce7f6f11473036d934db37540f2f2/BytecodeHelper.java/buggy/src/main/org/codehaus/groovy/classgen/BytecodeHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26773,
12,
797,
618,
13,
288,
3639,
309,
261,
723,
18,
291,
9840,
1435,
597,
618,
480,
918,
18,
1106,
13,
288,
5411,
514,
327,
780,
273,
7751,
21159,
19,
4936,
19,
921,
31,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26773,
12,
797,
618,
13,
288,
3639,
309,
261,
723,
18,
291,
9840,
1435,
597,
618,
480,
918,
18,
1106,
13,
288,
5411,
514,
327,
780,
273,
7751,
21159,
19,
4936,
19,
921,
31,... |
" <Resource>googleconnector: "foo1</Resource>\n" + | " <Resource>googleconnector: ServletUtil.DOCID + "foo1</Resource>\n" + | public void testHandleDoPost1() { String xmlBody = "<AuthorizationQuery>\n" + "<ConnectorQuery>\n" + " <Identity source=\"gsa\">CN=foo</Identity>\n" + " <Resource>googleconnector://connector1/?" + ServletUtil.DOCID + "foo1</Resource>\n" + " <Resource>googleconnector://connector2/?" + ServletUtil.DOCID + "foo2</Resource>\n" + "</ConnectorQuery>\n" + "<ConnectorQuery>\n" + " <Identity source=\"connector\">username</Identity>\n" + " <Resource>googleconnector://connector3/?" + ServletUtil.DOCID + "foo3</Resource>\n" + "</ConnectorQuery>\n" + "</AuthorizationQuery>"; String expectedResult = "<CmResponse>\n" + " <AuthorizationResponse>\n" + " <Answer>\n" + " <Resource>googleconnector://connector1/?" + ServletUtil.DOCID + "foo1</Resource>\n" + " <Decision>Permit</Decision>\n" + " </Answer>\n" + " <Answer>\n" + " <Resource>googleconnector://connector2/?" + ServletUtil.DOCID + "foo2</Resource>\n" + " <Decision>Permit</Decision>\n" + " </Answer>\n" + " <Answer>\n" + " <Resource>googleconnector://connector3/?" + ServletUtil.DOCID + "foo3</Resource>\n" + " <Decision>Permit</Decision>\n" + " </Answer>\n" + " </AuthorizationResponse>\n" + " <StatusId>0</StatusId>\n" + "</CmResponse>\n"; doTest(xmlBody, expectedResult); } | 51978 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51978/3915e2229e313b43f57e911f01e436b227e364a5/AuthorizationTest.java/clean/projects/connector-manager/source/javatests/com/google/enterprise/connector/servlet/AuthorizationTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
3259,
3244,
3349,
21,
1435,
288,
565,
514,
2025,
2250,
273,
3639,
3532,
6063,
1138,
5333,
82,
6,
397,
540,
3532,
7487,
1138,
5333,
82,
6,
397,
540,
315,
225,
411,
4334,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
3259,
3244,
3349,
21,
1435,
288,
565,
514,
2025,
2250,
273,
3639,
3532,
6063,
1138,
5333,
82,
6,
397,
540,
3532,
7487,
1138,
5333,
82,
6,
397,
540,
315,
225,
411,
4334,... |
if (selectedResource.getType() == IResource.FILE) selectedResource = selectedResource.getParent(); if (selectedResource.isAccessible()) resourceGroup.setContainerFullPath(selectedResource | if (selectedResource.getType() == IResource.FILE) { selectedResource = selectedResource.getParent(); } if (selectedResource.isAccessible()) { resourceGroup.setContainerFullPath(selectedResource | protected void initializePage() { Iterator it = currentSelection.iterator(); if (it.hasNext()) { Object next = it.next(); IResource selectedResource = null; if (next instanceof IResource) { selectedResource = (IResource) next; } else if (next instanceof IAdaptable) { selectedResource = (IResource) ((IAdaptable) next) .getAdapter(IResource.class); } if (selectedResource != null) { if (selectedResource.getType() == IResource.FILE) selectedResource = selectedResource.getParent(); if (selectedResource.isAccessible()) resourceGroup.setContainerFullPath(selectedResource .getFullPath()); } } setPageComplete(false); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/WizardNewFolderMainPage.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardNewFolderMainPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
4046,
1964,
1435,
288,
3639,
4498,
518,
273,
783,
6233,
18,
9838,
5621,
3639,
309,
261,
305,
18,
5332,
2134,
10756,
288,
5411,
1033,
1024,
273,
518,
18,
4285,
5621,
5411,
467,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4046,
1964,
1435,
288,
3639,
4498,
518,
273,
783,
6233,
18,
9838,
5621,
3639,
309,
261,
305,
18,
5332,
2134,
10756,
288,
5411,
1033,
1024,
273,
518,
18,
4285,
5621,
5411,
467,
... |
else | } else { | 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... |
if (fSystemId != null) { str.append(fSystemId); | if (fLiteralSystemId != null) { str.append(fLiteralSystemId); } str.append(':'); if (fExpandedSystemId != null) { str.append(fExpandedSystemId); | public String toString() { StringBuffer str = new StringBuffer(); if (fPublicId != null) { str.append(fPublicId); } str.append(':'); if (fPublicId != null) { str.append(fPublicId); } str.append(':'); if (fSystemId != null) { str.append(fSystemId); } str.append(':'); if (fBaseSystemId != null) { str.append(fBaseSystemId); } str.append(':'); str.append(fLineNumber); str.append(':'); str.append(fColumnNumber); str.append(':'); String message = getMessage(); if (message == null) { Exception exception = getException(); if (exception != null) { message = exception.getMessage(); } } if (message != null) { str.append(message); } return str.toString(); } // toString():String | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/bda39ebfdde5204af457e868d6a2908461900e9f/XMLParseException.java/clean/src/org/apache/xerces/xni/parser/XMLParseException.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
288,
3639,
6674,
609,
273,
394,
6674,
5621,
3639,
309,
261,
74,
4782,
548,
480,
446,
13,
288,
5411,
609,
18,
6923,
12,
74,
4782,
548,
1769,
3639,
289,
3639,
609,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
288,
3639,
6674,
609,
273,
394,
6674,
5621,
3639,
309,
261,
74,
4782,
548,
480,
446,
13,
288,
5411,
609,
18,
6923,
12,
74,
4782,
548,
1769,
3639,
289,
3639,
609,
... |
return; | return true; | public final void setResult(Object r, long ttl) { if (r == null) { r = getDefaultResult(); } Set s; synchronized (lock) { if (result != null) { if (r == TIMEOUT || result == TIMEOUT) { // okay, ignored timeout return; } throw new RuntimeException( "Result already set to "+result+ ", won't replace with "+r); } this.result = r; this.ttl = ttl; lock.notifyAll(); if (callbacks == null) { return; } s = callbacks; callbacks = null; } for (Iterator iter = s.iterator(); iter.hasNext(); ) { Callback c = (Callback) iter.next(); c.execute(this); } } | 7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/4c10453b9ea9a7f21fdd670b1ff4848b2adf96dd/Response.java/buggy/core/src/org/cougaar/core/service/wp/Response.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
918,
21582,
12,
921,
436,
16,
1525,
6337,
13,
288,
565,
309,
261,
86,
422,
446,
13,
288,
1377,
436,
273,
4829,
1253,
5621,
565,
289,
565,
1000,
272,
31,
565,
3852,
261,
739... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
918,
21582,
12,
921,
436,
16,
1525,
6337,
13,
288,
565,
309,
261,
86,
422,
446,
13,
288,
1377,
436,
273,
4829,
1253,
5621,
565,
289,
565,
1000,
272,
31,
565,
3852,
261,
739... |
org.exist.xquery.parser.XQueryAST tmp68_AST_in = (org.exist.xquery.parser.XQueryAST)_t; | org.exist.xquery.parser.XQueryAST tmp69_AST_in = (org.exist.xquery.parser.XQueryAST)_t; | public final void sequenceType(AST _t, SequenceType type ) throws RecognitionException, XPathException { org.exist.xquery.parser.XQueryAST sequenceType_AST_in = (_t == ASTNULL) ? null : (org.exist.xquery.parser.XQueryAST)_t; org.exist.xquery.parser.XQueryAST t = null; org.exist.xquery.parser.XQueryAST qn1 = null; org.exist.xquery.parser.XQueryAST qn2 = null; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ATOMIC_TYPE: { AST __t56 = _t; t = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,ATOMIC_TYPE); _t = _t.getFirstChild(); QName qn= QName.parse(staticContext, t.getText()); int code= Type.getType(qn); if(!Type.subTypeOf(code, Type.ATOMIC)) throw new XPathException(t, "Type " + qn.toString() + " is not an atomic type"); type.setPrimaryType(code); _t = __t56; _t = _t.getNextSibling(); break; } case LITERAL_empty: { AST __t57 = _t; org.exist.xquery.parser.XQueryAST tmp52_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_empty); _t = _t.getFirstChild(); type.setPrimaryType(Type.EMPTY); type.setCardinality(Cardinality.EMPTY); _t = __t57; _t = _t.getNextSibling(); break; } case 95: { AST __t58 = _t; org.exist.xquery.parser.XQueryAST tmp53_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,95); _t = _t.getFirstChild(); type.setPrimaryType(Type.EMPTY); type.setCardinality(Cardinality.EMPTY); _t = __t58; _t = _t.getNextSibling(); break; } case LITERAL_item: { AST __t59 = _t; org.exist.xquery.parser.XQueryAST tmp54_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_item); _t = _t.getFirstChild(); type.setPrimaryType(Type.ITEM); _t = __t59; _t = _t.getNextSibling(); break; } case LITERAL_node: { AST __t60 = _t; org.exist.xquery.parser.XQueryAST tmp55_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_node); _t = _t.getFirstChild(); type.setPrimaryType(Type.NODE); _t = __t60; _t = _t.getNextSibling(); break; } case LITERAL_element: { AST __t61 = _t; org.exist.xquery.parser.XQueryAST tmp56_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_element); _t = _t.getFirstChild(); type.setPrimaryType(Type.ELEMENT); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case WILDCARD: { org.exist.xquery.parser.XQueryAST tmp57_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,WILDCARD); _t = _t.getNextSibling(); break; } case QNAME: { qn1 = (org.exist.xquery.parser.XQueryAST)_t; match(_t,QNAME); _t = _t.getNextSibling(); QName qname= QName.parse(staticContext, qn1.getText()); type.setNodeName(qname); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: { org.exist.xquery.parser.XQueryAST tmp58_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,QNAME); _t = _t.getNextSibling(); throwException(qn1, "Tests of the form element(QName, TypeName) are not supported!"); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t61; _t = _t.getNextSibling(); break; } case ATTRIBUTE_TEST: { AST __t64 = _t; org.exist.xquery.parser.XQueryAST tmp59_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,ATTRIBUTE_TEST); _t = _t.getFirstChild(); type.setPrimaryType(Type.ATTRIBUTE); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case WILDCARD: { org.exist.xquery.parser.XQueryAST tmp60_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,WILDCARD); _t = _t.getNextSibling(); break; } case QNAME: { qn2 = (org.exist.xquery.parser.XQueryAST)_t; match(_t,QNAME); _t = _t.getNextSibling(); QName qname= QName.parse(staticContext, qn2.getText()); type.setNodeName(qname); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: { org.exist.xquery.parser.XQueryAST tmp61_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,QNAME); _t = _t.getNextSibling(); throwException(qn1, "Tests of the form attribute(QName, TypeName) are not supported!"); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t64; _t = _t.getNextSibling(); break; } case LITERAL_text: { AST __t67 = _t; org.exist.xquery.parser.XQueryAST tmp62_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_text); _t = _t.getFirstChild(); type.setPrimaryType(Type.TEXT); _t = __t67; _t = _t.getNextSibling(); break; } case 165: { AST __t68 = _t; org.exist.xquery.parser.XQueryAST tmp63_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,165); _t = _t.getFirstChild(); type.setPrimaryType(Type.PROCESSING_INSTRUCTION); _t = __t68; _t = _t.getNextSibling(); break; } case LITERAL_comment: { AST __t69 = _t; org.exist.xquery.parser.XQueryAST tmp64_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_comment); _t = _t.getFirstChild(); type.setPrimaryType(Type.COMMENT); _t = __t69; _t = _t.getNextSibling(); break; } case 166: { AST __t70 = _t; org.exist.xquery.parser.XQueryAST tmp65_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,166); _t = _t.getFirstChild(); type.setPrimaryType(Type.DOCUMENT); _t = __t70; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; if ((_t.getType()==STAR)) { org.exist.xquery.parser.XQueryAST tmp66_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,STAR); _t = _t.getNextSibling(); type.setCardinality(Cardinality.ZERO_OR_MORE); } else if ((_t.getType()==PLUS)) { org.exist.xquery.parser.XQueryAST tmp67_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,PLUS); _t = _t.getNextSibling(); type.setCardinality(Cardinality.ONE_OR_MORE); } else if ((_t.getType()==QUESTION)) { org.exist.xquery.parser.XQueryAST tmp68_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,QUESTION); _t = _t.getNextSibling(); type.setCardinality(Cardinality.ZERO_OR_ONE); } else if ((_tokenSet_1.member(_t.getType()))) { } else { throw new NoViableAltException(_t); } } _retTree = _t; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/44415d5ab271629cb9c572bd44ec8cedcc36aaca/XQueryTreeParser.java/buggy/src/org/exist/xquery/parser/XQueryTreeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3102,
559,
12,
9053,
389,
88,
16,
202,
202,
4021,
559,
618,
202,
13,
1216,
9539,
16,
10172,
503,
288,
9506,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3102,
559,
12,
9053,
389,
88,
16,
202,
202,
4021,
559,
618,
202,
13,
1216,
9539,
16,
10172,
503,
288,
9506,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
... |
Element problemClassElement = new Element(InspectionsBundle.message("inspection.export.results.problem.element.tag")); | @NonNls Element problemClassElement = new Element(InspectionsBundle.message("inspection.export.results.problem.element.tag")); | public void visitElement(final RefEntity refEntity) { if (myProblemElements.containsKey(refEntity)) { CommonProblemDescriptor[] descriptions = getDescriptions(refEntity); for (CommonProblemDescriptor description : descriptions) { @NonNls final String template = description.getDescriptionTemplate(); int line = description instanceof ProblemDescriptor ? ((ProblemDescriptor)description).getLineNumber() : -1; final String text = description instanceof ProblemDescriptor ? ((ProblemDescriptor)description).getPsiElement().getText() : ""; @NonNls String problemText = template.replaceAll("#ref", text.replaceAll("\\$", "\\\\\\$")); problemText = problemText.replaceAll(" #loc ", " "); Element element = XMLExportUtl.createElement(refEntity, parentNode, line); Element problemClassElement = new Element(InspectionsBundle.message("inspection.export.results.problem.element.tag")); problemClassElement.addContent(getDisplayName()); element.addContent(problemClassElement); try { Element descriptionElement = new Element(InspectionsBundle.message("inspection.export.results.description.tag")); descriptionElement.addContent(problemText); element.addContent(descriptionElement); } catch (IllegalDataException e) { //noinspection HardCodedStringLiteral,UseOfSystemOutOrSystemErr System.out.println("Cannot save results for " + refEntity.getName()); } } } } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/0fbd9215ceaf4861563f4ac803043c372346957f/DescriptorProviderInspection.java/buggy/inspections/impl/com/intellij/codeInspection/ex/DescriptorProviderInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
3757,
1046,
12,
6385,
3941,
1943,
1278,
1943,
13,
288,
3639,
309,
261,
4811,
13719,
3471,
18,
12298,
653,
12,
1734,
1943,
3719,
288,
1850,
5658,
13719,
3187,
8526,
15550,
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,
4202,
1071,
918,
3757,
1046,
12,
6385,
3941,
1943,
1278,
1943,
13,
288,
3639,
309,
261,
4811,
13719,
3471,
18,
12298,
653,
12,
1734,
1943,
3719,
288,
1850,
5658,
13719,
3187,
8526,
15550,
273,
... |
String targetOperationString = new String(element.getAttribute("target-operation")); | String targetOperationString = element.getAttribute("target-operation"); | public EntityPermissionChecker(Element element) { this.entityNameExdr = new FlexibleStringExpander(element.getAttribute("entity-name")); this.entityIdExdr = new FlexibleStringExpander(element.getAttribute("entity-id")); this.displayFailCond = "true".equals(element.getAttribute("display-fail-cond")); Element permissionConditionElement = UtilXml.firstChildElement(element, "permission-condition-getter"); if (permissionConditionElement == null) { permissionConditionGetter = new StdPermissionConditionGetter(); } else { permissionConditionGetter = new StdPermissionConditionGetter(permissionConditionElement); } Element auxiliaryValueElement = UtilXml.firstChildElement(element, "auxiliary-value-getter"); if (auxiliaryValueElement == null) { auxiliaryValueGetter = new StdAuxiliaryValueGetter(); } else { auxiliaryValueGetter = new StdAuxiliaryValueGetter(auxiliaryValueElement); } Element relatedRoleElement = UtilXml.firstChildElement(element, "related-role-getter"); if (relatedRoleElement == null) { relatedRoleGetter = new StdRelatedRoleGetter(); } else { relatedRoleGetter = new StdRelatedRoleGetter(relatedRoleElement); } String targetOperationString = new String(element.getAttribute("target-operation")); if (UtilValidate.isNotEmpty(targetOperationString)) { List operationsFromString = StringUtil.split(targetOperationString, "|"); if (targetOperationList == null) { targetOperationList = new ArrayList(); } targetOperationList.addAll(operationsFromString); } permissionConditionGetter.setOperationList(targetOperationList); } | 45953 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45953/f855cb3f2bf47a0ab608a42893da9f540ac5006a/EntityPermissionChecker.java/buggy/framework/entityext/src/org/ofbiz/entityext/permission/EntityPermissionChecker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3887,
5041,
8847,
12,
1046,
930,
13,
288,
3639,
333,
18,
1096,
461,
424,
3069,
273,
394,
478,
21873,
780,
12271,
264,
12,
2956,
18,
588,
1499,
2932,
1096,
17,
529,
7923,
1769,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3887,
5041,
8847,
12,
1046,
930,
13,
288,
3639,
333,
18,
1096,
461,
424,
3069,
273,
394,
478,
21873,
780,
12271,
264,
12,
2956,
18,
588,
1499,
2932,
1096,
17,
529,
7923,
1769,
363... |
table.add("D",1,row); table.add(((Group)item).getName(),3,row++); | if( item !=null ){ table.add("D",1,row); table.add(((Group)item).getName(),3,row++); } else{ System.err.println("ITEM IS NULL in grouplist for D"); } | public Table getGroupTable(IWContext iwc){ Collection direct = (Collection)iwc.getSessionAttribute(UserGroupList.SESSIONADDRESS_USERGROUPS_DIRECTLY_RELATED); Collection notDirect = (Collection)iwc.getSessionAttribute(UserGroupList.SESSIONADDRESS_USERGROUPS_NOT_DIRECTLY_RELATED); Table table = null; try{ Iterator iter = null; int row = 1; if(direct != null && notDirect != null){ table = new Table(5,direct.size()+notDirect.size()); iter = direct.iterator(); while (iter.hasNext()) { Object item = iter.next(); table.add("D",1,row); table.add(((Group)item).getName(),3,row++); } iter = notDirect.iterator(); while (iter.hasNext()) { Object item = iter.next(); table.add("E",1,row); table.add(((Group)item).getName(),3,row++); } } else if(direct != null){ table = new Table(5,direct.size()); iter = direct.iterator(); while (iter.hasNext()) { Object item = iter.next(); if( item !=null ){ table.add("D",1,row); table.add(((Group)item).getName(),3,row++); } else{ System.err.println("ITEM IS NULL in grouplist"); } } } } catch(Exception e){ add("Error: "+e.getMessage()); e.printStackTrace(); } if(table != null){ table.setWidth("100%"); table.setWidth(1,"10"); table.setWidth(2,"3"); table.setWidth(4,"10"); table.setWidth(5,"10"); } return table; } | 52002 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52002/c042ade728c492cdf4e1af6688a09313a873c51a/GroupList.java/clean/src/java/com/idega/user/presentation/GroupList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3555,
11751,
1388,
12,
45,
59,
1042,
25522,
71,
15329,
1377,
2200,
2657,
273,
261,
2532,
13,
22315,
71,
18,
588,
2157,
1499,
12,
21255,
682,
18,
7042,
15140,
67,
4714,
28977,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3555,
11751,
1388,
12,
45,
59,
1042,
25522,
71,
15329,
1377,
2200,
2657,
273,
261,
2532,
13,
22315,
71,
18,
588,
2157,
1499,
12,
21255,
682,
18,
7042,
15140,
67,
4714,
28977,
67,
... |
if (toRestartAlarm && !myDisposed && myInitialized && myDaemonListeners.myIsFrameFocused) { | boolean restart = toRestartAlarm && !myDisposed && myInitialized && myDaemonListeners.myIsFrameFocused; if (restart) { | public synchronized void stopProcess(boolean toRestartAlarm) { renewUpdateProgress(); myAlarm.cancelAllRequests(); myPassExecutorService.cancelAll(); if (toRestartAlarm && !myDisposed && myInitialized && myDaemonListeners.myIsFrameFocused) { myAlarm.addRequest(myUpdateRunnable, mySettings.AUTOREPARSE_DELAY); //LOG.debug("restarted ",new Throwable()); } } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/ef888332664b7dd197b2fe216728eaf18dba8ee8/DaemonCodeAnalyzerImpl.java/buggy/codeInsight/impl/com/intellij/codeInsight/daemon/impl/DaemonCodeAnalyzerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
2132,
2227,
12,
6494,
358,
15057,
16779,
13,
288,
565,
15723,
1891,
5491,
5621,
565,
3399,
16779,
18,
10996,
1595,
6421,
5621,
565,
3399,
6433,
21005,
18,
10996,
1595,
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,
3852,
918,
2132,
2227,
12,
6494,
358,
15057,
16779,
13,
288,
565,
15723,
1891,
5491,
5621,
565,
3399,
16779,
18,
10996,
1595,
6421,
5621,
565,
3399,
6433,
21005,
18,
10996,
1595,
5621... |
EdgePredicate edgePredicate = EdgePredicateFactory.createEqualsNodes(person1, person2, 0); | EdgePredicate edgePredicate = EdgePredicateFactory.createEqualsNodes(person1, person2, GraphUtils.UNDIRECTED_MASK); | public boolean hasRelationship(Person person1, Person person2) { EdgePredicate edgePredicate = EdgePredicateFactory.createEqualsNodes(person1, person2, 0); return (relationshipGraph.getEdge(edgePredicate) != null); } | 49678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49678/24f9044b5ef3311a95a0241cb8fa1978737fa66c/RelationshipManager.java/clean/org/mars_sim/msp/simulation/person/ai/social/RelationshipManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
711,
8180,
12,
8346,
6175,
21,
16,
11573,
6175,
22,
13,
288,
202,
202,
6098,
8634,
3591,
8634,
273,
11342,
8634,
1733,
18,
2640,
8867,
3205,
12,
12479,
21,
16,
6175,
22,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
711,
8180,
12,
8346,
6175,
21,
16,
11573,
6175,
22,
13,
288,
202,
202,
6098,
8634,
3591,
8634,
273,
11342,
8634,
1733,
18,
2640,
8867,
3205,
12,
12479,
21,
16,
6175,
22,... |
} finally { socket.close(); } return null; } }); } catch (PrivilegedActionException ex) { throw (IOException) ex.getException(); } } | } finally { socket.close(); } return null; } }); } catch (PrivilegedActionException ex) { throw (IOException) ex.getException(); } } | public final void configureDevice(final Device device) throws IOException { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new NetPermission("bootpClient")); } try { AccessController.doPrivileged(new PrivilegedExceptionAction() { public Object run() throws IOException { // Get the API. final NetDeviceAPI api; try { api = (NetDeviceAPI) device.getAPI(NetDeviceAPI.class); } catch (ApiNotFoundException ex) { throw new NetworkException("Device is not a network device", ex); } // Open a socket socket = new MulticastSocket(CLIENT_PORT); try { // Prepare the socket socket.setBroadcast(true); socket.setNetworkInterface(NetworkInterface .getByName(device.getId())); socket.setSoTimeout(RECEIVE_TIMEOUT); // Create the BOOTP header final Inet4Address myIP = null; // any address final int transactionID = (int) (System .currentTimeMillis() & 0xFFFFFFFF); BOOTPHeader hdr = new BOOTPHeader(BOOTPHeader.BOOTREQUEST, transactionID, 0, myIP, api.getAddress()); // Send the packet final DatagramPacket packet = createRequestPacket(hdr); packet.setAddress(IPv4Address.BROADCAST_ADDRESS); packet.setPort(SERVER_PORT); socket.send(packet); boolean configured; do { // Wait for a response socket.receive(packet); // Process the response configured = processResponse(device, api, transactionID, packet); } while (!configured); } finally { socket.close(); } return null; } }); } catch (PrivilegedActionException ex) { throw (IOException) ex.getException(); } } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/387bfe2dfd343773750929bcbfb4a63cf7fee6da/BOOTPClient.java/buggy/net/src/net/org/jnode/net/ipv4/bootp/BOOTPClient.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
918,
5068,
3654,
12,
6385,
6077,
2346,
13,
1216,
1860,
225,
288,
565,
727,
6036,
1318,
3029,
273,
2332,
18,
588,
4368,
1318,
5621,
565,
309,
261,
4808,
480,
446,
13,
565,
288... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
918,
5068,
3654,
12,
6385,
6077,
2346,
13,
1216,
1860,
225,
288,
565,
727,
6036,
1318,
3029,
273,
2332,
18,
588,
4368,
1318,
5621,
565,
309,
261,
4808,
480,
446,
13,
565,
288... |
Link new_link=new Link(local_addr, local_port, remote_addr, remote_port, this); if(links.contains(new_link)) log.error("LogicalLink.add(): link " + new_link + " is already present"); else links.addElement(new_link); | Link new_link=new Link(local_addr, local_port, remote_addr, remote_port, this); if(links.contains(new_link)) log.error("LogicalLink.add(): link " + new_link + " is already present"); else links.addElement(new_link); | public void addLink(String local_addr, int local_port, String remote_addr, int remote_port) { Link new_link=new Link(local_addr, local_port, remote_addr, remote_port, this); if(links.contains(new_link)) log.error("LogicalLink.add(): link " + new_link + " is already present"); else links.addElement(new_link); } | 50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/5ad015d9a78e1da3350d9b398b46b2f5d4508564/LogicalLink.java/clean/src/org/jgroups/blocks/LogicalLink.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
2098,
12,
780,
1191,
67,
4793,
16,
509,
1191,
67,
655,
16,
514,
2632,
67,
4793,
16,
509,
2632,
67,
655,
13,
288,
202,
2098,
394,
67,
1232,
33,
2704,
4048,
12,
3729,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
2098,
12,
780,
1191,
67,
4793,
16,
509,
1191,
67,
655,
16,
514,
2632,
67,
4793,
16,
509,
2632,
67,
655,
13,
288,
202,
2098,
394,
67,
1232,
33,
2704,
4048,
12,
3729,
... |
public String getDescription(){ | public String getDescription() { | public String getDescription(){ return "Java Archive Files (*.jar)"; } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/35da9b77b7d75aca3d6277e27e3ba3dc86f3eaa9/ProjectPropertiesFrame.java/buggy/drjava/src/edu/rice/cs/drjava/ui/ProjectPropertiesFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
514,
11056,
1435,
288,
3639,
327,
315,
5852,
13124,
6471,
261,
11146,
11930,
2225,
31,
1377,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4202,
1071,
514,
11056,
1435,
288,
3639,
327,
315,
5852,
13124,
6471,
261,
11146,
11930,
2225,
31,
1377,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
public SessionException(String msg) { super(msg); | public SessionException() { super(); | public SessionException(String msg) { super(msg); } | 5235 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5235/f108ac3c8403670d7be201422f40b58d5ee407d3/SessionException.java/buggy/grouper/src/grouper/edu/internet2/middleware/grouper/SessionException.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3877,
503,
12,
780,
1234,
13,
288,
377,
2240,
12,
3576,
1769,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
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,
282,
1071,
3877,
503,
12,
780,
1234,
13,
288,
377,
2240,
12,
3576,
1769,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pattern = getPatternForCategory( category ); fmtStr = new DateFormatter( pattern ).format( sampleDateTime ); | String pattern = getPatternForCategory( category ); String fmtStr = new DateFormatter( pattern ).format( sampleDateTime ); | private void updatePreview( ) { markDirty( hasLoaded ); String pattern = ""; //$NON-NLS-1$ String fmtStr = ""; //$NON-NLS-1$ String category = getCategory4UIDisplayName( typeChoicer.getText( ) ); setCategory( category ); Date sampleDateTime = new Date( ); if ( getPreviewText( ) != null ) { try { sampleDateTime = new Date( getPreviewText( ) ); } catch ( Exception e ) { // } } if ( DesignChoiceConstants.DATETIEM_FORMAT_TYPE_GENERAL_DATE .equals( category ) ) { pattern = getPatternForCategory( category ); fmtStr = new DateFormatter( pattern ).format( sampleDateTime ); generalPreviewLabel.setText( validatedFmtStr( fmtStr ) ); setPattern( pattern ); return; } else if ( DesignChoiceConstants.DATETIEM_FORMAT_TYPE_LONG_DATE .equals( category ) ) { pattern = getPatternForCategory( category ); fmtStr = new DateFormatter( pattern ).format( sampleDateTime ); generalPreviewLabel.setText( validatedFmtStr( fmtStr ) ); setPattern( pattern ); return; } else if ( DesignChoiceConstants.DATETIEM_FORMAT_TYPE_MUDIUM_DATE .equals( category ) ) { pattern = getPatternForCategory( category ); fmtStr = new DateFormatter( pattern ).format( sampleDateTime ); generalPreviewLabel.setText( validatedFmtStr( fmtStr ) ); setPattern( pattern ); return; } else if ( DesignChoiceConstants.DATETIEM_FORMAT_TYPE_SHORT_DATE .equals( category ) ) { pattern = getPatternForCategory( category ); fmtStr = new DateFormatter( pattern ).format( sampleDateTime ); generalPreviewLabel.setText( validatedFmtStr( fmtStr ) ); setPattern( pattern ); return; } else if ( DesignChoiceConstants.DATETIEM_FORMAT_TYPE_LONG_TIME .equals( category ) ) { pattern = getPatternForCategory( category ); fmtStr = new DateFormatter( pattern ).format( sampleDateTime ); generalPreviewLabel.setText( validatedFmtStr( fmtStr ) ); setPattern( pattern ); return; } else if ( DesignChoiceConstants.DATETIEM_FORMAT_TYPE_MEDIUM_TIME .equals( category ) ) { pattern = getPatternForCategory( category ); fmtStr = new DateFormatter( pattern ).format( sampleDateTime ); generalPreviewLabel.setText( validatedFmtStr( fmtStr ) ); setPattern( pattern ); return; } else if ( DesignChoiceConstants.DATETIEM_FORMAT_TYPE_SHORT_TIME .equals( category ) ) { pattern = getPatternForCategory( category ); fmtStr = new DateFormatter( pattern ).format( sampleDateTime ); generalPreviewLabel.setText( validatedFmtStr( fmtStr ) ); setPattern( pattern ); return; } else if ( DesignChoiceConstants.DATETIEM_FORMAT_TYPE_CUSTOM .equals( category ) ) { pattern = formatCode.getText( ); if ( StringUtil.isBlank( previewTextBox.getText( ) ) ) { fmtStr = new DateFormatter( pattern ).format( sampleDateTime ); } else { String text = previewTextBox.getText( ); try { fmtStr = new DateFormatter( pattern ).format( new Date( text ) ); } catch ( Exception e ) { fmtStr = PREVIEW_TEXT_INVALID_DATETIME_TO_PREVIEW; } } cusPreviewLabel.setText( validatedFmtStr( fmtStr ) ); setPattern( pattern ); return; } } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/1123f2b44bade54e4b5714c702c79b94bb65dca3/FormatDateTimePage.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/FormatDateTimePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1089,
11124,
12,
262,
202,
95,
202,
202,
3355,
10785,
12,
711,
8835,
11272,
202,
202,
780,
1936,
273,
1408,
31,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
780,
1325,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1089,
11124,
12,
262,
202,
95,
202,
202,
3355,
10785,
12,
711,
8835,
11272,
202,
202,
780,
1936,
273,
1408,
31,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
780,
1325,
1... |
return "02.01.02.00"; | return "02.01.03.00"; | public static String getBuild() { // (major) (minor) (<99 = preX, 99 = final) (bug fix) return "02.01.02.00"; } | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/725166c60082c28eb268831a31c105896ce39455/jEdit.java/clean/org/gjt/sp/jedit/jEdit.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
21122,
1435,
202,
95,
202,
202,
759,
261,
14019,
13,
261,
17364,
13,
261,
32,
2733,
273,
675,
60,
16,
14605,
273,
727,
13,
261,
925,
2917,
13,
202,
202,
2463,
315,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
21122,
1435,
202,
95,
202,
202,
759,
261,
14019,
13,
261,
17364,
13,
261,
32,
2733,
273,
675,
60,
16,
14605,
273,
727,
13,
261,
925,
2917,
13,
202,
202,
2463,
315,... |
assertEquals("orange-"+oldCount, fruit0.getName()); | assertEquals("orange-" + oldCount, fruit0.getName()); | public void testWithSubst() throws Exception { List<FruitShell> fsList = doFirstPart("fruitWithSubst.xml"); assertNotNull(fsList); assertEquals(1, fsList.size()); FruitShell fs0 = fsList.get(0); assertNotNull(fs0); assertEquals("fs0", fs0.getName()); int oldCount = FruitFactory.count; Fruit fruit0 = fs0.fruitFactory.buildFruit(); assertTrue(fruit0 instanceof WeightytFruit); assertEquals("orange-"+oldCount, fruit0.getName()); assertEquals(1.2, ((WeightytFruit) fruit0).getWeight()); } | 51675 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51675/b17afdd922fb715ce4d262907d6b474541e9bd32/FruitConfigurationTest.java/clean/logback-core/src/test/java/ch/qos/logback/core/joran/replay/FruitConfigurationTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
1190,
1676,
334,
1435,
1216,
1185,
288,
565,
987,
32,
7167,
14945,
13220,
34,
2662,
682,
273,
741,
3759,
1988,
2932,
4840,
14945,
1190,
1676,
334,
18,
2902,
8863,
565,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
1190,
1676,
334,
1435,
1216,
1185,
288,
565,
987,
32,
7167,
14945,
13220,
34,
2662,
682,
273,
741,
3759,
1988,
2932,
4840,
14945,
1190,
1676,
334,
18,
2902,
8863,
565,
25... |
private boolean addFromTable( String schema, String table, String alias, String filter, boolean failIfExists) { | private boolean addFromTable(String schema, String table, String alias, String filter, boolean failIfExists) { | private boolean addFromTable( String schema, String table, String alias, String filter, boolean failIfExists) { if (fromAliases.contains(alias)) { if (failIfExists) { throw Util.newInternal( "query already contains alias '" + alias + "'"); } else { return false; } } buf.setLength(0); buf.append(quoteIdentifier(schema, table)); if (alias != null) { Util.assertTrue(!alias.equals("")); if (allowsAs()) { buf.append(" as "); } else { buf.append(" "); } buf.append(quoteIdentifier(alias)); fromAliases.add(alias); } from.add(buf.toString()); if (filter != null) { // append filter condition to where clause where.add("(" + filter + ")"); } return true; } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/0cc18052c959f8014f772086b193e28d7a6dd66a/SqlQuery.java/clean/src/main/mondrian/rolap/sql/SqlQuery.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
527,
1265,
1388,
12,
5411,
514,
1963,
16,
514,
1014,
16,
514,
2308,
16,
514,
1034,
16,
1250,
2321,
20014,
13,
288,
3639,
309,
261,
2080,
9667,
18,
12298,
12,
4930,
3719,
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,
3238,
1250,
527,
1265,
1388,
12,
5411,
514,
1963,
16,
514,
1014,
16,
514,
2308,
16,
514,
1034,
16,
1250,
2321,
20014,
13,
288,
3639,
309,
261,
2080,
9667,
18,
12298,
12,
4930,
3719,
288... |
private int generateICode(Node node, int iCodeTop) { | private int generateICode(Node node, int iCodeTop) { | private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; switch (type) { case TokenStream.FUNCTION : { iCodeTop = addByte((byte) TokenStream.CLOSURE, iCodeTop); Node fn = (Node) node.getProp(Node.FUNCTION_PROP); Short index = (Short) fn.getProp(Node.FUNCTION_PROP); iCodeTop = addByte((byte)(index.shortValue() >> 8), iCodeTop); iCodeTop = addByte((byte)(index.shortValue() & 0xff), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.SCRIPT : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { if (child.getType() != TokenStream.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.CASE : iCodeTop = updateLineNumber(node, iCodeTop); child = child.getNextSibling(); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.LABEL : case TokenStream.WITH : case TokenStream.LOOP : case TokenStream.DEFAULT : case TokenStream.BLOCK : case TokenStream.VOID : case TokenStream.NOP : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.COMMA : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); break; case TokenStream.SWITCH : { iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; /* reminder - below we construct new GOTO nodes that aren't linked into the tree just for the purpose of having a node to pass to the addGoto routine. (Parallels codegen here). Seems unnecessary. */ Vector cases = (Vector) node.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.elementAt(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.SHEQ, iCodeTop); Node target = new Node(TokenStream.TARGET); thisCase.addChildAfter(target, first); Node branch = new Node(TokenStream.IFEQ); branch.putProp(Node.TARGET_PROP, target); iCodeTop = addGoto(branch, TokenStream.IFEQ, iCodeTop); itsStackDepth--; } Node defaultNode = (Node) node.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node defaultTarget = new Node(TokenStream.TARGET); defaultNode.getFirstChild().addChildToFront(defaultTarget); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, defaultTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } Node breakTarget = (Node) node.getProp(Node.BREAK_PROP); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, breakTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } break; case TokenStream.TARGET : { Object lblObect = node.getProp(Node.LABEL_PROP); if (lblObect == null) { int label = markLabel(acquireLabel(), iCodeTop); node.putProp(Node.LABEL_PROP, new Integer(label)); } else { int label = ((Integer)lblObect).intValue(); markLabel(label, iCodeTop); } // if this target has a FINALLY_PROP, it is a JSR target // and so has a PC value on the top of the stack if (node.getProp(Node.FINALLY_PROP) != null) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.EQOP : case TokenStream.RELOP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int op = node.getInt(); if (version == Context.VERSION_1_2) { if (op == TokenStream.EQ) op = TokenStream.SHEQ; else if (op == TokenStream.NE) op = TokenStream.SHNE; } iCodeTop = addByte((byte) op, iCodeTop); itsStackDepth--; } break; case TokenStream.NEW : case TokenStream.CALL : { if (itsSourceFile != null && (itsData.itsSourceFile == null || ! itsSourceFile.equals(itsData.itsSourceFile))) itsData.itsSourceFile = itsSourceFile; iCodeTop = addByte((byte)TokenStream.SOURCEFILE, iCodeTop); int childCount = 0; short nameIndex = -1; while (child != null) { iCodeTop = generateICode(child, iCodeTop); if (nameIndex == -1) { if (child.getType() == TokenStream.NAME) nameIndex = (short)(itsData.itsStringTableIndex - 1); else if (child.getType() == TokenStream.GETPROP) nameIndex = (short)(itsData.itsStringTableIndex - 1); } child = child.getNextSibling(); childCount++; } if (node.getProp(Node.SPECIALCALL_PROP) != null) { // embed line number and source filename iCodeTop = addByte((byte) TokenStream.CALLSPECIAL, iCodeTop); iCodeTop = addByte((byte)(itsLineNumber >> 8), iCodeTop); iCodeTop = addByte((byte)(itsLineNumber & 0xff), iCodeTop); iCodeTop = addString(itsSourceFile, iCodeTop); } else { iCodeTop = addByte((byte) type, iCodeTop); iCodeTop = addByte((byte)(nameIndex >> 8), iCodeTop); iCodeTop = addByte((byte)(nameIndex & 0xFF), iCodeTop); } itsStackDepth -= (childCount - 1); // always a result value // subtract from child count to account for [thisObj &] fun if (type == TokenStream.NEW) childCount -= 1; else childCount -= 2; iCodeTop = addByte((byte)(childCount >> 8), iCodeTop); iCodeTop = addByte((byte)(childCount & 0xff), iCodeTop); if (childCount > itsData.itsMaxArgs) itsData.itsMaxArgs = childCount; iCodeTop = addByte((byte)TokenStream.SOURCEFILE, iCodeTop); } break; case TokenStream.NEWLOCAL : case TokenStream.NEWTEMP : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); } break; case TokenStream.USELOCAL : { if (node.getProp(Node.TARGET_PROP) != null) iCodeTop = addByte((byte) TokenStream.RETSUB, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } Node temp = (Node) node.getProp(Node.LOCAL_PROP); iCodeTop = addLocalRef(temp, iCodeTop); } break; case TokenStream.USETEMP : { iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); Node temp = (Node) node.getProp(Node.TEMP_PROP); iCodeTop = addLocalRef(temp, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.IFEQ : case TokenStream.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case TokenStream.GOTO : iCodeTop = addGoto(node, (byte) type, iCodeTop); break; case TokenStream.JSR : { /* mark the target with a FINALLY_PROP to indicate that it will have an incoming PC value on the top of the stack. !!! This only works if the target follows the JSR in the tree. !!! */ Node target = (Node)(node.getProp(Node.TARGET_PROP)); target.putProp(Node.FINALLY_PROP, node); iCodeTop = addGoto(node, TokenStream.GOSUB, iCodeTop); } break; case TokenStream.AND : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int falseTarget = acquireLabel(); iCodeTop = addGoto(falseTarget, TokenStream.IFNE, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(falseTarget, iCodeTop); } break; case TokenStream.OR : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int trueTarget = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(trueTarget, iCodeTop); } break; case TokenStream.GETPROP : { iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte((byte) TokenStream.GETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte((byte) TokenStream.GETSCOPEPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.GETPROP, iCodeTop); itsStackDepth--; } } break; case TokenStream.DELPROP : case TokenStream.BITAND : case TokenStream.BITOR : case TokenStream.BITXOR : case TokenStream.LSH : case TokenStream.RSH : case TokenStream.URSH : case TokenStream.ADD : case TokenStream.SUB : case TokenStream.MOD : case TokenStream.DIV : case TokenStream.MUL : case TokenStream.GETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth--; break; case TokenStream.CONVERT : { iCodeTop = generateICode(child, iCodeTop); Object toType = node.getProp(Node.TYPE_PROP); if (toType == ScriptRuntime.NumberClass) iCodeTop = addByte((byte) TokenStream.POS, iCodeTop); else badTree(node); } break; case TokenStream.UNARYOP : iCodeTop = generateICode(child, iCodeTop); switch (node.getInt()) { case TokenStream.VOID : iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); iCodeTop = addByte((byte) TokenStream.UNDEFINED, iCodeTop); break; case TokenStream.NOT : { int trueTarget = acquireLabel(); int beyond = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte((byte) TokenStream.TRUE, iCodeTop); iCodeTop = addGoto(beyond, TokenStream.GOTO, iCodeTop); markLabel(trueTarget, iCodeTop); iCodeTop = addByte((byte) TokenStream.FALSE, iCodeTop); markLabel(beyond, iCodeTop); } break; case TokenStream.BITNOT : iCodeTop = addByte((byte) TokenStream.BITNOT, iCodeTop); break; case TokenStream.TYPEOF : iCodeTop = addByte((byte) TokenStream.TYPEOF, iCodeTop); break; case TokenStream.SUB : iCodeTop = addByte((byte) TokenStream.NEG, iCodeTop); break; case TokenStream.ADD : iCodeTop = addByte((byte) TokenStream.POS, iCodeTop); break; default: badTree(node); break; } break; case TokenStream.SETPROP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte((byte) TokenStream.SETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte((byte) TokenStream.SETPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.SETPROP, iCodeTop); itsStackDepth -= 2; } } break; case TokenStream.SETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth -= 2; break; case TokenStream.SETNAME : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.SETNAME, iCodeTop); iCodeTop = addString(firstChild.getString(), iCodeTop); itsStackDepth--; break; case TokenStream.TYPEOF : { String name = node.getString(); int index = -1; // use typeofname if an activation frame exists // since the vars all exist there instead of in jregs if (itsInFunctionFlag && !itsData.itsNeedsActivation) index = itsData.itsVariableTable.getOrdinal(name); if (index == -1) { iCodeTop = addByte((byte) TokenStream.TYPEOFNAME, iCodeTop); iCodeTop = addString(name, iCodeTop); } else { iCodeTop = addByte((byte) TokenStream.GETVAR, iCodeTop); iCodeTop = addByte((byte) index, iCodeTop); iCodeTop = addByte((byte) TokenStream.TYPEOF, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.PARENT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.GETPARENT, iCodeTop); break; case TokenStream.GETBASE : case TokenStream.BINDNAME : case TokenStream.NAME : case TokenStream.STRING : iCodeTop = addByte((byte) type, iCodeTop); iCodeTop = addString(node.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.INC : case TokenStream.DEC : { int childType = child.getType(); switch (childType) { case TokenStream.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addByte((byte) TokenStream.SCOPE, iCodeTop); iCodeTop = addByte((byte) TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC), iCodeTop); itsStackDepth--; } else { iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.VARINC : TokenStream.VARDEC), iCodeTop); int i = itsData.itsVariableTable. getOrdinal(name); iCodeTop = addByte((byte)i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.GETPROP : case TokenStream.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNextSibling(); iCodeTop = generateICode(getPropChild, iCodeTop); if (childType == TokenStream.GETPROP) iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC), iCodeTop); else iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.ELEMINC : TokenStream.ELEMDEC), iCodeTop); itsStackDepth--; } break; default : { iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.NAMEINC : TokenStream.NAMEDEC), iCodeTop); iCodeTop = addString(child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } } break; case TokenStream.NUMBER : { Number num = (Number)node.getDatum(); if (num.doubleValue() == 0.0) iCodeTop = addByte((byte) TokenStream.ZERO, iCodeTop); else if (num.doubleValue() == 1.0) iCodeTop = addByte((byte) TokenStream.ONE, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.NUMBER, iCodeTop); iCodeTop = addNumber(num, iCodeTop); } } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.POP : case TokenStream.POPV : iCodeTop = updateLineNumber(node, iCodeTop); case TokenStream.ENTERWITH : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth--; break; case TokenStream.GETTHIS : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); break; case TokenStream.NEWSCOPE : iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.LEAVEWITH : iCodeTop = addByte((byte) type, iCodeTop); break; case TokenStream.TRY : { itsTryDepth++; if (itsTryDepth > itsData.itsMaxTryDepth) itsData.itsMaxTryDepth = itsTryDepth; Node catchTarget = (Node)node.getProp(Node.TARGET_PROP); Node finallyTarget = (Node)node.getProp(Node.FINALLY_PROP); if (catchTarget == null) { iCodeTop = addByte((byte) TokenStream.TRY, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); } else iCodeTop = addGoto(node, TokenStream.TRY, iCodeTop); int finallyHandler = 0; if (finallyTarget != null) { finallyHandler = acquireLabel(); int theLabel = finallyHandler & 0x7FFFFFFF; itsLabelTable[theLabel].addFixup(iCodeTop); } iCodeTop = addByte((byte)0, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); Node lastChild = null; /* when we encounter the child of the catchTarget, we set the stackDepth to 1 to account for the incoming exception object. */ while (child != null) { if (catchTarget != null && lastChild == catchTarget) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } /* When the following child is the catchTarget (or the finallyTarget if there are no catches), the current child is the goto at the end of the try statemets, we need to emit the endtry before that goto. */ Node nextSibling = child.getNextSibling(); if (nextSibling == catchTarget || nextSibling == finallyTarget) { iCodeTop = addByte((byte) TokenStream.ENDTRY, iCodeTop); } iCodeTop = generateICode(child, iCodeTop); lastChild = child; child = child.getNextSibling(); } itsStackDepth = 0; if (finallyTarget != null) { // normal flow goes around the finally handler stublet int skippy = acquireLabel(); iCodeTop = addGoto(skippy, TokenStream.GOTO, iCodeTop); // on entry the stack will have the exception object markLabel(finallyHandler, iCodeTop); itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); Integer finallyLabel = (Integer)(finallyTarget.getProp(Node.LABEL_PROP)); iCodeTop = addGoto(finallyLabel.intValue(), TokenStream.GOSUB, iCodeTop); iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.JTHROW, iCodeTop); itsStackDepth = 0; markLabel(skippy, iCodeTop); } itsTryDepth--; } break; case TokenStream.THROW : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.THROW, iCodeTop); itsStackDepth--; break; case TokenStream.RETURN : iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) iCodeTop = generateICode(child, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.UNDEFINED, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } iCodeTop = addGoto(node, TokenStream.RETURN, iCodeTop); itsStackDepth--; break; case TokenStream.GETVAR : { String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addByte((byte) TokenStream.SCOPE, iCodeTop); iCodeTop = addByte((byte) TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) TokenStream.GETPROP, iCodeTop); itsStackDepth--; } else { int index = itsData.itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte) TokenStream.GETVAR, iCodeTop); iCodeTop = addByte((byte)index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.SETVAR : { if (itsData.itsNeedsActivation) { child.setType(TokenStream.BINDNAME); node.setType(TokenStream.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int index = itsData.itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte) TokenStream.SETVAR, iCodeTop); iCodeTop = addByte((byte)index, iCodeTop); } } break; case TokenStream.PRIMARY: iCodeTop = addByte((byte) node.getInt(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.ENUMINIT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.ENUMINIT, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); itsStackDepth--; break; case TokenStream.ENUMNEXT : { iCodeTop = addByte((byte) TokenStream.ENUMNEXT, iCodeTop); Node init = (Node)node.getProp(Node.ENUM_PROP); iCodeTop = addLocalRef(init, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.ENUMDONE : // could release the local here?? break; case TokenStream.OBJECT : { Node regexp = (Node) node.getProp(Node.REGEXP_PROP); int index = ((Integer)(regexp.getProp( Node.REGEXP_PROP))).intValue(); iCodeTop = addByte((byte) TokenStream.OBJECT, iCodeTop); iCodeTop = addByte((byte)(index >> 8), iCodeTop); iCodeTop = addByte((byte)(index & 0xff), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; default : badTree(node); break; } return iCodeTop; } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/86d5be22975b03a2212d9c5f903a2463fc6f7f91/Interpreter.java/clean/js/rhino/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
565,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
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,
3238,
509,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
565,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3... |
showPageFlippingAbortDialog(); selectCurrentPageAgain(); | handleError(); | public void widgetSelected(final SelectionEvent event) { BusyIndicator.showWhile(tree.getDisplay(), new Runnable() { public void run() { Object data = event.item.getData(); if (data instanceof IPreferenceNode) { if (!isCurrentPageValid()) { showPageFlippingAbortDialog(); selectCurrentPageAgain(); } else if (!showPage((IPreferenceNode) data)) { // Page flipping wasn't successful showPageFlippingAbortDialog(); selectCurrentPageAgain(); } else { // Everything went well currentTreeItem = (TreeItem) event.item; } // Keep focus in tree. See bugs 2692, 2621, and 6775. tree.setFocus(); } } }); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/15c9e41b785818b84c42cba3259622d8138d9995/PreferenceDialog.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
3604,
7416,
12,
6385,
12977,
1133,
871,
13,
288,
9506,
202,
29289,
13140,
18,
4500,
15151,
12,
3413,
18,
588,
4236,
9334,
394,
10254,
1435,
288,
6862,
202,
482,
918,
1086,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
3604,
7416,
12,
6385,
12977,
1133,
871,
13,
288,
9506,
202,
29289,
13140,
18,
4500,
15151,
12,
3413,
18,
588,
4236,
9334,
394,
10254,
1435,
288,
6862,
202,
482,
918,
1086,... |
text.setFont(font); | public void createControl(Composite parent) { Font font = parent.getFont(); Composite composite = new Composite(parent, SWT.NULL); composite.setLayout(new GridLayout()); composite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL)); setControl(composite); PlatformUI.getWorkbench().getHelpSystem().setHelp(composite, IIDEHelpContextIds.WORKING_SET_RESOURCE_PAGE); Label label = new Label(composite, SWT.WRAP); label.setText(IDEWorkbenchMessages.ResourceWorkingSetPage_message); GridData data = new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER); label.setLayoutData(data); label.setFont(font); text = new Text(composite, SWT.SINGLE | SWT.BORDER); text.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL)); text.setFont(font); text.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { validateInput(); } }); text.setFocus(); text.setBackground(FieldAssistColors.getRequiredFieldBackgroundColor(text)); label = new Label(composite, SWT.WRAP); label.setText(IDEWorkbenchMessages.ResourceWorkingSetPage_label_tree); data = new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER); label.setLayoutData(data); label.setFont(font); tree = new CheckboxTreeViewer(composite); tree.setUseHashlookup(true); final ITreeContentProvider treeContentProvider = new WorkbenchContentProvider(); tree.setContentProvider(treeContentProvider); tree.setLabelProvider(new DecoratingLabelProvider( new WorkbenchLabelProvider(), IDEWorkbenchPlugin.getDefault() .getWorkbench().getDecoratorManager() .getLabelDecorator())); tree.setInput(IDEWorkbenchPlugin.getPluginWorkspace().getRoot()); tree.setSorter(new ResourceSorter(ResourceSorter.NAME)); data = new GridData(GridData.FILL_BOTH | GridData.GRAB_VERTICAL); data.heightHint = SIZING_SELECTION_WIDGET_HEIGHT; data.widthHint = SIZING_SELECTION_WIDGET_WIDTH; tree.getControl().setLayoutData(data); tree.getControl().setFont(font); tree.addCheckStateListener(new ICheckStateListener() { public void checkStateChanged(CheckStateChangedEvent event) { handleCheckStateChange(event); } }); tree.addTreeListener(new ITreeViewerListener() { public void treeCollapsed(TreeExpansionEvent event) { } public void treeExpanded(TreeExpansionEvent event) { final Object element = event.getElement(); if (tree.getGrayed(element) == false) { BusyIndicator.showWhile(getShell().getDisplay(), new Runnable() { public void run() { setSubtreeChecked((IContainer) element, tree.getChecked(element), false); } }); } } }); // Add select / deselect all buttons for bug 46669 Composite buttonComposite = new Composite(composite, SWT.NONE); buttonComposite.setLayout(new GridLayout(2, false)); buttonComposite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL)); Button selectAllButton = new Button(buttonComposite, SWT.PUSH); selectAllButton.setText(IDEWorkbenchMessages.ResourceWorkingSetPage_selectAll_label); selectAllButton.setToolTipText(IDEWorkbenchMessages.ResourceWorkingSetPage_selectAll_toolTip); selectAllButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent selectionEvent) { tree.setCheckedElements(treeContentProvider.getElements(tree.getInput())); validateInput(); } }); selectAllButton.setFont(font); setButtonLayoutData(selectAllButton); Button deselectAllButton = new Button(buttonComposite, SWT.PUSH); deselectAllButton.setText(IDEWorkbenchMessages.ResourceWorkingSetPage_deselectAll_label); deselectAllButton.setToolTipText(IDEWorkbenchMessages.ResourceWorkingSetPage_deselectAll_toolTip); deselectAllButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent selectionEvent) { tree.setCheckedElements(new Object[0]); validateInput(); } }); deselectAllButton.setFont(font); setButtonLayoutData(deselectAllButton); initializeCheckedState(); if (workingSet != null) { text.setText(workingSet.getName()); } setPageComplete(false); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/a0d24374fa989b241b43a0fdb846df0624ab7054/ResourceWorkingSetPage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceWorkingSetPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
752,
3367,
12,
9400,
982,
13,
288,
3639,
10063,
3512,
273,
982,
18,
588,
5711,
5621,
3639,
14728,
9635,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
8560,
1769,
3639,
9635,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
3367,
12,
9400,
982,
13,
288,
3639,
10063,
3512,
273,
982,
18,
588,
5711,
5621,
3639,
14728,
9635,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
8560,
1769,
3639,
9635,
... | |
if(m_accumulator != null) { m_accumulator.closeInput(); } if(m_msg != null) { m_msg.dispose(); } else { m_accumulator.dispose(); } m_accumulator = null; m_msg = null; | public void handleResponse(Response resp, Session.SmtpResponseActions actions) { m_txLog.receivedResponse(resp); m_txLog.add("Response to DATA command was " + resp.getCode()); //Save this in a variable, so we can pass it along //later (if not positive) m_dataResp = resp.getCode(); actions.enableClientTokens(); if(resp.getCode() < 400) { m_txLog.add("Begin trickle with BeginMIMEToken"); actions.sendBeginMIMEToServer(new BeginMIMEToken(m_headers, m_mimeSource, m_headersLengthInSource, m_msgInfo)); changeState(m_nextState); } else { //TODO bscott Nuke the MIME file actions.sendCommandToServer(new Command(Command.CommandType.RSET), new NoopResponseCompletion()); changeState(BufTxState.PASSTHRU_PENDING_NACK); } } | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/31d3347b6dd58a4c864fd32c045c7727f7b399ea/BufferingSessionHandler.java/buggy/tran/mail/main/com/metavize/tran/mail/papi/smtp/sapi/BufferingSessionHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
309,
12,
81,
67,
8981,
18514,
480,
446,
13,
288,
312,
67,
8981,
18514,
18,
4412,
1210,
5621,
289,
309,
12,
81,
67,
3576,
480,
446,
13,
288,
312,
67,
3576,
18,
2251,
4150,
5621,
289,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
309,
12,
81,
67,
8981,
18514,
480,
446,
13,
288,
312,
67,
8981,
18514,
18,
4412,
1210,
5621,
289,
309,
12,
81,
67,
3576,
480,
446,
13,
288,
312,
67,
3576,
18,
2251,
4150,
5621,
289,
... | |
packageDeclaration.setSourceRange(importReference.declarationSourceStart, importReference.declarationSourceEnd - importReference.declarationSourceStart + 1); | packageDeclaration.setSourceRange(importReference.declarationSourceStart, importReference.declarationEnd - importReference.declarationSourceStart + 1); | public PackageDeclaration convertPackage(ImportReference importReference) { PackageDeclaration packageDeclaration = this.ast.newPackageDeclaration(); this.ast.getBindingResolver().store(packageDeclaration, importReference); // set the name (qualified or simple name is handled by newName(String[])) char[][] tokens = importReference.tokens; int length = importReference.tokens.length; String[] identifiers = new String[length]; for (int index = 0; index < length; index++) { identifiers[index] = new String(tokens[index]); } Name packageName = this.ast.newName(identifiers); // set the positions of each name subpart long[] positions = importReference.sourcePositions; packageName.setSourceRange((int)(positions[0]>>>32), (int)(positions[length - 1] & 0xFFFFFFFF) - (int)(positions[0]>>>32) + 1); // create the actual package declaration packageDeclaration.setName(packageName); packageDeclaration.setSourceRange(importReference.declarationSourceStart, importReference.declarationSourceEnd - importReference.declarationSourceStart + 1); return packageDeclaration; } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/64dc9dc143f648f63c2998f7d684fab052c282d9/ASTConverter.java/clean/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
7508,
6094,
1765,
2261,
12,
5010,
2404,
1930,
2404,
13,
288,
202,
202,
2261,
6094,
2181,
6094,
273,
333,
18,
689,
18,
2704,
2261,
6094,
5621,
202,
202,
2211,
18,
689,
18,
588,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
7508,
6094,
1765,
2261,
12,
5010,
2404,
1930,
2404,
13,
288,
202,
202,
2261,
6094,
2181,
6094,
273,
333,
18,
689,
18,
2704,
2261,
6094,
5621,
202,
202,
2211,
18,
689,
18,
588,... |
modifyPartition(PARTITION.getValue(cmdLine), api, bs); | modifyPartition(PARTITION.getValue(cmdLine), api, bs, current); | public static void main(String[] args) throws SyntaxErrorException { ParsedArguments cmdLine = HELP_INFO.parse(args); DeviceManager dm; try { dm = InitialNaming.lookup(DeviceManager.NAME); boolean isAction = PARAM_ACTION.isSet(cmdLine); boolean isInitMBR = PARAM_INITMBR.isSet(cmdLine); boolean isDevice = PARAM_DEVICE.isSet(cmdLine); // no parameters if (!isDevice) { listAvailableDevice(dm); return; } // only device is set if (!isAction && !isInitMBR && isDevice) { printTable(ARG_DEVICE.getValue(cmdLine), dm); return; } // initMBR if (isInitMBR) { initMbr(ARG_DEVICE.getValue(cmdLine), dm); return; } // now it is a change on a specific partition so read the table IDEDevice current = (IDEDevice)dm.getDevice(ARG_DEVICE.getValue(cmdLine)); BlockDeviceAPI api = current.getAPI(BlockDeviceAPI.class); ByteBuffer mbr = ByteBuffer.allocate(IDEConstants.SECTOR_SIZE); api.read(0, mbr); if (!IBMPartitionTable.containsPartitionTable(mbr.array())) throw new IOException("This device doesn't contain a valid MBR, use --initmbr."); BootSector bs = new BootSector(mbr.array()); if (ACTION.getValue(cmdLine).intern() == "-m") { modifyPartition(PARTITION.getValue(cmdLine), api, bs); bs.write(api); return; } // it is not a modify so the PARTITION parameter is only a partition // number int partNumber; try { partNumber = Integer.parseInt(PARTITION.getValue(cmdLine)); } catch (NumberFormatException f) { throw new IllegalArgumentException("Partition number is invalid"); } if (partNumber > 3 || partNumber < 0) throw new IllegalArgumentException("Partition number is invalid"); if (ACTION.getValue(cmdLine).intern() == "-d") { deletePartition(bs, partNumber); bs.write(api); return; } if (ACTION.getValue(cmdLine).intern() == "-b") { toggleBootable(bs, partNumber); bs.write(api); } } catch (IOException e) { e.printStackTrace(); } catch (NameNotFoundException e) { e.printStackTrace(); } catch (ApiNotFoundException e) { e.printStackTrace(); } catch (DeviceNotFoundException e) { e.printStackTrace(); } } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/bd7240be654ad7f1fda3ff7a6ea4fbce2c6ba9b2/FdiskCommand.java/buggy/fs/src/fs/org/jnode/partitions/command/FdiskCommand.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
11517,
10009,
288,
202,
202,
11257,
4628,
1797,
1670,
273,
22557,
52,
67,
5923,
18,
2670,
12,
1968,
1769,
202,
202,
3654,
1318,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
11517,
10009,
288,
202,
202,
11257,
4628,
1797,
1670,
273,
22557,
52,
67,
5923,
18,
2670,
12,
1968,
1769,
202,
202,
3654,
1318,
9... |
return new File(settingsLocation, "chainsaw.xml"); | return new File(settingsLocation, "chainsaw.settings.xml"); | private File getApplicationPreferenceXMLFile(File settingsLocation) { return new File(settingsLocation, "chainsaw.xml"); } | 47730 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47730/5fbf12dd8b26c3134050dad9f6125108830ae887/ApplicationPreferenceModelSaver.java/clean/src/java/org/apache/log4j/chainsaw/ApplicationPreferenceModelSaver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1387,
9615,
9624,
4201,
812,
12,
812,
1947,
2735,
13,
288,
3639,
327,
394,
1387,
12,
4272,
2735,
16,
315,
23060,
2219,
18,
4272,
18,
2902,
8863,
565,
289,
2,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1387,
9615,
9624,
4201,
812,
12,
812,
1947,
2735,
13,
288,
3639,
327,
394,
1387,
12,
4272,
2735,
16,
315,
23060,
2219,
18,
4272,
18,
2902,
8863,
565,
289,
2,
-100,
-100,
-100,
-10... |
Composite buttonComposite = new Composite(composite, SWT.NONE); GridLayout buttonLayout = new GridLayout(); buttonLayout.marginWidth = 0; buttonComposite.setLayout(buttonLayout); selectAllButton = createButton( buttonComposite, SELECT_ALL_ID, MarkerMessages.filtersDialog_selectAll, false); deselectAllButton = createButton( buttonComposite, DESELECT_ALL_ID, MarkerMessages.filtersDialog_deselectAll, false); } | Tree tree = new Tree(composite, SWT.CHECK | SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI | SWT.FULL_SELECTION | SWT.BORDER); tree.setLinesVisible(true); tree.setHeaderVisible(false); TableLayout tableLayout = new TableLayout(); tree.setLayout(tableLayout); tableLayout.addColumnData(new ColumnWeightData(100, true)); new TreeColumn(tree, SWT.NONE, 0); typesViewer = new CheckboxTreeViewer(tree); GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, true); gridData.widthHint = convertVerticalDLUsToPixels(100); gridData.heightHint = convertVerticalDLUsToPixels(200); typesContentProvider = getTypesContentProvider(); typesViewer.getControl().setLayoutData(gridData); typesViewer.setContentProvider(typesContentProvider); typesViewer.setLabelProvider(getLabelProvider()); typesViewer.setSorter(getSorter()); typesViewer.addCheckStateListener(new ICheckStateListener() { public void checkStateChanged(CheckStateChangedEvent event) { markDirty(); Object element = event.getElement(); boolean checked = event.getChecked(); setChildrenChecked(element, checked); setParentCheckState(element, checked); } }); typesViewer.setInput(getSelectedFilter().getRootTypes().toArray()); Composite buttonComposite = new Composite(composite, SWT.NONE); GridLayout buttonLayout = new GridLayout(); buttonLayout.marginWidth = 0; buttonComposite.setLayout(buttonLayout); selectAllButton = createButton(buttonComposite, SELECT_ALL_ID, MarkerMessages.filtersDialog_selectAll, false); deselectAllButton = createButton(buttonComposite, DESELECT_ALL_ID, MarkerMessages.filtersDialog_deselectAll, false); } | protected void createTypesArea(Composite parent) { Font font = parent.getFont(); Composite composite = new Composite(parent, SWT.NONE); composite.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true)); GridLayout layout = new GridLayout(); composite.setLayout(layout); Label label = new Label(composite, SWT.NONE); label.setText(MarkerMessages.filtersDialog_showItemsOfType); label.setFont(font); Table table = new Table(composite, SWT.CHECK | SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI | SWT.FULL_SELECTION | SWT.BORDER); table.setLinesVisible(true); table.setHeaderVisible(false); TableLayout tableLayout = new TableLayout(); table.setLayout(tableLayout); tableLayout.addColumnData(new ColumnWeightData(100, true)); new TableColumn(table, SWT.NONE, 0); typesViewer = new CheckboxTableViewer(table); GridData gridData = new GridData(SWT.FILL,SWT.FILL,true,true); gridData.widthHint = convertVerticalDLUsToPixels(100); gridData.heightHint = convertVerticalDLUsToPixels(200); typesViewer.getTable().setFont(font); typesViewer.getControl().setLayoutData(gridData); typesViewer.setContentProvider(getContentProvider()); typesViewer.setLabelProvider(getLabelProvider()); typesViewer.setSorter(getSorter()); typesViewer.addCheckStateListener(new ICheckStateListener(){ public void checkStateChanged(CheckStateChangedEvent event) { markDirty(); } }); typesViewer.setInput(getSelectedFilter().getRootTypes().toArray()); Composite buttonComposite = new Composite(composite, SWT.NONE); GridLayout buttonLayout = new GridLayout(); buttonLayout.marginWidth = 0; buttonComposite.setLayout(buttonLayout); selectAllButton = createButton( buttonComposite, SELECT_ALL_ID, MarkerMessages.filtersDialog_selectAll, false); deselectAllButton = createButton( buttonComposite, DESELECT_ALL_ID, MarkerMessages.filtersDialog_deselectAll, false); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/c08a91512d1b5534132c133486d2efd84191df7d/DialogMarkerFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogMarkerFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
752,
2016,
5484,
12,
9400,
982,
13,
288,
3639,
10063,
3512,
273,
982,
18,
588,
5711,
5621,
3639,
14728,
9635,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
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,
4750,
918,
752,
2016,
5484,
12,
9400,
982,
13,
288,
3639,
10063,
3512,
273,
982,
18,
588,
5711,
5621,
3639,
14728,
9635,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
3639,
... |
if ( itemUsed.getItemID() == UneffectRequest.REMEDY.getItemID() ) | if ( itemUsed.getItemId() == UneffectRequest.REMEDY.getItemId() ) | public boolean useOnce( int currentIteration, int totalIterations, String useTypeAsString ) { lastUpdate = ""; if ( itemUsed.getItemID() == UneffectRequest.REMEDY.getItemID() ) { DEFAULT_SHELL.executeLine( "uneffect beaten up" ); return true; } if ( consumptionType == CONSUME_ZAP ) { StaticEntity.getClient().makeZapRequest(); return true; } if ( consumptionType == CONSUME_DRINK && StaticEntity.getClient() instanceof KoLmafiaGUI ) { if ( !allowBoozeConsumption( TradeableItemDatabase.getInebriety( itemUsed.getItemID() ) ) ) return false; } // Check to make sure the character has the item in their // inventory first - if not, report the error message and // return from the method. if ( !AdventureDatabase.retrieveItem( itemUsed ) ) { lastUpdate = "Insufficient items to use."; return false; } if ( totalIterations == 1 ) KoLmafia.updateDisplay( useTypeAsString + " " + getItemUsed().toString() + "..." ); else KoLmafia.updateDisplay( useTypeAsString + " " + getItemUsed().getName() + " (" + currentIteration + " of " + totalIterations + ")..." ); super.run(); return true; } | 50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/db652071b06715a4456f702f081fbe5b47aa5a70/ConsumeItemRequest.java/buggy/src/net/sourceforge/kolmafia/ConsumeItemRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
999,
12212,
12,
509,
783,
10795,
16,
509,
2078,
21213,
16,
514,
999,
559,
8092,
262,
202,
95,
202,
202,
2722,
1891,
273,
1408,
31,
202,
202,
430,
261,
761,
6668,
18,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
999,
12212,
12,
509,
783,
10795,
16,
509,
2078,
21213,
16,
514,
999,
559,
8092,
262,
202,
95,
202,
202,
2722,
1891,
273,
1408,
31,
202,
202,
430,
261,
761,
6668,
18,
5... |
throws NotImplementedException | public void stateChanged(ChangeEvent event) throws NotImplementedException { // TODO: What should be done here, if anything? } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
919,
5033,
12,
20930,
871,
13,
540,
288,
1377,
368,
2660,
30,
18734,
1410,
506,
2731,
2674,
16,
309,
6967,
35,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
919,
5033,
12,
20930,
871,
13,
540,
288,
1377,
368,
2660,
30,
18734,
1410,
506,
2731,
2674,
16,
309,
6967,
35,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
super("Type", String.class, true); } | super("Type", String.class, true); } | ColumnType() { super("Type", String.class, true); //MClassifier.type? } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/ColumnDescriptor.java/clean/src_new/org/argouml/uml/ColumnDescriptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
31680,
1435,
288,
565,
2240,
2932,
559,
3113,
514,
18,
1106,
16,
638,
1769,
225,
368,
49,
13860,
18,
723,
35,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
31680,
1435,
288,
565,
2240,
2932,
559,
3113,
514,
18,
1106,
16,
638,
1769,
225,
368,
49,
13860,
18,
723,
35,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
IWorkbenchWindow window = null; | public void testSaveRestoreWindowState() { final String advisorStateData = Long.toString(System.currentTimeMillis()); // launch workbench and save some state data WorkbenchAdvisorObserver wa = new WorkbenchAdvisorObserver(1) { IWorkbenchWindow window = null; public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) { return new WorkbenchWindowAdvisor(configurer) { public IStatus saveState(IMemento memento) { assertNotNull(memento); memento.putString(WINDOW_ADVISOR_STATE_KEY, advisorStateData); return super.saveState(memento); } }; } public void initialize(IWorkbenchConfigurer c) { super.initialize(c); c.setSaveAndRestore(true); } public void eventLoopIdle(Display d) { workbenchConfig.getWorkbench().restart(); } }; int code = PlatformUI.createAndRunWorkbench(display, wa); assertEquals(PlatformUI.RETURN_RESTART, code); assertFalse(display.isDisposed()); display.dispose(); assertTrue(display.isDisposed()); // restore the workbench and check for state data display = PlatformUI.createDisplay(); WorkbenchAdvisorObserver wa2 = new WorkbenchAdvisorObserver(1) { public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) { return new WorkbenchWindowAdvisor(configurer) { public IStatus restoreState(IMemento memento) { assertNotNull(memento); String stateData = memento.getString(WINDOW_ADVISOR_STATE_KEY); assertNotNull(stateData); assertTrue(advisorStateData.equals(stateData)); return super.restoreState(memento); } }; } public void initialize(IWorkbenchConfigurer c) { super.initialize(c); c.setSaveAndRestore(true); } }; int code2 = PlatformUI.createAndRunWorkbench(display, wa2); assertEquals(PlatformUI.RETURN_OK, code2); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/7946b6460d44217ceadf6c1b4e0462e195d53d80/WorkbenchSaveRestoreStateTest.java/buggy/tests/org.eclipse.ui.tests.rcp/Eclipse RCP Tests/org/eclipse/ui/tests/rcp/WorkbenchSaveRestoreStateTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
4755,
10874,
3829,
1119,
1435,
288,
202,
202,
6385,
514,
1261,
10227,
1119,
751,
273,
3407,
18,
10492,
12,
3163,
18,
2972,
28512,
10663,
9506,
202,
759,
8037,
1440,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
4755,
10874,
3829,
1119,
1435,
288,
202,
202,
6385,
514,
1261,
10227,
1119,
751,
273,
3407,
18,
10492,
12,
3163,
18,
2972,
28512,
10663,
9506,
202,
759,
8037,
1440,
2... | |
BugReport bug = BugParser.parseBug(in, id, repository.getUrl(), !repository.getVersion().equals( BugzillaServerVersion.SERVER_216.toString()), repository.getUserName(), repository | BugReport bugReport = BugParser.parseBug(in, id, repository.getUrl(), !repository.getVersion() .equals(BugzillaServerVersion.SERVER_216.toString()), repository.getUserName(), repository | public static BugReport getBug(String repositoryUrl, int id) throws IOException, MalformedURLException, LoginException { BufferedReader in = null; try { // create a new input stream for getting the bug TaskRepository repository = MylarTaskListPlugin.getRepositoryManager().getRepository( BugzillaPlugin.REPOSITORY_KIND, repositoryUrl); if (repository == null) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { MessageDialog.openInformation(Display.getDefault().getActiveShell(), IBugzillaConstants.TITLE_MESSAGE_DIALOG, TaskRepositoryManager.MESSAGE_NO_REPOSITORY); } }); return null; } String url = repositoryUrl + POST_ARGS_SHOW_BUG + id; if (repository.hasCredentials()) { url += "&" + POST_ARGS_LOGIN + URLEncoder.encode(repository.getUserName(), BugzillaPlugin.ENCODING_UTF_8) + POST_ARGS_PASSWORD + URLEncoder.encode(repository.getPassword(), BugzillaPlugin.ENCODING_UTF_8); } URL bugUrl = new URL(url); URLConnection connection = BugzillaPlugin.getDefault().getUrlConnection(bugUrl); if (connection != null) { InputStream input = connection.getInputStream(); if (input != null) { in = new BufferedReader(new InputStreamReader(input)); // get the actual bug fron the server and return it BugReport bug = BugParser.parseBug(in, id, repository.getUrl(), !repository.getVersion().equals( BugzillaServerVersion.SERVER_216.toString()), repository.getUserName(), repository .getPassword(), connection.getContentType()); return bug; } } // TODO handle the error return null; } catch (MalformedURLException e) { throw e; } catch (IOException e) { throw e; } catch (LoginException e) { throw e; } catch (Exception e) { BugzillaPlugin.log(new Status(IStatus.ERROR, IBugzillaConstants.PLUGIN_ID, IStatus.ERROR, "Problem getting report", e)); return null; } finally { try { if (in != null) in.close(); } catch (IOException e) { BugzillaPlugin.log(new Status(IStatus.ERROR, IBugzillaConstants.PLUGIN_ID, IStatus.ERROR, "Problem closing the stream", e)); } } } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/f1139ff3ef8fb300ddb7165093efb198f93dc7f2/BugzillaRepositoryUtil.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
16907,
4820,
2882,
637,
12,
780,
3352,
1489,
16,
509,
612,
13,
1216,
1860,
16,
20710,
16,
1082,
202,
5358,
503,
288,
202,
202,
17947,
2514,
316,
273,
446,
31,
202,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
16907,
4820,
2882,
637,
12,
780,
3352,
1489,
16,
509,
612,
13,
1216,
1860,
16,
20710,
16,
1082,
202,
5358,
503,
288,
202,
202,
17947,
2514,
316,
273,
446,
31,
202,
202,
... |
throws net.sourceforge.jtds.jdbc.TdsException, java.io.IOException { | throws TdsException, java.io.IOException { | public synchronized boolean isResultSet() throws net.sourceforge.jtds.jdbc.TdsException, java.io.IOException { byte type = comm.peek(); /* * XXX to support 5.0 we need to expand our view of what a result * set is. */ return type == TDS_COL_NAME_TOKEN || type == TDS_COLMETADATA; } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/36d7d34eb620f32e386322a293eaf58cf253a3a6/Tds.java/buggy/src/main/net/sourceforge/jtds/jdbc/Tds.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
1250,
353,
13198,
1435,
2398,
1216,
2901,
18,
3168,
1884,
908,
18,
78,
88,
2377,
18,
24687,
18,
56,
2377,
503,
16,
2252,
18,
1594,
18,
14106,
565,
288,
3639,
1160,
618,
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,
3852,
1250,
353,
13198,
1435,
2398,
1216,
2901,
18,
3168,
1884,
908,
18,
78,
88,
2377,
18,
24687,
18,
56,
2377,
503,
16,
2252,
18,
1594,
18,
14106,
565,
288,
3639,
1160,
618,
273,... |
null, "setStyle"); | null, "setStyleExpr"); | public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[26]; try { result[0] = new PropertyDescriptor("accesskey", ELButtonTag.class, null, "setAccesskey"); result[1] = new PropertyDescriptor("alt", ELButtonTag.class, null, "setAlt"); result[2] = new PropertyDescriptor("altKey", ELButtonTag.class, null, "setAltKey"); // This attribute has a non-standard mapping. result[3] = new PropertyDescriptor("disabled", ELButtonTag.class, null, "setDisabledExpr"); // This attribute has a non-standard mapping. result[4] = new PropertyDescriptor("indexed", ELButtonTag.class, null, "setIndexedExpr"); result[5] = new PropertyDescriptor("onblur", ELButtonTag.class, null, "setOnblur"); result[6] = new PropertyDescriptor("onchange", ELButtonTag.class, null, "setOnchange"); result[7] = new PropertyDescriptor("onclick", ELButtonTag.class, null, "setOnclick"); result[8] = new PropertyDescriptor("ondblclick", ELButtonTag.class, null, "setOndblclick"); result[9] = new PropertyDescriptor("onfocus", ELButtonTag.class, null, "setOnfocus"); result[10] = new PropertyDescriptor("onkeydown", ELButtonTag.class, null, "setOnkeydown"); result[11] = new PropertyDescriptor("onkeypress", ELButtonTag.class, null, "setOnkeypress"); result[12] = new PropertyDescriptor("onkeyup", ELButtonTag.class, null, "setOnkeyup"); result[13] = new PropertyDescriptor("onmousedown", ELButtonTag.class, null, "setOnmousedown"); result[14] = new PropertyDescriptor("onmousemove", ELButtonTag.class, null, "setOnmousemove"); result[15] = new PropertyDescriptor("onmouseout", ELButtonTag.class, null, "setOnmouseout"); result[16] = new PropertyDescriptor("onmouseover", ELButtonTag.class, null, "setOnmouseover"); result[17] = new PropertyDescriptor("onmouseup", ELButtonTag.class, null, "setOnmouseup"); result[18] = new PropertyDescriptor("property", ELButtonTag.class, null, "setProperty"); result[19] = new PropertyDescriptor("style", ELButtonTag.class, null, "setStyle"); result[20] = new PropertyDescriptor("styleClass", ELButtonTag.class, null, "setStyleClass"); result[21] = new PropertyDescriptor("styleId", ELButtonTag.class, null, "setStyleId"); result[22] = new PropertyDescriptor("tabindex", ELButtonTag.class, null, "setTabindex"); result[23] = new PropertyDescriptor("title", ELButtonTag.class, null, "setTitle"); result[24] = new PropertyDescriptor("titleKey", ELButtonTag.class, null, "setTitleKey"); result[25] = new PropertyDescriptor("value", ELButtonTag.class, null, "setValue"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); } | 2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/db064e19656421b94aaf753550935d95f44bd5f9/ELButtonTagBeanInfo.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELButtonTagBeanInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
225,
26761,
8526,
3911,
12705,
1435,
565,
288,
3639,
26761,
8526,
225,
563,
282,
273,
394,
26761,
63,
5558,
15533,
3639,
775,
288,
5411,
563,
63,
20,
65,
273,
394,
26761,
2932,
3860... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
26761,
8526,
3911,
12705,
1435,
565,
288,
3639,
26761,
8526,
225,
563,
282,
273,
394,
26761,
63,
5558,
15533,
3639,
775,
288,
5411,
563,
63,
20,
65,
273,
394,
26761,
2932,
3860... |
results = compare(retEnv, tempPath); assertTrue(results); | compareXML(retEnv, tempPath); | public void testR2BaseEchoBase64() throws AxisFault { url = "http://soapinterop.roguewave.com:8013/interop2base/InteropRound2BaseTest"; soapAction = "http://soapinterop.org/"; util = new Round2EchoBase64ClientUtil(); retEnv = SunRound2Client.sendMsg(util, url, soapAction); tempPath = resFilePath + "RWBaseBase64Res.xml"; results = compare(retEnv, tempPath); assertTrue(results); } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/6295a3864398ed319578fb0b345f1adafef73782/RWRound2InteropTest.java/clean/modules/integration/itest/test/interop/whitemesa/round2/RWRound2InteropTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
54,
22,
2171,
19704,
2171,
1105,
1435,
1216,
15509,
7083,
225,
288,
3639,
880,
273,
315,
2505,
2207,
19215,
30376,
18,
303,
75,
344,
17838,
18,
832,
30,
28,
1611,
23,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
54,
22,
2171,
19704,
2171,
1105,
1435,
1216,
15509,
7083,
225,
288,
3639,
880,
273,
315,
2505,
2207,
19215,
30376,
18,
303,
75,
344,
17838,
18,
832,
30,
28,
1611,
23,
1... |
VM_Entrypoints.arrayIndexTrapParamField.getOffset(), | VM_Entrypoints.arrayIndexTrapParamField.getOffsetAsInt(), | private final void genBoundsCheck (VM_Assembler asm, byte indexReg, byte arrayRefReg ) { asm.emitCMP_RegDisp_Reg(arrayRefReg, VM_ObjectModel.getArrayLengthOffset(), indexReg); // compare index to array length VM_ForwardReference fr = asm.forwardJcc(asm.LGT); // Jmp around trap if index is OK // "pass" index param to C trap handler VM_ProcessorLocalState.emitMoveRegToField(asm, VM_Entrypoints.arrayIndexTrapParamField.getOffset(), indexReg); asm.emitINT_Imm(VM_Runtime.TRAP_ARRAY_BOUNDS + RVM_TRAP_BASE ); // trap fr.resolve(asm); } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/3a1409586ed0fc007c4120f3a96d6f7a1ae3593c/VM_Compiler.java/clean/rvm/src/vm/arch/intel/compilers/baseline/VM_Compiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
727,
918,
3157,
5694,
1564,
261,
7397,
67,
1463,
5747,
749,
20415,
16,
1160,
770,
1617,
16,
1160,
526,
1957,
1617,
262,
288,
377,
20415,
18,
18356,
39,
4566,
67,
1617,
1669,
84,
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,
282,
3238,
727,
918,
3157,
5694,
1564,
261,
7397,
67,
1463,
5747,
749,
20415,
16,
1160,
770,
1617,
16,
1160,
526,
1957,
1617,
262,
288,
377,
20415,
18,
18356,
39,
4566,
67,
1617,
1669,
84,
6... |
this.counters= PDEPlugin.getDefault().getDefaultNameCounters(); this.elementInfo = elementInfo; this.parent = parent; setText(getElementName()); setImageDescriptor(PDEPluginImages.DESC_GENERIC_XML_OBJ); IResource resource = parent.getModel().getUnderlyingResource(); if (resource!=null) project = resource.getProject(); setEnabled(parent.getModel().isEditable()); } | this.counters = PDEPlugin.getDefault().getDefaultNameCounters(); this.elementInfo = elementInfo; this.parent = parent; setText(getElementName()); setImageDescriptor(PDEPluginImages.DESC_GENERIC_XML_OBJ); IResource resource = parent.getModel().getUnderlyingResource(); if (resource != null) project = resource.getProject(); setEnabled(parent.getModel().isEditable()); } | public NewElementAction(ISchemaElement elementInfo, IPluginParent parent) { this.counters= PDEPlugin.getDefault().getDefaultNameCounters(); this.elementInfo = elementInfo; //this.project = project; this.parent = parent; setText(getElementName()); setImageDescriptor(PDEPluginImages.DESC_GENERIC_XML_OBJ); IResource resource = parent.getModel().getUnderlyingResource(); if (resource!=null) project = resource.getProject(); setEnabled(parent.getModel().isEditable());} | 14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/4aa18c30f80f43d1233827e5b28e9fed160bfa2a/NewElementAction.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/plugin/NewElementAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1166,
1046,
1803,
12,
45,
3078,
1046,
930,
966,
16,
467,
3773,
3054,
982,
13,
288,
202,
2211,
18,
23426,
33,
453,
1639,
3773,
18,
588,
1868,
7675,
588,
1868,
461,
18037,
5621,
202,
221... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1166,
1046,
1803,
12,
45,
3078,
1046,
930,
966,
16,
467,
3773,
3054,
982,
13,
288,
202,
2211,
18,
23426,
33,
453,
1639,
3773,
18,
588,
1868,
7675,
588,
1868,
461,
18037,
5621,
202,
221... |
java.lang.Class stateVertexCls = MStateVertex.class; java.lang.Class stateCls = MState.class; java.lang.Class compositieStateCls = MCompositeState.class; java.lang.Class pseudostateCls = MPseudostate.class; java.lang.Class transitionCls = MTransition.class; | java.lang.Class stateVertexCls = MStateVertex.class; java.lang.Class stateCls = MState.class; java.lang.Class compositieStateCls = MCompositeState.class; java.lang.Class pseudostateCls = MPseudostate.class; java.lang.Class transitionCls = MTransition.class; | public static void init() {// try { java.lang.Class modelCls = MModel.class; java.lang.Class packageCls = MPackage.class; java.lang.Class modelElementCls = MModelElement.class; java.lang.Class classCls = MClass.class; java.lang.Class classifierCls = MClassifier.class; java.lang.Class interfaceCls = MInterface.class; java.lang.Class attrCls = MAttribute.class; java.lang.Class paramCls = MParameter.class; java.lang.Class operCls = MOperation.class; java.lang.Class iassocCls = MAssociation.class; java.lang.Class assocCls = MAssociation.class; java.lang.Class assocEndCls = MAssociationEnd.class; java.lang.Class assocClassCls = MAssociationClass.class; java.lang.Class namespaceCls = MNamespace.class; java.lang.Class genElementCls = MGeneralizableElement.class; java.lang.Class genCls = MGeneralization.class; java.lang.Class datatypeCls = MDataType.class; java.lang.Class useCaseCls = MUseCase.class; java.lang.Class actorCls = MActor.class; java.lang.Class stateVertexCls = MStateVertex.class; java.lang.Class stateCls = MState.class; java.lang.Class compositieStateCls = MCompositeState.class; java.lang.Class pseudostateCls = MPseudostate.class; java.lang.Class transitionCls = MTransition.class; //java.lang.Class stateMachineCls = MStateMachine.class; java.lang.Class diagramCls = UMLDiagram.class; java.lang.Class classDiagramCls = UMLClassDiagram.class; java.lang.Class stateDiagramCls = UMLStateDiagram.class; java.lang.Class useCaseDiagramCls = UMLUseCaseDiagram.class; java.lang.Class deploymentDiagramCls = UMLDeploymentDiagram.class; java.lang.Class sequenceDiagramCls = UMLSequenceDiagram.class; java.lang.Class nodeCls = FigNodeModelElement.class; java.lang.Class edgeCls = FigEdgeModelElement.class; // TODO: Agency should allow registration by interface // useful for MAssociation. Agency.register(crAssocNameConflict, namespaceCls); Agency.register(crAttrNameConflict, classifierCls); Agency.register(crOperNameConflict, classifierCls); Agency.register(crCircularAssocClass, assocClassCls); Agency.register(crCircularInheritance, genElementCls); Agency.register(crCircularComposition, classCls); Agency.register(crClassMustBeAbstract, classCls); Agency.register(crCrossNamespaceAssoc, assocCls); // Jeremy Bennett fix Agency.register(crDupParamName, operCls); Agency.register(crDupRoleNames, assocCls); // Jeremy Bennett fix Agency.register(crFinalSubclassed, classCls); Agency.register(crFinalSubclassed, interfaceCls); Agency.register(crIllegalGeneralization, genCls); Agency.register(crAlreadyRealizes, classCls); Agency.register(crInterfaceAllPublic, interfaceCls); Agency.register(crInterfaceOperOnly, interfaceCls); //Agency.register(crMultiComposite, assocEndCls); Agency.register(crMultipleAgg, assocCls); Agency.register(crUnnavigableAssoc, assocCls); Agency.register(crNWayAgg, assocCls); Agency.register(crNavFromInterface, assocCls); //Agency.register(crNameConflict, namespaceCls); Agency.register(crNameConflictAC, assocClassCls); // Agency.register(crMissingClassName, classCls); // Agency.register(crMissingClassName, actorCls); // Agency.register(crMissingClassName, useCaseCls); Agency.register(clsNaming, classCls); Agency.register(clsNaming, actorCls); Agency.register(clsNaming, useCaseCls); // TODO: should be just CrMissingName with a // customized description Agency.register(crMissingClassName, modelCls); Agency.register(crMissingAttrName, attrCls); Agency.register(crMissingOperName, operCls); Agency.register(crMissingStateName, stateCls); Agency.register(crNoInstanceVariables, classCls); Agency.register(crNoAssociations, classCls); Agency.register(crNoAssociations, actorCls); Agency.register(crNoAssociations, useCaseCls); Agency.register(crNoOperations, classCls); Agency.register(crConstructorNeeded, classCls); Agency.register(crEmptyPackage, packageCls); Agency.register(crNonAggDataType, datatypeCls);// Agency.register(crOppEndConflict, classifierCls); Agency.register(crUselessAbstract, classCls); Agency.register(crUselessInterface, interfaceCls); Agency.register(crDisambigStateName, stateCls); Agency.register(crNameConfusion, classifierCls); Agency.register(crNameConfusion, stateCls); Agency.register(crMergeClasses, classCls); Agency.register(crSubclassReference, classCls); Agency.register(crIllegalName, classCls); Agency.register(crIllegalName, interfaceCls); Agency.register(crIllegalName, assocCls); Agency.register(crIllegalName, operCls); Agency.register(crIllegalName, attrCls); Agency.register(crIllegalName, paramCls); Agency.register(crIllegalName, stateCls); Agency.register(crReservedName, classifierCls); Agency.register(crReservedName, operCls); Agency.register(crReservedName, attrCls); Agency.register(crReservedName, stateCls); Agency.register(crReservedName, assocCls); Agency.register(crMultiInherit, classCls); Agency.register(crMultiRealization, interfaceCls); // Agency.register(crConflictingComposites, classifierCls); Agency.register(crTooManyAssoc, classCls); Agency.register(crTooManyAttr, classCls); Agency.register(crTooManyOper, classCls); Agency.register(crTooManyTransitions, stateVertexCls); Agency.register(crTooManyStates, compositieStateCls); Agency.register(crTooManyClasses, classDiagramCls); // Agency.register(crNoTransitions, stateVertexCls); // Agency.register(crNoIncomingTransitions, stateVertexCls); // Agency.register(crNoOutgoingTransitions, stateVertexCls); Agency.register(noTrans1, stateVertexCls); Agency.register(noTrans2, stateVertexCls); Agency.register(crMultipleInitialStates, pseudostateCls); Agency.register(crNoInitialState, compositieStateCls); Agency.register(crNoTriggerOrGuard, transitionCls); Agency.register(crInvalidJoin, pseudostateCls); Agency.register(crInvalidFork, pseudostateCls); Agency.register(crInvalidBranch, pseudostateCls); Agency.register(crNoGuard, transitionCls); Agency.register(crUnconventionalOperName, operCls); Agency.register(crUnconventionalAttrName, attrCls); Agency.register(crUnconventionalClassName, classCls); Agency.register(crUnconventionalPackName, packageCls); Agency.register(crConsiderSingleton, classCls); Agency.register(crSingletonViolatedMSA, classCls); Agency.register(crSingletonViolatedOPC, classCls); Agency.register(crNodeInsideElement, deploymentDiagramCls); Agency.register(crNodeInstanceInsideElement, deploymentDiagramCls); Agency.register(crComponentWithoutNode, deploymentDiagramCls); Agency.register(crCompInstanceWithoutNode, deploymentDiagramCls); Agency.register(crClassWithoutComponent, deploymentDiagramCls); Agency.register(crInterfaceWithoutComponent, deploymentDiagramCls); Agency.register(crObjectWithoutComponent, deploymentDiagramCls); Agency.register(crWrongLinkEnds, deploymentDiagramCls); Agency.register(crInstanceWithoutClassifier, deploymentDiagramCls); Agency.register(crCallWithoutReturn, sequenceDiagramCls); Agency.register(crReturnWithoutCall, sequenceDiagramCls); Agency.register(crLinkWithoutStimulus, sequenceDiagramCls); Agency.register(crSeqInstanceWithoutClassifier, sequenceDiagramCls); Agency.register(crStimulusWithWrongPosition, sequenceDiagramCls); Agency.register(crNodesOverlap, diagramCls); Agency.register(crZeroLengthEdge, edgeCls); Agency.register(crOppEndConflict, assocEndCls); Agency.register(new CrMultiComposite(), assocEndCls); Agency.register(new CrNameConflict(), namespaceCls); Agency.register(crAlreadyRealizes, classCls); Agency.register(new CrUtilityViolated(), classifierCls); Agency.register(new CrOppEndVsAttr(), classifierCls); // under testing // Agency.register(crConsiderFacade, packageCls); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/Init.java/buggy/src_new/org/argouml/uml/cognitive/critics/Init.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
1208,
1435,
288,
759,
377,
775,
288,
1377,
2252,
18,
4936,
18,
797,
938,
20822,
273,
490,
1488,
18,
1106,
31,
1377,
2252,
18,
4936,
18,
797,
2181,
20822,
273,
490,
2261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
1208,
1435,
288,
759,
377,
775,
288,
1377,
2252,
18,
4936,
18,
797,
938,
20822,
273,
490,
1488,
18,
1106,
31,
1377,
2252,
18,
4936,
18,
797,
2181,
20822,
273,
490,
2261,... |
PropertyFactory.getString("in_sumLevelWarnTitle"), JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE); | PropertyFactory.getString("in_sumLevelWarnTitle"), JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE); | private void addClass(PCClass theClass, int levels) { if (Globals.getGameModeAlignmentText().length() != 0) { if ((levels > 0) && (pc.getAlignment() == SettingsHandler.getGame().getIndexOfAlignment(Constants.s_NONE))) { ShowMessageDelegate.showMessageDialog(PropertyFactory.getString("in_sumYouMustSelectAnAlignmentBeforeAddingClasses"), Constants.s_APPNAME, //$NON-NLS-1$ MessageType.ERROR); return; } } if ((theClass == null) || !theClass.isQualified(pc)) { return; } if ((levels > 0) && !pc.canLevelUp()) { ShowMessageDelegate.showMessageDialog(PropertyFactory.getString("in_Enforce_rejectLevelUp"), Constants.s_APPNAME, MessageType.ERROR); return; } if ((levels > 1) && SettingsHandler.getEnforceSpendingBeforeLevelUp()) { ShowMessageDelegate.showMessageDialog(PropertyFactory.getString("in_Enforce_oneLevelOnly"), Constants.s_APPNAME, MessageType.INFORMATION); levels = 1; } final PCClass aClass = pc.getClassNamed(theClass.getName()); if (!Globals.checkRule(RuleConstants.LEVELCAP) //$NON-NLS-1$ && ((levels > theClass.getMaxLevel()) || ((aClass != null) && ((aClass.getLevel() + levels) > aClass.getMaxLevel())))) { ShowMessageDelegate.showMessageDialog(PropertyFactory.getString("in_sumMaximumLevelIs") + theClass.getMaxLevel(), Constants.s_APPNAME, MessageType.INFORMATION); return; } // Check with the user on their first level up if ((pc.getTotalLevels() == 0) && (levels > 0)) { if (SettingsHandler.getGame().isPurchaseStatMode() && (pc.getPointBuyPoints() > getUsedStatPool(pc))) { int proceed = JOptionPane.showConfirmDialog(this, PropertyFactory.getString("in_sumPoolWarning"), //$NON-NLS-1$ PropertyFactory.getString("in_sumLevelWarnTitle"), JOptionPane.YES_NO_OPTION, //$NON-NLS-1$ JOptionPane.WARNING_MESSAGE); if (proceed != JOptionPane.YES_OPTION) { return; } } else if (SettingsHandler.isShowWarningAtFirstLevelUp()) { final JCheckBox shouldDisplay = new JCheckBox(PropertyFactory.getString( "in_sumAbilitiesWarningCheckBox"), true); //$NON-NLS-1$ shouldDisplay.addItemListener(new ItemListener() { public void itemStateChanged(ItemEvent evt) { SettingsHandler.setShowWarningAtFirstLevelUp(shouldDisplay.isSelected()); } }); JPanel msgPanel = buildMessageLabelPanel(PropertyFactory.getString("in_sumAbilitiesWarning"), //$NON-NLS-1$ shouldDisplay); int proceed = JOptionPane.showConfirmDialog(this, msgPanel, PropertyFactory.getString("in_sumLevelWarnTitle"), JOptionPane.YES_NO_OPTION, //$NON-NLS-1$ JOptionPane.WARNING_MESSAGE); if (proceed != JOptionPane.YES_OPTION) { return; } } } pc.incrementClassLevel(levels, theClass); PCGen_Frame1.forceUpdate_PlayerTabs(); CharacterInfo pane = PCGen_Frame1.getCharacterPane(); pane.setPaneForUpdate(pane.infoClasses()); pane.setPaneForUpdate(pane.infoSkills()); pane.setPaneForUpdate(pane.infoFeats()); pane.setPaneForUpdate(pane.infoDomain()); pane.setPaneForUpdate(pane.infoSpells()); pane.setPaneForUpdate(pane.infoInventory()); pane.refresh(); infoSpecialAbilities.refresh(); pane.refreshToDosAsync(); statTable.invalidate(); statTable.updateUI(); setStatLabelText(); // // If we've just added the first non-monster level, // ask to choose free item of clothing if haven't already // if (levels > 0) { if (Globals.checkRule(RuleConstants.FREECLOTHES) && ((pc.totalNonMonsterLevels()) == 1)) //$NON-NLS-1$ { // // See what the PC is already carrying // List clothes = EquipmentList.getEquipmentOfType("Clothing.Resizable", "Magic"); //$NON-NLS-1$ //$NON-NLS-2$ // // Check to see if any of the clothing the PC // is carrying will actually fit and // has a zero price attached // boolean hasClothes = false; final String pcSize = pc.getSize(); if (clothes.size() != 0) { for (Iterator e = clothes.iterator(); e.hasNext();) { final Equipment eq = (Equipment) e.next(); if ((CoreUtility.doublesEqual(eq.getCost(pc).doubleValue(), 0.0)) && pcSize.equals(eq.getSize())) { hasClothes = true; break; } } } // // If the PC has no clothing items, or none that // are sized to fit, then allow them to pick // a free set // if (!hasClothes) { clothes = EquipmentList.getEquipmentOfType("Clothing.Resizable.Starting", "Magic.Custom.Auto_Gen"); if (clothes.isEmpty()) { clothes = EquipmentList.getEquipmentOfType("Clothing.Resizable", "Magic.Custom.Auto_Gen"); } List selectedClothes = new ArrayList(); Globals.chooseFromList(PropertyFactory.getString("in_sumSelectAFreeSetOfClothing"), clothes, selectedClothes, 1); //$NON-NLS-1$ if (selectedClothes.size() != 0) { String aString = (String) selectedClothes.get(0); Equipment eq = EquipmentList.getEquipmentNamed(aString); if (eq != null) { eq = (Equipment) eq.clone(); eq.setQty(new Float(1)); // // Need to resize to fit? // if (!pcSize.equals(eq.getSize())) { eq.resizeItem(pc, pcSize); } eq.setCostMod('-' + eq.getCost(pc).toString()); // make cost 0 if (pc.getEquipmentNamed(eq.nameItemFromModifiers(pc)) == null) { pc.addEquipment(eq); } else { Logging.errorPrint("Cannot add duplicate equipment to PC"); //$NON-NLS-1$ } } } } } } forceRefresh(); } | 48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/880820728893893baa5f845920662901c063e57e/InfoSummary.java/buggy/code/src/java/pcgen/gui/tabs/InfoSummary.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
9058,
12,
3513,
797,
326,
797,
16,
509,
7575,
13,
202,
95,
202,
202,
430,
261,
19834,
18,
588,
12496,
2309,
11535,
1528,
7675,
2469,
1435,
480,
374,
13,
202,
202,
95,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9058,
12,
3513,
797,
326,
797,
16,
509,
7575,
13,
202,
95,
202,
202,
430,
261,
19834,
18,
588,
12496,
2309,
11535,
1528,
7675,
2469,
1435,
480,
374,
13,
202,
202,
95,
... |
if (pd2 == 0) { | if (pd2 == 0) { | public static double ptLineDistSq(double x1, double y1, double x2, double y2, double px, double py) { double pd2 = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2); double x, y; if (pd2 == 0) { // Points are coincident. x = x1; y = y2; } else { double u = ((px - x1) * (x2 - x1) + (py - y1) * (y2 - y1)) / pd2; x = x1 + u * (x2 - x1); y = y1 + u * (y2 - y1); } return (x - px) * (x - px) + (y - py) * (y - py); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Line2D.java/buggy/core/src/classpath/java/java/awt/geom/Line2D.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1645,
5818,
1670,
5133,
19643,
12,
9056,
619,
21,
16,
1645,
677,
21,
16,
1645,
619,
22,
16,
1645,
677,
22,
16,
1645,
10318,
16,
1645,
2395,
13,
288,
202,
202,
9056,
486... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1645,
5818,
1670,
5133,
19643,
12,
9056,
619,
21,
16,
1645,
677,
21,
16,
1645,
619,
22,
16,
1645,
677,
22,
16,
1645,
10318,
16,
1645,
2395,
13,
288,
202,
202,
9056,
486... |
public void closeSession(Session sessionObject) { | public void closeSession(String sessionName) { | public void closeSession(Session sessionObject) { sessionObject.closeDown(); sessions.removeSession((Session)sessionObject); } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/379255347f37d0432228baaff23d41ccb4ad68bd/SessionManager.java/buggy/tn5250j/src/org/tn5250j/SessionManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
27578,
12,
780,
1339,
461,
13,
288,
1377,
1339,
921,
18,
4412,
4164,
5621,
1377,
8856,
18,
4479,
2157,
12443,
2157,
13,
3184,
921,
1769,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
27578,
12,
780,
1339,
461,
13,
288,
1377,
1339,
921,
18,
4412,
4164,
5621,
1377,
8856,
18,
4479,
2157,
12443,
2157,
13,
3184,
921,
1769,
282,
289,
2,
-100,
-100,
-100,
-100,
... |
private void logResults() { // // Log HTML // // m_htmlLogger.generateLog(); // // Log Text // for(Object o : getPassedTests()) { ITestResult tr = (ITestResult) o; logResult("PASSED", tr.getName(), tr.getMethod().getDescription(), null, tr.getParameters(), tr.getMethod().getMethod().getParameterTypes()); } for(Object o : getFailedTests()) { ITestResult tr = (ITestResult) o; Throwable ex = tr.getThrowable(); String stackTrace= ""; if (ex != null) { if (m_verbose >= 2) { stackTrace= Utils.stackTrace(ex, false)[0]; } } logResult("FAILED", tr.getName(), tr.getMethod().getDescription(), stackTrace, tr.getParameters(), tr.getMethod().getMethod().getParameterTypes()); } for(Object o : getSkippedTests()) { ITestResult tr = (ITestResult) o; logResult("SKIPPED", tr.getName(), tr.getMethod().getDescription(), null, tr.getParameters(), tr.getMethod().getMethod().getParameterTypes()); } ITestNGMethod[] ft = resultsToMethods(getFailedTests()); String stats = "\n===============================================\n" + " " + m_testName + "\n" + " Tests run: " + Utils.calculateInvokedMethodCount(getAllTestMethods()) + ", Failures: " + Utils.calculateInvokedMethodCount(ft) + ", Skips: " + Utils.calculateInvokedMethodCount(resultsToMethods(getSkippedTests())) + "\n===============================================\n"; logResult("", stats); } | 46166 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46166/8bc52d700df7d50690badd5de9ccd2e95da69081/TextReporter.java/buggy/src/main/org/testng/reporters/TextReporter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
613,
3447,
1435,
288,
565,
368,
565,
368,
1827,
3982,
565,
368,
565,
368,
565,
312,
67,
2620,
3328,
18,
7163,
1343,
5621,
565,
368,
565,
368,
1827,
3867,
565,
368,
565,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
613,
3447,
1435,
288,
565,
368,
565,
368,
1827,
3982,
565,
368,
565,
368,
565,
312,
67,
2620,
3328,
18,
7163,
1343,
5621,
565,
368,
565,
368,
1827,
3867,
565,
368,
565,
364,
... | ||
public org.quickfix.field.PartyID get(org.quickfix.field.PartyID value) | public quickfix.field.PartyID get(quickfix.field.PartyID value) | public org.quickfix.field.PartyID get(org.quickfix.field.PartyID value) throws FieldNotFound { getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderCancelReplaceRequest.java/buggy/src/java/src/quickfix/fix44/OrderCancelReplaceRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9549,
904,
18,
1518,
18,
17619,
734,
336,
12,
19525,
904,
18,
1518,
18,
17619,
734,
225,
460,
13,
565,
1216,
2286,
2768,
225,
288,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9549,
904,
18,
1518,
18,
17619,
734,
336,
12,
19525,
904,
18,
1518,
18,
17619,
734,
225,
460,
13,
565,
1216,
2286,
2768,
225,
288,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-1... |
private void executeCommand( String command, String parameters ) { // Insert random video game reference command to // start things off. if ( command.equals( "priphea" ) ) { if ( !KoLDesktop.instanceExists() ) { KoLDesktop.getInstance().initializeTabs(); KoLDesktop.getInstance().pack(); KoLDesktop.getInstance().setVisible( true ); } return; } // Maybe the person is trying to load a raw URL // to test something without creating a brand new // KoLRequest object to handle it yet? if ( command.indexOf( ".php" ) != -1 ) { KoLRequest desired = new KoLRequest( StaticEntity.getClient(), previousLine, true ); StaticEntity.getClient().makeRequest( desired ); StaticEntity.externalUpdate( desired.getURLString(), desired.responseText ); return; } // Maybe the person wants to load up their browser // from the KoLmafia CLI? if ( command.startsWith( "relay" ) || command.startsWith( "serve" ) ) { StaticEntity.getClient().startRelayServer(); return; } if ( command.startsWith( "chat" ) ) { KoLMessenger.initialize(); return; } // First, handle the wait command, for however // many seconds the user would like to wait. if ( command.equals( "wait" ) || command.equals( "pause" ) ) { int seconds = parameters.equals( "" ) ? 1 : StaticEntity.parseInt( parameters ); StaticEntity.executeCountdown( "Countdown: ", seconds ); updateDisplay( "Waiting completed." ); return; } // Preconditions kickass, so they're handled right // after the wait command. (Right) if ( command.equals( "conditions" ) || command.equals( "objectives" ) ) { executeConditionsCommand( parameters ); return; } // Handle the update command. This downloads stuff // from the KoLmafia sourceforge website, so it does // not require for you to be online. if ( command.equals( "update" ) ) { downloadAdventureOverride(); updateDisplay( "You will need to restart KoLmafia for the changes to take effect." ); return; } if ( command.equals( "abort" ) ) { updateDisplay( ABORT_STATE, parameters.length() == 0 ? "Script abort." : parameters ); return; } // Adding the requested echo command. I guess this is // useful for people who want to echo things... if ( command.equals( "echo" ) ) { if ( parameters.equalsIgnoreCase( "timestamp" ) ) updateDisplay( CalendarFrame.TODAY_FORMATTER.format( new Date() ) ); else if ( parameters.equalsIgnoreCase( "kol-date" ) ) updateDisplay( MoonPhaseDatabase.getCalendarDayAsString( new Date() ) ); else updateDisplay( parameters ); return; } // Adding another undocumented property setting command // so people can configure variables in scripts. if ( command.equals( "set" ) ) { int splitIndex = parameters.indexOf( "=" ); String name = parameters.substring( 0, splitIndex ).trim(); String value = parameters.substring( splitIndex + 1 ).trim(); if ( name.equals( "battleAction" ) ) { value = CombatSettings.getLongCombatOptionName( value ); int index = KoLCharacter.getBattleSkillIDs().indexOf( value ); if ( index == -1 ) { printLine( "Invalid value for combat option." ); return; } KoLCharacter.getBattleSkillIDs().setSelectedIndex( index ); KoLCharacter.getBattleSkillNames().setSelectedIndex( index ); } printLine( name + " => " + value ); StaticEntity.setProperty( name, value ); return; } else if ( command.equals( "get" ) ) { printLine( StaticEntity.getProperty( parameters ) ); return; } // Handle the if-statement and the while-statement. // The while-statement will not get a separate comment // because it is unloved. if ( command.equals( "if" ) ) { executeIfStatement( parameters ); return; } if ( command.equals( "while" ) ) { executeWhileStatement( parameters ); return; } // Next, handle any requests to login or relogin. // This will be done by calling a utility method. if ( command.equals( "login" ) || command.equals( "relogin" ) ) { String password = StaticEntity.getClient().getSaveState( parameters ); if ( password != null ) { if ( StaticEntity.getClient().getPasswordHash() != null ) { updateDisplay( "Logging out..." ); (new LogoutRequest( StaticEntity.getClient() )).run(); } // Remove all of the frames which may have been loaded; // this ensures a forced reload of the frame which will // keep the parameters fresh. KoLFrame [] frames = new KoLFrame[ existingFrames.size() ]; existingFrames.toArray( frames ); for ( int i = 0; i < frames.length; ++i ) if ( !(frames[i] instanceof LoginFrame) ) frames[i].dispose(); if ( KoLDesktop.instanceExists() ) KoLDesktop.getInstance().setVisible( false ); StaticEntity.getClient().deinitialize(); (new LoginRequest( StaticEntity.getClient(), parameters, password )).run(); } else updateDisplay( ERROR_STATE, "No password saved for that username." ); return; } // Next, handle any requests that request exiting. // Note that a logout request should be sent in // order to be friendlier to the server, if the // character has already logged in. if ( command.equals( "exit" ) || command.equals( "quit" ) || command.equals( "logout" ) ) { updateDisplay( "Logging out..." ); StaticEntity.closeSession(); updateDisplay( "Exiting KoLmafia..." ); System.exit(0); } // Next, handle any requests for script execution; // these can be done at any time (including before // login), so they should be handled before a test // of login state needed for other commands. if ( command.equals( "verify" ) || command.equals( "validate" ) || command.equals( "call" ) || command.equals( "run" ) || command.startsWith( "exec" ) || command.equals( "load" ) || command.equals( "start" ) ) { executeScriptCommand( parameters ); return; } // Next, handle repeat commands - these are a // carry-over feature which made sense in CLI. if ( command.equals( "repeat" ) ) { if ( previousLine != null ) { int repeatCount = parameters.length() == 0 ? 1 : StaticEntity.parseInt( parameters ); for ( int i = 0; i < repeatCount && permitsContinue(); ++i ) executeLine( previousLine ); } return; } // Next, print out the moon phase, if the user // wishes to know what moon phase it is. if ( command.startsWith( "moon" ) ) { updateDisplay( "Ronald: " + MoonPhaseDatabase.getRonaldPhaseAsString() ); updateDisplay( "Grimace: " + MoonPhaseDatabase.getGrimacePhaseAsString() ); printBlankLine(); updateDisplay( MoonPhaseDatabase.getMoonEffect() ); printBlankLine(); Date today = new Date(); try { today = DATED_FILENAME_FORMAT.parse( DATED_FILENAME_FORMAT.format( today ) ); } catch ( Exception e ) { // This should not happen. Therefore, print // a stack trace for debug purposes. StaticEntity.printStackTrace( e ); return; } String [] holidayPredictions = MoonPhaseDatabase.getHolidayPredictions( today ); for ( int i = 0; i < holidayPredictions.length; ++i ) updateDisplay( holidayPredictions[i] ); printBlankLine(); updateDisplay( MoonPhaseDatabase.getHoliday( today ) ); printBlankLine(); return; } // Next, handle requests to start or stop // debug mode. if ( command.startsWith( "debug" ) ) { if ( parameters.startsWith( "on" ) ) openDebugStream(); else if ( parameters.startsWith( "off" ) ) closeDebugStream(); else { updateDisplay( ERROR_STATE, parameters + " is not a valid option." ); } return; } // Next, handle requests to start or stop // the mirror stream. if ( command.indexOf( "mirror" ) != -1 ) { if ( command.indexOf( "end" ) != -1 || command.indexOf( "stop" ) != -1 || command.indexOf( "close" ) != -1 || parameters.length() == 0 || parameters.equals( "end" ) || parameters.equals( "stop" ) || parameters.equals( "close" ) ) { mirrorStream.close(); mirrorStream = NullStream.INSTANCE; updateDisplay( "Mirror stream closed." ); } else { File outputFile = new File( parameters ); outputFile = new File( outputFile.getAbsolutePath() ); // If the output file does not exist, create it first // to avoid FileNotFoundExceptions being thrown. try { if ( !outputFile.exists() ) { outputFile.getParentFile().mkdirs(); outputFile.createNewFile(); } mirrorStream = new PrintStream( new FileOutputStream( outputFile, true ), true ); } catch ( IOException e ) { // This should not happen. Therefore, print // a stack trace for debug purposes. StaticEntity.printStackTrace( e, "Error opening file <" + parameters + ">" ); return; } } return; } // Then, the description lookup command so that // people can see what the description is for a // particular item. if ( command.equals( "lookup" ) ) { AdventureResult result = getFirstMatchingItem( parameters ); if ( result == null ) return; KoLRequest request = new KoLRequest( StaticEntity.getClient(), "desc_item.php?whichitem=" + TradeableItemDatabase.getDescriptionID( result.getItemID() ) ); request.run(); if ( StaticEntity.getClient() instanceof KoLmafiaGUI ) { Object [] params = new Object[2]; params[0] = StaticEntity.getClient(); params[1] = request; (new CreateFrameRunnable( RequestFrame.class, params )).run(); } else { showHTML( request.responseText, "Item Description" ); } return; } if ( command.equals( "survival" ) || command.equals( "getdata" ) ) { showHTML( AdventureDatabase.getAreaCombatData( AdventureDatabase.getAdventure( parameters ).toString() ).toString(), "Survival Lookup" ); return; } // Re-adding the breakfast command, just // so people can add it in scripting. if ( command.equals( "breakfast" ) ) { getBreakfast( false ); return; } if ( parameters.endsWith( "refresh" ) ) { parameters = command; command = "refresh"; } if ( command.equals( "refresh" ) ) { parameters = parameters.toLowerCase(); if ( parameters.equalsIgnoreCase( "all" ) ) StaticEntity.getClient().refreshSession(); else if ( parameters.startsWith( "status" ) || parameters.startsWith( "effects" ) ) (new CharsheetRequest( StaticEntity.getClient() )).run(); else if ( parameters.startsWith( "gear" ) || parameters.startsWith( "equipment" ) || parameters.startsWith( "outfit" ) ) (new EquipmentRequest( StaticEntity.getClient(), EquipmentRequest.EQUIPMENT )).run(); else if ( parameters.startsWith( "inv" ) ) (new EquipmentRequest( StaticEntity.getClient(), EquipmentRequest.CLOSET )).run(); else if ( parameters.startsWith( "storage" ) ) (new ItemStorageRequest( StaticEntity.getClient() )).run(); else if ( parameters.startsWith( "familiar" ) || parameters.startsWith( "terrarium" ) ) (new FamiliarRequest( StaticEntity.getClient() )).run(); return; } // Look! It's the command to complete the // Sorceress entryway. if ( command.equals( "entryway" ) ) { SorceressLair.completeCloveredEntryway(); return; } // Look! It's the command to complete the // Sorceress hedge maze! This is placed // right after for consistency. if ( command.equals( "maze" ) || command.equals( "hedgemaze" ) ) { SorceressLair.completeHedgeMaze(); return; } // Look! It's the command to fight the guardians // in the Sorceress's tower! This is placed // right after for consistency. if ( command.equals( "tower" ) || command.equals( "guardians" ) ) { SorceressLair.fightTowerGuardians(); return; } // Look! It's the command to complete the Sorceress's // Chamber! This is placed right after for consistency. if ( command.equals( "chamber" ) ) { SorceressLair.completeSorceressChamber(); return; } // Next is the command to rob the strange leaflet. // This method invokes the "robStrangeLeaflet" method // on the script requestor. if ( command.equals( "leaflet" ) ) { StrangeLeaflet.robStrangeLeaflet( !parameters.equals( "nomagic" ) ); return; } // Next is the command to face your nemesis. This // method invokes the "faceNemesis" method on the // script requestor. if ( command.equals( "nemesis" ) ) { Nemesis.faceNemesis(); return; } if ( command.equals( "guild" ) ) { StaticEntity.getClient().unlockGuildStore(); return; } if ( command.equals( "gourd" ) ) { StaticEntity.getClient().tradeGourdItems(); return; } if ( command.equals( "tavern" ) ) { StaticEntity.getClient().locateTavernFaucet(); return; } // Next is the command to train your current familiar if ( command.equals( "train" ) ) { trainFamiliar( parameters ); return; } // Next is the command to visit the council. // This prints data to the command line. if ( command.equals( "council" ) ) { KoLRequest request = new KoLRequest( StaticEntity.getClient(), "council.php", true ); request.run(); showHTML( request.responseText, "Council quests" ); return; } // Campground activities are fairly common, so // they will be listed first after the above. if ( command.equals( "campground" ) ) { executeCampgroundRequest( parameters ); return; } // Buffs are pretty neat, too - for now, it's // just casts on self if ( command.equals( "cast" ) || command.equals( "skill" ) ) { if ( parameters.length() > 0 ) { executeCastBuffRequest( parameters ); return; } } // Uneffect with martians are related to buffs, // so listing them next seems logical. if ( command.equals( "uneffect" ) || command.equals( "remedy" ) ) { makeUneffectRequest(); return; } // Add in item retrieval the way KoLmafia handles // it internally. if ( command.equals( "retrieve" ) || command.equals( "acquire" ) ) { String oldSetting = StaticEntity.getProperty( "autoSatisfyChecks" ); StaticEntity.setProperty( "autoSatisfyChecks", "true" ); // Handle lucky and unlucky retrieval of // worthless items via the sewer. if ( parameters.indexOf( "worthless item" ) != -1 ) { int itemCount = 1; if ( !parameters.equals( "worthless item" ) ) itemCount = StaticEntity.parseInt( parameters.substring( 0, parameters.indexOf( " " ) ) ); while ( KoLCharacter.getAdventuresLeft() > 0 && HermitRequest.getWorthlessItemCount() < itemCount && permitsContinue() ) executeLine( "buy 1 chewing gum on a string; adventure Unlucky Sewer" ); if ( HermitRequest.getWorthlessItemCount() < itemCount ) { updateDisplay( ERROR_STATE, "Unable to acquire worthless item." ); return; } } else if ( parameters.equals( "worthless item with clover" ) && HermitRequest.getWorthlessItemCount() == 0 ) { if ( KoLCharacter.getAdventuresLeft() > 0 ) { AdventureDatabase.retrieveItem( SewerRequest.CLOVER.getInstance(1) ); executeLine( "buy 1 chewing gum on a string; adventure Sewer With Clovers" ); } else { updateDisplay( ERROR_STATE, "Unable to acquire a worthless item." ); return; } } // Non-worthless-item requests default to // internal retrieveItem calls. else if ( !parameters.startsWith( "worthless item" ) ) { AdventureResult item = getFirstMatchingItem( parameters ); if ( item != null ) AdventureDatabase.retrieveItem( item ); } StaticEntity.setProperty( "autoSatisfyChecks", oldSetting ); return; } // Adding clan management command options inline // in the parsing. if ( command.equals( "clan" ) ) { if ( parameters.equals( "snapshot" ) ) ClanManager.takeSnapshot( 20, 10, 5, 0, false ); else if ( parameters.equals( "stashlog" ) ) ClanManager.saveStashLog(); return; } // One command available after login is a request // to print the current state of the StaticEntity.getClient(). This // should be handled in a separate method, since // there are many things the StaticEntity.getClient() may want to print if ( command.equals( "print" ) || command.equals( "list" ) || command.equals( "show" ) ) { executePrintCommand( parameters ); return; } // One command is an item usage request. These // requests are complicated, so delegate to the // appropriate utility method. if ( command.equals( "eat" ) || command.equals( "drink" ) || command.equals( "use" ) ) { executeConsumeItemRequest( parameters ); return; } // Zapping with wands is a type of item usage if ( command.equals( "zap" ) ) { makeZapRequest(); return; } // Smashing is a type of item usage if ( command.equals( "smash" ) || command.equals( "pulverize" ) ) { makePulverizeRequest(); return; } // Another item-related command is a creation // request. Again, complicated request, so // delegate to the appropriate utility method. if ( command.equals( "create" ) || command.equals( "make" ) || command.equals( "bake" ) || command.equals( "mix" ) || command.equals( "smith" ) || command.equals( "tinker" ) ) { executeItemCreationRequest( parameters ); return; } // Another item-related command is an untinker // request. Again, complicated request, so // delegate to the appropriate utility method. if ( command.equals( "untinker" ) ) { makeUntinkerRequest(); return; } // Another item-related command is the autosell // request. This one's simple, but it still // gets its own utility method. if ( command.equals( "mallsell" ) || command.equals( "automall" ) ) { executeAutoMallRequest( parameters ); return; } // Yay for more item-related commands. This // one is the one that allows you to place // things into your clan stash. if ( command.equals( "stash" ) ) { executeStashRequest( parameters ); return; } // Another w00t for more item-related commands. // This one is the one that allows you to pull // things from storage. if ( command.equals( "hagnk" ) ) { executeHagnkRequest( parameters ); return; } // Another item-related command is the autosell // request. This one's simple, but it still // gets its own utility method. if ( command.equals( "sell" ) || command.equals( "autosell" ) ) { executeAutoSellRequest( parameters ); return; } if ( command.equals( "reprice" ) || command.equals( "undercut" ) ) { StaticEntity.getClient().priceItemsAtLowestPrice(); return; } // Setting the Canadian mind control machine if ( command.equals( "mind-control" ) || command.equals( "mcd" ) ) { makeMindControlRequest(); return; } // Commands to manipulate the mushroom plot if ( command.equals( "field" ) ) { executeMushroomCommand( parameters ); return; } // One of the largest commands is adventuring, // which (as usual) gets its own module. if ( command.equals( "adventure" ) ) { executeAdventureRequest( parameters ); return; } // Donations get their own command and module, // too, which handles hero donations and basic // clan donations. if ( command.equals( "donate" ) ) { executeDonateCommand( parameters ); return; } // Another popular command involves changing // a specific piece of equipment. if ( command.startsWith( "equip" ) || command.startsWith( "wear" ) || command.startsWith( "wield" ) ) { executeEquipCommand( parameters ); return; } // You can remove a specific piece of equipment. if ( command.startsWith( "unequip" ) || command.startsWith( "remove" ) ) { executeUnequipCommand( parameters ); return; } // Another popular command involves changing // your current familiar. if ( command.startsWith( "familiar" ) ) { if ( parameters.startsWith( "list" ) ) { executePrintCommand( "familiars " + parameters.substring(4).trim() ); return; } else if ( parameters.length() == 0 ) { executePrintCommand( "familiars" ); return; } else if ( parameters.equalsIgnoreCase( "none" ) || parameters.equalsIgnoreCase( "unequip" ) ) { StaticEntity.getClient().makeRequest( new FamiliarRequest( StaticEntity.getClient(), FamiliarData.NO_FAMILIAR ) ); return; } else if ( parameters.indexOf( "(no change)" ) != -1 ) return; String lowerCaseName = parameters.toLowerCase(); List familiars = KoLCharacter.getFamiliarList(); for ( int i = 0; i < familiars.size(); ++i ) { if ( familiars.get(i).toString().toLowerCase().indexOf( lowerCaseName ) != -1 ) { StaticEntity.getClient().makeRequest( new FamiliarRequest( StaticEntity.getClient(), (FamiliarData) familiars.get(i) ) ); return; } } updateDisplay( ERROR_STATE, "You don't have that familiar." ); return; } // Another popular command involves managing // your player's closet! Which can be fun. if ( command.startsWith( "closet" ) ) { if ( parameters.startsWith( "list" ) ) { executePrintCommand( "closet " + parameters.substring(4).trim() ); return; } else if ( parameters.length() == 0 ) { executePrintCommand( "closet" ); return; } executeClosetManageRequest( parameters ); return; } // More commands -- this time to put stuff into // your display case (or remove them). if ( command.equals( "display" ) ) { executeDisplayCaseRequest( parameters ); return; } // Yet another popular command involves changing // your outfit. if ( command.startsWith( "outfit" ) ) { if ( parameters.startsWith( "list" ) ) { executePrintCommand( "outfits " + parameters.substring(4).trim() ); return; } else if ( parameters.length() == 0 ) { executePrintCommand( "outfits" ); return; } else if ( parameters.equalsIgnoreCase( "checkpoint" ) ) { SpecialOutfit.restoreCheckpoint(); return; } executeChangeOutfitCommand( parameters ); if ( permitsContinue() ) executePrintCommand( "equip" ); return; } // Another command involves saving the current // gear into the KoLmafia checkpoint outfit. if ( command.equals( "checkpoint" ) ) { SpecialOutfit.createCheckpoint(); return; } // Purchases from the mall are really popular, // as far as scripts go. Nobody is sure why, // but they're popular, so they're implemented. if ( command.equals( "buy" ) || command.equals( "mallbuy" ) ) { executeBuyCommand( parameters ); return; } // The BuffBot may never get called from the CLI, // but we'll include it here for completeness sake if ( command.equals( "buffbot" )) { executeBuffBotCommand( parameters ); return; } // If you just want to see what's in the mall, // then execute a search from here. if ( command.equals( "searchmall" ) ) { List results = new ArrayList(); int desiredLimit = 0; if ( parameters.indexOf( "with limit" ) != -1 ) { String [] splitup = parameters.split( "with limit" ); parameters = splitup[0]; desiredLimit = StaticEntity.parseInt( parameters ); } StoreManager.searchMall( parameters, results, desiredLimit, true ); printList( results ); return; } if ( command.equals( "hermit" ) ) { makeHermitRequest(); return; } if ( command.equals( "trapper" ) ) { makeTrapperRequest(); return; } if ( command.equals( "hunter" ) ) { makeHunterRequest(); return; } if ( command.equals( "galaktik" ) ) { makeGalaktikRequest(); return; } if ( command.equals( "restaurant" ) ) { makeRestaurantRequest(); return; } if ( command.equals( "microbrewery" ) ) { makeMicrobreweryRequest(); return; } // Campground commands, like retrieving toast, relaxing // at the beanbag, resting at your house/tent, and visiting // the evil golden arches. if ( command.equals( "toast" ) || command.equals( "rest" ) || command.equals( "relax" ) || command.equals( "arches" ) ) { executeCampgroundRequest( command + " " + parameters ); return; } // Because it makes sense to add this command as-is, // you now have the ability to request buffs. if ( command.equals( "send" ) || command.equals( "kmail" ) ) { executeSendRequest( parameters ); return; } // Finally, handle command abbreviations - in // other words, commands that look like they're // their own commands, but are actually commands // which are derived from other commands. if ( command.equals( "cast" ) || command.equals( "skill" ) ) command = "skills"; if ( command.startsWith( "inv" ) || command.equals( "closet" ) || command.equals( "session" ) || command.equals( "summary" ) || command.equals( "effects" ) || command.startsWith( "status" ) || command.equals( "encounters" ) || command.equals( "skills" ) ) { executePrintCommand( command + " " + parameters ); return; } // If all else fails, then assume that the // person was trying to call a script. executeScriptCommand( previousLine ); } | 50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/e36dfeb875511336123cfe6b0a0dd935df1edaa4/KoLmafiaCLI.java/buggy/src/net/sourceforge/kolmafia/KoLmafiaCLI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
21120,
12,
514,
1296,
16,
514,
1472,
262,
202,
95,
202,
202,
759,
8040,
2744,
6191,
7920,
2114,
1296,
358,
202,
202,
759,
787,
9198,
3397,
18,
202,
202,
430,
261,
1296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
21120,
12,
514,
1296,
16,
514,
1472,
262,
202,
95,
202,
202,
759,
8040,
2744,
6191,
7920,
2114,
1296,
358,
202,
202,
759,
787,
9198,
3397,
18,
202,
202,
430,
261,
1296,
... | ||
private final List getOverridableChannelParams(String selectedChannelSubscribeId) throws PortalException { | private final List getOverridableChannelParams(String channelPublishId) throws PortalException { | private final List getOverridableChannelParams(String selectedChannelSubscribeId) throws PortalException { Document channelRegistry = ChannelRegistryManager.getChannelRegistry(staticData.getPerson()); Element channel = (Element)channelRegistry.getElementById(selectedChannelSubscribeId); List overridableParams = null; if (channel != null) { overridableParams = new ArrayList(); NodeList params = channel.getElementsByTagName("parameter"); for (int i = 0; i < params.getLength(); i++) { Element param = (Element)params.item(i); String override = param.getAttribute("override"); if (override != null && override.equals("yes")) overridableParams.add(param); } } else { throw new PortalException("Channel " + selectedChannelSubscribeId + " is missing from the channel registry"); } return overridableParams; } | 24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/04fa336ca3b6636b51b7b14793ea792b7d7681cc/TabColumnPrefsState.java/clean/source/org/jasig/portal/channels/UserPreferences/TabColumnPrefsState.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
727,
987,
17971,
1107,
27621,
2909,
1370,
12,
780,
1904,
6024,
548,
13,
1216,
25478,
503,
288,
565,
4319,
1904,
4243,
273,
5307,
4243,
1318,
18,
588,
2909,
4243,
12,
3845,
751,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
727,
987,
17971,
1107,
27621,
2909,
1370,
12,
780,
1904,
6024,
548,
13,
1216,
25478,
503,
288,
565,
4319,
1904,
4243,
273,
5307,
4243,
1318,
18,
588,
2909,
4243,
12,
3845,
751,
18,
... |
.setValue( Messages.getString( "BarChart.Txt.DefaultBarChartTitle" ) ); | .setValue( CHART_TITLE ); | public Chart getModel( String sSubType, Orientation orientation, String sDimension, Chart currentChart ) { ChartWithAxes newChart = null; if ( currentChart != null ) { newChart = (ChartWithAxes) getConvertedChart( currentChart, sSubType, orientation, sDimension ); if ( newChart != null ) { return newChart; } } newChart = ChartWithAxesImpl.create( ); newChart.setType( TYPE_LITERAL ); newChart.setSubType( sSubType ); newChart.setOrientation( orientation ); newChart.setDimension( getDimensionFor( sDimension ) ); newChart.setUnits( "Points" ); //$NON-NLS-1$ ( (Axis) newChart.getAxes( ).get( 0 ) ).setOrientation( Orientation.HORIZONTAL_LITERAL ); ( (Axis) newChart.getAxes( ).get( 0 ) ).setType( AxisType.TEXT_LITERAL ); ( (Axis) newChart.getAxes( ).get( 0 ) ).setCategoryAxis( true ); SeriesDefinition sdX = SeriesDefinitionImpl.create( ); Series categorySeries = SeriesImpl.create( ); sdX.getSeries( ).add( categorySeries ); sdX.getSeriesPalette( ).update( 0 ); ( (Axis) newChart.getAxes( ).get( 0 ) ).getSeriesDefinitions( ) .add( sdX ); newChart.getTitle( ) .getLabel( ) .getCaption( ) .setValue( Messages.getString( "BarChart.Txt.DefaultBarChartTitle" ) ); //$NON-NLS-1$ if ( sSubType.equalsIgnoreCase( "Stacked" ) ) //$NON-NLS-1$ { ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setOrientation( Orientation.VERTICAL_LITERAL ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setType( AxisType.LINEAR_LITERAL ); SeriesDefinition sdY = SeriesDefinitionImpl.create( ); sdY.getSeriesPalette( ).update( 0 ); Series valueSeries = BarSeriesImpl.create( ); valueSeries.getLabel( ).setVisible( true ); valueSeries.setStacked( true ); sdY.getSeries( ).add( valueSeries ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).getSeriesDefinitions( ).add( sdY ); } else if ( sSubType.equalsIgnoreCase( "Percent Stacked" ) ) //$NON-NLS-1$ { ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setOrientation( Orientation.VERTICAL_LITERAL ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setType( AxisType.LINEAR_LITERAL ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setPercent( true ); SeriesDefinition sdY = SeriesDefinitionImpl.create( ); sdY.getSeriesPalette( ).update( 0 ); Series valueSeries = BarSeriesImpl.create( ); valueSeries.getLabel( ).setVisible( true ); valueSeries.setStacked( true ); ( (BarSeries) valueSeries ).setStacked( true ); sdY.getSeries( ).add( valueSeries ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).getSeriesDefinitions( ).add( sdY ); } else if ( sSubType.equalsIgnoreCase( "Side-by-side" ) ) //$NON-NLS-1$ { ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setOrientation( Orientation.VERTICAL_LITERAL ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setType( AxisType.LINEAR_LITERAL ); SeriesDefinition sdY = SeriesDefinitionImpl.create( ); sdY.getSeriesPalette( ).update( 0 ); Series valueSeries = BarSeriesImpl.create( ); valueSeries.getLabel( ).setVisible( true ); ( (BarSeries) valueSeries ).setStacked( false ); sdY.getSeries( ).add( valueSeries ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).getSeriesDefinitions( ).add( sdY ); } if ( sDimension.equals( THREE_DIMENSION_TYPE ) ) { newChart.setRotation( Rotation3DImpl.create( new Angle3D[]{ Angle3DImpl.create( -20, 45, 0 ) } ) ); newChart.setUnitSpacing( 50 ); newChart.getPrimaryBaseAxes( )[0].getAncillaryAxes( ).clear( ); Axis zAxisAncillary = AxisImpl.create( Axis.ANCILLARY_BASE ); zAxisAncillary.setTitlePosition( Position.BELOW_LITERAL ); zAxisAncillary.getTitle( ) .getCaption( ) .setValue( Messages.getString( "ChartWithAxesImpl.Z_Axis.title" ) ); //$NON-NLS-1$ zAxisAncillary.getTitle( ).setVisible( true ); zAxisAncillary.setPrimaryAxis( true ); zAxisAncillary.setLabelPosition( Position.BELOW_LITERAL ); zAxisAncillary.setOrientation( Orientation.HORIZONTAL_LITERAL ); zAxisAncillary.getOrigin( ).setType( IntersectionType.MIN_LITERAL ); zAxisAncillary.getOrigin( ) .setValue( NumberDataElementImpl.create( 0 ) ); zAxisAncillary.getTitle( ).setVisible( false ); zAxisAncillary.setType( AxisType.TEXT_LITERAL ); newChart.getPrimaryBaseAxes( )[0].getAncillaryAxes( ) .add( zAxisAncillary ); newChart.getPrimaryOrthogonalAxis( newChart.getPrimaryBaseAxes( )[0] ) .getTitle( ) .getCaption( ) .getFont( ) .setRotation( 0 ); SeriesDefinition sdZ = SeriesDefinitionImpl.create( ); sdZ.getSeriesPalette( ).update( 0 ); sdZ.getSeries( ).add( SeriesImpl.create( ) ); zAxisAncillary.getSeriesDefinitions( ).add( sdZ ); } addSampleData( newChart ); return newChart; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/ac920ea679ba06b1537b46d64cf48370b5c8b941/BarChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/BarChart.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,
1190,
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,
1190,
26494,
394,
7984,
273,
446,
31... |
if (jj_3R_63()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_64()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | if (jj_scan_token(28)) jj_scanpos = xsp; if (jj_3R_63()) return true; | final private boolean jj_3_31() { Token xsp; xsp = jj_scanpos; if (jj_3R_63()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_64()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(IDENTIFIER)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/d42ce7980bc2030e88ae13be5cf1b864eee291da/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
67,
6938,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
4449,
10756,
10684... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
6938,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
4449,
10756,
10684... |
if (msgs != null) msgs.dispatch(); | if (msgs != null) msgs.dispatch(); | public void setGrouping(SeriesGrouping newGrouping) { if (newGrouping != grouping) { NotificationChain msgs = null; if (grouping != null) msgs = ((InternalEObject)grouping).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DataPackage.SERIES_DEFINITION__GROUPING, null, msgs); if (newGrouping != null) msgs = ((InternalEObject)newGrouping).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DataPackage.SERIES_DEFINITION__GROUPING, null, msgs); msgs = basicSetGrouping(newGrouping, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DataPackage.SERIES_DEFINITION__GROUPING, newGrouping, newGrouping)); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/SeriesDefinitionImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/data/impl/SeriesDefinitionImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
21014,
12,
6485,
21014,
394,
21014,
13,
565,
288,
3639,
309,
261,
2704,
21014,
480,
12116,
13,
3639,
288,
5411,
27050,
8733,
273,
446,
31,
5411,
309,
261,
25592,
480,
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,
918,
444,
21014,
12,
6485,
21014,
394,
21014,
13,
565,
288,
3639,
309,
261,
2704,
21014,
480,
12116,
13,
3639,
288,
5411,
27050,
8733,
273,
446,
31,
5411,
309,
261,
25592,
480,
446,... |
if (keyMap.isKeyStrokeDefined(action + ".alt2")) { ks = keyMap.getKeyStroke(action + ".alt2"); | if (KeyMapper.isKeyStrokeDefined(action + ".alt2")) { ks = KeyMapper.getKeyStroke(action + ".alt2"); | protected void setKeyStroke(String action, KeyStroke ks, KeyMapper keyMap) { if (keyMap.isKeyStrokeDefined(action)) {// ks = KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP,KeyEvent.ALT_MASK);// }// else { ks = keyMap.getKeyStroke(action); } session.getInputMap().put(ks,action); session.getActionMap().put(action, this ); // check for alternate if (keyMap.isKeyStrokeDefined(action + ".alt2")) { ks = keyMap.getKeyStroke(action + ".alt2"); session.getInputMap().put(ks,action); session.getActionMap().put(action,this ); } } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/07f06b4067597c92fa853238df838b4d56dbcf8c/EmulatorAction.java/buggy/tn5250j/src/org/tn5250j/keyboard/actions/EmulatorAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
918,
16696,
14602,
12,
780,
1301,
16,
1929,
14602,
11654,
16,
1929,
4597,
498,
863,
13,
288,
1377,
309,
261,
856,
863,
18,
291,
653,
14602,
8116,
12,
1128,
3719,
288,
759,
540,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4750,
918,
16696,
14602,
12,
780,
1301,
16,
1929,
14602,
11654,
16,
1929,
4597,
498,
863,
13,
288,
1377,
309,
261,
856,
863,
18,
291,
653,
14602,
8116,
12,
1128,
3719,
288,
759,
540,
11... |
public void encodeBegin(FacesContext context, UIComponent component) throws IOException { if (!component.isRendered()) { return; } ResponseWriter writer = context.getResponseWriter(); String jsfId = (String) RendererUtil.getAttribute(context, component, "id"); String id = jsfId; if (component.getId() != null && !component.getId().startsWith(UIViewRoot.UNIQUE_ID_PREFIX)) { id = component.getClientId(context); } String title = (String) RendererUtil.getAttribute(context, component, "title"); Object tmpFoldStr = RendererUtil.getAttribute(context, component, "hideByDefault"); boolean foldDiv = tmpFoldStr != null && tmpFoldStr.equals("true"); String foldImage = foldDiv ? FOLD_IMG_HIDE : FOLD_IMG_SHOW; writer.write("<" + BARTAG + " class=\"" + BARSTYLE + "\">"); writer.write("<table style=\"width: 100%;\">"); writer.write("<tr><td class=\"breadCrumb\">"); writer.write(" <img id=\"" + id + "__img_hide_division_" + "\" alt=\"" + title + "\"" + " onclick=\"javascript:showHideDivBlock('" + id + "', '" + RESOURCE_PATH + "');\""); writer.write(" src=\"" + foldImage + "\" style=\"" + CURSOR + "\" />"); writer.write(" " + title); writer.write("</td><td> </td>"); writer.write("<td style=\"text-align: right;\">"); List childrenList = component.getChildren(); for(int i=0; i<childrenList.size(); i++) { UIComponent thisComponent = (UIComponent)childrenList.get(i); if(thisComponent instanceof org.sakaiproject.tool.messageforums.jsf.BarLinkComponent ||thisComponent instanceof HtmlOutputText) { thisComponent.encodeBegin(context); thisComponent.encodeChildren(context); thisComponent.encodeEnd(context); } } writer.write("</td></tr></table>"); writer.write("</"+ BARTAG + ">"); if(foldDiv) { writer.write("<div style=\"display:none\" " + " id=\"" + id + "__hide_division_" + "\">"); } else { writer.write("<div style=\"display:block\" " + " id=\"" + id + "__hide_division_" + "\">"); } } | 48936 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48936/fc91195c1ce33a403779bce9ef86b5159493e172/HideDivisionRenderer.java/clean/messageforums-app/src/java/org/sakaiproject/tool/messageforums/jsf/HideDivisionRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2017,
8149,
12,
17268,
1042,
819,
16,
18907,
1794,
13,
225,
1216,
1860,
288,
3639,
309,
16051,
4652,
18,
291,
19222,
10756,
288,
1377,
327,
31,
565,
289,
3639,
7846,
2633,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2017,
8149,
12,
17268,
1042,
819,
16,
18907,
1794,
13,
225,
1216,
1860,
288,
3639,
309,
16051,
4652,
18,
291,
19222,
10756,
288,
1377,
327,
31,
565,
289,
3639,
7846,
2633,
273,... | ||
else if(kind == CompletionKind.FUNCTION_REFERENCE){ | else if(kind == CompletionKind.FUNCTION_REFERENCE || kind == CompletionKind.CONSTRUCTOR_REFERENCE ){ | public IASTCompletionNode complete(IWorkingCopy sourceUnit, int completionOffset) { log(""); //$NON-NLS-1$ long startTime = System.currentTimeMillis(); // 1- Parse the translation unit IASTCompletionNode completionNode = parse(sourceUnit, completionOffset); if (completionNode == null){ log("Null Completion Node Error"); //$NON-NLS-1$ return null; } log ("Offset = " + completionOffset); //$NON-NLS-1$ logNode("Scope = " , completionNode.getCompletionScope()); //$NON-NLS-1$ logNode("Context = " , completionNode.getCompletionContext()); //$NON-NLS-1$ logKind("Kind = " , completionNode.getCompletionKind()); //$NON-NLS-1$ log ("Prefix = " + completionNode.getCompletionPrefix()); //$NON-NLS-1$ if (completionNode.getCompletionScope() == null){ log("Null Completion Scope Error"); //$NON-NLS-1$ return null; } if(completionNode.getCompletionKind() == CompletionKind.NO_SUCH_KIND){ log("Invalid Completion Kind Error"); //$NON-NLS-1$ return null; } // set the completionStart and the completionLength completionOrigin = completionOffset; completionStart = completionOffset - completionNode.getCompletionPrefix().length(); completionLength = completionNode.getCompletionPrefix().length(); CompletionKind kind = completionNode.getCompletionKind(); // 2- Check the return value if(kind == CompletionKind.MEMBER_REFERENCE){ // completionOnMemberReference completionOnMemberReference(completionNode); } else if(kind == CompletionKind.FIELD_TYPE){ if (completionNode.getCompletionContext() == null){ // CompletionOnFieldType completionOnFieldType(completionNode); }else { completionOnScopedReference(completionNode); } } else if(kind == CompletionKind.VARIABLE_TYPE) { if (completionNode.getCompletionContext() != null){ // CompletionOnVariableType completionOnVariableType(completionNode); }else { completionOnTypeReference( completionNode ); } } else if(kind == CompletionKind.ARGUMENT_TYPE){ // CompletionOnArgumentType completionOnTypeReference(completionNode); } else if(kind == CompletionKind.SINGLE_NAME_REFERENCE){ if (completionNode.getCompletionContext() == null){ // CompletionOnSingleNameReference completionOnSingleNameReference(completionNode); }else { completionOnScopedReference(completionNode); } } else if(kind == CompletionKind.TYPE_REFERENCE){ // CompletionOnTypeReference completionOnTypeReference(completionNode); } else if(kind == CompletionKind.CLASS_REFERENCE){ // CompletionOnClassReference completionOnClassReference(completionNode); } else if(kind == CompletionKind.NAMESPACE_REFERENCE){ // completionOnNamespaceReference completionOnNamespaceReference(completionNode); } else if(kind == CompletionKind.EXCEPTION_REFERENCE){ // CompletionOnExceptionReference completionOnExceptionReference(completionNode); } else if(kind == CompletionKind.MACRO_REFERENCE){ // CompletionOnMacroReference completionOnMacroReference(completionNode); } else if(kind == CompletionKind.NEW_TYPE_REFERENCE){ // completionOnNewTypeReference completionOnNewTypeReference(completionNode); } else if(kind == CompletionKind.FUNCTION_REFERENCE){ // completionOnFunctionReference completionOnFunctionReference(completionNode); } else if(kind == CompletionKind.CONSTRUCTOR_REFERENCE){ // completionOnConstructorReference completionOnConstructorReference(completionNode); } else if(kind == CompletionKind.STRUCT_REFERENCE){ // CompletionOnClassReference completionOnStructReference(completionNode); } else if(kind == CompletionKind.UNION_REFERENCE){ // CompletionOnClassReference completionOnUnionReference(completionNode); } else if(kind == CompletionKind.ENUM_REFERENCE){ // CompletionOnClassReference completionOnEnumReference(completionNode); } // add keywords in all cases except for member and scoped reference cases. if(kind != CompletionKind.MEMBER_REFERENCE){ addKeywordsToCompletions( completionNode.getKeywords()); } log("Time spent in Completion Engine = "+ ( System.currentTimeMillis() - startTime ) + " ms"); //$NON-NLS-1$ //$NON-NLS-2$ return completionNode; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/bb6eaf7e5571fe8d53512a7088719ba292c26ed9/CompletionEngine.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/CompletionEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
9053,
11238,
907,
3912,
12,
45,
14836,
2951,
1084,
2802,
16,
509,
8364,
2335,
13,
288,
202,
202,
1330,
2932,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
5748,
8657,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
9053,
11238,
907,
3912,
12,
45,
14836,
2951,
1084,
2802,
16,
509,
8364,
2335,
13,
288,
202,
202,
1330,
2932,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
5748,
8657,
... |
return null; | Field f[] = new Field[13]; ResultSet r; Vector v = new Vector(); f[0] = new Field(connection, new String("PROCEDURE_CAT"), iVarcharOid, 32); f[1] = new Field(connection, new String("PROCEDURE_SCHEM"), iVarcharOid, 32); f[2] = new Field(connection, new String("PROCEDURE_NAME"), iVarcharOid, 32); f[3] = new Field(connection, new String("COLUMN_NAME"), iVarcharOid, 32); f[4] = new Field(connection, new String("COLUMN_TYPE"), iInt2Oid, 2); f[5] = new Field(connection, new String("DATA_TYPE"), iInt2Oid, 2); f[6] = new Field(connection, new String("TYPE_NAME"), iVarcharOid, 32); f[7] = new Field(connection, new String("PRECISION"), iInt4Oid, 4); f[8] = new Field(connection, new String("LENGTH"), iInt4Oid, 4); f[9] = new Field(connection, new String("SCALE"), iInt2Oid, 2); f[10] = new Field(connection, new String("RADIX"), iInt2Oid, 2); f[11] = new Field(connection, new String("NULLABLE"), iInt2Oid, 2); f[12] = new Field(connection, new String("REMARKS"), iVarcharOid, 32); return new ResultSet(connection, f, v, "OK", 1); | public java.sql.ResultSet getProcedureColumns(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern) throws SQLException { // XXX-Not Implemented return null; } | 49868 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49868/dffaec556455fbc20f93512552a6658d0e5018ad/DatabaseMetaData.java/buggy/postgresql/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2252,
18,
4669,
18,
13198,
3570,
8153,
3380,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
12131,
461,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
225,
288,
565,
368,
11329,
17,
124... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2252,
18,
4669,
18,
13198,
3570,
8153,
3380,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
12131,
461,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
225,
288,
565,
368,
11329,
17,
124... |
if (javaClass == Float.TYPE || javaClass == Float.class || javaClass == Double.TYPE || javaClass == Double.class) { return arg instanceof RubyFloat; } if (javaClass == String.class) { return arg instanceof RubyString; } return javaClass.isAssignableFrom(((RubyJavaObject)arg).getValue().getClass()); | return javaClass.isAssignableFrom(arg.getJavaClass()); | public static boolean isCompatible(RubyObject arg, Class javaClass) { if (arg.isNil()) { return true; } if (javaClass == Boolean.TYPE || javaClass == Boolean.class) { return arg instanceof RubyBoolean; } if (javaClass == Integer.TYPE || javaClass == Integer.class || javaClass == Long.TYPE || javaClass == Long.class) { return arg instanceof RubyFixnum; } if (javaClass == Float.TYPE || javaClass == Float.class || javaClass == Double.TYPE || javaClass == Double.class) { return arg instanceof RubyFloat; } if (javaClass == String.class) { return arg instanceof RubyString; } return javaClass.isAssignableFrom(((RubyJavaObject)arg).getValue().getClass()); } | 48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/086abcd7e5107a6e6813ecb64810deff5780af95/JavaUtil.java/clean/org/jruby/javasupport/JavaUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
353,
14599,
12,
54,
10340,
921,
1501,
16,
1659,
2252,
797,
13,
288,
3639,
309,
261,
3175,
18,
291,
12616,
10756,
288,
5411,
327,
638,
31,
3639,
289,
3639,
309,
261,
629... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
353,
14599,
12,
54,
10340,
921,
1501,
16,
1659,
2252,
797,
13,
288,
3639,
309,
261,
3175,
18,
291,
12616,
10756,
288,
5411,
327,
638,
31,
3639,
289,
3639,
309,
261,
629... |
label = ControlFactory.createLabel( comp, MIUIMessages.getString( "GDBDebuggerPage.9" ), | label = ControlFactory.createLabel( subComp, MIUIMessages.getString( "GDBDebuggerPage.9" ), | public void createMainTab( TabFolder tabFolder ) { TabItem tabItem = new TabItem( tabFolder, SWT.NONE ); tabItem.setText( MIUIMessages.getString( "GDBDebuggerPage.2" ) ); //$NON-NLS-1$ Composite comp = ControlFactory.createCompositeEx( tabFolder, 1, GridData.FILL_BOTH ); ((GridLayout)comp.getLayout()).makeColumnsEqualWidth = false; comp.setFont( tabFolder.getFont() ); tabItem.setControl( comp ); Composite subComp = ControlFactory.createCompositeEx( comp, 3, GridData.FILL_HORIZONTAL ); ((GridLayout)subComp.getLayout()).makeColumnsEqualWidth = false; subComp.setFont( tabFolder.getFont() ); Label label = ControlFactory.createLabel( subComp, MIUIMessages.getString( "GDBDebuggerPage.3" ) ); //$NON-NLS-1$ GridData gd = new GridData(); // gd.horizontalSpan = 2; label.setLayoutData( gd ); fGDBCommandText = ControlFactory.createTextField( subComp, SWT.SINGLE | SWT.BORDER ); fGDBCommandText.addModifyListener( new ModifyListener() { public void modifyText( ModifyEvent evt ) { if ( !isInitializing() ) updateLaunchConfigurationDialog(); } } ); Button button = createPushButton( subComp, MIUIMessages.getString( "GDBDebuggerPage.4" ), null ); //$NON-NLS-1$ button.addSelectionListener( new SelectionAdapter() { public void widgetSelected( SelectionEvent evt ) { handleGDBButtonSelected(); updateLaunchConfigurationDialog(); } private void handleGDBButtonSelected() { FileDialog dialog = new FileDialog( getShell(), SWT.NONE ); dialog.setText( MIUIMessages.getString( "GDBDebuggerPage.5" ) ); //$NON-NLS-1$ String gdbCommand = fGDBCommandText.getText().trim(); int lastSeparatorIndex = gdbCommand.lastIndexOf( File.separator ); if ( lastSeparatorIndex != -1 ) { dialog.setFilterPath( gdbCommand.substring( 0, lastSeparatorIndex ) ); } String res = dialog.open(); if ( res == null ) { return; } fGDBCommandText.setText( res ); } } ); label = ControlFactory.createLabel( subComp, MIUIMessages.getString( "GDBDebuggerPage.6" ) ); //$NON-NLS-1$ gd = new GridData(); // gd.horizontalSpan = 2; label.setLayoutData( gd ); fGDBInitText = ControlFactory.createTextField( subComp, SWT.SINGLE | SWT.BORDER ); gd = new GridData( GridData.FILL_HORIZONTAL ); fGDBInitText.setLayoutData( gd ); fGDBInitText.addModifyListener( new ModifyListener() { public void modifyText( ModifyEvent evt ) { if ( !isInitializing() ) updateLaunchConfigurationDialog(); } } ); button = createPushButton( subComp, MIUIMessages.getString( "GDBDebuggerPage.7" ), null ); //$NON-NLS-1$ button.addSelectionListener( new SelectionAdapter() { public void widgetSelected( SelectionEvent evt ) { handleGDBInitButtonSelected(); updateLaunchConfigurationDialog(); } private void handleGDBInitButtonSelected() { FileDialog dialog = new FileDialog( getShell(), SWT.NONE ); dialog.setText( MIUIMessages.getString( "GDBDebuggerPage.8" ) ); //$NON-NLS-1$ String gdbCommand = fGDBInitText.getText().trim(); int lastSeparatorIndex = gdbCommand.lastIndexOf( File.separator ); if ( lastSeparatorIndex != -1 ) { dialog.setFilterPath( gdbCommand.substring( 0, lastSeparatorIndex ) ); } String res = dialog.open(); if ( res == null ) { return; } fGDBInitText.setText( res ); } } ); label = ControlFactory.createLabel( comp, MIUIMessages.getString( "GDBDebuggerPage.9" ), //$NON-NLS-1$ 200, SWT.DEFAULT, SWT.WRAP ); gd = new GridData( GridData.FILL_HORIZONTAL ); gd.horizontalSpan = 1; gd.widthHint = 200; label.setLayoutData( gd ); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/db189e593524909c362a42023fc1ade5f58ee98d/GDBDebuggerPage.java/buggy/debug/org.eclipse.cdt.debug.mi.ui/src/org/eclipse/cdt/debug/mi/internal/ui/GDBDebuggerPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
6376,
5661,
12,
9483,
3899,
3246,
3899,
262,
288,
202,
202,
5661,
1180,
3246,
1180,
273,
394,
9483,
1180,
12,
3246,
3899,
16,
348,
8588,
18,
9826,
11272,
202,
202,
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,
225,
202,
482,
918,
752,
6376,
5661,
12,
9483,
3899,
3246,
3899,
262,
288,
202,
202,
5661,
1180,
3246,
1180,
273,
394,
9483,
1180,
12,
3246,
3899,
16,
348,
8588,
18,
9826,
11272,
202,
202,
7... |
RubyFile file = new RubyFile(recv.getRuntime(), (RubyClass)recv); if (args.length == 0) { throw new ArgumentError(recv.getRuntime(), 0, 1); } args[0].checkSafeString(); file.path = args[0].toString(); String mode = "r"; if (args.length > 1 && args[1] instanceof RubyString) { mode = ((RubyString)args[1]).getValue(); } file.closeStreams(); file.openInternal(file.path, mode); if (recv.getRuntime().isBlockGiven()) { try { recv.getRuntime().yield(file); } finally { file.closeStreams(); } } return file; | return open(recv, args, true); | public static IRubyObject open(IRubyObject recv, IRubyObject[] args) { RubyFile file = new RubyFile(recv.getRuntime(), (RubyClass)recv); if (args.length == 0) { throw new ArgumentError(recv.getRuntime(), 0, 1); } args[0].checkSafeString(); file.path = args[0].toString(); String mode = "r"; if (args.length > 1 && args[1] instanceof RubyString) { mode = ((RubyString)args[1]).getValue(); } file.closeStreams(); file.openInternal(file.path, mode); if (recv.getRuntime().isBlockGiven()) { try { recv.getRuntime().yield(file); } finally { file.closeStreams(); } } return file; } | 46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/4c689a812e20d4fcf2da0cdc9b527b00cc1960ef/RubyFile.java/buggy/src/org/jruby/RubyFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
15908,
10340,
921,
1696,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
8526,
833,
13,
288,
202,
565,
19817,
812,
585,
273,
394,
19817,
812,
12,
18334,
18,
588,
5576,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
15908,
10340,
921,
1696,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
8526,
833,
13,
288,
202,
565,
19817,
812,
585,
273,
394,
19817,
812,
12,
18334,
18,
588,
5576,
... |
List<DocumentVersion> readBackupDocumentVersions( final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { | List<DocumentVersion> readBackupDocumentVersions(final JabberId userId, final UUID uniqueId, final Long versionId) { | List<DocumentVersion> readBackupDocumentVersions( final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { logger.logApiId(); logger.logVariable("userId", userId); logger.logVariable("uniqueId", uniqueId); logger.logVariable("versionId", versionId); logger.logVariable("documentUniqueId", documentUniqueId); try { final XMPPSession xmppSession = workspace.getXMPPSession(); synchronized (xmppSession) { return xmppSession.readBackupDocumentVersions(userId, uniqueId, versionId, documentUniqueId); } } catch (final Throwable t) { throw translateError(t); } } | 53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/b5545567eecffc0b5a8848cd56f89e81cec7d935/SessionModelImpl.java/clean/client-model/src/main/java/com/thinkparity/ophelia/model/session/SessionModelImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
987,
32,
2519,
1444,
34,
855,
6248,
2519,
5940,
12,
5411,
727,
804,
378,
744,
548,
6249,
16,
727,
5866,
22345,
16,
727,
3407,
15287,
16,
5411,
727,
5866,
1668,
24174,
13,
288,
3639,
119... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
987,
32,
2519,
1444,
34,
855,
6248,
2519,
5940,
12,
5411,
727,
804,
378,
744,
548,
6249,
16,
727,
5866,
22345,
16,
727,
3407,
15287,
16,
5411,
727,
5866,
1668,
24174,
13,
288,
3639,
119... |
validateKeys(); | public void modify(Object element, String property, Object value) { if (element instanceof TableItem) { Object data= ((TableItem) element).getData(); if (data instanceof NLSSubstitution) { NLSSubstitution substitution= (NLSSubstitution) data; if (PROPERTIES[KEY_PROP].equals(property)) { String string = (String)value; string = windEscapeChars(string); substitution.setKey(string); validateKeys(); } if (PROPERTIES[VAL_PROP].equals(property)) { String string = (String)value; string = windEscapeChars(string); substitution.setValue(string); validateKeys(); } if (PROPERTIES[STATE_PROP].equals(property)) { substitution.setState(((Integer) value).intValue()); if ((substitution.getState() == NLSSubstitution.EXTERNALIZED) && substitution.hasStateChanged()) { substitution.generateKey(fSubstitutions); } } } fTableViewer.refresh(); } } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/95491cba3199b4def4532dde3a94948b8c11da9e/ExternalizeWizardPage.java/buggy/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/nls/ExternalizeWizardPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
5612,
12,
921,
930,
16,
514,
1272,
16,
1033,
460,
13,
288,
1082,
202,
430,
261,
2956,
1276,
3555,
1180,
13,
288,
9506,
202,
921,
501,
33,
14015,
1388,
1180,
13,
930,
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,
482,
918,
5612,
12,
921,
930,
16,
514,
1272,
16,
1033,
460,
13,
288,
1082,
202,
430,
261,
2956,
1276,
3555,
1180,
13,
288,
9506,
202,
921,
501,
33,
14015,
1388,
1180,
13,
930,
2... | |
switchDataTable( datasetName ); | switchDataTable( ); | private void switchDataSet( String datasetName ) throws ChartException { if ( getDataServiceProvider( ).getBoundDataSet( ) != null && getDataServiceProvider( ).getBoundDataSet( ) .equals( datasetName ) ) { return; } try { // Clear old dataset and preview data getDataServiceProvider( ).setDataSet( datasetName ); tablePreview.clearContents( ); // Popup data binding if ( getDataServiceProvider( ).getBoundDataSet( ) != null || getDataServiceProvider( ).getReportDataSet( ) != null ) { getDataServiceProvider( ).invoke( IDataServiceProvider.COMMAND_EDIT_BINDING ); } // Try to get report data set if ( datasetName == null ) { datasetName = getDataServiceProvider( ).getReportDataSet( ); } if ( datasetName != null ) { switchDataTable( datasetName ); } else { tablePreview.createDummyTable( ); } tablePreview.layout( ); } catch ( Throwable t ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.DATA_BINDING, t ); } DataDefinitionTextManager.getInstance( ).refreshAll( ); doLivePreview( ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/9fbfd6a517aa5975a7ba902dd7ddddfe08a751d5/TaskSelectData.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/TaskSelectData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1620,
13676,
12,
514,
3709,
461,
262,
1216,
14804,
503,
202,
95,
202,
202,
430,
261,
4303,
16300,
12,
262,
18,
588,
3499,
13676,
12,
262,
480,
446,
9506,
202,
10,
10,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1620,
13676,
12,
514,
3709,
461,
262,
1216,
14804,
503,
202,
95,
202,
202,
430,
261,
4303,
16300,
12,
262,
18,
588,
3499,
13676,
12,
262,
480,
446,
9506,
202,
10,
10,
... |
int tt = peekToken(0); | int tt = peekToken(); | private Node memberExprTail(boolean allowCallSyntax, Node pn) throws IOException, ParserException { tailLoop: for (;;) { int tt = peekToken(0); switch (tt) { case Token.DOT: { consumeToken(); decompiler.addToken(Token.DOT); Node n; if (compilerEnv.isXmlAvailable()) { n = nameOrPropertyIdentifier(); } else { mustMatchToken(Token.NAME, "msg.no.name.after.dot"); String s = ts.getString(); decompiler.addName(s); n = nf.createName(s); } pn = nf.createBinary(Token.DOT, pn, n); break; } case Token.DOTDOT: { consumeToken(); mustHaveXML(); decompiler.addToken(Token.DOTDOT); Node n = nameOrPropertyIdentifier(); pn = nf.createBinary(Token.DOTDOT, pn, n); break; } case Token.DOTQUERY: consumeToken(); mustHaveXML(); decompiler.addToken(Token.DOTQUERY); pn = nf.createDotQuery(pn, expr(false), ts.getLineno()); mustMatchToken(Token.RP, "msg.no.paren"); break; case Token.LB: consumeToken(); decompiler.addToken(Token.LB); pn = nf.createBinary(Token.LB, pn, expr(false)); mustMatchToken(Token.RB, "msg.no.bracket.index"); decompiler.addToken(Token.RB); break; case Token.LP: if (!allowCallSyntax) { break tailLoop; } consumeToken(); decompiler.addToken(Token.LP); pn = nf.createCallOrNew(Token.CALL, pn); /* Add the arguments to pn, if any are supplied. */ argumentList(pn); break; default: break tailLoop; } } return pn; } | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/eea0a0a79d27ae62fc3c9a3f98c2f0a02adaf2c4/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2029,
3140,
4742,
12363,
12,
6494,
1699,
1477,
8070,
16,
2029,
11059,
13,
3639,
1216,
1860,
16,
27990,
565,
288,
1377,
5798,
6452,
30,
3639,
364,
261,
25708,
13,
288,
5411,
509,
357... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2029,
3140,
4742,
12363,
12,
6494,
1699,
1477,
8070,
16,
2029,
11059,
13,
3639,
1216,
1860,
16,
27990,
565,
288,
1377,
5798,
6452,
30,
3639,
364,
261,
25708,
13,
288,
5411,
509,
357... |
ret_val = processResoultion (s, assignNewHandle (s)); | ret_val = processResolution (s, assignNewHandle (s)); | public final Object readObject () throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride (); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; if (! was_deserializing) setBlockDataMode (false); this.isDeserializing = true;// DEBUG ("MARKER "); byte marker = this.realInputStream.readByte (); switch (marker) { case TC_BLOCKDATA: case TC_BLOCKDATALONG: readNextBlock (marker); throw new BlockDataException (this.blockDataBytes); case TC_NULL: ret_val = null; break; case TC_REFERENCE: {// DEBUG ("REFERENCE "); Integer oid = new Integer (this.realInputStream.readInt ()); ret_val = ((ObjectIdentityWrapper) this.objectLookupTable.get (oid)).object; break; } case TC_CLASS: { ObjectStreamClass osc = (ObjectStreamClass)readObject (); Class clazz = osc.forClass (); assignNewHandle (clazz); ret_val = clazz; break; } case TC_CLASSDESC: {// DEBUG ("CLASSDESC NAME "); String name = this.realInputStream.readUTF ();// DEBUG ("UID "); long uid = this.realInputStream.readLong ();// DEBUG ("FLAGS "); byte flags = this.realInputStream.readByte ();// DEBUG ("FIELD COUNT "); short field_count = this.realInputStream.readShort (); ObjectStreamField[] fields = new ObjectStreamField[field_count]; ObjectStreamClass osc = new ObjectStreamClass (name, uid, flags, fields); assignNewHandle (osc); for (int i=0; i < field_count; i++) {// DEBUG ("TYPE CODE "); char type_code = (char)this.realInputStream.readByte ();// DEBUG ("FIELD NAME "); String field_name = this.realInputStream.readUTF (); String class_name; if (type_code == 'L' || type_code == '[') class_name = (String)readObject (); else class_name = String.valueOf (type_code); fields[i] = new ObjectStreamField (field_name, TypeSignature.getClassForEncoding (class_name)); } setBlockDataMode (true); osc.setClass (resolveClass (osc)); setBlockDataMode (false);// DEBUG ("ENDBLOCKDATA "); if (this.realInputStream.readByte () != TC_ENDBLOCKDATA) throw new IOException ("Data annotated to class was not consumed."); osc.setSuperclass ((ObjectStreamClass)readObject ()); ret_val = osc; break; } case TC_STRING: {// DEBUG ("STRING "); String s = this.realInputStream.readUTF (); ret_val = processResoultion (s, assignNewHandle (s)); break; } case TC_ARRAY: { ObjectStreamClass osc = (ObjectStreamClass)readObject (); Class componenetType = osc.forClass ().getComponentType ();// DEBUG ("ARRAY LENGTH "); int length = this.realInputStream.readInt (); Object array = Array.newInstance (componenetType, length); int handle = assignNewHandle (array); readArrayElements (array, componenetType); ret_val = processResoultion (array, handle); break; } case TC_OBJECT: { ObjectStreamClass osc = (ObjectStreamClass)readObject (); Class clazz = osc.forClass (); if (!Serializable.class.isAssignableFrom (clazz)) throw new NotSerializableException (clazz + " is not Serializable, and thus cannot be deserialized."); if (Externalizable.class.isAssignableFrom (clazz)) { Externalizable obj = null; try { obj = (Externalizable)clazz.newInstance (); } catch (InstantiationException e) { throw new ClassNotFoundException ("Instance of " + clazz + " could not be created"); } catch (IllegalAccessException e) { throw new ClassNotFoundException ("Instance of " + clazz + " could not be created because class or zero-argument constructor is not accessible"); } catch (NoSuchMethodError e) { throw new ClassNotFoundException ("Instance of " + clazz + " could not be created because zero-argument constructor is not defined"); } int handle = assignNewHandle (obj); boolean read_from_blocks = ((osc.getFlags () & SC_BLOCK_DATA) != 0); if (read_from_blocks) setBlockDataMode (true); obj.readExternal (this); if (read_from_blocks) setBlockDataMode (false); ret_val = processResoultion (obj, handle); break; } // end if (Externalizable.class.isAssignableFrom (clazz)) // find the first non-serializable, non-abstract // class in clazz's inheritance hierarchy Class first_nonserial = clazz.getSuperclass (); while (Serializable.class.isAssignableFrom (first_nonserial) || Modifier.isAbstract (first_nonserial.getModifiers ())) first_nonserial = first_nonserial.getSuperclass ();// DEBUGln ("Using " + first_nonserial// + " as starting point for constructing " + clazz); Object obj = null; obj = newObject (clazz, first_nonserial); if (obj == null) throw new ClassNotFoundException ("Instance of " + clazz + " could not be created"); int handle = assignNewHandle (obj); this.currentObject = obj; ObjectStreamClass[] hierarchy = ObjectStreamClass.getObjectStreamClasses (clazz);// DEBUGln ("Got class hierarchy of depth " + hierarchy.length); boolean has_read; for (int i=0; i < hierarchy.length; i++) { this.currentObjectStreamClass = hierarchy[i];// DEBUGln ("Reading fields of "// + this.currentObjectStreamClass.getName ()); has_read = true; try { this.currentObjectStreamClass.forClass (). getDeclaredMethod ("readObject", readObjectParams); } catch (NoSuchMethodException e) { has_read = false; } // XXX: should initialize fields in classes in the hierarchy // that aren't in the stream // should skip over classes in the stream that aren't in the // real classes hierarchy readFields (obj, this.currentObjectStreamClass.fields, has_read, this.currentObjectStreamClass); if (has_read) {// DEBUG ("ENDBLOCKDATA? "); if (this.realInputStream.readByte () != TC_ENDBLOCKDATA) throw new IOException ("No end of block data seen for class with readObject (ObjectInputStream) method."); } } this.currentObject = null; this.currentObjectStreamClass = null; ret_val = processResoultion (obj, handle); break; } case TC_RESET: clearHandles (); ret_val = readObject (); break; case TC_EXCEPTION: { Exception e = (Exception)readObject (); clearHandles (); throw new WriteAbortedException ("Exception thrown during writing of stream", e); } default: throw new IOException ("Unknown marker on stream"); } this.isDeserializing = was_deserializing; if (! was_deserializing) { setBlockDataMode (true); if (validators.size () > 0) invokeValidators (); } return ret_val; } | 1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/f7ce7e1e7ea220277a849d860fa470f665b84a9c/ObjectInputStream.java/buggy/libjava/java/io/ObjectInputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
1033,
17362,
1832,
1216,
10403,
16,
1860,
225,
288,
565,
309,
261,
2211,
18,
1202,
1676,
1106,
1305,
13,
1377,
327,
17362,
6618,
261,
1769,
565,
1250,
1703,
67,
5489,
24662,
68... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
1033,
17362,
1832,
1216,
10403,
16,
1860,
225,
288,
565,
309,
261,
2211,
18,
1202,
1676,
1106,
1305,
13,
1377,
327,
17362,
6618,
261,
1769,
565,
1250,
1703,
67,
5489,
24662,
68... |
CodeEmitter e = ce.begin_method(Constants.ACC_PUBLIC, NEW_INSTANCE, null, null); e.load_arg(0); e.invoke_static_this(SET_THREAD_CALLBACKS); emitCommonNewInstance(e); } | CodeEmitter e = ce.begin_method(Constants.ACC_PUBLIC, NEW_INSTANCE, null, null); e.load_arg(0); e.invoke_static_this(SET_THREAD_CALLBACKS); emitCommonNewInstance(e); } | private void emitNewInstanceCallbacks(ClassEmitter ce) { CodeEmitter e = ce.begin_method(Constants.ACC_PUBLIC, NEW_INSTANCE, null, null); e.load_arg(0); e.invoke_static_this(SET_THREAD_CALLBACKS); emitCommonNewInstance(e); } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/4c632c609488fb8900f7eb5390cd16cbaaf04adf/AdvancedEnhancer.java/buggy/source/net/sf/cglib/proxy/AdvancedEnhancer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3626,
1908,
1442,
10617,
12,
797,
13476,
5898,
13,
288,
3639,
3356,
13476,
425,
273,
5898,
18,
10086,
67,
2039,
12,
2918,
18,
31414,
67,
14939,
16,
12887,
67,
13341,
16,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3626,
1908,
1442,
10617,
12,
797,
13476,
5898,
13,
288,
3639,
3356,
13476,
425,
273,
5898,
18,
10086,
67,
2039,
12,
2918,
18,
31414,
67,
14939,
16,
12887,
67,
13341,
16,
446,
... |
if(clearJob == null) { | if (clearJob == null) { | void clearResults() { if(clearJob == null) { clearJob = getClearJob(); } clearJob.schedule(); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/b543fc145c42526ff99e6c17d4baec8b9a5cf3e0/DecorationScheduler.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/decorators/DecorationScheduler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
2424,
3447,
1435,
288,
202,
202,
430,
12,
8507,
2278,
422,
446,
13,
288,
1082,
202,
8507,
2278,
273,
1927,
298,
297,
2278,
5621,
202,
202,
97,
202,
202,
8507,
2278,
18,
10676... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
2424,
3447,
1435,
288,
202,
202,
430,
12,
8507,
2278,
422,
446,
13,
288,
1082,
202,
8507,
2278,
273,
1927,
298,
297,
2278,
5621,
202,
202,
97,
202,
202,
8507,
2278,
18,
10676... |
for(int i=0; i<list.size(); i++) { if(list.get(i) instanceof TextContent) { | for (int i = 0; i < list.size(); i++) { if (list.get(i) instanceof TextContent) { | private static void stripWhitespaceContent(List list) { List remove_list = new ArrayList(); for(int i=0; i<list.size(); i++) { if(list.get(i) instanceof TextContent) { remove_list.add(list.get(i)); } } for(int i=0; i<remove_list.size(); i++) { list.remove(remove_list.get(i)); } } | 8125 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8125/b23ce4cc73ce39dc11856cf4e63572b7a86f795c/WhitespaceStripper.java/buggy/src/java/org/xhtmlrenderer/layout/inline/WhitespaceStripper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
2569,
9431,
1350,
12,
682,
666,
13,
288,
3639,
987,
1206,
67,
1098,
273,
394,
2407,
5621,
3639,
364,
12,
474,
277,
33,
20,
31,
277,
32,
1098,
18,
1467,
5621,
277,
2724... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2569,
9431,
1350,
12,
682,
666,
13,
288,
3639,
987,
1206,
67,
1098,
273,
394,
2407,
5621,
3639,
364,
12,
474,
277,
33,
20,
31,
277,
32,
1098,
18,
1467,
5621,
277,
2724... |
urls.add(classPath[idx].toURL()); | final File file = classPath[idx].getCanonicalFile(); urls.add(file.toURL()); | private static PluginClassLoader createPluginClassLoader(final File[] classPath, final String pluginName, final ClassLoader[] parentLoaders, File pluginRoot) { try { final List urls = new ArrayList(classPath.length); for (int idx = 0; idx < classPath.length; idx++) { urls.add(classPath[idx].toURL()); } return new PluginClassLoader(urls, parentLoaders, pluginName, pluginRoot); } catch (MalformedURLException e) { e.printStackTrace(); } return null; } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/bef836e5a899ec43b382db2d5ed0cd3f49fb7ebf/PluginManager.java/clean/source/com/intellij/ide/plugins/PluginManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
6258,
7805,
752,
3773,
7805,
12,
6385,
1387,
8526,
22503,
16,
727,
514,
15909,
16,
727,
9403,
8526,
982,
26801,
16,
1387,
1909,
2375,
13,
288,
565,
775,
288,
1377,
727,
987,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6258,
7805,
752,
3773,
7805,
12,
6385,
1387,
8526,
22503,
16,
727,
514,
15909,
16,
727,
9403,
8526,
982,
26801,
16,
1387,
1909,
2375,
13,
288,
565,
775,
288,
1377,
727,
987,
... |
if(checkForce && SettingsManager.instance().getForceIPAddress()) return SettingsManager.instance().getForcedPort(); | if(checkForce && ConnectionSettings.FORCE_IP_ADDRESS.getValue()) return ConnectionSettings.FORCED_PORT.getValue(); | public int getPort(boolean checkForce) { if(checkForce && SettingsManager.instance().getForceIPAddress()) return SettingsManager.instance().getForcedPort(); return _port; } | 5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/af6552190dbe08263169d8bbcf277965b115c243/Acceptor.java/clean/components/gnutella-core/src/main/java/com/limegroup/gnutella/Acceptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
11036,
12,
6494,
866,
10997,
13,
288,
3639,
309,
12,
1893,
10997,
597,
8709,
1318,
18,
1336,
7675,
588,
10997,
22507,
10756,
1082,
202,
2463,
8709,
1318,
18,
1336,
7675,
588,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
11036,
12,
6494,
866,
10997,
13,
288,
3639,
309,
12,
1893,
10997,
597,
8709,
1318,
18,
1336,
7675,
588,
10997,
22507,
10756,
1082,
202,
2463,
8709,
1318,
18,
1336,
7675,
588,
1... |
mm.setFrom(AccountUtil.getFriendlyEmailAddress(acct)); | public Element handle(Element request, Map<String, Object> context) throws ServiceException { ZimbraSoapContext zsc = getZimbraSoapContext(context); Account acct = getRequestedAccount(zsc); Mailbox mbox = getRequestedMailbox(zsc); OperationContext octxt = zsc.getOperationContext(); Session session = getSession(context); Element msgElem = request.getElement(MailService.E_MSG); int id = (int) msgElem.getAttributeLong(MailService.A_ID, Mailbox.ID_AUTO_INCREMENT); int origId = (int) msgElem.getAttributeLong(MailService.A_ORIG_ID, 0); String replyType = msgElem.getAttribute(MailService.A_REPLY_TYPE, null); // allow the caller to update the draft's metadata at the same time as they save the draft String folderId = msgElem.getAttribute(MailService.A_FOLDER, null); ItemId iidFolder = new ItemId(folderId == null ? "-1" : folderId, zsc); if (!iidFolder.belongsTo(mbox)) throw ServiceException.INVALID_REQUEST("cannot move item between mailboxes", null); else if (folderId != null && iidFolder.getId() <= 0) throw MailServiceException.NO_SUCH_FOLDER(iidFolder.getId()); String flags = msgElem.getAttribute(MailService.A_FLAGS, null); String tags = msgElem.getAttribute(MailService.A_TAGS, null); byte color = (byte) msgElem.getAttributeLong(MailService.A_COLOR, -1); // check to see whether the entire message has been uploaded under separate cover String attachment = msgElem.getAttribute(MailService.A_ATTACHMENT_ID, null); ParseMimeMessage.MimeMessageData mimeData = new ParseMimeMessage.MimeMessageData(); MimeMessage mm; if (attachment != null) mm = SendMsg.parseUploadedMessage(zsc, attachment, mimeData); else mm = ParseMimeMessage.parseMimeMsgSoap(zsc, mbox, msgElem, null, mimeData); long date = System.currentTimeMillis(); try { mm.setFrom(AccountUtil.getFriendlyEmailAddress(acct)); Date d = new Date(); mm.setSentDate(d); date = d.getTime(); } catch (Exception e) { } try { mm.saveChanges(); } catch (MessagingException me) { throw ServiceException.FAILURE("completing MIME message object", me); } ParsedMessage pm = new ParsedMessage(mm, date, mbox.attachmentsIndexingEnabled()); SaveDraftOperation op = new SaveDraftOperation(session, octxt, mbox, Requester.SOAP, pm, id, origId, replyType); op.schedule(); Message msg = op.getMsg(); // we can now purge the uploaded attachments if (mimeData.uploads != null) FileUploadServlet.deleteUploads(mimeData.uploads); // try to set the metadata on the new/revised draft if (folderId != null || flags != null || tags != null || color >= 0) { try { // best not to fail if there's an error here... ItemActionOperation.UPDATE(zsc, session, octxt, mbox, Requester.SOAP, Arrays.asList(msg.getId()), MailItem.TYPE_MESSAGE, null, iidFolder, flags, tags, color); // and make sure the Message object reflects post-update reality msg = mbox.getMessageById(octxt, msg.getId()); } catch (ServiceException e) { ZimbraLog.soap.warn("error setting metadata for draft " + msg.getId() + "; skipping that operation", e); } } Element response = zsc.createElement(MailService.SAVE_DRAFT_RESPONSE); // FIXME: inefficient -- this recalculates the MimeMessage (but SaveDraft is called rarely) ToXML.encodeMessageAsMP(response, zsc, msg, null, false, true); return response; } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/b37f727025089a0b6e7e2f3e7c1508fe216949d3/SaveDraft.java/clean/ZimbraServer/src/java/com/zimbra/cs/service/mail/SaveDraft.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3010,
1640,
12,
1046,
590,
16,
1635,
32,
780,
16,
1033,
34,
819,
13,
1216,
16489,
288,
3639,
2285,
381,
15397,
20601,
1042,
998,
1017,
273,
23448,
381,
15397,
20601,
1042,
12,
2472,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3010,
1640,
12,
1046,
590,
16,
1635,
32,
780,
16,
1033,
34,
819,
13,
1216,
16489,
288,
3639,
2285,
381,
15397,
20601,
1042,
998,
1017,
273,
23448,
381,
15397,
20601,
1042,
12,
2472,... | |
changeLs.changeTask( ); | changeLs.changeTask( notification ); | public void notifyChanged( Notification notification ) { if ( bIgnoreNotifications || notification.isTouch( ) ) { return; } logger.log( ILogger.INFORMATION, new MessageFormat( Messages.getString( "ChartAdapter.Info.NotificationRecieved" ) ).format( new Object[]{notification.getNotifier( ).getClass( ).getName( )} ) ); //$NON-NLS-1$ logger.log( ILogger.INFORMATION, new MessageFormat( Messages.getString( "ChartAdapter.Info.NewValue" ) ).format( new Object[]{notification.getNewValue( )} ) ); //$NON-NLS-1$ // Notify registered change listeners for ( int iC = 0; iC < vListeners.size( ); iC++ ) { ITaskChangeListener changeLs = (ITaskChangeListener) vListeners.elementAt( iC ); changeLs.changeTask( ); } } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/045bc4ce195669416f37e161d70de5340277fa0f/ChartAdapter.java/clean/chart/org.eclipse.birt.chart.ui/src/org/eclipse/birt/chart/ui/swt/wizard/ChartAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
5066,
5033,
12,
8050,
3851,
262,
202,
95,
202,
202,
430,
261,
324,
3777,
14111,
747,
3851,
18,
291,
10491,
12,
262,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5066,
5033,
12,
8050,
3851,
262,
202,
95,
202,
202,
430,
261,
324,
3777,
14111,
747,
3851,
18,
291,
10491,
12,
262,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97... |
JScrollPane _createDefScrollPane(OpenDefinitionsDocument doc) { // made this package private to allow testing of disabling editing during compile and successful switching // on and off of ability to edit DefinitionsPane pane = new DefinitionsPane(this, doc); pane.addKeyListener(_historyListener); pane.addFocusListener(_focusListenerForRecentDocs); // Add listeners _installNewDocumentListener(doc); ErrorCaretListener caretListener = new ErrorCaretListener(doc, pane, this); pane.addErrorCaretListener(caretListener); // add a listener to update line and column. pane.addCaretListener(_posListener); // add a focus listener to the pane. pane.addFocusListener(new LastFocusListener()); // Add to a scroll pane JScrollPane scroll = new BorderlessScrollPane(pane, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); pane.setScrollPane(scroll); //scroll.setBorder(null); // removes all default borders (MacOS X installs default borders) // can be used to make sure line wrapping occurs /*scroll.getViewport().addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { pane.setSize(scroll.getViewport().getWidth(), pane.getHeight()); } });*/ if (DrJava.getConfig().getSetting(LINEENUM_ENABLED).booleanValue()) { scroll.setRowHeaderView(new LineEnumRule(pane)); } _defScrollPanes.put(doc, scroll); return scroll; } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/2de653a0c121f420695cbc85c38fd5c41317e81a/MainFrame.java/buggy/drjava/src/edu/rice/cs/drjava/ui/MainFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
804,
26360,
389,
2640,
3262,
26360,
12,
3678,
7130,
2519,
997,
13,
288,
565,
368,
7165,
333,
2181,
3238,
358,
1699,
7769,
434,
1015,
17912,
15755,
4982,
4074,
471,
6873,
30882,
565,
368,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
804,
26360,
389,
2640,
3262,
26360,
12,
3678,
7130,
2519,
997,
13,
288,
565,
368,
7165,
333,
2181,
3238,
358,
1699,
7769,
434,
1015,
17912,
15755,
4982,
4074,
471,
6873,
30882,
565,
368,
... | ||
emissive = (ColorRGBA) defaultEmissive.clone(); ambient = (ColorRGBA) defaultAmbient.clone(); diffuse = (ColorRGBA) defaultDiffuse.clone(); specular = (ColorRGBA) defaultSpecular.clone(); | emissive = defaultEmissive.clone(); ambient = defaultAmbient.clone(); diffuse = defaultDiffuse.clone(); specular = defaultSpecular.clone(); | public MaterialState() { emissive = (ColorRGBA) defaultEmissive.clone(); ambient = (ColorRGBA) defaultAmbient.clone(); diffuse = (ColorRGBA) defaultDiffuse.clone(); specular = (ColorRGBA) defaultSpecular.clone(); shininess = defaultShininess; colorMaterial = defaultColorMaterial; materialFace = defaultMaterialFace; } | 19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/47eb9c7496058ab34e63bfc0ba0882051eb0627d/MaterialState.java/buggy/src/com/jme/scene/state/MaterialState.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
23436,
1119,
1435,
288,
3639,
801,
1054,
688,
273,
261,
2957,
23263,
13,
805,
1514,
1054,
688,
18,
14056,
5621,
3639,
13232,
1979,
273,
261,
2957,
23263,
13,
805,
30706,
1979,
18,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
23436,
1119,
1435,
288,
3639,
801,
1054,
688,
273,
261,
2957,
23263,
13,
805,
1514,
1054,
688,
18,
14056,
5621,
3639,
13232,
1979,
273,
261,
2957,
23263,
13,
805,
30706,
1979,
18,
1... |
public abstract java.sql.PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException; | public java.sql.PreparedStatement prepareStatement(String sql) throws SQLException { return prepareStatement(sql, java.sql.ResultSet.TYPE_FORWARD_ONLY, java.sql.ResultSet.CONCUR_READ_ONLY); } | public abstract java.sql.PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException; | 2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/0bef49279d0c4d5bbb58e4ced79eff1f6d16d4c6/AbstractJdbc2Connection.java/buggy/org/postgresql/jdbc2/AbstractJdbc2Connection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8770,
2252,
18,
4669,
18,
29325,
21406,
12,
780,
1847,
16,
509,
12168,
559,
16,
509,
12168,
18273,
13,
1216,
6483,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8770,
2252,
18,
4669,
18,
29325,
21406,
12,
780,
1847,
16,
509,
12168,
559,
16,
509,
12168,
18273,
13,
1216,
6483,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if ( model instanceof ReportElementModel ) | if ( model instanceof SlotHandle ) | protected void createEditPolicies( ) { installEditPolicy( EditPolicy.LAYOUT_ROLE, new ReportFlowLayoutEditPolicy( ) { protected org.eclipse.gef.commands.Command getCreateCommand( CreateRequest request ) { List list = getHost( ).getChildren( ); Boolean direct = (Boolean) request.getExtendedData( ).get( DesignerConstants.DIRECT_CREATEITEM ); if ( list.size( ) != 0 && !( list.get( 0 ) instanceof EmptyEditPart ) && (direct == null || !direct.booleanValue( ))) { return UnexecutableCommand.INSTANCE; } // EditPart after = getInsertionReference( request );// final DesignElementHandle newObject = (DesignElementHandle) request.getExtendedData( )// .get( DesignerConstants.KEY_NEWOBJECT ); CreateCommand command = new CreateCommand( request.getExtendedData( ) ) { public void execute( ) { super.execute( ); Display.getCurrent( ) .asyncExec( new Runnable( ) { public void run( ) { SetCurrentEditModelCommand c = new SetCurrentEditModelCommand( getNewObject(),LibraryHandleAdapter.CREATE_ELEMENT ); c.execute( ); } } ); } }; Object model = this.getHost( ).getModel( ); if ( model instanceof ReportElementModel ) { command.setParent( ( (ReportElementModel) model ).getSlotHandle( ) ); } else if ( model instanceof ListBandProxy ) { command.setParent( ( (ListBandProxy) model ).getSlotHandle( ) ); } else { command.setParent( model ); } // No previous edit part // if ( after != null ) // { // command.setAfter( after.getModel( ) ); // } return command; } } ); installEditPolicy( EditPolicy.CONTAINER_ROLE, new ReportContainerEditPolicy( ) ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/2a9ea810a5eb287424a0e8524c3b022fced0cd8b/LibraryReportDesignEditPart.java/buggy/UI/org.eclipse.birt.report.designer.ui.lib/src/org/eclipse/birt/report/designer/internal/lib/editparts/LibraryReportDesignEditPart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
4666,
8825,
12,
262,
202,
95,
202,
202,
5425,
4666,
2582,
12,
15328,
2582,
18,
7868,
5069,
67,
16256,
16,
9506,
202,
2704,
8706,
5249,
3744,
4666,
2582,
12,
262,
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,
1117,
918,
752,
4666,
8825,
12,
262,
202,
95,
202,
202,
5425,
4666,
2582,
12,
15328,
2582,
18,
7868,
5069,
67,
16256,
16,
9506,
202,
2704,
8706,
5249,
3744,
4666,
2582,
12,
262,
28... |
public final static void kill () { candidateEnd = 0; | public final static void kill() { candidateEnd = 0; | public final static void kill () { candidateEnd = 0; } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/57a34fa3e6e607d84b46e06082997a4771a25a85/Finalizer.java/clean/MMTk/src/org/mmtk/utility/Finalizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
760,
918,
8673,
1832,
288,
1377,
5500,
1638,
273,
374,
31,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
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,
282,
1071,
727,
760,
918,
8673,
1832,
288,
1377,
5500,
1638,
273,
374,
31,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
update = false; | private void jButton10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton10ActionPerformed // Advise message in case of modifing of settings// if (update){// JOptionPane.showMessageDialog(this.jDialogOption,// java.util.ResourceBundle.getBundle("JIF").getString("JDIALOGOPTION_UPDATE"),// "Message",// JOptionPane.INFORMATION_MESSAGE);// } jDialogOption.setVisible(false); // update = true => user did some changes update = false; maxRecentFiles = Integer.parseInt(jTextFieldMaxRecentFiles.getText()); unquote(); saveJifConfiguration(); savePath(); }//GEN-LAST:event_jButton10ActionPerformed | 7731 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7731/38aec07fd33ae67c604ce10e31b8ef0a1388483e/jFrame.java/buggy/Project/jFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
525,
3616,
2163,
19449,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
759,
16652,
17,
15354,
30,
2575,
67,
78,
3616,
2163,
19449,
3639,
368,
4052,
90,
784,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
525,
3616,
2163,
19449,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
759,
16652,
17,
15354,
30,
2575,
67,
78,
3616,
2163,
19449,
3639,
368,
4052,
90,
784,... | |
if (visible) pageLayout.addView(id, intRelation, ratio, relative); else | if (visible) { if (standalone) { pageLayout.addStandaloneView(id, showTitle, intRelation, ratio, relative); } else { pageLayout.addView(id, intRelation, ratio, relative); } } else { | private boolean processView(IConfigurationElement element) { // Get id, relative, and relationship. String id = element.getAttribute(ATT_ID); String relative = element.getAttribute(ATT_RELATIVE); String relationship = element.getAttribute(ATT_RELATIONSHIP); String ratioString = element.getAttribute(ATT_RATIO); float ratio; if (id == null || relative == null || relationship == null) return false; // Get the ratio. if (ratioString == null) { // The ratio has not been specified. ratio = IPageLayout.NULL_RATIO; } else { try { ratio = new Float(ratioString).floatValue(); } catch (NumberFormatException e) { return false; } // If the ratio is outside the allowable range, mark it as invalid. if (ratio < IPageLayout.RATIO_MIN || ratio > IPageLayout.RATIO_MAX) ratio = IPageLayout.INVALID_RATIO; } // Get relationship details. boolean stack = false; boolean fast = false; int intRelation = 0; if (relationship.equals(VAL_LEFT)) intRelation = IPageLayout.LEFT; else if (relationship.equals(VAL_RIGHT)) intRelation = IPageLayout.RIGHT; else if (relationship.equals(VAL_TOP)) intRelation = IPageLayout.TOP; else if (relationship.equals(VAL_BOTTOM)) intRelation = IPageLayout.BOTTOM; else if (relationship.equals(VAL_STACK)) stack = true; else if (relationship.equals(VAL_FAST)) fast = true; else return false; boolean visible = !VAL_FALSE.equals(element.getAttribute(ATT_VISIBLE)); // If stack .. if (stack) { if (visible) pageLayout.stackView(id, relative); else pageLayout.stackPlaceholder(id, relative); return true; } // If the view is a fast view... if (fast) { if (ratio == IPageLayout.NULL_RATIO) { // The ratio has not been specified. pageLayout.addFastView(id); } else { pageLayout.addFastView(id, ratio); } return true; } // The view is a regular view. // If the ratio is not specified or is invalid, use the default ratio. if (ratio == IPageLayout.NULL_RATIO || ratio == IPageLayout.INVALID_RATIO) ratio = IPageLayout.DEFAULT_VIEW_RATIO; if (visible) pageLayout.addView(id, intRelation, ratio, relative); else pageLayout.addPlaceholder(id, intRelation, ratio, relative); return true;} | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/674aa68b2fdf5862ebd0f40e8aeecf2dd88c6ac1/PerspectiveExtensionReader.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/PerspectiveExtensionReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
1250,
1207,
1767,
12,
45,
1750,
1046,
930,
13,
288,
202,
759,
968,
612,
16,
3632,
16,
471,
5232,
18,
202,
780,
612,
273,
930,
18,
588,
1499,
12,
789,
56,
67,
734,
1769,
202,
780,
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,
3238,
1250,
1207,
1767,
12,
45,
1750,
1046,
930,
13,
288,
202,
759,
968,
612,
16,
3632,
16,
471,
5232,
18,
202,
780,
612,
273,
930,
18,
588,
1499,
12,
789,
56,
67,
734,
1769,
202,
780,
3... |
new ImageFrameLoader( img); | if ( img.producer instanceof ImageNativeProducer ) { new ImageFrameLoader( img); img.stateChange( s, 0, 0, img.width, img.height); img.producer.removeConsumer( this); img = null; } else { img.stateChange( s, 0, 0, img.width, img.height); } | public synchronized void imageComplete ( int status ) { int s = 0; if ( status == STATICIMAGEDONE ){ s = ImageObserver.ALLBITS; // give native layer a chance to do alpha channel reduction if ( !(img.producer instanceof ImageNativeProducer) ) Toolkit.imgComplete( img.nativeData, status); } else if ( status == SINGLEFRAMEDONE ) { s = ImageObserver.FRAMEBITS; // This is a (indefinite) movie production - move it out of the way (in its own thread) // so that we can go on with useful work. Note that if our producer was a ImageNativeProducer, // the whole external image has been read in already (no IO required, anymore) new ImageFrameLoader( img); } else { if ( (status & IMAGEERROR) != 0 ) s |= ImageObserver.ERROR; if ( (status & IMAGEABORTED) != 0 ) s |= ImageObserver.ABORT; } img.stateChange( s, 0, 0, img.width, img.height); // this has to be called *after* a optional ImageFrameLoader went into action, since // the producer might decide to stop if it doesn't have another consumer img.producer.removeConsumer( this); img = null; // we are done with it, prevent memory leaks if ( this == asyncLoader ) notify(); // in case we had an async producer} | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/5d8adec11ce7c094494a896d3fab2a2f389736f6/ImageLoader.java/buggy/libraries/javalib/java/awt/ImageLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
3852,
918,
1316,
6322,
261,
509,
1267,
262,
288,
202,
474,
272,
273,
374,
31,
202,
430,
261,
1267,
422,
19980,
3445,
29693,
5998,
262,
95,
202,
202,
87,
273,
3421,
11048,
18,
4685,
251... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3852,
918,
1316,
6322,
261,
509,
1267,
262,
288,
202,
474,
272,
273,
374,
31,
202,
430,
261,
1267,
422,
19980,
3445,
29693,
5998,
262,
95,
202,
202,
87,
273,
3421,
11048,
18,
4685,
251... |
+"]>\n<!-- the doc...-->" | +"]><!-- the doc...-->" | public void testPassThrough() throws XMLStreamException { final String INPUT = "<?xml version='1.0' encoding='UTF-8' standalone='yes'?>" +"<!DOCTYPE root [" +"]>\n<!-- the doc...-->" +"<root xmlns:ns='urn:foo'>\n" +" <branch attr='val' ns:foo='bar'>\n" +" <ns:leaf xmlns='another-uri' />\n" +" <?proc instr?>\n" +"<leaf><![CDATA[ Haa: <nottag /> ]]></leaf>\n" +" </branch>\n" +" <!-- another comment -->" +"</root>"; ; XMLEventReader er = getEventReader(INPUT, true, true); List list1 = collectEvents(er); StringWriter strw = new StringWriter(); XMLOutputFactory f = getOutputFactory(); XMLEventWriter ew = f.createXMLEventWriter(strw); Iterator it = list1.iterator(); while (it.hasNext()) { ew.add((XMLEvent) it.next()); } // And re-parse... er = getEventReader(INPUT, true, true); List list2 = collectEvents(er); assertEquals("Should have gotten same number of events", list1.size(), list2.size()); // And finally, let's at least compare types we have: it = list1.iterator(); Iterator it2 = list2.iterator(); for (int ix = 0; it.hasNext(); ++ix) { XMLEvent evt1 = (XMLEvent) it.next(); XMLEvent evt2 = (XMLEvent) it2.next(); if (evt1.getEventType() != evt2.getEventType()) { fail("Event #"+ix+"; first time got event "+evt1.getEventType() +", second time "+evt2.getEventType()); } if (evt1.isStartElement()) { /* ok, should have same attrs and ns decls. For now, let's * just verify raw counts; can/should test contents too * in future. */ StartElement se1 = evt1.asStartElement(); StartElement se2 = evt2.asStartElement(); List attrs1 = fetchElems(se1.getAttributes()); List attrs2 = fetchElems(se2.getAttributes()); assertEquals(attrs1.size(), attrs2.size()); List ns1 = fetchElems(se1.getNamespaces()); List ns2 = fetchElems(se2.getNamespaces()); assertEquals(ns1.size(), ns2.size()); } } } | 2047 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2047/543807ecd1bc71f18b5888c7037d00bee0189ffc/TestEventWriter.java/buggy/dev/src/org/codehaus/stax/test/evt/TestEventWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
6433,
14287,
1435,
3639,
1216,
21526,
565,
288,
3639,
727,
514,
12943,
273,
5411,
20410,
2902,
1177,
2218,
21,
18,
20,
11,
2688,
2218,
5159,
17,
28,
11,
17676,
2218,
9707... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6433,
14287,
1435,
3639,
1216,
21526,
565,
288,
3639,
727,
514,
12943,
273,
5411,
20410,
2902,
1177,
2218,
21,
18,
20,
11,
2688,
2218,
5159,
17,
28,
11,
17676,
2218,
9707... |
public Feature getFeature() throws IOException { if (outputQueue.size() == 0) { if (segmentEnd) { segmentEnd = false; outputQueue.add(new Feature(Signal.SEGMENT_END, featureID.getNextID())); } else { Cepstrum input = predecessor.getCepstrum(); if (input == null) { return null; } else { if (input.hasContent()) { // "featureBlockSize-1" since first Cepstrum already read int numberFeatures = readCepstra(featureBlockSize - 1, input); if (numberFeatures > 0) { computeFeatures(numberFeatures); } } else if (input.getSignal().equals(Signal.SEGMENT_START)) { segmentStart = true; outputQueue.add(new Feature(input.getSignal(), featureID.getNextID())); } } } } if (outputQueue.size() > 0) { return (Feature) outputQueue.remove(0); } else { return null; } } | 52185 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52185/4b9de3c672c978f23545b068240e9699b1c70848/FeatureExtractor.java/buggy/edu/cmu/sphinx/frontend/FeatureExtractor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
225,
7881,
225,
17961,
1435,
225,
1216,
225,
1860,
225,
288,
7734,
309,
225,
261,
2844,
3183,
18,
1467,
1435,
225,
422,
225,
374,
13,
225,
288,
13491,
309,
225,
261,
9273,
1638,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
225,
7881,
225,
17961,
1435,
225,
1216,
225,
1860,
225,
288,
7734,
309,
225,
261,
2844,
3183,
18,
1467,
1435,
225,
422,
225,
374,
13,
225,
288,
13491,
309,
225,
261,
9273,
1638,
1... | ||
public synchronized binaryReply submit() | public synchronized binaryReply submit() throws ForwardRequest | public synchronized binaryReply submit() { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); header.setBigEndian(Big_endian); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useVersion(ior.Internet.version); RequestHeader rh = header.create_request_header(); rh.object_key = ior.key; rh.operation = m_operation; // Prepare the submission. cdrBufOutput request_part = new cdrBufOutput(); request_part.setOffset(header.getHeaderSize()); request_part.setVersion(header.version); request_part.setCodeSet(cxCodeSet.negotiate(ior.CodeSets)); request_part.setOrb(orb); request_part.setBigEndian(header.isBigEndian()); // This also sets the stream encoding to the encoding, specified // in the header. rh.write(request_part); if (m_args != null && m_args.count() > 0) { write_parameters(header, request_part); if (m_parameter_buffer != null) throw new BAD_INV_ORDER("Please either add parameters or " + "write them into stream, but not both " + "at once." ); } if (m_parameter_buffer != null) { write_parameter_buffer(header, request_part); } // Now the message size is available. header.message_size = request_part.buffer.size(); Socket socket = null; java.lang.Object key = ior.Internet.host + ":" + ior.Internet.port; synchronized (SocketRepository.class) { socket = SocketRepository.get_socket(key); } try { long pause = PAUSE_INITIAL; if (socket == null) { // The BindException may be thrown under very heavy parallel // load. For some time, just wait, exceptiong the socket to free. Open: for (int i = 0; i < PAUSE_STEPS; i++) { try { socket = new Socket(ior.Internet.host, ior.Internet.port); break Open; } catch (BindException ex) { try { // Expecting to free a socket via finaliser. System.gc(); Thread.sleep(pause); pause = pause * 2; if (pause > PAUSE_MAX) pause = PAUSE_MAX; } catch (InterruptedException iex) { } } } } if (socket == null) throw new NO_RESOURCES(ior.Internet.host + ":" + ior.Internet.port + " in use" ); socket.setKeepAlive(true); OutputStream socketOutput = socket.getOutputStream(); // Write the message header. header.write(socketOutput); // Write the request header and parameters (if present). request_part.buffer.writeTo(socketOutput); socketOutput.flush(); if (!socket.isClosed()) { MessageHeader response_header = new MessageHeader(); InputStream socketInput = socket.getInputStream(); response_header.read(socketInput); byte[] r = new byte[ response_header.message_size ]; int n = 0; reading: while (n < r.length) { n += socketInput.read(r, n, r.length - n); } return new binaryReply(orb, response_header, r); } else return EMPTY; } catch (IOException io_ex) { MARSHAL m = new MARSHAL("Unable to open a socket at " + ior.Internet.host + ":" + ior.Internet.port, 10000 + ior.Internet.port, CompletionStatus.COMPLETED_NO ); m.initCause(io_ex); throw m; } finally { try { if (socket != null && !socket.isClosed()) { socket.setSoTimeout(Functional_ORB.TANDEM_REQUESTS); SocketRepository.put_socket(key, socket); } } catch (IOException scx) { InternalError ierr = new InternalError(); ierr.initCause(scx); throw ierr; } } } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/031055047d52e1cffbe5de5ce0c7da51215e931f/gnuRequest.java/buggy/core/src/classpath/gnu/gnu/CORBA/gnuRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
3112,
7817,
4879,
1435,
1216,
17206,
691,
225,
288,
565,
314,
13053,
18,
9428,
12536,
18,
13797,
3665,
18,
24319,
1446,
273,
394,
314,
13053,
18,
9428,
12536,
18,
13797,
3665,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3852,
3112,
7817,
4879,
1435,
1216,
17206,
691,
225,
288,
565,
314,
13053,
18,
9428,
12536,
18,
13797,
3665,
18,
24319,
1446,
273,
394,
314,
13053,
18,
9428,
12536,
18,
13797,
3665,
... |
byte []bytes = str.getBytes(); | TempBuffer tb = TempBuffer.allocate(); byte []buffer = tb.getBuffer(); | public static String base64_encode(String str) { CharBuffer cb = new CharBuffer(); byte []bytes = str.getBytes(); Base64.encode(cb, bytes, 0, bytes.length); return cb.toString(); } | 3863 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3863/850d73e099b77ec10e79e6c3255ffb95272d59d5/UrlModule.java/clean/quercus/src/main/java/com/caucho/quercus/lib/UrlModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
514,
1026,
1105,
67,
3015,
12,
780,
609,
13,
225,
288,
565,
3703,
1892,
2875,
273,
394,
3703,
1892,
5621,
565,
16380,
1892,
8739,
273,
16380,
1892,
18,
16247,
5621,
1160,
5378,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
514,
1026,
1105,
67,
3015,
12,
780,
609,
13,
225,
288,
565,
3703,
1892,
2875,
273,
394,
3703,
1892,
5621,
565,
16380,
1892,
8739,
273,
16380,
1892,
18,
16247,
5621,
1160,
5378,... |
return eBasicSetContainer( null, featureID, msgs ); | return super.eInverseRemove( otherEnd, featureID, msgs ); | public NotificationChain eInverseRemove( InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs ) { if ( featureID >= 0 ) { switch ( eDerivedStructuralFeatureID( featureID, baseClass ) ) { case AttributePackage.PALETTE__ENTRIES : return ( (InternalEList) getEntries( ) ).basicRemove( otherEnd, msgs ); default : return eDynamicInverseRemove( otherEnd, featureID, baseClass, msgs ); } } return eBasicSetContainer( null, featureID, msgs ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/036e8c78765730b146e5854b9d6c397a296fed86/PaletteImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/PaletteImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
27050,
425,
16376,
3288,
12,
3186,
8029,
1308,
1638,
16,
1082,
202,
474,
6966,
16,
1659,
23955,
16,
27050,
8733,
262,
202,
95,
202,
202,
430,
261,
6966,
1545,
374,
262,
202,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
27050,
425,
16376,
3288,
12,
3186,
8029,
1308,
1638,
16,
1082,
202,
474,
6966,
16,
1659,
23955,
16,
27050,
8733,
262,
202,
95,
202,
202,
430,
261,
6966,
1545,
374,
262,
202,
2... |
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... | ||
public void setRangeProperties(int newValue, int newExtent, int newMin, int newMax, boolean adjusting) { target.getReadWriteLock().writeLock().lock(); try { // Correct invalid values if(newMin > newMax) newMin = newMax; if(newValue > newMax) newMax = newValue; if(newValue < newMin) newMin = newValue; // See if non-threshold model changes are necessary boolean changed = (newExtent != getExtent()) || (newMax != getMaximum()) || (adjusting != getValueIsAdjusting()); // Set the lower threshold if applicable if(newMin != getMinimum()) { target.setLowerThreshold(newMin); changed = true; } // Set the upper threshold if applicable if(newValue != getValue()) { target.setUpperThreshold(newValue); changed = true; } // Update all of the range properties if there was a change if(changed) super.setRangeProperties(newValue, newExtent, newMin, newMax, adjusting); } finally { target.getReadWriteLock().writeLock().unlock(); } } | 10062 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10062/566ebdf02da5b2f3be5248c41151e3987117bcbe/ThresholdRangeModelFactory.java/clean/source/ca/odell/glazedlists/swing/ThresholdRangeModelFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
444,
2655,
2297,
12,
474,
6129,
16,
509,
394,
17639,
16,
509,
394,
2930,
16,
509,
394,
2747,
16,
1250,
5765,
310,
13,
288,
5411,
1018,
18,
588,
1994,
3067,
2531,
7675,
2626,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
444,
2655,
2297,
12,
474,
6129,
16,
509,
394,
17639,
16,
509,
394,
2930,
16,
509,
394,
2747,
16,
1250,
5765,
310,
13,
288,
5411,
1018,
18,
588,
1994,
3067,
2531,
7675,
2626,
... | ||
public org.quickfix.field.NoExecs getNoExecs() throws FieldNotFound { org.quickfix.field.NoExecs value = new org.quickfix.field.NoExecs(); | public quickfix.field.NoExecs getNoExecs() throws FieldNotFound { quickfix.field.NoExecs value = new quickfix.field.NoExecs(); | public org.quickfix.field.NoExecs getNoExecs() throws FieldNotFound { org.quickfix.field.NoExecs value = new org.quickfix.field.NoExecs(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/CollateralInquiryAck.java/buggy/src/java/src/quickfix/fix44/CollateralInquiryAck.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
1905,
87,
336,
2279,
1905,
87,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
1905,
87,
460,
273,
394,
2358,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
1905,
87,
336,
2279,
1905,
87,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
1905,
87,
460,
273,
394,
2358,... |
IASTNode def = testF2(file, offset); | IASTNode def = testCtrl_F3(file, offset); | public void testBug95225() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("class Overflow {\n"); //$NON-NLS-1$ buffer.append("public:\n"); //$NON-NLS-1$ buffer.append("Overflow(char,double,double);\n"); //$NON-NLS-1$ buffer.append("};\n"); //$NON-NLS-1$ buffer.append("void f(double x)\n"); //$NON-NLS-1$ buffer.append("{\n"); //$NON-NLS-1$ buffer.append("throw Overflow('+',x,3.45e107);\n"); //$NON-NLS-1$ buffer.append("}\n"); //$NON-NLS-1$ buffer.append("int foo() {\n"); //$NON-NLS-1$ buffer.append("try {\n"); //$NON-NLS-1$ buffer.append("f(1.2);\n"); //$NON-NLS-1$ buffer.append("}\n"); //$NON-NLS-1$ buffer.append("catch(Overflow& oo) {\n"); //$NON-NLS-1$ buffer.append(" // handle exceptions of type Overflow here\n"); //$NON-NLS-1$ buffer.append("}\n"); //$NON-NLS-1$ buffer.append("}\n"); //$NON-NLS-1$ String code = buffer.toString(); IFile file = importFile("testBug95225.cpp", code); //$NON-NLS-1$ int offset = code.indexOf("rflow('+',x,3.45e107);"); //$NON-NLS-1$ IASTNode def = testF2(file, offset); IASTNode decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "Overflow"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 25); assertEquals(((ASTNode)decl).getLength(), 8); assertEquals(((IASTName)def).toString(), "Overflow"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 6); assertEquals(((ASTNode)def).getLength(), 8); offset = code.indexOf("x,3.45e107);"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "x"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 72); assertEquals(((ASTNode)decl).getLength(), 1); assertEquals(((IASTName)def).toString(), "x"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 72); assertEquals(((ASTNode)def).getLength(), 1); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/a80f774ac034fed44b578ede9c708e773e1fabcf/CPPSelectionTestsDOMIndexer.java/buggy/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/selectiontests/CPPSelectionTestsDOMIndexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
19865,
8778,
22,
2947,
1435,
1216,
1185,
288,
3639,
6674,
1613,
273,
394,
6674,
5621,
3639,
1613,
18,
6923,
2932,
1106,
10752,
2426,
18890,
82,
8863,
4329,
3993,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
19865,
8778,
22,
2947,
1435,
1216,
1185,
288,
3639,
6674,
1613,
273,
394,
6674,
5621,
3639,
1613,
18,
6923,
2932,
1106,
10752,
2426,
18890,
82,
8863,
4329,
3993,
17,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.