rem stringlengths 1 53.3k | add stringlengths 0 80.5k | context stringlengths 6 326k | meta stringlengths 141 403 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
Token xsp; xsp = jj_scanpos; if (jj_3R_28()) { jj_scanpos = xsp; if (jj_3R_29()) return true; } return false; | Token xsp; xsp = jj_scanpos; if (jj_3R_28()) { jj_scanpos = xsp; if (jj_3R_29()) return true; | final private boolean jj_3R_25() { Token xsp; xsp = jj_scanpos; if (jj_3R_28()) { jj_scanpos = xsp; if (jj_3R_29()) return true; } return false; } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/bad9201cffeb6c6da295101be65bfa4924caa39e/JspParser.java/buggy/pmd/src/net/sourceforge/pmd/jsp/ast/JspParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
727,
3238,
1250,
10684,
67,
23,
54,
67,
2947,
1435,
288,
3639,
3155,
619,
1752,
31,
3639,
619,
1752,
273,
10684,
67,
9871,
917,
31,
3639,
309,
261,
78,
78,
67,
23,
54,
67,
6030,
10756... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
727,
3238,
1250,
10684,
67,
23,
54,
67,
2947,
1435,
288,
3639,
3155,
619,
1752,
31,
3639,
619,
1752,
273,
10684,
67,
9871,
917,
31,
3639,
309,
261,
78,
78,
67,
23,
54,
67,
6030,
10756... |
if(req.getParameter("verifyUser") != null) { String loginName = (req.getParameter("login_name")==null) ? "" : (req.getParameter("login_name")) ; String password = (req.getParameter("password")==null) ? "" : (req.getParameter("password")) ; String sqlQ = "GetUserIdFromName '" + loginName + "', '" + password + "'" ; userId = imcref.sqlProcedureStr( sqlQ ) ; if( userId == null ) { String header = req.getServletPath() ; AdminError2 err = new AdminError2(req,res,header,50) ; log(header + err.getErrorMsg()) ; return ; } String currPass = imcref.sqlProcedureStr("GetUserPassword " + userId ) ; if(!currPass.equals(password)) { String header = req.getServletPath() ; AdminError2 err = new AdminError2(req,res,header,51) ; log(header + err.getErrorMsg()) ; return ; } if(session != null ) { session.setAttribute("AdminUser.user_id", userId ) ; session.setAttribute("AdminUser.passedLogin", "1" ) ; } res.sendRedirect("UserChangePrefs?changeUser=on"); return ; } | public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { String host = req.getHeader("Host") ; String server = Utility.getDomainPref("adminserver",host) ; String adminServer = Utility.getDomainPref("adminserver",host) ; // Lets validate the session// if (super.checkSession(req,res) == false) return ; // Lets get an user object imcode.server.User user = super.getUserObj(req,res) ; RmiConf rmi = new RmiConf(user) ; String userId = null ; // Get the session HttpSession session = req.getSession(true) ; // Lets check if the user wants to edit his phonenumbers // ******* Edit phones fields ********** if( req.getParameter("edit_phones") != null ) { log("Ok, edit phones") ; String user_id = req.getParameter("CURR_USER_ID") ; if(user_id == null) { String header = req.getServletPath() ; AdminError2 err = new AdminError2(req,res,header,51) ; log(header + err.getErrorMsg()) ; return ; } // Lets update the session with a return back to variable which the phonenbr // function will look for if(session != null ) { session.setAttribute("UserChangePrefs.goBack", "1" ) ; } res.sendRedirect("AdminUserPhones?user_id=" + user_id); } // End of editphones // ********** SAVE A USER ************* if( req.getParameter("SAVE_USER") != null ) { // log("Ok, save user parameters") ; userId = (String) session.getAttribute("AdminUser.user_id" ) ; // Lets get the users information from db Properties currUserInfo = UserHandler.getUserInfoDB(adminServer, userId) ; // Lets get the parameters from html page and validate them Properties params = this.getParameters(req) ; //log(currUserInfo.toString()) ; // Lets check the password. if its empty, then it wont be updated, (we use // the password from the db instead if(params.getProperty("password1").equals("")) { params.setProperty("password1" , currUserInfo.getProperty("login_password")) ; params.setProperty("password2" , currUserInfo.getProperty("login_password")) ; //log("gick in") ; } //log(params.getProperty("password1")) ; if( UserHandler.verifyPassword(params,req,res) == false) { return ; } if(checkParameters(params) == false) { String header = req.getServletPath() ; AdminError2 err = new AdminError2(req,res,header,52) ; log(header + err.getErrorMsg()) ; return ; } // Lets update the db object with the new info from http form currUserInfo = this.copyProps(params ,currUserInfo) ; currUserInfo.setProperty("password1", params.getProperty("password1") ) ; currUserInfo.setProperty("title", params.getProperty("title")) ; currUserInfo.setProperty("company", params.getProperty("company")) ; // Lets build the users information into a string and add it to db //String userStr = createUserInfoString(params, userId) ; String userStr = "UpdateUser " + UserHandler.createUserInfoString(currUserInfo) ; //log("SQL: " + userStr) ; //imc.execSqlUpdateProcedure(server, "UpdateUser " + userStr) ; IMCServiceRMI.sqlUpdateProcedure(server, userStr) ; // this.log("SAVED_CHANGED_USER r klar") ; // ****** Default option. Ok, Generate a login page to the user VariableManager vm = new VariableManager() ; vm.addProperty("SERVLET_URL", MetaInfo.getServletPath(req) ) ; this.sendHtml(req,res,vm, DONE ) ; return ; } // ************* Verfiy username and password ************** if(req.getParameter("verifyUser") != null) { String loginName = (req.getParameter("login_name")==null) ? "" : (req.getParameter("login_name")) ; String password = (req.getParameter("password")==null) ? "" : (req.getParameter("password")) ; // Validate loginparams against the DB String sqlQ = "GetUserIdFromName '" + loginName + "', '" + password + "'" ; userId = rmi.execJanusSqlProcedureStr(server, sqlQ ) ; // log("GetUserIdFromName ok") ; // Lets check that we the found the user. Otherwise send unvailid username password if( userId == null ) { String header = req.getServletPath() ; AdminError2 err = new AdminError2(req,res,header,50) ; log(header + err.getErrorMsg()) ; return ; } // Lets check if the users password are correct String currPass = rmi.execJanusSqlProcedureStr(server, "GetUserPassword " + userId ) ; if(!currPass.equals(password)) { String header = req.getServletPath() ; AdminError2 err = new AdminError2(req,res,header,51) ; log(header + err.getErrorMsg()) ; return ; } // Ok, the user is verified, lets generate the users infopage // Lets set the user id we are working on // HttpSession session = req.getSession(true) ; if(session != null ) { session.setAttribute("AdminUser.user_id", userId ) ; session.setAttribute("AdminUser.passedLogin", "1" ) ; } // ok, redirect to myself res.sendRedirect("UserChangePrefs?changeUser=on"); return ; } // end verifyUser ///*********** Lets get the users information ************ // Lets generate the users info if(req.getParameter("changeUser") != null) { session = req.getSession(false) ; if(session == null ) { String header = req.getServletPath() ; AdminError2 err = new AdminError2(req,res,header,52) ; log(header + err.getErrorMsg()) ; return ; } if(session != null ) { userId = (String) session.getAttribute("AdminUser.user_id") ; } String showUserInfo = (String) session.getAttribute("AdminUser.passedLogin" ) ; if(showUserInfo.equals("1")) { // Ok, we got the user. Lets get his settings. VariableManager vm = new VariableManager() ; String[] userInfo = rmi.execJanusSqlProcedure(server, "UserPrefsChange " + userId ) ; String[] keys = {"USER_ID","LOGIN_NAME","PWD1","PWD2","FIRST_NAME", "LAST_NAME","TITLE", "COMPANY", "ADDRESS","CITY","ZIP","COUNTRY","COUNTRY_COUNCIL", "EMAIL", "LANG_ID" } ; //log(hash.toString()) ; //Vector userV = this.convert2Vector(userInfo) ; for(int i = 0 ; i<keys.length; i++) { vm.addProperty(keys[i], userInfo[i]); } //Properties p = UserHandler.getUserInfoDB(server, userId) ; //vm = vm.merge(p) ; // Lets fix all users phone numbers from DB String[] phonesArr = rmi.execJanusSqlProcedure(server, "GetUserPhones " + userId) ; Vector phonesV = super.convert2Vector(phonesArr) ; Html htm = new Html() ; String phones = htm.createHtmlCode("ID_OPTION", "", phonesV ) ; vm.addProperty("PHONES_MENU", phones ) ; vm.addProperty("CURR_USER_ID", userId ) ; // Lets get the the users language id String[] langList = rmi.execJanusSqlProcedure(server, "GetLanguageList") ; Vector selectedLangV = new Vector() ; selectedLangV.add(vm.getProperty("LANG_ID")) ; vm.addProperty("LANG_TYPES", htm.createHtmlCode("ID_OPTION",selectedLangV, super.convert2Vector(langList))) ; // Lets set the user id we are working on // HttpSession session = req.getSession(true) ; String theUserId = null ; if(session != null ) { session.setAttribute("AdminUser.user_id", userId ) ; session.setAttribute("AdminUser.passedLogin", "1" ) ; } // Lets generete the change user page this.sendHtml(req,res,vm, CHANGE_PREFS ) ; return ; } } // ****** Default option. Ok, Generate a login page to the user VariableManager vm = new VariableManager() ; vm.addProperty("SERVLET_URL", MetaInfo.getServletPath(req) ) ; Html ht = new Html() ; this.sendHtml(req,res,vm, LOGIN ) ; return ;} // end HTTP POST | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a270627916b37a677a391dd9f45c54d3d6f12503/UserChangePrefs.java/clean/servlets/UserChangePrefs.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
309,
12,
3658,
18,
588,
1662,
2932,
8705,
1299,
7923,
480,
446,
13,
288,
514,
3925,
461,
273,
261,
3658,
18,
588,
1662,
2932,
5819,
67,
529,
7923,
631,
2011,
13,
692,
1408,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
309,
12,
3658,
18,
588,
1662,
2932,
8705,
1299,
7923,
480,
446,
13,
288,
514,
3925,
461,
273,
261,
3658,
18,
588,
1662,
2932,
5819,
67,
529,
7923,
631,
2011,
13,
692,
1408,
... | |
PropertyManager.getInstance().serialize(); | public void saving(ISaveContext context) throws CoreException { // No state to be saved by the plug-in, but request a // resource delta to be used on next activation. context.needDelta(); PropertyManager.getInstance().serialize(); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/6140a76f77595ad910c847e2c895903fcdfd62ca/ResourceChangeHandler.java/clean/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ResourceChangeHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
12392,
12,
45,
4755,
1042,
819,
13,
1216,
30015,
288,
202,
202,
759,
202,
2279,
919,
358,
506,
5198,
635,
326,
15852,
17,
267,
16,
1496,
590,
279,
202,
565,
368,
225,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12392,
12,
45,
4755,
1042,
819,
13,
1216,
30015,
288,
202,
202,
759,
202,
2279,
919,
358,
506,
5198,
635,
326,
15852,
17,
267,
16,
1496,
590,
279,
202,
565,
368,
225,
1... | |
public void createControl(Composite parent) { Composite container = new Composite(parent, SWT.NULL); FillLayout layout = new FillLayout(); container.setLayout(layout); viewer = new TableViewer(container, SWT.SINGLE | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL); viewer.setContentProvider(new RepositoryContentProvider()); viewer.setLabelProvider(new TaskRepositoryLabelProvider()); viewer.setInput(MylarTaskListPlugin.getRepositoryManager().getRepositoryClients()); viewer.addSelectionChangedListener(new ISelectionChangedListener() { public void selectionChanged(SelectionChangedEvent event) { IStructuredSelection selection = (IStructuredSelection)event.getSelection(); if (selection.getFirstElement() instanceof TaskRepository) { wizard.setRepository((TaskRepository)selection.getFirstElement()); SelectRepositoryPage.this.setPageComplete(true); wizard.getContainer().updateButtons(); } } }); setControl(container); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/0c6bed4632768f6cabddb0a50b03398738a3aefc/SelectRepositoryPage.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/wizards/SelectRepositoryPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
2640,
3367,
12,
799,
1724,
881,
817,
15329,
202,
202,
799,
1724,
31313,
1521,
33,
2704,
9400,
12,
2938,
16,
55,
8588,
18,
8560,
1769,
202,
202,
8026,
3744,
6741,
33,
270... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6459,
2640,
3367,
12,
799,
1724,
881,
817,
15329,
202,
202,
799,
1724,
31313,
1521,
33,
2704,
9400,
12,
2938,
16,
55,
8588,
18,
8560,
1769,
202,
202,
8026,
3744,
6741,
33,
270... | ||
lhs = stack[stackTop]; | Object lhs = stack[stackTop]; | public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { if (cx.interpreterSecurityDomain != theData.securityDomain) { // If securityDomain is different, update domain in Cotext // and call self under new domain Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; try { return interpret(cx, scope, thisObj, args, fnOrScript, theData); } finally { cx.interpreterSecurityDomain = savedDomain; } } int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = (fnOrScript.argNames == null) ? 0 : fnOrScript.argNames.length; final int maxLocals = theData.itsMaxLocals; final int maxTryDepth = theData.itsMaxTryDepth; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_SCOPE_SHFT = LOCAL_SHFT + maxLocals;// stack[0 <= i < VAR_SHFT]: stack data// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_SCOPE_SHFT]: used for newtemp/usetemp// stack[TRY_SCOPE_SHFT <= i]: try scopes// when 0 <= i < LOCAL_SHFT and stack[x] == DBL_MRK,// sDbl[i] gives the number value final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[TRY_SCOPE_SHFT + maxTryDepth]; double[] sDbl = new double[TRY_SCOPE_SHFT]; int stackTop = -1; byte[] iCode = theData.itsICode; String[] strings = theData.itsStringTable; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { int definedArgs = fnOrScript.argCount; if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; double lDbl; int rIntValue; double rDbl;// tryStack[2 * i]: starting pc of catch block// tryStack[2 * i + 1]: starting pc of finally block int[] tryStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } Object result = undefined; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : if (tryStackTop == 0) { tryStack = new int[maxTryDepth * 2]; } i = getTarget(iCode, pc + 1); if (i == pc) i = 0; tryStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; tryStack[tryStackTop * 2 + 1] = i; stack[TRY_SCOPE_SHFT + tryStackTop] = scope; ++tryStackTop; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; case TokenStream.GETBASE : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; // what about class cast exception here for lhs? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case TokenStream.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = getShort(iCode, pc + 1); name = strings[getShort(iCode, pc + 3)]; count = getShort(iCode, pc + 5); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; case TokenStream.CALL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { i = getShort(iCode, pc + 1); if (i != -1) lhs = strings[i]; } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.NEW : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && getShort(iCode, pc + 1) != -1) { // special code for better error message for call // to undefined lhs = strings[getShort(iCode, pc + 1)]; } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = strings[getShort(iCode, pc + 1)]; pc += 2; break; case SHORTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case INTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = theData. itsDoubleTable[getShort(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = getShort(iCode, pc + 1); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = getShort(iCode, pc + 1); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case SOURCEFILE_ICODE : cx.interpreterSourceFile = theData.itsSourceFile; break; case LINE_ICODE : case BREAKPOINT_ICODE : i = getShort(iCode, pc + 1); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == BREAKPOINT_ICODE || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, RUNTIME = 2, OTHER = 3; int exType; Object errObj; // Object seen by catch for (;;) { if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { // an offical ECMA error object, errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else if (ex instanceof WrappedException) { Object w = ((WrappedException) ex).unwrap(); if (w instanceof Throwable) { ex = (Throwable) w; continue; } errObj = ex; exType = RUNTIME; } else if (ex instanceof RuntimeException) { errObj = ex; exType = RUNTIME; } else { errObj = ex; // Error instance exType = OTHER; } break; } if (exType != OTHER && cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, errObj); } boolean rethrow = true; if (exType != OTHER && tryStackTop > 0) { --tryStackTop; if (exType == SCRIPT_THROW || exType == ECMA) { // Check for catch only for // JavaScriptException and EcmaError pc = tryStack[tryStackTop * 2]; if (pc != 0) { // Has catch block rethrow = false; } } if (rethrow) { pc = tryStack[tryStackTop * 2 + 1]; if (pc != 0) { // has finally block rethrow = false; errObj = ex; } } } if (rethrow) { if (frame != null) cx.popFrame(); if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; if (exType == ECMA || exType == RUNTIME) throw (RuntimeException)ex; throw (Error)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // prepare stack and restore this function's security domain. scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; stackTop = 0; stack[0] = errObj; } } if (frame != null) cx.popFrame(); if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/052726b68e684efc593535d50a73767571084837/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
282,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
282,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
282,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
282,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
3... |
in.seek(curPos); | in.reset(); } else { bytes += 1; | private static String readLine(FSDataInputStream in) throws IOException { StringBuffer buffer = new StringBuffer(); while (true) { int b = in.read(); if (b == -1) break; char c = (char)b; // bug: this assumes eight-bit characters. if (c == '\n') break; if (c == '\r') { long curPos = in.getPos(); char nextC = (char)in.read(); if (nextC != '\n') { in.seek(curPos); } break; } buffer.append(c); } return buffer.toString(); } | 48130 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48130/48264173e88fdcd9b42c4d801117c3b7cb289242/TextInputFormat.java/buggy/src/java/org/apache/hadoop/mapred/TextInputFormat.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
514,
12273,
12,
4931,
751,
4348,
316,
13,
1216,
1860,
288,
565,
6674,
1613,
273,
394,
6674,
5621,
565,
1323,
261,
3767,
13,
288,
1377,
509,
324,
273,
316,
18,
896,
5621,
1377... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
514,
12273,
12,
4931,
751,
4348,
316,
13,
1216,
1860,
288,
565,
6674,
1613,
273,
394,
6674,
5621,
565,
1323,
261,
3767,
13,
288,
1377,
509,
324,
273,
316,
18,
896,
5621,
1377... |
static private boolean deduceTemplateArgument( Map map, ISymbol pSymbol, TypeInfo a ){//, Map argumentMap ){ ISymbol symbol; TypeInfo p = getParameterTypeForDeduction( pSymbol ); a = getArgumentTypeForDeduction( a ); if( p.isType( TypeInfo.t_type ) ){ symbol = p.getTypeSymbol(); ISymbol aSymbol = a.getTypeSymbol(); if( symbol instanceof IDeferredTemplateInstance || symbol.isTemplateInstance() ){ return deduceFromTemplateTemplateArguments(map, symbol, aSymbol); } else { if( symbol.isType( TypeInfo.t_templateParameter ) ){ if( symbol.getTypeInfo().getTemplateParameterType() == TypeInfo.t_typeName ){ //a = getFlatTypeInfo( a ); List aPtrs = a.getPtrOperators(); List pPtrs = p.getPtrOperators(); //TODO cvlist T if( pPtrs != null && pPtrs.size() > 0){ if( aPtrs == null ){ return false; } Iterator pIter = pPtrs.iterator(); ListIterator aIter = aPtrs.listIterator(); PtrOp pOp = null; PtrOp aOp = null; while( pIter.hasNext() ){ pOp = (PtrOp) pIter.next(); if( !aIter.hasNext() ){ return false; } else { aOp = (PtrOp) aIter.next(); if( pOp.getType() == aOp.getType() ){ if( !pOp.equals( aOp ) ){ if( pIter.hasNext() || pOp.compareCVTo( aOp ) > 0 ){ return false; } else { PtrOp newOp = new PtrOp( PtrOp.t_undef ); newOp.setConst( aOp.isConst() ); newOp.setVolatile( aOp.isVolatile() ); aIter.set( newOp ); } } else { aIter.remove(); } } else { return false; } } } return deduceArgument( map, symbol, a ); } else { //T return deduceArgument( map, symbol, a ); } } else if ( symbol.getTypeInfo().getTemplateParameterType() == TypeInfo.t_template ){ } else { //non-type parameter if( symbol.getTypeInfo().getTemplateParameterType() == a.getType() ){ return deduceArgument( map, symbol, a ); } else { return false; } } } //T (*) ( ), T ( T::* ) ( T ), & variations else if( symbol.isType( TypeInfo.t_function ) ){ if( !(aSymbol instanceof IParameterizedSymbol)|| !aSymbol.isType( TypeInfo.t_function ) ) { return false; } IParameterizedSymbol pFunction = (IParameterizedSymbol)symbol; IParameterizedSymbol aFunction = (IParameterizedSymbol)aSymbol; if( !deduceTemplateArgument( map, pFunction.getReturnType(), aFunction.getReturnType().getTypeInfo() ) ){ return false; } List pPtrs = p.getPtrOperators(); if( pPtrs.size() != 0 ){ PtrOp op = (PtrOp) pPtrs.iterator().next(); if( op.getType() == PtrOp.t_memberPointer ){ TypeInfo info = new TypeInfo( TypeInfo.t_type, 0, aFunction.getContainingSymbol() ); if( !deduceTemplateArgument( map, op.getMemberOf(), info ) ){ return false; } } } List pParams = pFunction.getParameterList(); List aParams = aFunction.getParameterList(); if( pParams.size() != aParams.size() ){ return false; } else { Iterator pIter = pParams.iterator(); Iterator aIter = aParams.iterator(); while( pIter.hasNext() ){ TypeInfo info = ((ISymbol)aIter.next()).getTypeInfo(); if( !deduceTemplateArgument( map, (ISymbol) pIter.next(), info ) ){ return false; } } } return true; } } } else { if( p.isType( TypeInfo.t_templateParameter ) ){ return deduceArgument( map, pSymbol, a ); } if( p.getType() == a.getType() ){ if( p.getDefault() != null ){ return ( p.getDefault().equals( a.getDefault() ) ); } return true; } } return false; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/b416d5f3b91a9ba8919dec6f5cd139d424a6ad19/TemplateEngine.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/pst/TemplateEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
3238,
1250,
11140,
3965,
2283,
1379,
12,
1635,
852,
16,
4437,
3284,
293,
5335,
16,
1412,
966,
279,
262,
95,
759,
16,
1635,
1237,
863,
262,
95,
202,
202,
5127,
3284,
3273,
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,
3845,
3238,
1250,
11140,
3965,
2283,
1379,
12,
1635,
852,
16,
4437,
3284,
293,
5335,
16,
1412,
966,
279,
262,
95,
759,
16,
1635,
1237,
863,
262,
95,
202,
202,
5127,
3284,
3273,
31,... | ||
completedDownloadsToTempContent.addChild(createRequestTable(pageMaker, completedDownloadToTemp, new int[] { LIST_IDENTIFIER, LIST_SIZE, LIST_MIME_TYPE, LIST_DOWNLOAD, LIST_PERSISTENCE, LIST_KEY })); } else { completedDownloadsToTempContent.addChild(createRequestTable(pageMaker, completedDownloadToTemp, new int[] { LIST_SIZE, LIST_MIME_TYPE, LIST_DOWNLOAD, LIST_PERSISTENCE, LIST_KEY })); | completedDownloadsToTempContent.addChild(createRequestTable(pageMaker, ctx, completedDownloadToTemp, new int[] { LIST_IDENTIFIER, LIST_SIZE, LIST_MIME_TYPE, LIST_DOWNLOAD, LIST_PERSISTENCE, LIST_KEY })); } else { completedDownloadsToTempContent.addChild(createRequestTable(pageMaker, ctx, completedDownloadToTemp, new int[] { LIST_SIZE, LIST_MIME_TYPE, LIST_DOWNLOAD, LIST_PERSISTENCE, LIST_KEY })); | public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { // We ensure that we have a FCP server running if(!fcp.enabled){ this.writeReply(ctx, 400, "text/plain", "FCP server is missing", "You need to enable the FCP server to access this page"); return; } HTTPRequest request = new HTTPRequest(uri, null, ctx); String requestPath = request.getPath().substring("/queue/".length()); if (requestPath.length() > 0) { /* okay, there is something in the path, check it. */ try { FreenetURI key = new FreenetURI(requestPath); /* locate request */ ClientRequest[] clientRequests = fcp.getGlobalRequests(); for (int requestIndex = 0, requestCount = clientRequests.length; requestIndex < requestCount; requestIndex++) { ClientRequest clientRequest = clientRequests[requestIndex]; if (clientRequest.hasFinished() && (clientRequest instanceof ClientGet)) { ClientGet clientGet = (ClientGet) clientRequest; if (clientGet.getURI().toString(false).equals(key.toString(false))) { Bucket data = clientGet.getBucket(); String mimeType = clientGet.getMIMEType(); String requestedMimeType = request.getParam("type", null); String forceString = request.getParam("force"); FProxyToadlet.handleDownload(ctx, data, ctx.getBucketFactory(), mimeType, requestedMimeType, forceString, request.isParameterSet("forcedownload"), "/queue/", key, "", "/queue/"); return; } } } } catch (MalformedURLException mue1) { } } PageMaker pageMaker = ctx.getPageMaker(); // First, get the queued requests, and separate them into different types. LinkedList completedDownloadToDisk = new LinkedList(); LinkedList completedDownloadToTemp = new LinkedList(); LinkedList completedUpload = new LinkedList(); LinkedList completedDirUpload = new LinkedList(); LinkedList failedDownload = new LinkedList(); LinkedList failedUpload = new LinkedList(); LinkedList failedDirUpload = new LinkedList(); LinkedList uncompletedDownload = new LinkedList(); LinkedList uncompletedUpload = new LinkedList(); LinkedList uncompletedDirUpload = new LinkedList(); ClientRequest[] reqs = fcp.getGlobalRequests(); if(Logger.shouldLog(Logger.MINOR, this)) Logger.minor(this, "Request count: "+reqs.length); if(reqs.length < 1){ HTMLNode pageNode = pageMaker.getPageNode("Global queue of " + core.getMyName()); HTMLNode contentNode = pageMaker.getContentNode(pageNode); /* add alert summary box */ contentNode.addChild(core.alerts.createSummary()); HTMLNode infobox = contentNode.addChild(pageMaker.getInfobox("infobox-information", "Global queue is empty")); HTMLNode infoboxContent = pageMaker.getContentNode(infobox); infoboxContent.addChild("#", "There is no task queued on the global queue at the moment."); contentNode.addChild(createInsertBox(pageMaker)); writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; } for(int i=0;i<reqs.length;i++) { ClientRequest req = reqs[i]; if(req instanceof ClientGet) { ClientGet cg = (ClientGet) req; if(cg.hasSucceeded()) { if(cg.isDirect()) completedDownloadToTemp.add(cg); else if(cg.isToDisk()) completedDownloadToDisk.add(cg); else // FIXME Logger.error(this, "Don't know what to do with "+cg); } else if(cg.hasFinished()) { failedDownload.add(cg); } else { uncompletedDownload.add(cg); } } else if(req instanceof ClientPut) { ClientPut cp = (ClientPut) req; if(cp.hasSucceeded()) { completedUpload.add(cp); } else if(cp.hasFinished()) { failedUpload.add(cp); } else { uncompletedUpload.add(cp); } } else if(req instanceof ClientPutDir) { ClientPutDir cp = (ClientPutDir) req; if(cp.hasSucceeded()) { completedDirUpload.add(cp); } else if(cp.hasFinished()) { failedDirUpload.add(cp); } else { uncompletedDirUpload.add(cp); } } } Comparator identifierComparator = new Comparator() { public int compare(Object first, Object second) { ClientRequest firstRequest = (ClientRequest) first; ClientRequest secondRequest = (ClientRequest) second; short firstPrio = firstRequest.getPriority(); short secondPrio = secondRequest.getPriority(); if(firstPrio > secondPrio) return 1; if(secondPrio > firstPrio) return -1; return firstRequest.getIdentifier().compareTo(secondRequest.getIdentifier()); } }; Collections.sort(completedDownloadToDisk, identifierComparator); Collections.sort(completedDownloadToTemp, identifierComparator); Collections.sort(completedUpload, identifierComparator); Collections.sort(completedDirUpload, identifierComparator); Collections.sort(failedDownload, identifierComparator); Collections.sort(failedUpload, identifierComparator); Collections.sort(failedDirUpload, identifierComparator); Collections.sort(uncompletedDownload, identifierComparator); Collections.sort(uncompletedUpload, identifierComparator); Collections.sort(uncompletedDirUpload, identifierComparator); HTMLNode pageNode = pageMaker.getPageNode("(" + (uncompletedDirUpload.size() + uncompletedDownload.size() + uncompletedUpload.size()) + '/' + (failedDirUpload.size() + failedDownload.size() + failedUpload.size()) + '/' + (completedDirUpload.size() + completedDownloadToDisk.size() + completedDownloadToTemp.size() + completedUpload.size()) + ") Queued Requests of " + core.getMyName()); HTMLNode contentNode = pageMaker.getContentNode(pageNode); /* add alert summary box */ contentNode.addChild(core.alerts.createSummary()); /* add file insert box */ contentNode.addChild(createInsertBox(pageMaker)); /* navigation bar */ HTMLNode navigationBar = pageMaker.getInfobox("navbar", "Request Navigation"); HTMLNode navigationContent = pageMaker.getContentNode(navigationBar).addChild("ul"); boolean includeNavigationBar = false; if (!completedDownloadToTemp.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#completedDownloadToTemp", "Completed downloads to temp"); includeNavigationBar = true; } if (!completedDownloadToDisk.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#completedDownloadToDisk", "Completed downloads to disk"); includeNavigationBar = true; } if (!completedUpload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#completedUpload", "Completed uploads"); includeNavigationBar = true; } if (!completedDirUpload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#completeDirUpload", "Completed directory uploads"); includeNavigationBar = true; } if (!failedDownload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#failedDownload", "Failed downloads"); includeNavigationBar = true; } if (!failedUpload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#failedUpload", "Failed uploads"); includeNavigationBar = true; } if (!failedDirUpload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#failedDirUpload", "Failed directory uploads"); includeNavigationBar = true; } if (!uncompletedDownload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#uncompletedDownload", "Downloads in progress"); includeNavigationBar = true; } if (!uncompletedUpload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#uncompletedUpload", "Uploads in progress"); includeNavigationBar = true; } if (!uncompletedDirUpload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#uncompletedDirUpload", "Directory uploads in progress"); includeNavigationBar = true; } if (includeNavigationBar) { contentNode.addChild(navigationBar); } HTMLNode legendBox = contentNode.addChild(pageMaker.getInfobox("legend", "Legend")); HTMLNode legendContent = pageMaker.getContentNode(legendBox); HTMLNode legendTable = legendContent.addChild("table", "class", "queue"); HTMLNode legendRow = legendTable.addChild("tr"); for(int i=0; i<7; i++){ legendRow.addChild("td", "class", "priority" + i, "Priority " + i); } if (reqs.length > 1 && SimpleToadletServer.isPanicButtonToBeShown) { contentNode.addChild(createPanicBox(pageMaker)); } boolean advancedEnabled = core.isAdvancedDarknetEnabled(); if (!completedDownloadToTemp.isEmpty()) { contentNode.addChild("a", "name", "completedDownloadToTemp"); HTMLNode completedDownloadsTempInfobox = contentNode.addChild(pageMaker.getInfobox("completed_requests", "Completed: Downloads to temporary directory (" + completedDownloadToTemp.size() + ')')); HTMLNode completedDownloadsToTempContent = pageMaker.getContentNode(completedDownloadsTempInfobox); if (advancedEnabled) { completedDownloadsToTempContent.addChild(createRequestTable(pageMaker, completedDownloadToTemp, new int[] { LIST_IDENTIFIER, LIST_SIZE, LIST_MIME_TYPE, LIST_DOWNLOAD, LIST_PERSISTENCE, LIST_KEY })); } else { completedDownloadsToTempContent.addChild(createRequestTable(pageMaker, completedDownloadToTemp, new int[] { LIST_SIZE, LIST_MIME_TYPE, LIST_DOWNLOAD, LIST_PERSISTENCE, LIST_KEY })); } } if (!completedDownloadToDisk.isEmpty()) { contentNode.addChild("a", "name", "completedDownloadToDisk"); HTMLNode completedToDiskInfobox = contentNode.addChild(pageMaker.getInfobox("completed_requests", "Completed: Downloads to download directory (" + completedDownloadToDisk.size() + ')')); HTMLNode completedToDiskInfoboxContent = pageMaker.getContentNode(completedToDiskInfobox); if (advancedEnabled) { completedToDiskInfoboxContent.addChild(createRequestTable(pageMaker, completedDownloadToDisk, new int[] { LIST_IDENTIFIER, LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_DOWNLOAD, LIST_PERSISTENCE, LIST_KEY })); } else { completedToDiskInfoboxContent.addChild(createRequestTable(pageMaker, completedDownloadToDisk, new int[] { LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_DOWNLOAD, LIST_PERSISTENCE, LIST_KEY })); } } if (!completedUpload.isEmpty()) { contentNode.addChild("a", "name", "completedUpload"); HTMLNode completedUploadInfobox = contentNode.addChild(pageMaker.getInfobox("completed_requests", "Completed: Uploads (" + completedUpload.size() + ')')); HTMLNode completedUploadInfoboxContent = pageMaker.getContentNode(completedUploadInfobox); if (advancedEnabled) { completedUploadInfoboxContent.addChild(createRequestTable(pageMaker, completedUpload, new int[] { LIST_IDENTIFIER, LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PERSISTENCE, LIST_KEY })); } else { completedUploadInfoboxContent.addChild(createRequestTable(pageMaker, completedUpload, new int[] { LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PERSISTENCE, LIST_KEY })); } } if (!completedDirUpload.isEmpty()) { contentNode.addChild("a", "name", "completedDirUpload"); HTMLNode completedUploadDirInfobox = contentNode.addChild(pageMaker.getInfobox("completed_requests", "Completed: Directory Uploads (" + completedDirUpload.size() + ')')); HTMLNode completedUploadDirContent = pageMaker.getContentNode(completedUploadDirInfobox); if (advancedEnabled) { completedUploadDirContent.addChild(createRequestTable(pageMaker, completedDirUpload, new int[] { LIST_IDENTIFIER, LIST_FILES, LIST_TOTAL_SIZE, LIST_PERSISTENCE, LIST_KEY })); } else { completedUploadDirContent.addChild(createRequestTable(pageMaker, completedDirUpload, new int[] { LIST_FILES, LIST_TOTAL_SIZE, LIST_PERSISTENCE, LIST_KEY })); } } if (!failedDownload.isEmpty()) { contentNode.addChild("a", "name", "failedDownload"); HTMLNode failedInfobox = contentNode.addChild(pageMaker.getInfobox("failed_requests", "Failed: Downloads (" + failedDownload.size() + ')')); HTMLNode failedContent = pageMaker.getContentNode(failedInfobox); if (advancedEnabled) { failedContent.addChild(createRequestTable(pageMaker, failedDownload, new int[] { LIST_IDENTIFIER, LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_REASON, LIST_PERSISTENCE, LIST_KEY })); } else { failedContent.addChild(createRequestTable(pageMaker, failedDownload, new int[] { LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_REASON, LIST_PERSISTENCE, LIST_KEY })); } } if (!failedUpload.isEmpty()) { contentNode.addChild("a", "name", "failedUpload"); HTMLNode failedInfobox = contentNode.addChild(pageMaker.getInfobox("failed_requests", "Failed: Uploads (" + failedUpload.size() + ')')); HTMLNode failedContent = pageMaker.getContentNode(failedInfobox); if (advancedEnabled) { failedContent.addChild(createRequestTable(pageMaker, failedUpload, new int[] { LIST_IDENTIFIER, LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_REASON, LIST_PERSISTENCE, LIST_KEY })); } else { failedContent.addChild(createRequestTable(pageMaker, failedUpload, new int[] { LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_REASON, LIST_PERSISTENCE, LIST_KEY })); } } if (!failedDirUpload.isEmpty()) { contentNode.addChild("a", "name", "failedDirUpload"); HTMLNode failedInfobox = contentNode.addChild(pageMaker.getInfobox("failed_requests", "Failed: Directory Uploads (" + failedDirUpload.size() + ')')); HTMLNode failedContent = pageMaker.getContentNode(failedInfobox); if (advancedEnabled) { failedContent.addChild(createRequestTable(pageMaker, failedDirUpload, new int[] { LIST_IDENTIFIER, LIST_FILES, LIST_TOTAL_SIZE, LIST_PROGRESS, LIST_REASON, LIST_PERSISTENCE, LIST_KEY })); } else { failedContent.addChild(createRequestTable(pageMaker, failedDirUpload, new int[] { LIST_FILES, LIST_TOTAL_SIZE, LIST_PROGRESS, LIST_REASON, LIST_PERSISTENCE, LIST_KEY })); } } if (!uncompletedDownload.isEmpty()) { contentNode.addChild("a", "name", "uncompletedDownload"); HTMLNode uncompletedInfobox = contentNode.addChild(pageMaker.getInfobox("requests_in_progress", "In Progress: Downloads (" + uncompletedDownload.size() + ')')); HTMLNode uncompletedContent = pageMaker.getContentNode(uncompletedInfobox); if (advancedEnabled) { uncompletedContent.addChild(createRequestTable(pageMaker, uncompletedDownload, new int[] { LIST_IDENTIFIER, LIST_PRIORITY, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_PERSISTENCE, LIST_FILENAME, LIST_KEY })); } else { uncompletedContent.addChild(createRequestTable(pageMaker, uncompletedDownload, new int[] { LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_PERSISTENCE, LIST_KEY })); } } if (!uncompletedUpload.isEmpty()) { contentNode.addChild("a", "name", "uncompletedUpload"); HTMLNode uncompletedInfobox = contentNode.addChild(pageMaker.getInfobox("requests_in_progress", "In Progress: Uploads (" + uncompletedUpload.size() + ')')); HTMLNode uncompletedContent = pageMaker.getContentNode(uncompletedInfobox); if (advancedEnabled) { uncompletedContent.addChild(createRequestTable(pageMaker, uncompletedUpload, new int[] { LIST_IDENTIFIER, LIST_PRIORITY, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_PERSISTENCE, LIST_FILENAME, LIST_KEY })); } else { uncompletedContent.addChild(createRequestTable(pageMaker, uncompletedUpload, new int[] { LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_PERSISTENCE, LIST_KEY })); } } if (!uncompletedDirUpload.isEmpty()) { contentNode.addChild("a", "name", "uncompletedDirUpload"); HTMLNode uncompletedInfobox = contentNode.addChild(pageMaker.getInfobox("requests_in_progress", "In Progress: DirUploads (" + uncompletedDirUpload.size() + ')')); HTMLNode uncompletedContent = pageMaker.getContentNode(uncompletedInfobox); if (advancedEnabled) { uncompletedContent.addChild(createRequestTable(pageMaker, uncompletedDirUpload, new int[] { LIST_IDENTIFIER, LIST_FILES, LIST_PRIORITY, LIST_TOTAL_SIZE, LIST_PROGRESS, LIST_PERSISTENCE, LIST_KEY })); } else { uncompletedContent.addChild(createRequestTable(pageMaker, uncompletedDirUpload, new int[] { LIST_FILES, LIST_TOTAL_SIZE, LIST_PROGRESS, LIST_PERSISTENCE, LIST_KEY })); } } MultiValueTable pageHeaders = new MultiValueTable(); this.writeReply(ctx, 200, "text/html", "OK", pageHeaders, pageNode.generate()); } | 50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/7b992ac7b46f4eaaf97e9e0e1b7e5c18e1c89deb/QueueToadlet.java/clean/src/freenet/clients/http/QueueToadlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
225,
202,
15069,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
9506,
202,
759,
1660,
338... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
225,
202,
15069,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
9506,
202,
759,
1660,
338... |
IBindingFactory bfact = BindingDirectory .getFactory(Household.class); IUnmarshallingContext uctx = bfact.createUnmarshallingContext(); Household obj = (Household) uctx .unmarshalDocument(dataStream, null); | BindingSelector select = new BindingSelector(null, VERSION_ATTRIBUTE_NAME, VERSION_TEXTS, VERSION_BINDINGS); IUnmarshallingContext context = select.getContext(); context.setDocument(dataStream, null); Household obj = (Household) select .unmarshalVersioned(Household.class); | public Household loadData(InputStream dataStream) throws IOException, UnsupportedFileVersionException, IllegalArgumentException { try { IBindingFactory bfact = BindingDirectory .getFactory(Household.class); IUnmarshallingContext uctx = bfact.createUnmarshallingContext(); Household obj = (Household) uctx .unmarshalDocument(dataStream, null); return obj; } catch (JiBXException e) { LogFactory.getLog(getClass()).error("Error while JiBIxing", e); throw new IllegalArgumentException(e.getLocalizedMessage()); } } | 13936 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13936/9cd0fd94c5396a228d1245a629253d7f8b6ccadf/JiBXPersistence.java/buggy/Housekeeper/trunk/housekeeper/src/java/net/sf/housekeeper/persistence/jibx/JiBXPersistence.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
670,
3793,
21056,
29422,
12,
4348,
501,
1228,
13,
1216,
1860,
16,
5411,
7221,
812,
1444,
503,
16,
2754,
565,
288,
3639,
775,
3639,
288,
5411,
467,
5250,
1733,
324,
3493,
273,
15689,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
670,
3793,
21056,
29422,
12,
4348,
501,
1228,
13,
1216,
1860,
16,
5411,
7221,
812,
1444,
503,
16,
2754,
565,
288,
3639,
775,
3639,
288,
5411,
467,
5250,
1733,
324,
3493,
273,
15689,... |
public AttributeDescr xor_group() throws RecognitionException { AttributeDescr d; Token loc=null; Token name=null; d = null; try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:298:17: (loc= 'xor-group' opt_eol name= STRING ( ';' )? opt_eol ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:298:17: loc= 'xor-group' opt_eol name= STRING ( ';' )? opt_eol { loc=(Token)input.LT(1); match(input,34,FOLLOW_34_in_xor_group912); following.push(FOLLOW_opt_eol_in_xor_group914); opt_eol(); following.pop(); name=(Token)input.LT(1); match(input,STRING,FOLLOW_STRING_in_xor_group918); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:298:53: ( ';' )? int alt31=2; int LA31_0 = input.LA(1); if ( LA31_0==15 ) { alt31=1; } else if ( LA31_0==EOL||LA31_0==21||LA31_0==28||LA31_0==30||(LA31_0>=32 && LA31_0<=36) ) { alt31=2; } else { NoViableAltException nvae = new NoViableAltException("298:53: ( \';\' )?", 31, 0, input); throw nvae; } switch (alt31) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:298:53: ';' { match(input,15,FOLLOW_15_in_xor_group920); } break; } following.push(FOLLOW_opt_eol_in_xor_group923); opt_eol(); following.pop(); d = new AttributeDescr( "xor-group", getString( name ) ); d.setLocation( loc.getLine(), loc.getCharPositionInLine() ); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/98b0281519badd8cb1b48eb12934438a300e99b8/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3601,
16198,
17586,
67,
1655,
1435,
1216,
9539,
288,
6647,
3601,
16198,
302,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
3155,
508,
33,
2011,
31,
540,
202,
202,
72,
273,
446,
31,
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,
3601,
16198,
17586,
67,
1655,
1435,
1216,
9539,
288,
6647,
3601,
16198,
302,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
3155,
508,
33,
2011,
31,
540,
202,
202,
72,
273,
446,
31,
54... | ||
public ComponentException(String str) { super(str); | public ComponentException() { super(); | public ComponentException(String str) { super(str); } | 45953 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45953/674ac0aaae1138d72aab8865ac87ed037c31ca37/ComponentException.java/buggy/framework/base/src/base/org/ofbiz/base/component/ComponentException.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5435,
503,
12,
780,
609,
13,
288,
3639,
2240,
12,
701,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5435,
503,
12,
780,
609,
13,
288,
3639,
2240,
12,
701,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
System.out.println("** linkDown(): " + r + ':' + rp); } | System.out.println("** linkDown(): " + r + ':' + rp); } | public synchronized void linkDown(InetAddress l, int lp, InetAddress r, int rp) { System.out.println("** linkDown(): " + r + ':' + rp); } | 49475 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49475/13de68466e3cf7fde6ee0bde0cee09a33e837e89/LogicalLink.java/buggy/src/org/jgroups/blocks/LogicalLink.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
1692,
4164,
12,
382,
278,
1887,
328,
16,
509,
12423,
16,
14218,
436,
16,
509,
8715,
13,
288,
202,
565,
2332,
18,
659,
18,
8222,
2932,
636,
1692,
4164,
13332,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
1692,
4164,
12,
382,
278,
1887,
328,
16,
509,
12423,
16,
14218,
436,
16,
509,
8715,
13,
288,
202,
565,
2332,
18,
659,
18,
8222,
2932,
636,
1692,
4164,
13332,
315,
... |
Plugin plugin = au.getPlugin(); | public CachedUrlSet findCachedUrlSet(PollSpec spec) { if (log.isDebug3()) log.debug3(this +".findCachedUrlSet2("+spec+")"); String auId = spec.getAuId(); ArchivalUnit au = getAuFromId(auId); if (log.isDebug3()) log.debug3("au: " + au); if (au == null) return null; Plugin plugin = au.getPlugin(); String url = spec.getUrl(); CachedUrlSet cus; if (AuUrl.isAuUrl(url)) { cus = au.getAuCachedUrlSet(); } else if ((spec.getLwrBound()!=null) && (spec.getLwrBound().equals(PollSpec.SINGLE_NODE_LWRBOUND))) { cus = plugin.makeCachedUrlSet(au, new SingleNodeCachedUrlSetSpec(url)); } else { RangeCachedUrlSetSpec rcuss = new RangeCachedUrlSetSpec(url, spec.getLwrBound(), spec.getUprBound()); cus = plugin.makeCachedUrlSet(au, rcuss); } if (log.isDebug3()) log.debug3("ret cus: " + cus); return cus; } | 8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/2fb32b4753ab4cc6fd32a766af32b94f15059b7f/PluginManager.java/clean/src/org/lockss/plugin/PluginManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
15771,
1489,
694,
1104,
9839,
1489,
694,
12,
19085,
1990,
857,
13,
288,
565,
309,
261,
1330,
18,
291,
2829,
23,
10756,
613,
18,
4148,
23,
12,
2211,
397,
9654,
4720,
9839,
1489,
69... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15771,
1489,
694,
1104,
9839,
1489,
694,
12,
19085,
1990,
857,
13,
288,
565,
309,
261,
1330,
18,
291,
2829,
23,
10756,
613,
18,
4148,
23,
12,
2211,
397,
9654,
4720,
9839,
1489,
69... | |
List<Category> categories = (List<Category>) ServiceUtils.executeService(userView, | Collection<Category> categories = (Collection<Category>) ServiceUtils.executeService(userView, | public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws NumberFormatException, FenixFilterException, FenixServiceException { IUserView userView = SessionUtils.getUserView(request); Integer executionPeriodID = Integer.valueOf(request.getParameter("executionPeriodId")); ExecutionPeriod executionPeriod = (ExecutionPeriod) ServiceUtils.executeService(userView, "ReadDomainExecutionPeriodByOID", new Object[] { executionPeriodID }); List<Category> categories = (List<Category>) ServiceUtils.executeService(userView, "ReadAllDomainObjects", new Object[] { Category.class }); List<Category> monitorCategories = (List<Category>) CollectionUtils.select(categories, new Predicate(){ public boolean evaluate(Object object) { Category category = (Category) object; return category.getCode().equals("MNL") || category.getCode().equals("MNT"); }}); List<TeacherWithCreditsDTO> teachersCredits = new ArrayList<TeacherWithCreditsDTO>(); for (Department department : userView.getPerson().getManageableDepartmentCredits()) { List<Teacher> teachers = department.getTeachers(executionPeriod.getBeginDate(), executionPeriod.getEndDate()); for (Teacher teacher : teachers) { double managementCredits = teacher.getManagementFunctionsCredits(executionPeriod); double serviceExemptionsCredits = teacher.getServiceExemptionCredits(executionPeriod); int mandatoryLessonHours = 0; Category category = teacher.getCategoryForCreditsByPeriod(executionPeriod); if(!monitorCategories.contains(category)){ mandatoryLessonHours = teacher.getMandatoryLessonHours(executionPeriod); } TeacherService teacherService = teacher .getTeacherServiceByExecutionPeriod(executionPeriod); CreditLineDTO creditLineDTO = new CreditLineDTO(executionPeriod, teacherService, managementCredits, serviceExemptionsCredits, mandatoryLessonHours); TeacherWithCreditsDTO teacherWithCreditsDTO = new TeacherWithCreditsDTO(teacher, category, creditLineDTO); teachersCredits.add(teacherWithCreditsDTO); } } String sortBy = request.getParameter("sortBy"); request.setAttribute("teachersCreditsListSize", teachersCredits.size()); Iterator orderedTeacherCredits = orderList(sortBy, teachersCredits.iterator()); request.setAttribute("departmentsList", userView.getPerson().getManageableDepartmentCredits()); request.setAttribute("teachersCreditsList", orderedTeacherCredits); request.setAttribute("executionPeriodId", executionPeriodID); return mapping.findForward("show-teachers-credits-list"); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/b46f9f59f27bf5df967d7a65111dd90b815449ff/ShowTeachersCreditsDepartmentListAction.java/clean/src/net/sourceforge/fenixedu/presentationTier/Action/department/ShowTeachersCreditsDepartmentListAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
1836,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
9984,
590,
16,
5411,
12446,
766,
13,
1216,
12100,
16,
478,
275,
697,
1586,
503,
16,
5411,
478,
275,
697,
15133,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
1836,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
9984,
590,
16,
5411,
12446,
766,
13,
1216,
12100,
16,
478,
275,
697,
1586,
503,
16,
5411,
478,
275,
697,
15133,
28... |
gapInsertionArray = new boolean[k+totalGapChars]; | gapInsertionArray = new int[k+totalGapChars]; | private long[][] recoverAlignment (AlignmentHelperLinearSpace helper) { int i=0,j, k=0; long[][] alignment = new long[lengthA + lengthB][2]; for (j = 0; j<lengthB; j++) { //gap in B while (i < lastAWhenBAligned[j]) { alignment[k][0] = CategoricalState.makeSet(A[i]); alignment[k][1] = CategoricalState.inapplicable; i++; k++; } //now we're ready to burn off a letter from B, and possibly a letter from A if diagonal. if (shapeWhenBAligned[j] == helper.noGap) { alignment[k][0] = CategoricalState.makeSet(A[i]); alignment[k][1] = CategoricalState.makeSet(B[j]); i++; } else { // gapInA alignment[k][0] = CategoricalState.inapplicable; alignment[k][1] = CategoricalState.makeSet(B[j]); } k++; } while (i < lengthA) { alignment[k][0] = CategoricalState.makeSet(A[i]); alignment[k][1] = CategoricalState.inapplicable; i++; k++; } //trim off all the empty space at the end long seq2return[][] = new long[k][2]; int ii=0; for (i=0; i<k; i++) { if (seqsWereExchanged) {//exhange the sequences seq2return[i][0] = alignment[i][1]; seq2return[i][1] = alignment[i][0]; } else { seq2return[i][0] = alignment[i][0]; seq2return[i][1] = alignment[i][1]; } } if (keepGaps) { long finalSeq2return[][] = new long[k+totalGapChars][2]; gapInsertionArray = new boolean[k+totalGapChars]; for(i=0; i<k+totalGapChars; i++) { gapInsertionArray[i] =false; } int usedGaps=0; int recentGapRunLength=0; j=0; // counts the number of letters in A seen so far for (i=0; i<k; i++) { if(seq2return[i][0] == CategoricalState.inapplicable) { recentGapRunLength++; gapInsertionArray[i+usedGaps]=true; } else { for (int m=0 ; m < followsGapSize[j]-recentGapRunLength; m++){ finalSeq2return[i+usedGaps][0] = CategoricalState.inapplicable; finalSeq2return[i+usedGaps][1] = CategoricalState.inapplicable; usedGaps++; } j++; recentGapRunLength=0; } finalSeq2return[i+usedGaps][0] = seq2return[i][0] ; finalSeq2return[i+usedGaps][1] = seq2return[i][1] ; } return finalSeq2return; } return seq2return; } | 57538 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57538/a39b1631489579c7e2d8a1aab6e0bce6d7cdb330/PairwiseAligner.java/buggy/trunk/Mesquite Project/Source/mesquite/align/lib/PairwiseAligner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1525,
63,
6362,
65,
5910,
11535,
261,
11535,
2276,
15982,
3819,
4222,
13,
288,
202,
202,
474,
277,
33,
20,
16,
78,
16,
417,
33,
20,
31,
9506,
202,
5748,
63,
6362,
65,
8710,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1525,
63,
6362,
65,
5910,
11535,
261,
11535,
2276,
15982,
3819,
4222,
13,
288,
202,
202,
474,
277,
33,
20,
16,
78,
16,
417,
33,
20,
31,
9506,
202,
5748,
63,
6362,
65,
8710,... |
throwableClass, true, true, null); | throwableClass, true, true, null); | public void actionPerformed(ActionEvent e) { final PsiClass throwableClass = PsiManager.getInstance(myProject).findClass("java.lang.Throwable", GlobalSearchScope.allScope(myProject)); TreeClassChooser chooser = TreeClassChooserFactory.getInstance(myProject).createInheritanceClassChooser( DebuggerBundle.message("add.exception.breakpoint.classchooser.title"), GlobalSearchScope.allScope(myProject), throwableClass, true, true, null); chooser.showDialog(); PsiClass selectedClass = chooser.getSelectedClass(); String qName = (selectedClass != null)? selectedClass.getQualifiedName() : null; if (qName != null && qName.length() > 0) { ExceptionBreakpoint breakpoint = DebuggerManagerEx.getInstanceEx(myProject).getBreakpointManager().addExceptionBreakpoint(qName, ((PsiJavaFile)selectedClass.getContainingFile()).getPackageName()); getPanel().addBreakpoint(breakpoint); } } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/c185097763506f95b21376899c010b6b17464d2d/ExceptionBreakpointFactory.java/clean/debugger/impl/com/intellij/debugger/ui/breakpoints/ExceptionBreakpointFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
1377,
727,
453,
7722,
797,
10132,
797,
273,
453,
7722,
1318,
18,
588,
1442,
12,
4811,
4109,
2934,
4720,
797,
2932,
6290,
18,
4936,
18,
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,
377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
1377,
727,
453,
7722,
797,
10132,
797,
273,
453,
7722,
1318,
18,
588,
1442,
12,
4811,
4109,
2934,
4720,
797,
2932,
6290,
18,
4936,
18,
15... |
public AC_Exception (String anExplaination) { super (anExplaination); | public AC_Exception () { super (); | public AC_Exception (String anExplaination) { super (anExplaination); } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/9fc08ba0be9ed03b89cc0a864abdd1a27083e671/AC_Exception.java/buggy/grendel/addressbook/addresscard/AC_Exception.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
12048,
67,
503,
261,
780,
392,
424,
7446,
367,
13,
288,
3639,
2240,
261,
304,
424,
7446,
367,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12048,
67,
503,
261,
780,
392,
424,
7446,
367,
13,
288,
3639,
2240,
261,
304,
424,
7446,
367,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return getTestsSupport().getSystemLanguage(this); | return SVGTestsSupport.getSystemLanguage(this); | public SVGStringList getSystemLanguage() { return getTestsSupport().getSystemLanguage(this); } | 45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/c894adcdabbe67baf55a0333571ad839739df615/SVGGraphicsElement.java/clean/sources/org/apache/batik/dom/svg/SVGGraphicsElement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11281,
780,
682,
12996,
3779,
1435,
288,
202,
2463,
11281,
14650,
6289,
18,
588,
3163,
3779,
12,
2211,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11281,
780,
682,
12996,
3779,
1435,
288,
202,
2463,
11281,
14650,
6289,
18,
588,
3163,
3779,
12,
2211,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
onError(getMessage("wscompile.missingOptionArgument", "-nd")); | onError(getMessage("wscompile.missingOptionArgument", "-r")); | protected boolean parseArguments(String[] args) { for (int i = 0; i < args.length; i++) { if (args[i].equals("")) { args[i] = null; } else if (args[i].equals("-g")) { compilerDebug = true; args[i] = null; } /*else if (args[i].equals("-O")) { compilerOptimize = true; args[i] = null; }*/ else if (args[i].equals("-verbose")) { verbose = true; args[i] = null; } else if (args[i].equals("-b")) { if(program.equals(WSGEN)) { onError(getMessage("wscompile.invalidOption", args[i])); usage(); return false; } if ((i + 1) < args.length) { args[i] = null; String file = args[++i]; args[i] = null; bindingFiles.add(JAXWSUtils.absolutize(JAXWSUtils.getFileOrURLName(file))); } else { onError(getMessage("wscompile.missingOptionArgument", "-b")); usage(); return false; } } else if (args[i].equals("-version")) { report(ToolVersion.VERSION.BUILD_VERSION); doNothing = true; args[i] = null; return true; } else if (args[i].equals("-keep")) { keepGenerated = true; args[i] = null; } else if(args[i].equals("-wsdllocation")){ if(program.equals(WSGEN)) { onError(getMessage("wscompile.invalidOption", args[i])); usage(); return false; } if ((i + 1) < args.length) { args[i]=null; wsdlLocation = args[++i]; args[i]=null; } else { onError(getMessage("wscompile.missingOptionArgument", args[i])); usage(); return false; } } else if (args[i].equals(SERVICENAME_OPTION)) { if(program.equals(WSIMPORT)) { onError(getMessage("wscompile.invalidOption", args[i])); usage(); return false; } if ((i + 1) < args.length) { args[i] = null; serviceName = QName.valueOf(args[++i]); if (serviceName.getNamespaceURI() == null || serviceName.getNamespaceURI().length() == 0) { onError(getMessage("wsgen.servicename.missing.namespace", args[i])); usage(); return false; } if (serviceName.getLocalPart() == null || serviceName.getLocalPart().length() == 0) { onError(getMessage("wsgen.servicename.missing.localname", args[i])); usage(); return false; } args[i] = null; } else { onError(getMessage("wscompile.missingOptionArgument", args[i])); usage(); return false; } } else if (args[i].equals(PORTNAME_OPTION)) { if(program.equals(WSIMPORT)) { onError(getMessage("wscompile.invalidOption", args[i])); usage(); return false; } if ((i + 1) < args.length) { args[i] = null; portName = QName.valueOf(args[++i]); if (portName.getNamespaceURI() == null || portName.getNamespaceURI().length() == 0) { onError(getMessage("wsgen.portname.missing.namespace", args[i])); usage(); return false; } if (portName.getLocalPart() == null || portName.getLocalPart().length() == 0) { onError(getMessage("wsgen.portname.missing.localname", args[i])); usage(); return false; } args[i] = null; } else { onError(getMessage("wscompile.missingOptionArgument", args[i])); usage(); return false; } } else if (args[i].equals("-d")) { if ((i + 1) < args.length) { if (destDir != null) { onError(getMessage("wscompile.duplicateOption", "-d")); usage(); return false; } args[i] = null; destDir = new File(args[++i]); args[i] = null; if (!destDir.exists()) { onError(getMessage("wscompile.noSuchDirectory", destDir.getPath())); usage(); return false; } } else { onError(getMessage("wscompile.missingOptionArgument", "-d")); usage(); return false; } } else if (args[i].equals("-nd")) { if (program.equals(WSIMPORT)) { onError(getMessage("wscompile.invalidOption", args[i])); usage(); return false; } if ((i + 1) < args.length) { if (nonclassDestDir != null) { onError(getMessage("wscompile.duplicateOption", "-nd")); usage(); return false; } args[i] = null; nonclassDestDir = new File(args[++i]); args[i] = null; if (!nonclassDestDir.exists()) { onError(getMessage("wscompile.noSuchDirectory", nonclassDestDir.getPath())); usage(); return false; } } else { onError(getMessage("wscompile.missingOptionArgument", "-nd")); usage(); return false; } } else if (args[i].equals("-s")) { if ((i + 1) < args.length) { if (sourceDir != null) { onError(getMessage("wscompile.duplicateOption", "-s")); usage(); return false; } args[i] = null; sourceDir = new File(args[++i]); args[i] = null; if (!sourceDir.exists()) { onError(getMessage("wscompile.noSuchDirectory", sourceDir.getPath())); usage(); return false; } } else { onError(getMessage("wscompile.missingOptionArgument", "-s")); usage(); return false; } } else if (args[i].equals("-classpath") || args[i].equals("-cp")) { if (program.equals(WSIMPORT)) { onError(getMessage("wscompile.invalidOption", args[i])); usage(); return false; } if ((i + 1) < args.length) { if (userClasspath != null) { onError(getMessage("wscompile.duplicateOption", args[i])); usage(); return false; } args[i] = null; userClasspath = args[++i]; args[i] = null; } else { onError(getMessage("wscompile.missingOptionArgument", args[i])); usage(); return false; } } else if (args[i].startsWith("-httpproxy:")) { if(program.equals(WSGEN)) { onError(getMessage("wscompile.invalidOption", args[i])); usage(); return false; } String value = args[i].substring(11); if (value.length() == 0) { onError(getMessage("wscompile.invalidOption", args[i])); usage(); return false; } int index = value.indexOf(':'); if (index == -1) { System.setProperty("proxySet", TRUE); System.setProperty("proxyHost", value); System.setProperty("proxyPort", "8080"); } else { System.setProperty("proxySet", TRUE); System.setProperty("proxyHost", value.substring(0, index)); System.setProperty("proxyPort", value.substring(index + 1)); } args[i] = null; } else if (args[i].startsWith("-wsdl")) { if (program.equals(WSIMPORT)) { onError(getMessage("wscompile.invalidOption", args[i])); usage(); return false; } genWsdl = true; String value = args[i].substring(5); int index = value.indexOf(':'); if (index == 0) { value = value.substring(1); index = value.indexOf('/'); if (index == -1) { protocol = value; //.toLowerCase(); transport = HTTP; } else { protocol = value.substring(0, index);//.toLowerCase(); transport = value.substring(index + 1); } if (!isValidProtocol(protocol)) { onError(getMessage("wsgen.invalid.protocol", protocol, VALID_PROTOCOLS)); } if (!isValidTransport(transport)) { onError(getMessage("wsgen.invalid.transport", transport, VALID_TRANSPORTS)); } } args[i] = null; } else if (args[i].equals("-extension")) { extensions = true; args[i] = null; } else if (args[i].startsWith("-help")) { help(); return false; } } for (String arg : args) { if (arg != null) { if (arg.startsWith("-")) { onError(getMessage("wscompile.invalidOption", arg)); usage(); return false; } // the input source could be a local file or a URL,get the // abolutized URL string String fileName = arg; if (program.equals(WSGEN)) { if (!isClass(fileName)) { onError(getMessage("wsgen.class.not.found", fileName)); return false; } } else { //fileName = JAXWSUtils.absolutize(JAXWSUtils.getFileOrURLName(args[i])); } inputFiles.add(fileName); } } if (inputFiles.isEmpty()) { onError(getMessage(program+".missingFile")); usage(); return false; } if (!extensions && hasExtensions()) return false; // put jaxws and jaxb binding files properties.put(ProcessorOptions.BINDING_FILES, bindingFiles); if (!validateArguments()) { usage(); return false; } return true; } | 9667 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9667/d6866c5c44f3dfc7c3631526a7c56fedfe38a588/CompileTool.java/buggy/jaxws-ri/tools/wscompile/src/com/sun/tools/ws/wscompile/CompileTool.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
1109,
4628,
12,
780,
8526,
833,
13,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
288,
5411,
309,
261,
1968,
63,
77,
8009,
14963,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
1109,
4628,
12,
780,
8526,
833,
13,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
288,
5411,
309,
261,
1968,
63,
77,
8009,
14963,
2... |
Method method = factory.newMethod(METHOD_NAME, ARG_TYPES, RETURN_TYPE, EXCEPTION_TYPES); | Method method = factory.newMethod(METHOD_NAME, ARG_TYPES, RETURN_TYPE, EXCEPTION_TYPES); | public void testCreatesMethodInNewNamedClass() { Method method = factory.newMethod(METHOD_NAME, ARG_TYPES, RETURN_TYPE, EXCEPTION_TYPES); assertTrue("is public", Modifier.isPublic(method.getModifiers())); assertEquals("invokedMethod name", METHOD_NAME, method.getName()); assertAllSame("arg types", ARG_TYPES, method.getParameterTypes()); assertSame("return type", RETURN_TYPE, method.getReturnType()); assertAllSame("exception types", EXCEPTION_TYPES, method.getExceptionTypes()); } | 2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/a917aff361c58c31c5dce12a5e8052df6803dbe1/MethodFactoryTest.java/clean/jmock/core/src/test/jmock/core/testsupport/MethodFactoryTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
2729,
1305,
382,
1908,
7604,
797,
1435,
288,
202,
202,
1305,
707,
273,
3272,
18,
2704,
1305,
12,
5327,
67,
1985,
16,
13984,
67,
10564,
16,
14780,
67,
2399,
16,
2313... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2729,
1305,
382,
1908,
7604,
797,
1435,
288,
202,
202,
1305,
707,
273,
3272,
18,
2704,
1305,
12,
5327,
67,
1985,
16,
13984,
67,
10564,
16,
14780,
67,
2399,
16,
2313... |
Matrix covariance = centeredMatrix.transpose().times(centeredMatrix); return covariance; | return centeredMatrix.transpose().times(centeredMatrix); | public static Matrix covarianceMatrix(Database<DoubleVector> database, List<Integer> ids) { // centroid DoubleVector centroid = centroid(database, ids); // covariance matrixArray int columns = centroid.getDimensionality(); int rows = ids.size(); double[][] matrixArray = new double[rows][columns]; for (int i = 0; i < rows; i++) { DoubleVector obj = database.get(ids.get(i)); for (int d = 0; d < columns; d++) { matrixArray[i][d] = obj.getValue(d + 1) - centroid.getValue(d + 1); } } Matrix centeredMatrix = new Matrix(matrixArray); Matrix covariance = centeredMatrix.transpose().times(centeredMatrix); return covariance; } | 5508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5508/ea679fae9ebe2fc20a84c550fc74729ca2c92c3f/Util.java/buggy/src/de/lmu/ifi/dbs/utilities/Util.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
7298,
17366,
4635,
12,
4254,
32,
27047,
34,
2063,
16,
987,
32,
4522,
34,
3258,
13,
288,
565,
368,
16767,
565,
3698,
5018,
16767,
273,
16767,
12,
6231,
16,
3258,
1769,
565,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
7298,
17366,
4635,
12,
4254,
32,
27047,
34,
2063,
16,
987,
32,
4522,
34,
3258,
13,
288,
565,
368,
16767,
565,
3698,
5018,
16767,
273,
16767,
12,
6231,
16,
3258,
1769,
565,
36... |
EnvironmentStack envStack = CocoonComponentManager.getCurrentEnvironmentStack(); int currentOffset = envStack.getOffset(); | CocoonComponentManager.enterEnvironment(this.environment, this.manager, this.pipelineProcessor); | protected void init() { this.systemIdForCaching = this.systemId; try { this.processKey = CocoonComponentManager.startProcessing(this.environment); this.processingPipeline = this.processor.buildPipeline(this.environment); this.pipelineProcessor = CocoonComponentManager.getLastProcessor(this.environment); this.environment.changeToLastContext(); String redirectURL = this.environment.getRedirectURL(); if (redirectURL == null) { EnvironmentStack envStack = CocoonComponentManager.getCurrentEnvironmentStack(); int currentOffset = envStack.getOffset(); try { CocoonComponentManager.enterEnvironment(this.environment, this.manager, this.pipelineProcessor); envStack.resetOffset(0); this.processingPipeline.prepareInternal(this.environment); this.sourceValidity = this.processingPipeline.getValidityForEventPipeline(); final String eventPipelineKey = this.processingPipeline.getKeyForEventPipeline(); if ( eventPipelineKey != null ) { StringBuffer buffer = new StringBuffer(this.systemId); if ( this.systemId.indexOf('?') == -1) { buffer.append('?'); } else { buffer.append('&'); } buffer.append("pipelinehash="); buffer.append(eventPipelineKey); this.systemIdForCaching = buffer.toString(); } else { this.systemIdForCaching = this.systemId; } } finally { CocoonComponentManager.leaveEnvironment(); envStack.resetOffset(currentOffset); } } else { if (redirectURL.indexOf(":") == -1) { redirectURL = this.protocol + ":/" + redirectURL; } this.redirectSource = this.environment.resolveURI(redirectURL); this.redirectValidity = this.redirectSource.getValidity(); } } catch (SAXException e) { reset(); this.exception = e; } catch (Exception e) { reset(); this.exception = new SAXException("Could not get sitemap source " + this.systemId, e); } this.needsRefresh = false; } | 46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/cf4015805a4f5769793984c6edeef3fe317c1453/SitemapSource.java/buggy/src/java/org/apache/cocoon/components/source/impl/SitemapSource.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1208,
1435,
288,
3639,
333,
18,
4299,
548,
1290,
17712,
273,
333,
18,
4299,
548,
31,
3639,
775,
288,
5411,
333,
18,
2567,
653,
273,
385,
29571,
265,
1841,
1318,
18,
1937,
779... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1208,
1435,
288,
3639,
333,
18,
4299,
548,
1290,
17712,
273,
333,
18,
4299,
548,
31,
3639,
775,
288,
5411,
333,
18,
2567,
653,
273,
385,
29571,
265,
1841,
1318,
18,
1937,
779... |
public static final String[] getTreeStrings(TreeItem ti) { int nrlevels = getTreeLevel(ti) + 1; String retval[] = new String[nrlevels]; int level = 0; retval[nrlevels-1] = ti.getText(); TreeItem parent = ti.getParentItem(); while (parent!=null) { level++; retval[nrlevels-level-1]=parent.getText(); parent = parent.getParentItem(); } return retval; } | 58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/3d662b2c7ebea403aa0721885d4e8b2ec43e4e62/Const.java/buggy/kettle/src/be/ibridge/kettle/core/Const.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
727,
514,
8526,
15867,
7957,
12,
2471,
1180,
11374,
13,
202,
95,
202,
202,
474,
9884,
12095,
273,
15867,
2355,
12,
9096,
13,
397,
404,
31,
202,
202,
780,
5221,
8526,
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,
760,
727,
514,
8526,
15867,
7957,
12,
2471,
1180,
11374,
13,
202,
95,
202,
202,
474,
9884,
12095,
273,
15867,
2355,
12,
9096,
13,
397,
404,
31,
202,
202,
780,
5221,
8526,
273,... | ||
CommonUtils.getResourceFile("com/limegroup/gnutella/mp3/mpg1layIII_0h_58k-VBRq30_frame1211_44100hz_joint_XingTAG_sample.mp3"); | CommonUtils.getResourceFile("com/limegroup/gnutella/metadata/mpg1layIII_0h_58k-VBRq30_frame1211_44100hz_joint_XingTAG_sample.mp3"); | private static void doSettings() { ConnectionSettings.PORT.setValue(PORT); ConnectionSettings.CONNECT_ON_STARTUP.setValue(false); UltrapeerSettings.EVER_ULTRAPEER_CAPABLE.setValue(false); UltrapeerSettings.DISABLE_ULTRAPEER_MODE.setValue(true); UltrapeerSettings.FORCE_ULTRAPEER_MODE.setValue(false); ConnectionSettings.NUM_CONNECTIONS.setValue(0); ConnectionSettings.LOCAL_IS_PRIVATE.setValue(false); SharingSettings.EXTENSIONS_TO_SHARE.setValue("txt;mp3"); // get the resource file for com/limegroup/gnutella File berkeley = CommonUtils.getResourceFile("com/limegroup/gnutella/berkeley.txt"); File susheel = CommonUtils.getResourceFile("com/limegroup/gnutella/susheel.txt"); File mp3 = CommonUtils.getResourceFile("com/limegroup/gnutella/mp3/mpg1layIII_0h_58k-VBRq30_frame1211_44100hz_joint_XingTAG_sample.mp3"); // now move them to the share dir CommonUtils.copy(berkeley, new File(_sharedDir, "berkeley.txt")); CommonUtils.copy(susheel, new File(_sharedDir, "susheel.txt")); CommonUtils.copy(mp3, new File(_sharedDir, "metadata.mp3")); // make sure results get through SearchSettings.MINIMUM_SEARCH_QUALITY.setValue(-2); } | 5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/3c2399e1bf502c0555b2c78a6faba59492effcc5/CreationTimeCacheTest.java/buggy/components/gnutella-core/src/test/java/com/limegroup/gnutella/CreationTimeCacheTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
741,
2628,
1435,
288,
3639,
4050,
2628,
18,
6354,
18,
542,
620,
12,
6354,
1769,
202,
202,
1952,
2628,
18,
11032,
67,
673,
67,
7570,
3079,
18,
542,
620,
12,
5743,
1769,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
741,
2628,
1435,
288,
3639,
4050,
2628,
18,
6354,
18,
542,
620,
12,
6354,
1769,
202,
202,
1952,
2628,
18,
11032,
67,
673,
67,
7570,
3079,
18,
542,
620,
12,
5743,
1769,
... |
public boolean hasDomainSource(final String aType, final String aName, final int aLevel) | public boolean hasDomainSource(final String aType, final String aName, final int aLevel) | public boolean hasDomainSource(final String aType, final String aName, final int aLevel) { final String aKey = aType + "|" + aName + "|" + aLevel; return domainSourceMap.containsKey(aKey); } | 48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/376816acf8bf134fa77bd6ea5c602dbe9af9bfbd/PlayerCharacter.java/clean/code/src/java/pcgen/core/PlayerCharacter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
711,
3748,
1830,
12,
6385,
514,
279,
559,
16,
727,
514,
279,
461,
16,
727,
509,
279,
2355,
13,
202,
95,
202,
202,
6385,
514,
279,
653,
273,
279,
559,
397,
15710,
397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
711,
3748,
1830,
12,
6385,
514,
279,
559,
16,
727,
514,
279,
461,
16,
727,
509,
279,
2355,
13,
202,
95,
202,
202,
6385,
514,
279,
653,
273,
279,
559,
397,
15710,
397,
... |
public ReportQueryBuilder() { | public ReportQueryBuilder( ) { | public ReportQueryBuilder() { } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/457851dcc056d96f2ec05106ceba68d3c8f9162c/ReportQueryBuilder.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/ReportQueryBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8706,
9073,
1435,
288,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8706,
9073,
1435,
288,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
num_triangles = triangulator.triangulateConcavePolygon(charCoords, start_vtx, vtx_count, triOutputIndex, FACE_NORMAL); if(num_triangles != -1) | if(contourCounts.length == n_contours) | private void createNewGlyph(char character) {// GlyphVector glyph_vec =// font.layoutGlyphVector(fontContext, new_chars); sourceChar[0] = character; GlyphVector glyph_vec = font.createGlyphVector(fontContext, sourceChar); // Font Y-axis is downwards, so create an affine transform to flip it. Rectangle2D v_bounds = glyph_vec.getVisualBounds(); double tx = v_bounds.getX() + 0.5 * v_bounds.getWidth(); double ty = v_bounds.getY() + 0.5 * v_bounds.getHeight(); AffineTransform neg_trans = new AffineTransform(); neg_trans.setToTranslation(-tx, -ty); neg_trans.scale(1.0, -1.0); neg_trans.translate(tx, -ty); int vtx_count = 0; int start_vtx = 0; int total_coords = 0; int total_index = 0; boolean just_closed = false; CharacterData ch_data = new CharacterData(); Rectangle2D l_bounds = glyph_vec.getLogicalBounds(); Shape glyph_shape = glyph_vec.getOutline(); PathIterator glyph_path = glyph_shape.getPathIterator(neg_trans, flatness); int num_triangles; float scale = 1 / (float)l_bounds.getHeight(); ch_data.bounds = new Rectangle2D.Float((float)l_bounds.getX() * scale, (float)l_bounds.getY() * scale, (float)l_bounds.getWidth() * scale, 1); total_coords = 0; total_index = 0; while(!glyph_path.isDone()) { switch(glyph_path.currentSegment(newCoords)) { case PathIterator.SEG_MOVETO: // end of one outline, move to the next. So, // let's close the polygon and triangulate it // before moving onto the next. // Java can sometimes issue a CLOSE before doing a // MOVETO. We want to check for that and make sure // we don't unnecessarily do a double // triangulation. if(charCoords.length < total_coords + 2) { float[] tmp = new float[total_coords + 256]; System.arraycopy(charCoords, 0, tmp, 0, total_coords); charCoords = tmp; } charCoords[total_coords++] = newCoords[0] * scale; charCoords[total_coords++] = newCoords[1] * scale; charCoords[total_coords++] = 0;//System.out.println("moveto " + newCoords[0] + " " + newCoords[1] + " " + just_closed); if(!just_closed && total_coords != 3) { if(triOutputIndex.length < vtx_count * 3) triOutputIndex = new int[vtx_count * 3]; num_triangles = triangulator.triangulateConcavePolygon(charCoords, start_vtx, vtx_count, triOutputIndex, FACE_NORMAL); if(num_triangles != -1) { num_triangles *= 3; for(int i = 0; i < num_triangles; i++) triOutputIndex[i] /= 3; if(charIndex.length < total_index + num_triangles) { int[] tmp = new int[total_index + num_triangles]; System.arraycopy(charIndex, 0, tmp, 0, total_index); charIndex = tmp; } System.arraycopy(triOutputIndex, 0, charIndex, total_index, num_triangles); total_index += num_triangles; } start_vtx = vtx_count * 3; vtx_count = 1; just_closed = false; } break; case PathIterator.SEG_LINETO: charCoords[total_coords++] = newCoords[0] * scale; charCoords[total_coords++] = newCoords[1] * scale; charCoords[total_coords++] = 0; vtx_count++;//System.out.println("coord " + newCoords[0] + " " + newCoords[1]); break; case PathIterator.SEG_CLOSE: just_closed = true; if(triOutputIndex.length < vtx_count * 3) triOutputIndex = new int[vtx_count * 3];//System.out.println("close at " + start_vtx + " " + vtx_count); num_triangles = triangulator.triangulateConcavePolygon(charCoords, start_vtx, vtx_count, triOutputIndex, FACE_NORMAL);//System.out.println("num index post triangle = " + num_triangles); if(num_triangles != -1) { num_triangles *= 3; for(int i = 0; i < num_triangles; i++) triOutputIndex[i] /= 3; if(charIndex.length < total_index + num_triangles) { int[] tmp = new int[total_index + num_triangles]; System.arraycopy(charIndex, 0, tmp, 0, total_index); charIndex = tmp; } System.arraycopy(triOutputIndex, 0, charIndex, total_index, num_triangles); total_index += num_triangles; } start_vtx = vtx_count * 3; vtx_count = 0; break; // Javadoc guarantees that no other types are used on fonts } glyph_path.next(); } // Change the Y coordinate to reflect the normal Y orientation of up // in 3D land, where Y is down in 2D land. Also, turn the triangles // around now too as they'll be changed to clockwise when ccw is needed. for(int i = 0; i < total_index / 3; i++) { int tmp = charIndex[i * 3]; charIndex[i * 3] = charIndex[i * 3 + 2]; charIndex[i * 3 + 2] = tmp; } ch_data.coordinates = createFloatBuffer(total_coords); ch_data.coordinates.put(charCoords, 0, total_coords); ch_data.coordIndex = createIntBuffer(total_index); ch_data.coordIndex.put(charIndex, 0, total_index); ch_data.numIndex = total_index; charDataMap.put(character, ch_data); } | 46075 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46075/165d3fd6b1a9d1c275e0fba174df640e11333374/CharacterCreator.java/clean/src/java/org/j3d/geom/CharacterCreator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
15291,
15141,
12,
3001,
3351,
13,
565,
288,
759,
5411,
31572,
5018,
9440,
67,
8799,
273,
759,
7734,
3512,
18,
6741,
15141,
5018,
12,
5776,
1042,
16,
394,
67,
7549,
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,
3238,
918,
15291,
15141,
12,
3001,
3351,
13,
565,
288,
759,
5411,
31572,
5018,
9440,
67,
8799,
273,
759,
7734,
3512,
18,
6741,
15141,
5018,
12,
5776,
1042,
16,
394,
67,
7549,
1769,
3639,
... |
public void encode(Tag implicitTag, OutputStream ostream) throws IOException { if( ! implicitTag.equals(tag) ) { Assert.notReached("No implicit tags allowed for ANY"); } | public void encode(OutputStream ostream) throws IOException { | public void encode(Tag implicitTag, OutputStream ostream) throws IOException { if( ! implicitTag.equals(tag) ) { Assert.notReached("No implicit tags allowed for ANY"); } ostream.write(encoded); } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/3634d4d94b208431471fe506f413f97d460c7602/ANY.java/buggy/security/jss/org/mozilla/jss/asn1/ANY.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2017,
12,
1805,
10592,
1805,
16,
8962,
320,
3256,
13,
3639,
1216,
1860,
565,
288,
3639,
309,
12,
401,
10592,
1805,
18,
14963,
12,
2692,
13,
262,
288,
5411,
5452,
18,
902,
236... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2017,
12,
1805,
10592,
1805,
16,
8962,
320,
3256,
13,
3639,
1216,
1860,
565,
288,
3639,
309,
12,
401,
10592,
1805,
18,
14963,
12,
2692,
13,
262,
288,
5411,
5452,
18,
902,
236... |
setStringProperty( TableItem.CAPTION_KEY_PROP, captionKey ); | setStringProperty( ITableItemModel.CAPTION_KEY_PROP, captionKey ); | public void setCaptionKey( String captionKey ) throws SemanticException { setStringProperty( TableItem.CAPTION_KEY_PROP, captionKey ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/d802c33711e0d111551ae23575895cd060f085b6/TableHandle.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/TableHandle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
11440,
13507,
653,
12,
514,
11006,
653,
262,
1216,
24747,
503,
202,
95,
202,
202,
542,
780,
1396,
12,
3555,
1180,
18,
3587,
3725,
67,
3297,
67,
15811,
16,
11006,
653,
112... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
11440,
13507,
653,
12,
514,
11006,
653,
262,
1216,
24747,
503,
202,
95,
202,
202,
542,
780,
1396,
12,
3555,
1180,
18,
3587,
3725,
67,
3297,
67,
15811,
16,
11006,
653,
112... |
m_theInstances = data; | m_theInstances = new Instances(data); m_theInstances.deleteWithMissingClass(); if (m_theInstances.numInstances() == 0) { throw new Exception("No training instances without missing class!"); } if (m_theInstances.checkForStringAttributes()) { throw new Exception("Can't handle string attributes!"); } | public void buildClassifier(Instances data) throws Exception { int i; m_rr = new Random(1); m_theInstances = data; m_disTransform = new DiscretizeFilter(); if (m_theInstances.classAttribute().isNumeric()) { m_classIsNominal = false; // use binned discretisation if the class is numeric m_disTransform.setUseMDL(false); m_disTransform.setBins(10); m_disTransform.setInvertSelection(true); // Discretize all attributes EXCEPT the class String rangeList = ""; rangeList+=(m_theInstances.classIndex()+1); System.out.println("The class col: "+m_theInstances.classIndex()); m_disTransform.setAttributeIndices(rangeList); } else { m_disTransform.setUseBetterEncoding(true); m_classIsNominal = true; } m_disTransform.inputFormat(m_theInstances); m_theInstances = Filter.useFilter(m_theInstances, m_disTransform); m_numAttributes = m_theInstances.numAttributes(); m_numInstances = m_theInstances.numInstances(); m_majority = m_theInstances.meanOrMode(m_theInstances.classAttribute()); best_first(); // reduce instances to selected features m_delTransform = new DeleteFilter(); m_delTransform.setInvertSelection(true); // set features to keep m_delTransform.setAttributeIndicesArray(m_decisionFeatures); m_delTransform.inputFormat(m_theInstances); m_theInstances = Filter.useFilter(m_theInstances, m_delTransform); // reset the number of attributes m_numAttributes = m_theInstances.numAttributes(); // create 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); insertIntoTable(inst, null); } // Replace the global table majority with nearest neighbour? if (m_useIBk) { m_ibk = new IBk(); m_ibk.buildClassifier(m_theInstances); } // Save memory m_theInstances = new Instances(m_theInstances, 0); } | 4179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4179/5a67514c4d5c4fc3fa7a8c909b19b0a2e5c0c206/DecisionTable.java/buggy/trunk/weka/classifiers/DecisionTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1361,
13860,
12,
5361,
501,
13,
1216,
1185,
225,
288,
565,
509,
277,
31,
565,
312,
67,
523,
273,
394,
8072,
12,
21,
1769,
565,
312,
67,
5787,
5361,
273,
394,
18357,
12,
892... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1361,
13860,
12,
5361,
501,
13,
1216,
1185,
225,
288,
565,
509,
277,
31,
565,
312,
67,
523,
273,
394,
8072,
12,
21,
1769,
565,
312,
67,
5787,
5361,
273,
394,
18357,
12,
892... |
return null; | return ((NestedGraphRootEditPart)viewer.getRootEditPart()).getZoomManager(); | protected ZoomManager getZoomManager() { //@tag.bug.156286-Zooming.todo : ? Add zooming here ? return null; } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/7c7f1a63f3e87f7cee769d500ab069b927901adf/NestedGraphViewer.java/buggy/sandbox/org.eclipse.mylyn.zest.core/src/org/eclipse/mylyn/zest/core/viewers/NestedGraphViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
2285,
4252,
1318,
336,
11497,
1318,
1435,
288,
202,
202,
759,
36,
2692,
18,
925,
18,
3600,
8898,
5292,
17,
11497,
310,
18,
9012,
294,
692,
1436,
7182,
310,
2674,
692,
202,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
2285,
4252,
1318,
336,
11497,
1318,
1435,
288,
202,
202,
759,
36,
2692,
18,
925,
18,
3600,
8898,
5292,
17,
11497,
310,
18,
9012,
294,
692,
1436,
7182,
310,
2674,
692,
202,
20... |
if (desc != null) return cacheImage(desc); | if (desc != null) { return cacheImage(desc); } | public Image getImage(Object element) { if (element instanceof IViewDescriptor) { ImageDescriptor desc = ((IViewDescriptor) element) .getImageDescriptor(); if (desc != null) return cacheImage(desc); } else if (element instanceof IViewCategory) { ImageDescriptor desc = WorkbenchImages .getImageDescriptor(ISharedImages.IMG_OBJ_FOLDER); return cacheImage(desc); } return null; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/ViewLabelProvider.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ViewLabelProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3421,
10567,
12,
921,
930,
13,
288,
3639,
309,
261,
2956,
1276,
467,
1767,
3187,
13,
288,
5411,
3421,
3187,
3044,
273,
14015,
45,
1767,
3187,
13,
930,
13,
10792,
263,
588,
2040,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3421,
10567,
12,
921,
930,
13,
288,
3639,
309,
261,
2956,
1276,
467,
1767,
3187,
13,
288,
5411,
3421,
3187,
3044,
273,
14015,
45,
1767,
3187,
13,
930,
13,
10792,
263,
588,
2040,
3... |
IN_INORNOTIN_EXPR.set(Boolean.FALSE); | public Object visit(SimpleNode node, Object data) { IN_INORNOTIN_EXPR.set(Boolean.FALSE); node.jjtGetChild(0).jjtAccept(this, data); IN_INORNOTIN_EXPR.set(null); return data; } | 7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/45c7db5b9c3d703ed4fabee51cebb349a8ffec67/CflowIdentifierLookupVisitor.java/buggy/aspectwerkz2/src/main/org/codehaus/aspectwerkz/definition/expression/visitor/CflowIdentifierLookupVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
3757,
12,
5784,
907,
756,
16,
1033,
501,
13,
288,
7734,
756,
18,
78,
78,
88,
967,
1763,
12,
20,
2934,
78,
78,
88,
5933,
12,
2211,
16,
501,
1769,
3639,
2120,
67,
706,
916... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
3757,
12,
5784,
907,
756,
16,
1033,
501,
13,
288,
7734,
756,
18,
78,
78,
88,
967,
1763,
12,
20,
2934,
78,
78,
88,
5933,
12,
2211,
16,
501,
1769,
3639,
2120,
67,
706,
916... | |
Enumeration enum = hash.keys(); | Enumeration enum = m_Hashtable.keys(); | final void delete(int index) { if (!isNominal() && !isString()) throw new IllegalArgumentException("Can only remove value of" + "nominal or string attribute!"); else { m_Values = (FastVector)m_Values.copy(); m_Values.removeElementAt(index); Hashtable hash = new Hashtable(m_Hashtable.size()); Enumeration enum = hash.keys(); while (enum.hasMoreElements()) { String string = (String)enum.nextElement(); Integer valIndexObject = (Integer)m_Hashtable.get(string); int valIndex = valIndexObject.intValue(); if (valIndex > index) { hash.put(string, new Integer(valIndex - 1)); } else if (valIndex < index) { hash.put(string, valIndexObject); } } m_Hashtable = hash; } | 4179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4179/7d8013ee395aa808e9620691e98c9bc014423b37/Attribute.java/buggy/trunk/weka/core/Attribute.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
918,
1430,
12,
474,
770,
13,
288,
3639,
309,
16051,
291,
26685,
1490,
1435,
597,
401,
291,
780,
10756,
4202,
604,
394,
2754,
2932,
2568,
1338,
1206,
460,
434,
6,
397,
29159,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
918,
1430,
12,
474,
770,
13,
288,
3639,
309,
16051,
291,
26685,
1490,
1435,
597,
401,
291,
780,
10756,
4202,
604,
394,
2754,
2932,
2568,
1338,
1206,
460,
434,
6,
397,
29159,
315,
1... |
if (fieldAccess.isWriter()) { body.append("$args,"); | if (Modifier.isStatic(fieldAccess.getField().getModifiers())) { body.append("(Object)null"); | public void edit(FieldAccess fieldAccess) throws CannotCompileException { try { CtBehavior where = null; try { where = fieldAccess.where(); } catch (RuntimeException e) { // <clinit> access leads to a bug in Javassist where = ctClass.getClassInitializer(); } // filter caller context if (methodFilter(where)) { return; } // get field accessed information final String fieldName = fieldAccess.getFieldName(); final String fieldSignature = fieldAccess.getField().getType().getName() + " " + fieldName; FieldMetaData fieldMetaData = JavassistMetaDataMaker.createFieldMetaData( fieldAccess.getField() ); if ((fieldAccess.isReader() && !getFieldFilter(definition, classMetaData, fieldMetaData)) || !setFieldFilter(definition, classMetaData, fieldMetaData)) { // check the declaring class for the field is not the same as target class, // if that is the case then we have have class loaded and set in the ___AW_clazz already String declaringClassFieldName = TransformationUtil.STATIC_CLASS_FIELD; CtClass declaringClass = fieldAccess.getField().getDeclaringClass(); if (!declaringClass.getName().equals(where.getDeclaringClass().getName())) { declaringClassFieldName = addFieldAccessDeclaringClassField( declaringClass, fieldAccess.getField() ); } StringBuffer body = new StringBuffer(); if (fieldAccess.isReader()) { body.append("$_ = ($r)"); body.append(TransformationUtil.JOIN_POINT_MANAGER_FIELD); body.append('.'); body.append(TransformationUtil.PROCEED_WITH_GET_JOIN_POINT_METHOD); } else { body.append(TransformationUtil.JOIN_POINT_MANAGER_FIELD); body.append('.'); body.append(TransformationUtil.PROCEED_WITH_SET_JOIN_POINT_METHOD); } body.append('('); body.append(TransformationUtil.calculateHash(fieldAccess.getField())); body.append(','); if (fieldAccess.isWriter()) { body.append("$args,"); } if (Modifier.isStatic(fieldAccess.getField().getModifiers())) { body.append("(Object)null"); } else { body.append("$0"); } body.append(','); body.append(declaringClassFieldName); body.append(",\""); body.append(fieldSignature); body.append("\");"); fieldAccess.replace(body.toString()); context.markAsAdvised(); } } catch (NotFoundException nfe) { nfe.printStackTrace(); } } | 7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/8267838a66280752a1e0cc8d75fe9f6c391bbc8e/FieldSetGetTransformer.java/clean/aspectwerkz2/src/main/org/codehaus/aspectwerkz/transform/FieldSetGetTransformer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
3874,
12,
974,
1862,
652,
1862,
13,
1216,
14143,
9937,
503,
288,
10792,
775,
288,
13491,
30714,
9212,
1625,
273,
446,
31,
13491,
775,
288,
18701,
1625,
273,
652,
1862,
18,
605... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
3874,
12,
974,
1862,
652,
1862,
13,
1216,
14143,
9937,
503,
288,
10792,
775,
288,
13491,
30714,
9212,
1625,
273,
446,
31,
13491,
775,
288,
18701,
1625,
273,
652,
1862,
18,
605... |
if ( format == null ) super.setOutputFormat( new OutputFormat( Method.HTML, null, false ) ); else super.setOutputFormat( format ); | super.setOutputFormat( format != null ? format : new OutputFormat( Method.HTML, null, false ) ); | public void setOutputFormat( OutputFormat format ) { if ( format == null ) super.setOutputFormat( new OutputFormat( Method.HTML, null, false ) ); else super.setOutputFormat( format ); } | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/1e1ce544975980cfc9bc8941ab7c8166d350c04d/HTMLSerializer.java/clean/src/org/apache/xml/serialize/HTMLSerializer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
18113,
1630,
12,
3633,
1630,
740,
262,
565,
288,
3639,
309,
261,
740,
422,
446,
262,
5411,
2240,
18,
542,
1447,
1630,
12,
394,
3633,
1630,
12,
2985,
18,
4870,
16,
446,
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,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
18113,
1630,
12,
3633,
1630,
740,
262,
565,
288,
3639,
309,
261,
740,
422,
446,
262,
5411,
2240,
18,
542,
1447,
1630,
12,
394,
3633,
1630,
12,
2985,
18,
4870,
16,
446,
16,
... |
public int getNumCallsToIteratorNext() { | public int getNumCallsToIteratorNext(){ | public int getNumCallsToIteratorNext() { return numCallsToIteratorNext; } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/dba8b183fc1b08e7ad664812bfc0c64d1e4abd3c/ForCanBeForeachInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/verbose/ForCanBeForeachInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
509,
11187,
10125,
774,
3198,
2134,
1435,
95,
5411,
327,
818,
10125,
774,
3198,
2134,
31,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
509,
11187,
10125,
774,
3198,
2134,
1435,
95,
5411,
327,
818,
10125,
774,
3198,
2134,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
wbTable=new Button(wTableComp, SWT.PUSH| SWT.CENTER); | wbTable=new Button(shell, SWT.PUSH| SWT.CENTER); | public String open() { Shell parent = getParent(); Display display = parent.getDisplay(); shell = new Shell(parent, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MAX | SWT.MIN); props.setLook(shell); ModifyListener lsMod = new ModifyListener() { public void modifyText(ModifyEvent e) { input.setChanged(); } }; backupChanged = input.hasChanged(); backupUpdate = input.isUpdate(); backupAutoInc = input.isAutoIncrement(); ci = input.getDatabaseMeta(); FormLayout formLayout = new FormLayout (); formLayout.marginWidth = Const.FORM_MARGIN; formLayout.marginHeight = Const.FORM_MARGIN; shell.setLayout(formLayout); shell.setText(Messages.getString("DimensionLookupDialog.Shell.Title")); //$NON-NLS-1$ int middle = props.getMiddlePct(); int margin = Const.MARGIN; int width = Const.RIGHT; // Stepname line wlStepname=new Label(shell, SWT.RIGHT); wlStepname.setText(Messages.getString("DimensionLookupDialog.Stepname.Label")); //$NON-NLS-1$ props.setLook(wlStepname); fdlStepname=new FormData(); fdlStepname.left = new FormAttachment(0, 0); fdlStepname.right= new FormAttachment(middle, -margin); fdlStepname.top = new FormAttachment(0, margin); wlStepname.setLayoutData(fdlStepname); wStepname=new Text(shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER); wStepname.setText(stepname); props.setLook(wStepname); wStepname.addModifyListener(lsMod); fdStepname=new FormData(); fdStepname.left = new FormAttachment(middle, 0); fdStepname.top = new FormAttachment(0, margin); fdStepname.right= new FormAttachment(100, 0); wStepname.setLayoutData(fdStepname); wTabFolder = new CTabFolder(shell, SWT.BORDER); props.setLook(wTabFolder, Props.WIDGET_STYLE_TAB); ////////////////////////// // START OF TABLE TAB/// /// wTableTab=new CTabItem(wTabFolder, SWT.NONE); wTableTab.setText(Messages.getString("DimensionLookupDialog.TableTab.Title")); //$NON-NLS-1$ Composite wTableComp = new Composite(wTabFolder, SWT.NONE); props.setLook(wTableComp); FormLayout tableLayout = new FormLayout(); tableLayout.marginWidth = 3; tableLayout.marginHeight = 3; wTableComp.setLayout(tableLayout); // Connection line wConnection = addConnectionLine(wTableComp, null, middle, margin); if (input.getDatabaseMeta()==null && transMeta.nrDatabases()==1) wConnection.select(0); wConnection.addModifyListener(lsMod); wConnection.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { // We have new content: change ci connection: ci = transMeta.findDatabase(wConnection.getText()); setFlags(); } }); // Table line... wlTable=new Label(wTableComp, SWT.RIGHT); wlTable.setText(Messages.getString("DimensionLookupDialog.TargeTable.Label")); //$NON-NLS-1$ props.setLook(wlTable); fdlTable=new FormData(); fdlTable.left = new FormAttachment(0, 0); fdlTable.right= new FormAttachment(middle, -margin); fdlTable.top = new FormAttachment(wConnection, margin); wlTable.setLayoutData(fdlTable); wbTable=new Button(wTableComp, SWT.PUSH| SWT.CENTER); props.setLook(wbTable); wbTable.setText(Messages.getString("DimensionLookupDialog.Browse.Button")); //$NON-NLS-1$ fdbTable=new FormData(); fdbTable.right= new FormAttachment(100, 0); fdbTable.top = new FormAttachment(wConnection, margin); wbTable.setLayoutData(fdbTable); wTable=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wTable); wTable.addModifyListener(lsMod); fdTable=new FormData(); fdTable.left = new FormAttachment(middle, 0); fdTable.top = new FormAttachment(wConnection, margin); fdTable.right= new FormAttachment(wbTable, 0); wTable.setLayoutData(fdTable); // Commit size ... wlCommit=new Label(wTableComp, SWT.RIGHT); wlCommit.setText(Messages.getString("DimensionLookupDialog.Commit.Label")); //$NON-NLS-1$ props.setLook(wlCommit); fdlCommit=new FormData(); fdlCommit.left = new FormAttachment(0, 0); fdlCommit.right= new FormAttachment(middle, -margin); fdlCommit.top = new FormAttachment(wTable, margin); wlCommit.setLayoutData(fdlCommit); wCommit=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wCommit); wCommit.addModifyListener(lsMod); fdCommit=new FormData(); fdCommit.left = new FormAttachment(middle, 0); fdCommit.top = new FormAttachment(wTable, margin); fdCommit.right= new FormAttachment(100, 0); wCommit.setLayoutData(fdCommit); // Technical key field: wlTk=new Label(wTableComp, SWT.RIGHT); wlTk.setText(Messages.getString("DimensionLookupDialog.TechnicalKeyField.Label")); //$NON-NLS-1$ props.setLook(wlTk); fdlTk=new FormData(); fdlTk.left = new FormAttachment(0, 0); fdlTk.right= new FormAttachment(middle, -margin); fdlTk.top = new FormAttachment(wCommit, margin); wlTk.setLayoutData(fdlTk); wTk=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wTk); wTk.addModifyListener(lsMod); fdTk=new FormData(); fdTk.left = new FormAttachment(middle, 0); fdTk.top = new FormAttachment(wCommit, margin); fdTk.right= new FormAttachment(50+middle/2, 0); wTk.setLayoutData(fdTk); wlTkRename=new Label(wTableComp, SWT.RIGHT); wlTkRename.setText(Messages.getString("DimensionLookupDialog.NewName.Label")); //$NON-NLS-1$ props.setLook(wlTkRename); fdlTkRename=new FormData(); fdlTkRename.left = new FormAttachment(50+middle/2, margin); fdlTkRename.top = new FormAttachment(wCommit, margin); wlTkRename.setLayoutData(fdlTkRename); wTkRename=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wTkRename); wTkRename.addModifyListener(lsMod); fdTkRename=new FormData(); fdTkRename.left = new FormAttachment(wlTkRename, margin); fdTkRename.top = new FormAttachment(wCommit, margin); fdTkRename.right= new FormAttachment(100, 0); wTkRename.setLayoutData(fdTkRename); //////////////////////////////////////////////////// // The key creation box //////////////////////////////////////////////////// gTechGroup = new Group(wTableComp, SWT.SHADOW_ETCHED_IN); gTechGroup.setText(Messages.getString("DimensionLookupDialog.TechGroup.Label")); //$NON-NLS-1$; GridLayout gridLayout = new GridLayout(3, false); gTechGroup.setLayout(gridLayout); fdTechGroup=new FormData(); fdTechGroup.left = new FormAttachment(middle, 0); fdTechGroup.top = new FormAttachment(wTk, margin); fdTechGroup.right = new FormAttachment(100, 0); gTechGroup.setBackground(shell.getBackground()); // the default looks ugly gTechGroup.setLayoutData(fdTechGroup); // Use maximum of table + 1 wTableMax=new Button(gTechGroup, SWT.RADIO); props.setLook(wTableMax); wTableMax.setSelection(false); gdTableMax=new GridData(); wTableMax.setLayoutData(gdTableMax); wTableMax.setToolTipText(Messages.getString("DimensionLookupDialog.TableMaximum.Tooltip",Const.CR)); //$NON-NLS-1$ //$NON-NLS-2$ wlTableMax=new Label(gTechGroup, SWT.LEFT); wlTableMax.setText(Messages.getString("DimensionLookupDialog.TableMaximum.Label")); //$NON-NLS-1$ props.setLook(wlTableMax); gdlTableMax = new GridData(GridData.FILL_BOTH); gdlTableMax.horizontalSpan = 2; gdlTableMax.verticalSpan = 1; wlTableMax.setLayoutData(gdlTableMax); // Sequence Check Button wSeqButton=new Button(gTechGroup, SWT.RADIO); props.setLook(wSeqButton); wSeqButton.setSelection(false); gdSeqButton=new GridData(); wSeqButton.setLayoutData(gdSeqButton); wSeqButton.setToolTipText(Messages.getString("DimensionLookupDialog.Sequence.Tooltip",Const.CR)); //$NON-NLS-1$ //$NON-NLS-2$ wlSeqButton=new Label(gTechGroup, SWT.LEFT); wlSeqButton.setText(Messages.getString("DimensionLookupDialog.Sequence.Label")); //$NON-NLS-1$ props.setLook(wlSeqButton); gdlSeqButton=new GridData(); wlSeqButton.setLayoutData(gdlSeqButton); wSeq=new Text(gTechGroup, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wSeq); wSeq.addModifyListener(lsMod); gdSeq=new GridData(GridData.FILL_HORIZONTAL); wSeq.setLayoutData(gdSeq); wSeq.addFocusListener(new FocusListener() { public void focusGained(FocusEvent arg0) { input.setTechKeyCreation(DimensionLookupMeta.CREATION_METHOD_SEQUENCE); wSeqButton.setSelection(true); wAutoinc.setSelection(false); wTableMax.setSelection(false); } public void focusLost(FocusEvent arg0) { } }); // Use an autoincrement field? wAutoinc=new Button(gTechGroup, SWT.RADIO); props.setLook(wAutoinc); wAutoinc.setSelection(false); gdAutoinc=new GridData(); wAutoinc.setLayoutData(gdAutoinc); wAutoinc.setToolTipText(Messages.getString("DimensionLookupDialog.AutoincButton.Tooltip",Const.CR)); //$NON-NLS-1$ //$NON-NLS-2$ wlAutoinc=new Label(gTechGroup, SWT.LEFT); wlAutoinc.setText(Messages.getString("DimensionLookupDialog.Autoincrement.Label")); //$NON-NLS-1$ props.setLook(wlAutoinc); gdlAutoinc=new GridData(); wlAutoinc.setLayoutData(gdlAutoinc); setTableMax(); setSequence(); setAutoincUse(); /* // Use an autoincrement field? wlAutoinc=new Label(wTableComp, SWT.RIGHT); wlAutoinc.setText(Messages.getString("DimensionLookupDialog.AutoInc.Label")); //$NON-NLS-1$ props.setLook(wlAutoinc); fdlAutoinc=new FormData(); fdlAutoinc.left = new FormAttachment(0, 0); fdlAutoinc.right= new FormAttachment(middle, -margin); fdlAutoinc.top = new FormAttachment(wTk, margin); wlAutoinc.setLayoutData(fdlAutoinc); wAutoinc=new Button(wTableComp, SWT.CHECK); props.setLook(wAutoinc); fdAutoinc=new FormData(); fdAutoinc.left = new FormAttachment(middle, 0); fdAutoinc.top = new FormAttachment(wTk, margin); fdAutoinc.right= new FormAttachment(100, 0); wAutoinc.setLayoutData(fdAutoinc); wAutoinc.setToolTipText(Messages.getString("DimensionLookupDialog.AutoInc.ToolTip",Const.CR)); //$NON-NLS-1$ //$NON-NLS-2$ // Clicking on update changes the options in the update combo boxes! wAutoinc.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { input.setAutoIncrement( !input.isAutoIncrement() ); input.setChanged(); setFlags(); } } ); // Sequence key field: wlSeq=new Label(wTableComp, SWT.RIGHT); wlSeq.setText(Messages.getString("DimensionLookupDialog.Sequence.Label")); //$NON-NLS-1$ props.setLook(wlSeq); fdlSeq=new FormData(); fdlSeq.left = new FormAttachment(0, 0); fdlSeq.right= new FormAttachment(middle, -margin); fdlSeq.top = new FormAttachment(wlAutoinc, margin); wlSeq.setLayoutData(fdlSeq); wSeq=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wSeq); wSeq.addModifyListener(lsMod); fdSeq=new FormData(); fdSeq.left = new FormAttachment(middle, 0); fdSeq.top = new FormAttachment(wlAutoinc, margin); fdSeq.right= new FormAttachment(100, 0); wSeq.setLayoutData(fdSeq);*/ // Version key field: wlVersion=new Label(wTableComp, SWT.RIGHT); wlVersion.setText(Messages.getString("DimensionLookupDialog.Version.Label")); //$NON-NLS-1$ props.setLook(wlVersion); fdlVersion=new FormData(); fdlVersion.left = new FormAttachment(0, 0); fdlVersion.right= new FormAttachment(middle, -margin); fdlVersion.top = new FormAttachment(gTechGroup, margin); wlVersion.setLayoutData(fdlVersion); wVersion=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wVersion); wVersion.addModifyListener(lsMod); fdVersion=new FormData(); fdVersion.left = new FormAttachment(middle, 0); fdVersion.top = new FormAttachment(gTechGroup, margin); fdVersion.right= new FormAttachment(100, 0); wVersion.setLayoutData(fdVersion); // Datefield line wlDatefield=new Label(wTableComp, SWT.RIGHT); wlDatefield.setText(Messages.getString("DimensionLookupDialog.Datefield.Label")); //$NON-NLS-1$ props.setLook(wlDatefield); fdlDatefield=new FormData(); fdlDatefield.left = new FormAttachment(0, 0); fdlDatefield.right= new FormAttachment(middle, -margin); fdlDatefield.top = new FormAttachment(wVersion, margin); wlDatefield.setLayoutData(fdlDatefield); wDatefield=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wDatefield); wDatefield.addModifyListener(lsMod); fdDatefield=new FormData(); fdDatefield.left = new FormAttachment(middle, 0); fdDatefield.top = new FormAttachment(wVersion, margin); fdDatefield.right= new FormAttachment(100, 0); wDatefield.setLayoutData(fdDatefield); // Fromdate line // // 0 [wlFromdate] middle [wFromdate] (100-middle)/3 [wlMinyear] 2*(100-middle)/3 [wMinyear] 100% // wlFromdate=new Label(wTableComp, SWT.RIGHT); wlFromdate.setText(Messages.getString("DimensionLookupDialog.Fromdate.Label")); //$NON-NLS-1$ props.setLook(wlFromdate); fdlFromdate=new FormData(); fdlFromdate.left = new FormAttachment(0, 0); fdlFromdate.right= new FormAttachment(middle, -margin); fdlFromdate.top = new FormAttachment(wDatefield, margin); wlFromdate.setLayoutData(fdlFromdate); wFromdate=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wFromdate); wFromdate.addModifyListener(lsMod); fdFromdate=new FormData(); fdFromdate.left = new FormAttachment(middle, 0); fdFromdate.right= new FormAttachment(middle+(100-middle)/3, -margin); fdFromdate.top = new FormAttachment(wDatefield, margin); wFromdate.setLayoutData(fdFromdate); // Minyear line wlMinyear=new Label(wTableComp, SWT.RIGHT); wlMinyear.setText(Messages.getString("DimensionLookupDialog.Minyear.Label")); //$NON-NLS-1$ props.setLook(wlMinyear); fdlMinyear=new FormData(); fdlMinyear.left = new FormAttachment(wFromdate, margin); fdlMinyear.right = new FormAttachment(middle+2*(100-middle)/3, -margin); fdlMinyear.top = new FormAttachment(wDatefield, margin); wlMinyear.setLayoutData(fdlMinyear); wMinyear=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wMinyear); wMinyear.addModifyListener(lsMod); fdMinyear=new FormData(); fdMinyear.left = new FormAttachment(wlMinyear, margin); fdMinyear.right= new FormAttachment(100, 0); fdMinyear.top = new FormAttachment(wDatefield, margin); wMinyear.setLayoutData(fdMinyear); wMinyear.setToolTipText(Messages.getString("DimensionLookupDialog.Minyear.ToolTip")); //$NON-NLS-1$ // Todate line wlTodate=new Label(wTableComp, SWT.RIGHT); wlTodate.setText(Messages.getString("DimensionLookupDialog.Todate.Label")); //$NON-NLS-1$ props.setLook(wlTodate); fdlTodate=new FormData(); fdlTodate.left = new FormAttachment(0, 0); fdlTodate.right= new FormAttachment(middle, -margin); fdlTodate.top = new FormAttachment(wFromdate, margin); wlTodate.setLayoutData(fdlTodate); wTodate=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wTodate); wTodate.addModifyListener(lsMod); fdTodate=new FormData(); fdTodate.left = new FormAttachment(middle, 0); fdTodate.right= new FormAttachment(middle+(100-middle)/3, -margin); fdTodate.top = new FormAttachment(wFromdate, margin); wTodate.setLayoutData(fdTodate); // Maxyear line wlMaxyear=new Label(wTableComp, SWT.RIGHT); wlMaxyear.setText(Messages.getString("DimensionLookupDialog.Maxyear.Label")); //$NON-NLS-1$ props.setLook(wlMaxyear); fdlMaxyear=new FormData(); fdlMaxyear.left = new FormAttachment(wTodate, margin); fdlMaxyear.right = new FormAttachment(middle+2*(100-middle)/3, -margin); fdlMaxyear.top = new FormAttachment(wFromdate, margin); wlMaxyear.setLayoutData(fdlMaxyear); wMaxyear=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wMaxyear); wMaxyear.addModifyListener(lsMod); fdMaxyear=new FormData(); fdMaxyear.left = new FormAttachment(wlMaxyear, margin); fdMaxyear.right= new FormAttachment(100, 0); fdMaxyear.top = new FormAttachment(wFromdate, margin); wMaxyear.setLayoutData(fdMaxyear); wMaxyear.setToolTipText(Messages.getString("DimensionLookupDialog.Maxyear.ToolTip")); //$NON-NLS-1$ // Update the dimension? wlUpdate=new Label(wTableComp, SWT.RIGHT); wlUpdate.setText(Messages.getString("DimensionLookupDialog.Update.Label")); //$NON-NLS-1$ props.setLook(wlUpdate); fdlUpdate=new FormData(); fdlUpdate.left = new FormAttachment(0, 0); fdlUpdate.right= new FormAttachment(middle, -margin); fdlUpdate.top = new FormAttachment(wMaxyear, margin); wlUpdate.setLayoutData(fdlUpdate); wUpdate=new Button(wTableComp, SWT.CHECK); props.setLook(wUpdate); fdUpdate=new FormData(); fdUpdate.left = new FormAttachment(middle, 0); fdUpdate.right= new FormAttachment(0, middle+width); fdUpdate.top = new FormAttachment(wMaxyear, margin); wUpdate.setLayoutData(fdUpdate); fdTableComp=new FormData(); fdTableComp.left = new FormAttachment(0, 0); fdTableComp.top = new FormAttachment(0, 0); fdTableComp.right = new FormAttachment(100, 0); fdTableComp.bottom= new FormAttachment(100, 0); wTableComp.setLayoutData(fdTableComp); wTableComp.layout(); wTableTab.setControl(wTableComp); ///////////////////////////////////////////////////////////// /// END OF TABLE TAB ///////////////////////////////////////////////////////////// ////////////////////////// // START OF KEY TAB /// /// wKeyTab=new CTabItem(wTabFolder, SWT.NONE); wKeyTab.setText(Messages.getString("DimensionLookupDialog.KeyTab.CTabItem")); //$NON-NLS-1$ FormLayout keyLayout = new FormLayout (); keyLayout.marginWidth = 3; keyLayout.marginHeight = 3; Composite wKeyComp = new Composite(wTabFolder, SWT.NONE); props.setLook(wKeyComp); wKeyComp.setLayout(keyLayout); // The Lookup fields: usualy the key // wlKey=new Label(wKeyComp, SWT.NONE); wlKey.setText(Messages.getString("DimensionLookupDialog.KeyFields.Label")); //$NON-NLS-1$ props.setLook(wlKey); fdlKey=new FormData(); fdlKey.left = new FormAttachment(0, 0); fdlKey.top = new FormAttachment(0, margin); fdlKey.right = new FormAttachment(100, 0); wlKey.setLayoutData(fdlKey); int nrKeyCols=2; int nrKeyRows=(input.getKeyStream()!=null?input.getKeyStream().length:1); ColumnInfo[] ciKey=new ColumnInfo[nrKeyCols]; ciKey[0]=new ColumnInfo(Messages.getString("DimensionLookupDialog.ColumnInfo.DimensionField"), ColumnInfo.COLUMN_TYPE_TEXT, false); //$NON-NLS-1$ ciKey[1]=new ColumnInfo(Messages.getString("DimensionLookupDialog.ColumnInfo.FieldInStream"), ColumnInfo.COLUMN_TYPE_TEXT, false); //$NON-NLS-1$ wKey=new TableView(wKeyComp, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL, ciKey, nrKeyRows, lsMod, props ); fdKey=new FormData(); fdKey.left = new FormAttachment(0, 0); fdKey.top = new FormAttachment(wlKey, margin); fdKey.right = new FormAttachment(100, 0); fdKey.bottom= new FormAttachment(100, 0); wKey.setLayoutData(fdKey); fdKeyComp = new FormData(); fdKeyComp.left = new FormAttachment(0, 0); fdKeyComp.top = new FormAttachment(0, 0); fdKeyComp.right = new FormAttachment(100, 0); fdKeyComp.bottom= new FormAttachment(100, 0); wKeyComp.setLayoutData(fdKeyComp); wKeyComp.layout(); wKeyTab.setControl(wKeyComp); ///////////////////////////////////////////////////////////// /// END OF KEY TAB ///////////////////////////////////////////////////////////// // Fields tab... // wFieldsTab = new CTabItem(wTabFolder, SWT.NONE); wFieldsTab.setText(Messages.getString("DimensionLookupDialog.FieldsTab.CTabItem.Title")); //$NON-NLS-1$ FormLayout fieldsLayout = new FormLayout (); fieldsLayout.marginWidth = Const.FORM_MARGIN; fieldsLayout.marginHeight = Const.FORM_MARGIN; Composite wFieldsComp = new Composite(wTabFolder, SWT.NONE); wFieldsComp.setLayout(fieldsLayout); props.setLook(wFieldsComp); wGet=new Button(wFieldsComp, SWT.PUSH); wGet.setText(Messages.getString("DimensionLookupDialog.GetFields.Button")); //$NON-NLS-1$ setButtonPositions(new Button[] { wGet }, margin, null); // THE UPDATE/INSERT TABLE wlUpIns=new Label(wFieldsComp, SWT.NONE); wlUpIns.setText(Messages.getString("DimensionLookupDialog.UpdateOrInsertFields.Label")); //$NON-NLS-1$ props.setLook(wlUpIns); fdlUpIns=new FormData(); fdlUpIns.left = new FormAttachment(0, 0); fdlUpIns.top = new FormAttachment(0, margin); wlUpIns.setLayoutData(fdlUpIns); int UpInsCols=3; int UpInsRows= (input.getFieldStream()!=null?input.getFieldStream().length:1); final ColumnInfo[] ciUpIns=new ColumnInfo[UpInsCols]; ciUpIns[0]=new ColumnInfo(Messages.getString("DimensionLookupDialog.ColumnInfo.DimensionField"), ColumnInfo.COLUMN_TYPE_TEXT, false); //$NON-NLS-1$ ciUpIns[1]=new ColumnInfo(Messages.getString("DimensionLookupDialog.ColumnInfo.StreamField"), ColumnInfo.COLUMN_TYPE_TEXT, false); //$NON-NLS-1$ ciUpIns[2]=new ColumnInfo(Messages.getString("DimensionLookupDialog.ColumnInfo.TypeOfDimensionUpdate"), ColumnInfo.COLUMN_TYPE_CCOMBO, input.isUpdate()?DimensionLookupMeta.typeDesc:DimensionLookupMeta.typeDescLookup ); //$NON-NLS-1$ wUpIns=new TableView(wFieldsComp, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL, ciUpIns, UpInsRows, lsMod, props ); fdUpIns=new FormData(); fdUpIns.left = new FormAttachment(0, 0); fdUpIns.top = new FormAttachment(wlUpIns, margin); fdUpIns.right = new FormAttachment(100, 0); fdUpIns.bottom= new FormAttachment(wGet, -margin); wUpIns.setLayoutData(fdUpIns); // Clicking on update changes the options in the update combo boxes! wUpdate.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { input.setUpdate(!input.isUpdate()); input.setChanged(); setFlags(); } } ); fdFieldsComp=new FormData(); fdFieldsComp.left = new FormAttachment(0, 0); fdFieldsComp.top = new FormAttachment(0, 0); fdFieldsComp.right = new FormAttachment(100, 0); fdFieldsComp.bottom= new FormAttachment(100, 0); wFieldsComp.setLayoutData(fdFieldsComp); wFieldsComp.layout(); wFieldsTab.setControl(wFieldsComp); fdTabFolder = new FormData(); fdTabFolder.left = new FormAttachment(0, 0); fdTabFolder.top = new FormAttachment(wStepname, margin); fdTabFolder.right = new FormAttachment(100, 0); fdTabFolder.bottom= new FormAttachment(100, -50); wTabFolder.setLayoutData(fdTabFolder); // THE BUTTONS wOK=new Button(shell, SWT.PUSH); wOK.setText(Messages.getString("System.Button.OK")); //$NON-NLS-1$ wCreate=new Button(shell, SWT.PUSH); wCreate.setText(Messages.getString("DimensionLookupDialog.SQL.Button")); //$NON-NLS-1$ wCancel=new Button(shell, SWT.PUSH); wCancel.setText(Messages.getString("System.Button.Cancel")); //$NON-NLS-1$ setButtonPositions(new Button[] { wOK, wCreate, wCancel }, margin, wTabFolder); // Add listeners lsOK = new Listener() { public void handleEvent(Event e) { ok(); } }; lsGet = new Listener() { public void handleEvent(Event e) { get(); } }; lsCreate = new Listener() { public void handleEvent(Event e) { create(); } }; lsCancel = new Listener() { public void handleEvent(Event e) { cancel(); } }; wOK.addListener (SWT.Selection, lsOK ); wGet.addListener (SWT.Selection, lsGet ); wCreate.addListener(SWT.Selection, lsCreate); wCancel.addListener(SWT.Selection, lsCancel); lsDef=new SelectionAdapter() { public void widgetDefaultSelected(SelectionEvent e) { ok(); } }; wStepname.addSelectionListener( lsDef ); wTable.addSelectionListener( lsDef ); wCommit.addSelectionListener( lsDef ); wTk.addSelectionListener( lsDef ); wTkRename.addSelectionListener( lsDef ); wSeq.addSelectionListener( lsDef ); wVersion.addSelectionListener( lsDef ); wDatefield.addSelectionListener( lsDef ); wFromdate.addSelectionListener( lsDef ); wMinyear.addSelectionListener( lsDef ); wTodate.addSelectionListener( lsDef ); wMaxyear.addSelectionListener( lsDef ); // Detect X or ALT-F4 or something that kills this window... shell.addShellListener( new ShellAdapter() { public void shellClosed(ShellEvent e) { cancel(); } } ); wbTable.addSelectionListener ( new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { getTableName(); } } ); wTabFolder.setSelection(0); // Set the shell size, based upon previous time... setSize(); getData(); input.setChanged(backupChanged); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } return stepname; } | 58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/3197c6629f2cd950b363a8e949a3fa1451d2d42d/DimensionLookupDialog.java/clean/kettle/src/be/ibridge/kettle/trans/step/dimensionlookup/DimensionLookupDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1696,
1435,
202,
95,
202,
202,
13220,
982,
273,
5089,
5621,
202,
202,
4236,
2562,
273,
982,
18,
588,
4236,
5621,
202,
202,
10304,
273,
394,
19433,
12,
2938,
16,
348,
8588... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1696,
1435,
202,
95,
202,
202,
13220,
982,
273,
5089,
5621,
202,
202,
4236,
2562,
273,
982,
18,
588,
4236,
5621,
202,
202,
10304,
273,
394,
19433,
12,
2938,
16,
348,
8588... |
out.println("<tr>"); | out.println("<tr >"); | protected void doRenderMenu(GridSphereEvent event, String[] links) throws PortletLayoutException, IOException { PortletResponse res = event.getPortletResponse(); PrintWriter out = res.getWriter(); // Render tabs titles out.println("<table class=\"tab-pane\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"); out.println("<tr>"); out.println("<td class=\"tab-empty\"> </td>"); PortletTab tab; for (int i = 0; i < tabs.size(); i++) { String title = getTitleAt(i); tab = (PortletTab) tabs.get(i); if (tab.isSelected()) { out.println("<td><img src=\"themes/" + theme + "/images/tab-active-left.gif\"/></td>"); out.println("<td class=\"tab-active\">" + title + "</td>"); out.println("<td><img src=\"themes/" + theme + "/images/tab-active-right.gif\"/></td>"); } else { out.println("<td><img src=\"themes/" + theme + "/images/tab-inactive-left.gif\"/></td>"); out.println("<td class=\"tab-inactive\"><a class=\"tab-menu\" href=\"" + links[i] + "\" >" + title + "</a>"); out.println("<td><img src=\"themes/" + theme + "/images/tab-inactive-right.gif\"/></td>"); } out.println("<td class=\"tab-empty\"> </td>"); } out.println("<td class=\"tab-fillup\"> </td></tr></table>"); PortletTab selectedTab = (PortletTab) tabs.get(selectedIndex); if (selectedTab != null) selectedTab.doRender(event); } | 49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/fc65cc45960f8664776aed23dc05e72e3ba54b42/PortletTabbedPane.java/buggy/src/org/gridlab/gridsphere/layout/PortletTabbedPane.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
741,
3420,
4599,
12,
6313,
22747,
1133,
871,
16,
514,
8526,
4716,
13,
1216,
21305,
3744,
503,
16,
1860,
288,
3639,
21305,
1064,
400,
273,
871,
18,
588,
18566,
1064,
5621,
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,
741,
3420,
4599,
12,
6313,
22747,
1133,
871,
16,
514,
8526,
4716,
13,
1216,
21305,
3744,
503,
16,
1860,
288,
3639,
21305,
1064,
400,
273,
871,
18,
588,
18566,
1064,
5621,
3639,... |
log.error(e); | System.err.println(e); | public static void main(String[] args) { try { Topology top=new Topology(); top.setLayout(null); top.setSize(240, 507); top.start(); } catch(Exception e) { log.error(e); e.printStackTrace(); System.exit(0); } } | 51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/13de68466e3cf7fde6ee0bde0cee09a33e837e89/Topology.java/buggy/src/org/jgroups/demos/Topology.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
775,
288,
5411,
19726,
1760,
33,
2704,
19726,
5621,
5411,
1760,
18,
542,
3744,
12,
2011,
1769,
5411,
1760,
18,
542,
1225,
12,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
775,
288,
5411,
19726,
1760,
33,
2704,
19726,
5621,
5411,
1760,
18,
542,
3744,
12,
2011,
1769,
5411,
1760,
18,
542,
1225,
12,
28... |
if(i < blocks.size()) { | if(i < blocks.size()) { | protected final int findViewGap(int indx) { int i = blocks.size() / 2; int imin = 0; int imax = blocks.size() - 1; do { Block b = (Block) blocks.get(i); if(b.viewStart <= indx && b.viewEnd >= indx) { return -2; } else { if(b.viewStart < indx) { imin = i+1; i = imin + (imax - imin) / 2; } else { imax = i-1; i = imin + (imax - imin) / 2; } } } while(imin <= imax); if(i < blocks.size()) { Block b = (Block) blocks.get(i); if(b.viewEnd < indx) { return i; } else { return i-1; } } else { return i-1; } } | 50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/2832923aaa480545045a81778c041b53a9dcb1ff/SimpleGappedSymbolList.java/clean/src/org/biojava/bio/symbol/SimpleGappedSymbolList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
509,
28778,
14001,
12,
474,
24732,
13,
288,
565,
509,
277,
273,
4398,
18,
1467,
1435,
342,
576,
31,
565,
509,
709,
267,
273,
374,
31,
565,
509,
27749,
273,
4398,
18,
1467,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
509,
28778,
14001,
12,
474,
24732,
13,
288,
565,
509,
277,
273,
4398,
18,
1467,
1435,
342,
576,
31,
565,
509,
709,
267,
273,
374,
31,
565,
509,
27749,
273,
4398,
18,
1467,
... |
{ UIUtilities.centerAndShow(dialog); } | { UIUtilities.centerAndShow(dialog); } | public void showDialog(JDialog dialog) { UIUtilities.centerAndShow(dialog); } | 55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/a81a5a58f8e54d006d057455465766c8d3d72998/ViewerCtrl.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/ViewerCtrl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2405,
6353,
12,
46,
6353,
6176,
13,
202,
95,
202,
202,
5370,
11864,
18,
5693,
1876,
5706,
12,
12730,
1769,
202,
97,
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,
225,
202,
482,
918,
2405,
6353,
12,
46,
6353,
6176,
13,
202,
95,
202,
202,
5370,
11864,
18,
5693,
1876,
5706,
12,
12730,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
dos.close(); | void dumpBDDConfig(String fileName) throws IOException { DataOutputStream dos = new DataOutputStream(new FileOutputStream(fileName)); for (int i = 0; i < bdd.numberOfDomains(); ++i) { BDDDomain d = bdd.getDomain(i); dos.writeBytes(d.getName()+" "+d.size()+"\n"); } dos.close(); } | 3029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3029/b43e068069ef682f091dc7531466761863db32b6/BuildBDDIR.java/buggy/joeq_core/joeq/Compiler/Analysis/BDD/BuildBDDIR.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
4657,
38,
5698,
809,
12,
780,
3968,
13,
1216,
1860,
288,
3639,
28680,
16153,
273,
394,
28680,
12,
2704,
12942,
12,
17812,
10019,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
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,
918,
4657,
38,
5698,
809,
12,
780,
3968,
13,
1216,
1860,
288,
3639,
28680,
16153,
273,
394,
28680,
12,
2704,
12942,
12,
17812,
10019,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
3... | |
Series series = ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getDesignTimeSeries(); | Series series = ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)) .getSeriesDefinitions().get(0)).getDesignTimeSeries(); | private Chart getConvertedChart(Chart currentChart, String sNewSubType, Orientation newOrientation, String sNewDimension) { Chart helperModel = (Chart) EcoreUtil.copy(currentChart); if((currentChart instanceof ChartWithAxes)) // Chart is ChartWithAxes { if(currentChart.getType().equals(sType)) // Original chart is of this type (BarChart) { if(!currentChart.getSubType().equals(sNewSubType)) // Original chart is of the required subtype { currentChart.setSubType(sNewSubType); EList axes = ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes(); for(int i = 0; i < axes.size(); i++) { ((Axis) axes.get(i)).setPercent(false); EList seriesdefinitions = ((Axis) axes.get(i)).getSeriesDefinitions(); for(int j = 0; j < seriesdefinitions.size(); j++) { Series series = ((SeriesDefinition) seriesdefinitions.get(j)).getDesignTimeSeries(); series.setStacked(false); } } } } else if(currentChart.getType().equals("Line Chart") || currentChart.getType().equals("Bar Chart") || currentChart.getType().equals("Scatter Chart")) { if(!currentChart.getType().equals("Stock Chart")) { currentChart.setSampleData(getConvertedSampleData(currentChart.getSampleData())); } currentChart.setType(sType); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setType(AxisType.DATE_TIME_LITERAL); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setCategoryAxis(true); if(!currentChart.getSubType().equals(sNewSubType)) // Original chart is not of the required subtype { currentChart.setSubType(sNewSubType); EList axes = ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes(); for(int i = 0; i < axes.size(); i++) { ((Axis) axes.get(i)).setPercent(false); EList seriesdefinitions = ((Axis) axes.get(i)).getSeriesDefinitions(); for(int j = 0; j < seriesdefinitions.size(); j++) { Series series = ((SeriesDefinition) seriesdefinitions.get(j)).getDesignTimeSeries(); series = getConvertedSeries(series); series.setStacked(false); ((SeriesDefinition) seriesdefinitions.get(j)).getSeries().set(j, series); } } } } else { return null; } } else { // Create a new instance of the correct type and set initial properties currentChart = ChartWithAxesImpl.create(); currentChart.setType(sType); currentChart.setSubType(sNewSubType); ((ChartWithAxes) currentChart).setOrientation(newOrientation); currentChart.setDimension(getDimensionFor(sNewDimension)); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setOrientation(Orientation.HORIZONTAL_LITERAL); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setType(AxisType.DATE_TIME_LITERAL); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setCategoryAxis(true); ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)) .setOrientation(Orientation.VERTICAL_LITERAL); ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)).setType(AxisType.LINEAR_LITERAL); // Copy generic chart properties from the old chart currentChart.setBlock(helperModel.getBlock()); currentChart.setDescription(helperModel.getDescription()); currentChart.setGridColumnCount(helperModel.getGridColumnCount()); currentChart.setSampleData(getConvertedSampleData(helperModel.getSampleData())); currentChart.setScript(helperModel.getScript()); currentChart.setSeriesThickness(helperModel.getSeriesThickness()); currentChart.setUnits(helperModel.getUnits()); if(helperModel.getType().equals("Pie Chart")) { // Clear existing series definitions ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().clear(); // Copy base series definitions ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().add(((ChartWithoutAxes) helperModel).getSeriesDefinitions().get(0)); // Clear existing series definitions ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().clear(); // Copy orthogonal series definitions ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().addAll(((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getSeriesDefinitions()); // Update the base series Series series = ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getDesignTimeSeries(); series = getConvertedSeries(series); // Clear existing series ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getSeries().clear(); // Add converted series ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getSeries().add(series); // Update the orthogonal series EList seriesdefinitions = ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions(); for(int j = 0; j < seriesdefinitions.size(); j++) { series = ((SeriesDefinition) seriesdefinitions.get(j)).getDesignTimeSeries(); series = getConvertedSeries(series); series.setStacked(false); // Clear any existing series ((SeriesDefinition) seriesdefinitions.get(j)).getSeries().clear(); // Add the new series ((SeriesDefinition) seriesdefinitions.get(j)).getSeries().add(series); } } else { return null; } } if(currentChart instanceof ChartWithAxes && !((ChartWithAxes) currentChart).getOrientation().equals(newOrientation)) { ((ChartWithAxes) currentChart).setOrientation(newOrientation); } if(!currentChart.getDimension().equals(getDimensionFor(sNewDimension))) { currentChart.setDimension(getDimensionFor(sNewDimension)); } return currentChart; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/33aaa1a97f4ae29f5607eeb332deeff2384cc2e3/StockChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/StockChart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
14804,
336,
22063,
7984,
12,
7984,
783,
7984,
16,
514,
272,
1908,
30511,
16,
531,
12556,
394,
14097,
16,
514,
272,
1908,
8611,
13,
565,
288,
3639,
14804,
4222,
1488,
273,
261,
7984,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14804,
336,
22063,
7984,
12,
7984,
783,
7984,
16,
514,
272,
1908,
30511,
16,
531,
12556,
394,
14097,
16,
514,
272,
1908,
8611,
13,
565,
288,
3639,
14804,
4222,
1488,
273,
261,
7984,... |
private static Method extractSetMethod(Class type, NativeJavaMethod njm, boolean isStatic) | private static MemberBox extractSetMethod(Class type, MemberBox[] methods, boolean isStatic) | private static Method extractSetMethod(Class type, NativeJavaMethod njm, boolean isStatic) { // // Note: it may be preferable to allow NativeJavaMethod.findFunction() // to find the appropriate setter; unfortunately, it requires an // instance of the target arg to determine that. // // Make two passes: one to find a method with direct type assignment, // and one to find a widening conversion. Method[] methods = njm.methods; for (int pass = 1; pass <= 2; ++pass) { for (int i = 0; i < methods.length; ++i) { Method method = methods[i]; if (!isStatic || Modifier.isStatic(method.getModifiers())) { if (method.getReturnType() == Void.TYPE) { Class[] params = njm.methodTypes[i]; if (params != null && params.length == 1) { if (pass == 1) { if (params[0] == type) { return method; } } else { if (pass != 2) Context.codeBug(); if (params[0].isAssignableFrom(type)) { return method; } } } } } } } return null; } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/004397fe5ef540e453f60552849d0320b106ace4/JavaMembers.java/buggy/js/rhino/src/org/mozilla/javascript/JavaMembers.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
2985,
2608,
694,
1305,
12,
797,
618,
16,
4766,
6647,
16717,
5852,
1305,
290,
78,
81,
16,
4766,
6647,
1250,
16116,
13,
565,
288,
3639,
368,
3639,
368,
3609,
30,
518,
2026,
506... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2985,
2608,
694,
1305,
12,
797,
618,
16,
4766,
6647,
16717,
5852,
1305,
290,
78,
81,
16,
4766,
6647,
1250,
16116,
13,
565,
288,
3639,
368,
3639,
368,
3609,
30,
518,
2026,
506... |
if (o instanceof File ) { File f = (File)o; this._diagram = diagram; this._import = _import; startImport(p, f); } | if (o instanceof File ) { File f = (File) o; this._diagram = diagram; this._import = _import; startImport(p, f); } | public void parseFile( Project p, Object o, DiagramInterface diagram, Import _import) throws Exception { if (o instanceof File ) { File f = (File)o; this._diagram = diagram; this._import = _import; startImport(p, f); } } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/5cee6094c7b77e3bcf6338f68456e6e531e781b7/ClassfileImport.java/buggy/modules/classfile/src/org/argouml/uml/reveng/classfile/ClassfileImport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
31986,
12,
5420,
293,
16,
1033,
320,
16,
14539,
1940,
1358,
19750,
16,
6164,
389,
5666,
13,
202,
15069,
1185,
288,
202,
202,
430,
261,
83,
1276,
1387,
262,
288,
10792,
1387,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31986,
12,
5420,
293,
16,
1033,
320,
16,
14539,
1940,
1358,
19750,
16,
6164,
389,
5666,
13,
202,
15069,
1185,
288,
202,
202,
430,
261,
83,
1276,
1387,
262,
288,
10792,
1387,
... |
RubyArray ary = RubyArray.newArray(getRuntime()); | RubyArray ary = getRuntime().newArray(); | public IRubyObject scan(IRubyObject arg) { RubyRegexp pat = RubyRegexp.regexpValue(arg); int start = 0; if (!getRuntime().isBlockGiven()) { RubyArray ary = RubyArray.newArray(getRuntime()); while (pat.search(this, start) != -1) { RubyMatchData md = (RubyMatchData) getRuntime().getBackref(); if (md.getSize() == 1) { ary.append(md.group(0)); } else { ary.append(md.subseq(1, md.getSize())); } if (md.matchEndPosition() == md.matchStartPosition()) { start++; } else { start = md.matchEndPosition(); } } return ary; } while (pat.search(this, start) != -1) { RubyMatchData md = (RubyMatchData) getRuntime().getBackref(); if (md.getSize() == 1) { getRuntime().yield(md.group(0)); } else { getRuntime().yield(md.subseq(1, md.getSize())); } if (md.matchEndPosition() == md.matchStartPosition()) { start++; } else { start = md.matchEndPosition(); } } return this; } | 47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyString.java/buggy/src/org/jruby/RubyString.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
15908,
10340,
921,
4135,
12,
7937,
10340,
921,
1501,
13,
288,
202,
202,
54,
10340,
14621,
9670,
273,
19817,
14621,
18,
17745,
620,
12,
3175,
1769,
202,
202,
474,
787,
273,
374,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15908,
10340,
921,
4135,
12,
7937,
10340,
921,
1501,
13,
288,
202,
202,
54,
10340,
14621,
9670,
273,
19817,
14621,
18,
17745,
620,
12,
3175,
1769,
202,
202,
474,
787,
273,
374,
... |
if(property.isOneToMany()) { | if(property.isOneToMany() || property.isManyToMany()) { | private static void bindCollection(GrailsDomainClassProperty property, Collection collection, PersistentClass owner, Mappings mappings) { // set role collection.setRole( StringHelper.qualify( property.getDomainClass().getFullName() , property.getName() ) ); // TODO: add code to configure optimistic locking // TODO: configure fetch strategy collection.setFetchMode( FetchMode.DEFAULT ); // if its a one-to-many mapping if(property.isOneToMany()) { OneToMany oneToMany = new OneToMany( collection.getOwner() ); collection.setElement( oneToMany );/* if(property.isBidirectional()) { collection.setReferencedPropertyName( property.getOtherSide().getName() ); }*/ bindOneToMany( property, oneToMany, mappings ); } else { String referencedClassName = property.getReferencedDomainClass().getFullName(); Table table = mappings.addTable( mappings.getSchemaName(), mappings.getCatalogName(), namingStrategy.classToTableName(referencedClassName), null, false ); collection.setCollectionTable(table); } // setup second pass mappings.addSecondPass( new GrailsCollectionSecondPass(property, mappings, collection) ); } | 50129 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50129/6c47cbe485713fe8d2b500632651590033abed59/GrailsDomainBinder.java/buggy/src/persistence/org/codehaus/groovy/grails/orm/hibernate/cfg/GrailsDomainBinder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
1993,
2532,
12,
14571,
14573,
3748,
797,
1396,
1272,
16,
2200,
1849,
16,
11049,
797,
3410,
16,
1635,
4675,
7990,
13,
288,
9506,
202,
759,
444,
2478,
202,
202,
5548,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
1993,
2532,
12,
14571,
14573,
3748,
797,
1396,
1272,
16,
2200,
1849,
16,
11049,
797,
3410,
16,
1635,
4675,
7990,
13,
288,
9506,
202,
759,
444,
2478,
202,
202,
5548,
... |
return cols[col]; } | return cols[col]; } | public String getColumnName(int col) { return cols[col]; } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d2b23250c95f45ef098e021cba0d970cd4733e3e/Connect.java/buggy/tn5250j/src/org/tn5250j/Connect.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
514,
20248,
12,
474,
645,
13,
288,
3639,
327,
5347,
63,
1293,
15533,
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,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
514,
20248,
12,
474,
645,
13,
288,
3639,
327,
5347,
63,
1293,
15533,
1377,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
( (EditorRuler) ruler ).setMarginOff( !( (Boolean) evt.getNewValue( ) ).booleanValue( ) ); | ( (EditorRuler) ruler ) .setMarginOff( !( (Boolean) evt .getNewValue( ) ).booleanValue( ) ); | public void propertyChange( PropertyChangeEvent evt ) { String property = evt.getPropertyName( ); if ( DeferredGraphicalViewer.PROPERTY_MARGIN_VISIBILITY.equals( property ) ) { Object obj = ( (RulerProvider) diagramViewer.getProperty( RulerProvider.PROPERTY_HORIZONTAL_RULER ) ); if ( obj instanceof EditorRulerProvider ) { Object ruler = ( (RulerProvider) obj ).getRuler( ); if ( ruler instanceof EditorRuler ) { ( (EditorRuler) ruler ).setMarginOff( !( (Boolean) evt.getNewValue( ) ).booleanValue( ) ); setMargin( TOP_LEFT ); setMargin( TOP_RIGHT ); } } obj = ( (RulerProvider) diagramViewer.getProperty( RulerProvider.PROPERTY_VERTICAL_RULER ) ); if ( obj instanceof EditorRulerProvider ) { Object ruler = ( (RulerProvider) obj ).getRuler( ); if ( ruler instanceof EditorRuler ) { ( (EditorRuler) ruler ).setMarginOff( !( (Boolean) evt.getNewValue( ) ).booleanValue( ) ); setMargin( LEFT_TOP ); setMargin( LEFT_BOTTOM ); } } } else if ( DeferredGraphicalViewer.LAYOUT_SIZE.equals( property ) ) { processProvider( ); } else if ( RulerProvider.PROPERTY_HORIZONTAL_RULER.equals( property ) ) { setRuler( (RulerProvider) diagramViewer.getProperty( RulerProvider.PROPERTY_HORIZONTAL_RULER ), PositionConstants.NORTH ); } else if ( RulerProvider.PROPERTY_VERTICAL_RULER.equals( property ) ) { setRuler( (RulerProvider) diagramViewer.getProperty( RulerProvider.PROPERTY_VERTICAL_RULER ), PositionConstants.WEST ); } else if ( RulerProvider.PROPERTY_RULER_VISIBILITY.equals( property ) ) setRulerVisibility( ( (Boolean) diagramViewer.getProperty( RulerProvider.PROPERTY_RULER_VISIBILITY ) ).booleanValue( ) ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/61cce071e25248ce85d293e05344845aab740350/EditorRulerComposite.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/rulers/EditorRulerComposite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1272,
3043,
12,
4276,
20930,
6324,
262,
1082,
202,
95,
9506,
202,
780,
1272,
273,
6324,
18,
588,
13073,
12,
11272,
9506,
202,
430,
261,
12816,
4137,
1706,
18415,
18,
9900,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1272,
3043,
12,
4276,
20930,
6324,
262,
1082,
202,
95,
9506,
202,
780,
1272,
273,
6324,
18,
588,
13073,
12,
11272,
9506,
202,
430,
261,
12816,
4137,
1706,
18415,
18,
9900,... |
public Collection getSubPackages(String packageName) | public SortedSet getSubPackages(String packageName) | public Collection getSubPackages(String packageName) { Collection subPackages = new HashSet(); Iterator iter = this.children.values().iterator(); while (iter.hasNext()) { PackageData packageData = (PackageData)iter.next(); if (packageData.getName().equals(packageName)) subPackages.add(packageData); } return subPackages; } | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/7f42310aa94d3450acefa63804376619941a31c5/ProjectData.java/clean/cobertura/src/net/sourceforge/cobertura/coveragedata/ProjectData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2200,
7040,
11425,
12,
780,
9929,
13,
202,
95,
202,
202,
2532,
720,
11425,
273,
394,
6847,
5621,
202,
202,
3198,
1400,
273,
333,
18,
5906,
18,
2372,
7675,
9838,
5621,
202,
202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2200,
7040,
11425,
12,
780,
9929,
13,
202,
95,
202,
202,
2532,
720,
11425,
273,
394,
6847,
5621,
202,
202,
3198,
1400,
273,
333,
18,
5906,
18,
2372,
7675,
9838,
5621,
202,
202... |
closeSearcher(); closeWriter(); | callPostCommitCallbacks(); if (cmd.optimize) { callPostOptimizeCallbacks(); } core.getSearcher(true,false,waitSearcher); | public void commit(CommitUpdateCommand cmd) throws IOException { if (cmd.optimize) { optimizeCommands.incrementAndGet(); } else { commitCommands.incrementAndGet(); } Future[] waitSearcher = null; if (cmd.waitSearcher) { waitSearcher = new Future[1]; } boolean error=true; try { synchronized (this) { log.info("start "+cmd); doDeletions(); if (cmd.optimize) { closeSearcher(); openWriter(); writer.optimize(); } closeSearcher(); closeWriter(); callPostCommitCallbacks(); if (cmd.optimize) { callPostOptimizeCallbacks(); } // open a new searcher in the sync block to avoid opening it // after a deleteByQuery changed the index, or in between deletes // and adds of another commit being done. core.getSearcher(true,false,waitSearcher); log.info("end_commit_flush"); } // end synchronized block error=false; } finally { addCommands.set(0); deleteByIdCommands.set(0); deleteByQueryCommands.set(0); numErrors.set(error ? 1 : 0); } // if we are supposed to wait for the searcher to be registered, then we should do it // outside of the synchronized block so that other update operations can proceed. if (waitSearcher!=null && waitSearcher[0] != null) { try { waitSearcher[0].get(); } catch (InterruptedException e) { SolrException.log(log,e); } catch (ExecutionException e) { SolrException.log(log,e); } } return; } | 50005 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50005/4e9426b94eeb8a4bc96bcb1c88885c8f9c99731b/DirectUpdateHandler2.java/buggy/src/java/org/apache/solr/update/DirectUpdateHandler2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3294,
12,
5580,
1891,
2189,
1797,
13,
1216,
1860,
288,
565,
309,
261,
4172,
18,
29155,
13,
288,
1377,
10979,
9127,
18,
15016,
14042,
5621,
565,
289,
469,
288,
1377,
3294,
9127,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3294,
12,
5580,
1891,
2189,
1797,
13,
1216,
1860,
288,
565,
309,
261,
4172,
18,
29155,
13,
288,
1377,
10979,
9127,
18,
15016,
14042,
5621,
565,
289,
469,
288,
1377,
3294,
9127,... |
return RubyString.newString(getRuntime(), buf); | return getRuntime().newString(buf); | public IRubyObject sysread(RubyFixnum number) { String buf = handler.sysread(RubyFixnum.fix2int(number)); return RubyString.newString(getRuntime(), buf); } | 47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyIO.java/buggy/src/org/jruby/RubyIO.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
2589,
896,
12,
54,
10340,
8585,
2107,
1300,
13,
288,
3639,
514,
1681,
273,
1838,
18,
9499,
896,
12,
54,
10340,
8585,
2107,
18,
904,
22,
474,
12,
2696,
10019,
77... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
2589,
896,
12,
54,
10340,
8585,
2107,
1300,
13,
288,
3639,
514,
1681,
273,
1838,
18,
9499,
896,
12,
54,
10340,
8585,
2107,
18,
904,
22,
474,
12,
2696,
10019,
77... |
public String apply( String elem ) { if( from == null || to == null ) { throw new BuildException( "Both 'from' and 'to' must be set " + "in a map entry" ); | public String apply(String elem) { if (from == null || to == null) { throw new BuildException("Both 'from' and 'to' must be set " + "in a map entry"); | public String apply( String elem ) { if( from == null || to == null ) { throw new BuildException( "Both 'from' and 'to' must be set " + "in a map entry" ); } // If we're on windows, then do the comparison ignoring case String cmpElem = onWindows ? elem.toLowerCase() : elem; String cmpFrom = onWindows ? from.toLowerCase() : from; // If the element starts with the configured prefix, then // convert the prefix to the configured 'to' value. if( cmpElem.startsWith( cmpFrom ) ) { int len = from.length(); if( len >= elem.length() ) { elem = to; } else { elem = to + elem.substring( len ); } } return elem; } | 17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/0dab862ee09d706c3f373fc18bedbf17caf427b9/PathConvert.java/clean/src/main/org/apache/tools/ant/taskdefs/PathConvert.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
2230,
12,
514,
3659,
262,
288,
5411,
309,
12,
628,
422,
446,
747,
358,
422,
446,
262,
288,
7734,
604,
394,
18463,
12,
315,
20240,
296,
2080,
11,
471,
296,
869,
11,
1297,
50... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
2230,
12,
514,
3659,
262,
288,
5411,
309,
12,
628,
422,
446,
747,
358,
422,
446,
262,
288,
7734,
604,
394,
18463,
12,
315,
20240,
296,
2080,
11,
471,
296,
869,
11,
1297,
50... |
return index < 0 ? null : name.substring(0, index); | return index < 0 ? null : name.substring(0, index); | public String getPrefix() { if (needsSyncData()) { synchronizeData(); } int index = name.indexOf(':'); return index < 0 ? null : name.substring(0, index); } | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/39bb7f6f50e7b98f13cc703c50da536dce255a27/ElementNSImpl.java/buggy/src/org/apache/xerces/dom/ElementNSImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
16182,
1435,
565,
288,
7734,
309,
261,
20600,
4047,
751,
10756,
288,
5411,
16978,
751,
5621,
3639,
289,
3639,
509,
770,
273,
508,
18,
31806,
2668,
2497,
1769,
3639,
327,
770,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
16182,
1435,
565,
288,
7734,
309,
261,
20600,
4047,
751,
10756,
288,
5411,
16978,
751,
5621,
3639,
289,
3639,
509,
770,
273,
508,
18,
31806,
2668,
2497,
1769,
3639,
327,
770,
4... |
return returnval; } | return returnval; } | public boolean existsKeys(Admin admin, X509Certificate certificate) { debug(">existsKeys()"); boolean returnval = false; final String hexSerial = certificate.getSerialNumber().toString(16); final String dn = CertTools.getIssuerDN(certificate); try { KeyRecoveryDataLocal krd = keyrecoverydatahome.findByPrimaryKey(new KeyRecoveryDataPK( hexSerial, dn)); returnval = true; } catch (FinderException e) { } debug("<existsKeys(" + returnval + ")"); return returnval; } // existsKeys | 4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/eacf4dd5b0993e24e9a5988e58f9a0cbb200450b/LocalKeyRecoverySessionBean.java/clean/src/java/se/anatom/ejbca/keyrecovery/LocalKeyRecoverySessionBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1704,
2396,
12,
4446,
3981,
16,
1139,
5995,
4719,
4944,
13,
288,
202,
202,
4148,
2932,
34,
1808,
2396,
1435,
8863,
202,
202,
6494,
327,
1125,
273,
629,
31,
3639,
727,
51... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1704,
2396,
12,
4446,
3981,
16,
1139,
5995,
4719,
4944,
13,
288,
202,
202,
4148,
2932,
34,
1808,
2396,
1435,
8863,
202,
202,
6494,
327,
1125,
273,
629,
31,
3639,
727,
51... |
public Iterator iterator() { | public NodeSetIterator iterator() { | public Iterator iterator() { return EMPTY_ITERATOR; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/aa97f4d76531893721258680bba3894385e96e08/EmptyNodeSet.java/clean/src/org/exist/dom/EmptyNodeSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4498,
2775,
1435,
288,
202,
565,
327,
8984,
67,
11844,
3575,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4498,
2775,
1435,
288,
202,
565,
327,
8984,
67,
11844,
3575,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
firePropertyChange("width", oldWidth, width); | changeSupport.firePropertyChange("width", oldWidth, width); | public void setWidth(int newWidth) { int oldWidth = width; if (newWidth < minWidth) width = minWidth; else if (newWidth > maxWidth) width = maxWidth; else width = newWidth; if (width == oldWidth) return; // We do have a constant field COLUMN_WIDTH_PROPERTY, // however, tests show that the actual fired property name is 'width' // and even Sun's API docs say that this constant field is obsolete and // not used. firePropertyChange("width", oldWidth, width); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/TableColumn.java/clean/core/src/classpath/javax/javax/swing/table/TableColumn.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
20855,
12,
474,
23542,
13,
225,
288,
565,
509,
202,
1673,
2384,
273,
1835,
31,
565,
309,
261,
2704,
2384,
411,
1131,
2384,
13,
1377,
1835,
273,
1131,
2384,
31,
565,
469,
309,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
20855,
12,
474,
23542,
13,
225,
288,
565,
509,
202,
1673,
2384,
273,
1835,
31,
565,
309,
261,
2704,
2384,
411,
1131,
2384,
13,
1377,
1835,
273,
1131,
2384,
31,
565,
469,
309,... |
throw new NoSuchAlgorithmException( | throw new InvalidKeyException( | public void engineInitVerify(PublicKey publicKey) throws InvalidKeyException { try { CryptoToken token = TokenSupplierManager.getTokenSupplier().getThreadToken(); sig = token.getSignatureContext(alg); // convert the public key into a JSS public key if necessary if( ! (publicKey instanceof org.mozilla.jss.pkcs11.PK11PubKey) ) { KeyFactory fact = KeyFactory.getInstance( publicKey.getAlgorithm(), "Mozilla-JSS"); if( ! publicKey.getFormat().equalsIgnoreCase("X.509") ) { throw new NoSuchAlgorithmException( "Unsupported public key format: " + publicKey.getFormat()); } X509EncodedKeySpec encodedKey = new X509EncodedKeySpec(publicKey.getEncoded()); publicKey = fact.generatePublic(encodedKey); } sig.initVerify(publicKey); } catch(NoSuchProviderException e) { throw new InvalidKeyException("Unable to convert non-JSS key " + "to JSS key"); } catch(java.security.spec.InvalidKeySpecException e) { throw new InvalidKeyException("Unable to convert non-JSS key " + "to JSS key"); } catch(java.security.NoSuchAlgorithmException e) { throw new InvalidKeyException("Algorithm not supported"); } catch(TokenException e) { throw new InvalidKeyException("Token exception occurred"); } } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/a32141f5d2f462926adacbc0643c3e5543893750/JSSSignatureSpi.java/clean/security/jss/org/mozilla/jss/provider/java/security/JSSSignatureSpi.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4073,
2570,
8097,
12,
9632,
12085,
13,
3639,
1216,
28885,
565,
288,
3639,
775,
288,
5411,
15629,
1345,
1147,
273,
2868,
3155,
13254,
1318,
18,
588,
1345,
13254,
7675,
588,
3830,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4073,
2570,
8097,
12,
9632,
12085,
13,
3639,
1216,
28885,
565,
288,
3639,
775,
288,
5411,
15629,
1345,
1147,
273,
2868,
3155,
13254,
1318,
18,
588,
1345,
13254,
7675,
588,
3830,
... |
protected void setProperty(Context _context, String _name, String _value) throws Exception { | protected void setProperty(final String _name, final String _value) throws CacheReloadException { | protected void setProperty(Context _context, String _name, String _value) throws Exception { if (_name.equals("SelectionColRef")) { setSelectableColRef(Attribute.get(_value)); } else { super.setProperty(_context, _name, _value); } } | 50266 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50266/398deca4d2f670170df358e7685a3efeb32cab57/Table.java/buggy/kernel/src/main/java/org/efaps/admin/ui/Table.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
7486,
12,
6385,
514,
389,
529,
16,
727,
514,
389,
1132,
13,
1216,
4379,
13013,
503,
225,
288,
565,
309,
261,
67,
529,
18,
14963,
2932,
6233,
914,
1957,
6,
3719,
225,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
7486,
12,
6385,
514,
389,
529,
16,
727,
514,
389,
1132,
13,
1216,
4379,
13013,
503,
225,
288,
565,
309,
261,
67,
529,
18,
14963,
2932,
6233,
914,
1957,
6,
3719,
225,
288,
1... |
window = fWorkbench.openWorkbenchWindow(EmptyPerspective.PERSP_ID, ResourcesPlugin.getWorkspace()); page = window.openPage(SessionPerspective.ID, ResourcesPlugin .getWorkspace()); | window = fWorkbench.openWorkbenchWindow(EmptyPerspective.PERSP_ID, getPageInput()); page = window.openPage(SessionPerspective.ID, getPageInput()); | public void testSessionCreation() throws Throwable { IWorkbenchWindow window; IWorkbenchPage page; // Save the original windows. We close all of // these at the end, after the test windows have // been created. saveOriginalWindows(); // Create test window with empty perspective. window = fWorkbench.openWorkbenchWindow(EmptyPerspective.PERSP_ID, ResourcesPlugin.getWorkspace()); // Create test window with empty perspective and // session perspective. window = fWorkbench.openWorkbenchWindow(EmptyPerspective.PERSP_ID, ResourcesPlugin.getWorkspace()); page = window.openPage(SessionPerspective.ID, ResourcesPlugin .getWorkspace()); // Create test window with two session perspectives. window = fWorkbench.openWorkbenchWindow(SessionPerspective.ID, ResourcesPlugin.getWorkspace()); page = window.openPage(SessionPerspective.ID, ResourcesPlugin .getWorkspace()); // Open 3 editors in last page. IProject proj = FileUtil.createProject(TEST_PROJ); IFile file = FileUtil.createFile(TEST_FILE_1, proj); page.openEditor(new FileEditorInput(file), MockEditorPart.ID1); file = FileUtil.createFile(TEST_FILE_2, proj); page.openEditor(new FileEditorInput(file), MockEditorPart.ID1); file = FileUtil.createFile(TEST_FILE_3, proj); page.openEditor(new FileEditorInput(file), MockEditorPart.ID1); // Close the original windows. closeOriginalWindows(); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/d702bd12f55dda09eb7a17f2c12be9ad40fc1ee4/SessionCreateTest.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/api/SessionCreateTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2157,
9906,
1435,
1216,
4206,
288,
3639,
467,
2421,
22144,
3829,
2742,
31,
3639,
467,
2421,
22144,
1964,
1363,
31,
3639,
368,
7074,
326,
2282,
9965,
18,
225,
1660,
1746,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2157,
9906,
1435,
1216,
4206,
288,
3639,
467,
2421,
22144,
3829,
2742,
31,
3639,
467,
2421,
22144,
1964,
1363,
31,
3639,
368,
7074,
326,
2282,
9965,
18,
225,
1660,
1746,
... |
Node node = document.createElement(tagName); return new W3CDOMWrapper(node); } | Node node = document.createElement(tagName); return new W3CDOMWrapper(node); } | public DOMWrapper create(String tagName) { Node node = document.createElement(tagName); return new W3CDOMWrapper(node); } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b5b5168edc3af09cb74945a80b0c36e6630ed502/XercesDOMParser.java/buggy/src/main/mondrian/xom/wrappers/XercesDOMParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4703,
3611,
752,
12,
780,
7196,
13,
288,
202,
202,
907,
756,
273,
1668,
18,
2640,
1046,
12,
2692,
461,
1769,
202,
202,
2463,
394,
678,
23,
39,
8168,
3611,
12,
2159,
1769,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4703,
3611,
752,
12,
780,
7196,
13,
288,
202,
202,
907,
756,
273,
1668,
18,
2640,
1046,
12,
2692,
461,
1769,
202,
202,
2463,
394,
678,
23,
39,
8168,
3611,
12,
2159,
1769,
20... |
public org.quickfix.field.UnderlyingCurrency getUnderlyingCurrency() throws FieldNotFound { org.quickfix.field.UnderlyingCurrency value = new org.quickfix.field.UnderlyingCurrency(); | public quickfix.field.UnderlyingCurrency getUnderlyingCurrency() throws FieldNotFound { quickfix.field.UnderlyingCurrency value = new quickfix.field.UnderlyingCurrency(); | public org.quickfix.field.UnderlyingCurrency getUnderlyingCurrency() throws FieldNotFound { org.quickfix.field.UnderlyingCurrency value = new org.quickfix.field.UnderlyingCurrency(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityDefinitionRequest.java/buggy/src/java/src/quickfix/fix42/SecurityDefinitionRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
7623,
10833,
765,
6291,
7623,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
7623,
460,
273,
394... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
7623,
10833,
765,
6291,
7623,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
7623,
460,
273,
394... |
return; | return false; | void scrollHorizontalBar(int pixels) { if (pixels == 0) { return; } ScrollBar horizontalBar = getHorizontalBar(); if (horizontalBar != null) { horizontalBar.setSelection(horizontalScrollOffset + pixels); } scrollHorizontal(pixels);} | 12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/b5d04fbc070a732aaaea3bf20786a0b122a46481/StyledText.java/buggy/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
5532,
14457,
5190,
12,
474,
8948,
13,
288,
202,
430,
261,
21084,
422,
374,
13,
288,
202,
202,
2463,
31,
202,
97,
202,
6806,
5190,
10300,
5190,
273,
7628,
6359,
5190,
5621,
202,
430,
261... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
5532,
14457,
5190,
12,
474,
8948,
13,
288,
202,
430,
261,
21084,
422,
374,
13,
288,
202,
202,
2463,
31,
202,
97,
202,
6806,
5190,
10300,
5190,
273,
7628,
6359,
5190,
5621,
202,
430,
261... |
Updater.update(myVcs, myRootManager.getContentRoots()); | Updater.update(myVcs, myFileFilter, myRootManager.getContentRoots()); | private void updateRoots() { try { Updater.update(myVcs, myRootManager.getContentRoots()); } catch (IOException e) { throw new RuntimeException(e); } } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/df4e4df7f9848c9856eabd3e1f05b48377a55a5c/LocalVcsService.java/clean/LocalVcs/src/com/intellij/localvcs/integration/LocalVcsService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1089,
17540,
1435,
288,
565,
775,
288,
1377,
27254,
2045,
18,
2725,
12,
4811,
58,
2143,
16,
3399,
29837,
16,
3399,
2375,
1318,
18,
588,
1350,
17540,
10663,
565,
289,
565,
1044,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1089,
17540,
1435,
288,
565,
775,
288,
1377,
27254,
2045,
18,
2725,
12,
4811,
58,
2143,
16,
3399,
29837,
16,
3399,
2375,
1318,
18,
588,
1350,
17540,
10663,
565,
289,
565,
1044,... |
return handlers.iterator().next(); | return handlers.values().iterator().next(); | public Method getDefaultHandler(Class<? extends ActionBean> bean) throws StripesServletException { Collection<Method> handlers = this.eventMappings.get(bean).values(); if (handlers.size() == 1) { return handlers.iterator().next(); } else { for (Method handler : handlers) { if (handler.getAnnotation(DefaultHandler.class) != null) { return handler; } } } // If we got this far there is no default handler throw new StripesServletException("No default handler could be found for ActionBean of " + "type: " + bean.getName()); } | 9306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9306/1965786bc616302a789f634396d04e27911160ec/AnnotatedClassActionResolver.java/clean/stripes/src/net/sourceforge/stripes/controller/AnnotatedClassActionResolver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2985,
4829,
1503,
12,
797,
12880,
3231,
4382,
3381,
34,
3931,
13,
1216,
15589,
281,
4745,
503,
288,
3639,
2200,
32,
1305,
34,
4919,
273,
333,
18,
2575,
7742,
18,
588,
12,
14496,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2985,
4829,
1503,
12,
797,
12880,
3231,
4382,
3381,
34,
3931,
13,
1216,
15589,
281,
4745,
503,
288,
3639,
2200,
32,
1305,
34,
4919,
273,
333,
18,
2575,
7742,
18,
588,
12,
14496,
2... |
public boolean isSet(org.quickfix.field.OrigClOrdID field) | public boolean isSet(quickfix.field.OrigClOrdID field) | public boolean isSet(org.quickfix.field.OrigClOrdID field) { return isSetField(field); } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderMassCancelReport.java/buggy/src/java/src/quickfix/fix43/OrderMassCancelReport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
4741,
2009,
15383,
734,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
4741,
2009,
15383,
734,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
viewer.setContentProvider(new SectionContentProvider()); viewer.setLabelProvider(new SectionLabelProvider()); Section tree = createTree(); | viewer.setContentProvider(new NodeContentProvider()); viewer.setLabelProvider(new NodeLabelProvider()); Node tree = createTree(); | public void createControl(Composite parent) { super.createControl(parent); TreeViewer viewer = getTreeViewer(); viewer.setContentProvider(new SectionContentProvider()); viewer.setLabelProvider(new SectionLabelProvider()); Section tree = createTree(); viewer.setInput(tree); Tree treeControl = (Tree) viewer.getControl(); if (tree.size() > 0) { TreeItem item = treeControl.getItem(0); treeControl.setSelection(new TreeItem[] { item }); } viewer.expandAll(); // IToolBarManager manager = getSite().getActionBars().getToolBarManager();// manager.add(new ShowDefinitionsOnlyAction());// manager.add(new ShowHeadersOnlyAction()); } | 53665 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53665/ef892c9bc881eec5bc83474e595b83638a451b16/SchemeOutlinePage.java/buggy/src/org/schemeway/plugins/schemescript/editor/SchemeOutlinePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
752,
3367,
12,
9400,
982,
13,
288,
3639,
2240,
18,
2640,
3367,
12,
2938,
1769,
7734,
4902,
18415,
14157,
273,
15867,
18415,
5621,
3639,
14157,
18,
542,
1350,
2249,
12,
2704,
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,
377,
1071,
918,
752,
3367,
12,
9400,
982,
13,
288,
3639,
2240,
18,
2640,
3367,
12,
2938,
1769,
7734,
4902,
18415,
14157,
273,
15867,
18415,
5621,
3639,
14157,
18,
542,
1350,
2249,
12,
2704,
10... |
if (x < 0.5) { | if (x < 0.5) { | public static double asin(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? -PI / 2 : PI / 2; if (x < 0.5) { if (x < 1 / TWO_27) return negative ? -x : x; double t = x * x; double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3 + t * (PS4 + t * PS5))))); double q = 1 + t * (QS1 + t * (QS2 + t * (QS3 + t * QS4))); return negative ? -x - x * (p / q) : x + x * (p / q); } double w = 1 - x; // 1>|x|>=0.5. double t = w * 0.5; double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3 + t * (PS4 + t * PS5))))); double q = 1 + t * (QS1 + t * (QS2 + t * (QS3 + t * QS4))); double s = sqrt(t); if (x >= 0.975) { w = p / q; t = PI / 2 - (2 * (s + s * w) - PI_L / 2); } else { w = (float) s; double c = (t - w * w) / (s + w); p = 2 * s * (p / q) - (PI_L / 2 - 2 * c); q = PI / 4 - 2 * w; t = PI / 4 - (p - q); } return negative ? -t : t; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1645,
487,
267,
12,
9056,
619,
13,
288,
202,
202,
6494,
6092,
273,
619,
411,
374,
31,
202,
202,
430,
261,
13258,
13,
1082,
202,
92,
273,
300,
92,
31,
202,
202,
430,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
487,
267,
12,
9056,
619,
13,
288,
202,
202,
6494,
6092,
273,
619,
411,
374,
31,
202,
202,
430,
261,
13258,
13,
1082,
202,
92,
273,
300,
92,
31,
202,
202,
430,
1... |
StatisticsView cumulativeStatisticsView) { m_newStatisticsViewsCalled = true; m_intervalStatisticsView = intervalStatisticsView; m_cumulativeStatisticsView = cumulativeStatisticsView; } | StatisticsView cumulativeStatisticsView) { m_newStatisticsViewsCalled = true; m_intervalStatisticsView = intervalStatisticsView; m_cumulativeStatisticsView = cumulativeStatisticsView; } | public void newStatisticsViews(StatisticsView intervalStatisticsView, StatisticsView cumulativeStatisticsView) { m_newStatisticsViewsCalled = true; m_intervalStatisticsView = intervalStatisticsView; m_cumulativeStatisticsView = cumulativeStatisticsView; } | 7770 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7770/d5095282593ea1fa8c83b82db02d2aef4eb27594/TestSwingDispatchedModelListener.java/buggy/tests-src/net/grinder/console/swingui/TestSwingDispatchedModelListener.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
394,
8569,
9959,
12,
8569,
1767,
3673,
8569,
1767,
16,
6862,
4202,
22964,
1767,
15582,
8569,
1767,
13,
202,
95,
202,
565,
312,
67,
2704,
8569,
9959,
8185,
273,
638,
31,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
394,
8569,
9959,
12,
8569,
1767,
3673,
8569,
1767,
16,
6862,
4202,
22964,
1767,
15582,
8569,
1767,
13,
202,
95,
202,
565,
312,
67,
2704,
8569,
9959,
8185,
273,
638,
31,
2... |
addSubCommand( child, parent, screen ); | screen.addSubCommand( child, parent ); | public static void addSubCommand( Command child, Command parent, Screen screen ) { //#style menuitem? addSubCommand( child, parent, screen ); } | 9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/c14555b08d15c3121416578aa7bbfa65ee40378e/UiAccess.java/buggy/j2me/source/src/de/enough/polish/ui/UiAccess.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
25716,
2189,
12,
225,
3498,
1151,
16,
3498,
982,
16,
10146,
5518,
225,
262,
288,
202,
202,
759,
7,
4060,
3824,
1726,
35,
202,
202,
1289,
1676,
2189,
12,
1151,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
25716,
2189,
12,
225,
3498,
1151,
16,
3498,
982,
16,
10146,
5518,
225,
262,
288,
202,
202,
759,
7,
4060,
3824,
1726,
35,
202,
202,
1289,
1676,
2189,
12,
1151,
16,
... |
save(false); | if(!save(false)) { getToolkit().beep(); return; } | public void actionPerformed(ActionEvent evt) { Object source = evt.getSource(); if(source == closeBtn) cancel(); else if(source == findBtn || source == find || source == replace) { ok(); } else if(source == replaceAndFindBtn) { save(false); if(SearchAndReplace.replace(view)) ok(); else getToolkit().beep(); } else if(source == replaceAllBtn) { if(searchSelection.isSelected() && view.getTextArea().getSelectionCount() == 0) { GUIUtilities.error(view,"search-no-selection",null); return; } setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); save(false); if(searchSelection.isSelected()) { if(SearchAndReplace.replace(view)) closeOrKeepDialog(); else getToolkit().beep(); } else { if(SearchAndReplace.replaceAll(view)) closeOrKeepDialog(); else getToolkit().beep(); } setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); } } | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/d5d36d3c9a7e3996df6c5d6e7cd7c5da12102fff/SearchDialog.java/buggy/org/gjt/sp/jedit/search/SearchDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
6324,
13,
202,
202,
95,
1082,
202,
921,
1084,
273,
6324,
18,
588,
1830,
5621,
1082,
202,
430,
12,
3168,
422,
1746,
20541,
13,
9506,
202,
10996,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
6324,
13,
202,
202,
95,
1082,
202,
921,
1084,
273,
6324,
18,
588,
1830,
5621,
1082,
202,
430,
12,
3168,
422,
1746,
20541,
13,
9506,
202,
10996,
56... |
animator.stop(); System.exit(0); | new Thread(new Runnable() { public void run() { animator.stop(); System.exit(0); } }).start(); | public void windowClosing(WindowEvent e) { animator.stop(); System.exit(0); } | 6783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6783/69ca977ccf8d329cd72dced5ebb92501da460561/VertexBufferObject.java/clean/src/demos/vertexBufferObject/VertexBufferObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
2742,
15745,
12,
3829,
1133,
425,
13,
288,
1850,
10536,
639,
18,
5681,
5621,
1850,
2332,
18,
8593,
12,
20,
1769,
3639,
289,
2,
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,
540,
1071,
918,
2742,
15745,
12,
3829,
1133,
425,
13,
288,
1850,
10536,
639,
18,
5681,
5621,
1850,
2332,
18,
8593,
12,
20,
1769,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return paramString(); | return this.getClass().getName() + "[" + paramString() + "]"; | public String toString() { return paramString(); } | 45163 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45163/14a46ad9e70e8baeb4a720508e0a04f9df8b41f5/Component.java/clean/libjava/java/awt/Component.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1762,
1435,
225,
288,
565,
327,
333,
18,
588,
797,
7675,
17994,
1435,
397,
13626,
397,
579,
780,
1435,
397,
9870,
31,
225,
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,
282,
1071,
514,
1762,
1435,
225,
288,
565,
327,
333,
18,
588,
797,
7675,
17994,
1435,
397,
13626,
397,
579,
780,
1435,
397,
9870,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
else | try { return new File(path).getCanonicalPath(); } catch(Exception e) { | private static String canonPath(String path) { if(File.separatorChar == '\\') { // get rid of mixed paths on Windows return path.replace('/','\\'); } else return path; } | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/74edffa405f3d7df1919e13f861617a2be9f2c5c/MiscUtilities.java/clean/org/gjt/sp/jedit/MiscUtilities.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
514,
29147,
743,
12,
780,
589,
13,
202,
95,
202,
202,
430,
12,
812,
18,
11287,
2156,
422,
5282,
13,
202,
202,
95,
1082,
202,
759,
336,
10911,
434,
7826,
2953,
603,
820... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
514,
29147,
743,
12,
780,
589,
13,
202,
95,
202,
202,
430,
12,
812,
18,
11287,
2156,
422,
5282,
13,
202,
202,
95,
1082,
202,
759,
336,
10911,
434,
7826,
2953,
603,
820... |
void doGlobal(Function funObj, int count) throws JavaScriptException { | void doGlobal(Context cx, Function funObj, int count, RegExpImpl reImpl) throws JavaScriptException { | void doGlobal(Function funObj, int count) throws JavaScriptException { MatchData mdata; Object v; mdata = this; Context cx = Context.getCurrentContext(); RegExpImpl reImpl = RegExpImpl.getRegExpImpl(cx); if (arrayobj == null) { Scriptable s = ScriptableObject.getTopLevelScope(funObj); arrayobj = ScriptRuntime.newObject(cx, s, "Array", null); } SubString matchsub = reImpl.lastMatch; String matchstr = matchsub.toString(); arrayobj.put(count, arrayobj, matchstr); } | 7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/8b34980fb3adc3beae5bcea5913d426dc2e366c8/RegExpImpl.java/buggy/js/rhino/src/org/mozilla/javascript/regexp/RegExpImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
741,
5160,
12,
1042,
9494,
16,
4284,
9831,
2675,
16,
509,
1056,
16,
10679,
2828,
283,
2828,
13,
1216,
11905,
503,
288,
3639,
4639,
751,
312,
892,
31,
3639,
1033,
331,
31,
3639,
312... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
741,
5160,
12,
1042,
9494,
16,
4284,
9831,
2675,
16,
509,
1056,
16,
10679,
2828,
283,
2828,
13,
1216,
11905,
503,
288,
3639,
4639,
751,
312,
892,
31,
3639,
1033,
331,
31,
3639,
312... |
if (true) { | private String getSimpleCallName(Node callNode) /* Find call trees that look like this : (they arise from simple function invocations) CALL <-- this is the callNode node GETPROP NEWTEMP [USES: 1] GETBASE 'name' STRING 'name' GETTHIS USETEMP [TEMP: NEWTEMP [USES: 1]] <-- arguments would be here and return the name found. */ {if (true) { Node callBase = callNode.getFirstChild(); if (callBase.getType() == TokenStream.GETPROP) { Node callBaseChild = callBase.getFirstChild(); if (callBaseChild.getType() == TokenStream.NEWTEMP) { Node callBaseID = callBaseChild.getNextSibling(); Node tempChild = callBaseChild.getFirstChild(); if (tempChild.getType() == TokenStream.GETBASE) { String functionName = tempChild.getString(); if ((callBaseID != null) && (callBaseID.getType() == TokenStream.STRING)) { if (functionName.equals(callBaseID.getString())) { Node thisChild = callBase.getNextSibling(); if (thisChild.getType() == TokenStream.GETTHIS) { Node useChild = thisChild.getFirstChild(); if (useChild.getType() == TokenStream.USETEMP) { Node temp = (Node)useChild.getProp(Node.TEMP_PROP); if (temp == callBaseChild) { return functionName; } } } } } } } }} return null; } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/0470e048abb345f567d5fda1e9564715a9f4d5d7/Codegen.java/clean/js/rhino/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
8120,
1477,
461,
12,
907,
745,
907,
13,
565,
1748,
3639,
4163,
745,
11491,
716,
2324,
3007,
333,
294,
3639,
261,
451,
402,
419,
784,
628,
4143,
445,
27849,
13,
7734,
22753,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
8120,
1477,
461,
12,
907,
745,
907,
13,
565,
1748,
3639,
4163,
745,
11491,
716,
2324,
3007,
333,
294,
3639,
261,
451,
402,
419,
784,
628,
4143,
445,
27849,
13,
7734,
22753,
5... | |
public void setTarget(SizeCache target) { setTargetControl(target.getControl()); } | public void setTarget(SizeCache cache) { targetCache = cache; if (targetCache != null) { setTargetControl(cache.getControl()); } else { setTargetControl(null); } } | public void setTarget(SizeCache target) { setTargetControl(target.getControl()); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/aaa67ee0d5b82c6c46eb51216d63b2b2927d58b7/ProxyControl.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/util/ProxyControl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
18367,
12,
1225,
1649,
1018,
13,
288,
202,
565,
18367,
3367,
12,
3299,
18,
588,
3367,
10663,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18367,
12,
1225,
1649,
1018,
13,
288,
202,
565,
18367,
3367,
12,
3299,
18,
588,
3367,
10663,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return new MuleMessage(result[0], invocation.getMessage().getProperties()); | return new MuleMessage(result[0], invocation.getMessage()); | public UMOMessage before(Invocation invocation) throws UMOException { if (beforeExpressions != null && beforeExpressionsList.size() > 0) { JXPathContext ctx = JXPathContext.newContext(getOriginalPayload()); Object[] result = new Object[beforeExpressionsList.size()]; for (int i = 0; i < result.length; i++) { result[i] = ctx.getValue((String) beforeExpressionsList.get(i)); } if (result.length == 1) { return new MuleMessage(result[0], invocation.getMessage().getProperties()); } else { return new MuleMessage(result, invocation.getMessage().getProperties()); } } return null; } | 28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/1c16135aeffdc8654133a2cfd4e29e2561335937/JXPathNormalizerInterceptor.java/buggy/mule/src/java/org/mule/interceptors/JXPathNormalizerInterceptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
587,
5980,
1079,
1865,
12,
9267,
9495,
13,
1216,
587,
5980,
503,
565,
288,
3639,
309,
261,
5771,
8927,
480,
446,
597,
1865,
8927,
682,
18,
1467,
1435,
405,
374,
13,
288,
5411,
804... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
587,
5980,
1079,
1865,
12,
9267,
9495,
13,
1216,
587,
5980,
503,
565,
288,
3639,
309,
261,
5771,
8927,
480,
446,
597,
1865,
8927,
682,
18,
1467,
1435,
405,
374,
13,
288,
5411,
804... |
return 1; | return ncol; | public int getColumnCount() { return 1; } | 48494 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48494/7c72a3bbe18af95caf51f070fe40781e018c817e/ArrayBrowser.java/clean/treeview/src/main/uk/ac/starlink/treeview/ArrayBrowser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
509,
6716,
1380,
1435,
288,
10792,
327,
290,
1293,
31,
7734,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
509,
6716,
1380,
1435,
288,
10792,
327,
290,
1293,
31,
7734,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if (m instanceof MModelElement) { MModelElement me = (MModelElement) m; | if (m != null && m instanceof MModelElement) { MModelElement me = (MModelElement) m; | public static void setStereotype(Object m, Object stereo) { if (m instanceof MModelElement) { MModelElement me = (MModelElement) m; if (stereo != null && stereo instanceof MStereotype && me.getModel() != ((MStereotype) stereo).getModel()) { ((MStereotype) stereo).setNamespace(me.getModel()); } me.setStereotype((MStereotype) stereo); } } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/8abd8d64ef14558fa4b1e37c632b2e9220b8a889/ModelFacade.java/clean/src_new/org/argouml/model/ModelFacade.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
13928,
387,
73,
10570,
12,
921,
312,
16,
1033,
29558,
13,
288,
3639,
309,
261,
81,
1276,
490,
1488,
1046,
13,
288,
202,
565,
490,
1488,
1046,
1791,
273,
261,
49,
1488,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
13928,
387,
73,
10570,
12,
921,
312,
16,
1033,
29558,
13,
288,
3639,
309,
261,
81,
1276,
490,
1488,
1046,
13,
288,
202,
565,
490,
1488,
1046,
1791,
273,
261,
49,
1488,
... |
private String removeColon(String s) { StringTokenizer st = new StringTokenizer(s,":",false); String t=""; while (st.hasMoreElements()) t += st.nextElement(); return t; } | private String removeColon(String s) { StringTokenizer st = new StringTokenizer(s, ":", false); String t = ""; while (st.hasMoreElements()) t += st.nextElement(); return t; } | private String removeColon(String s) { StringTokenizer st = new StringTokenizer(s,":",false); String t=""; while (st.hasMoreElements()) t += st.nextElement(); return t; } | 51612 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51612/d944969a05e2e329c0b042b33835750c3716bd1d/TooltipPanel.java/clean/wicket-contrib-dojo/src/main/java/wicket/contrib/markup/html/tooltip/TooltipPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
1206,
19636,
12,
780,
272,
13,
288,
1082,
225,
16370,
384,
273,
394,
16370,
12,
87,
10837,
2773,
16,
5743,
1769,
1082,
225,
514,
268,
1546,
14432,
1082,
225,
1323,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
1206,
19636,
12,
780,
272,
13,
288,
1082,
225,
16370,
384,
273,
394,
16370,
12,
87,
10837,
2773,
16,
5743,
1769,
1082,
225,
514,
268,
1546,
14432,
1082,
225,
1323,
261,
... |
else if ( sSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) | else if ( sSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) | 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( CHART_TITLE ); if ( sSubType.equalsIgnoreCase( STACKED_SUBTYPE_LITERAL ) ) { ( (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 = AreaSeriesImpl.create( ); valueSeries.getLabel( ).setVisible( true ); ( (AreaSeries) valueSeries ).getMarker( ).setVisible( false ); ( (AreaSeries) valueSeries ).getLineAttributes( ) .setColor( ColorDefinitionImpl.BLUE( ) ); ( (AreaSeries) valueSeries ).setStacked( true ); sdY.getSeries( ).add( valueSeries ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).getSeriesDefinitions( ).add( sdY ); } else if ( sSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) { ( (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 = AreaSeriesImpl.create( ); valueSeries.getLabel( ).setVisible( true ); ( (AreaSeries) valueSeries ).getMarker( ).setVisible( false ); ( (AreaSeries) valueSeries ).getLineAttributes( ) .setColor( ColorDefinitionImpl.BLUE( ) ); ( (AreaSeries) valueSeries ).setStacked( true ); sdY.getSeries( ).add( valueSeries ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).getSeriesDefinitions( ).add( sdY ); } else if ( sSubType.equalsIgnoreCase( OVERLAY_SUBTYPE_LITERAL ) ) { ( (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 = AreaSeriesImpl.create( ); valueSeries.getLabel( ).setVisible( true ); ( (AreaSeries) valueSeries ).getMarker( ).setVisible( false ); ( (AreaSeries) valueSeries ).getLineAttributes( ) .setColor( ColorDefinitionImpl.BLUE( ) ); ( (AreaSeries) 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; } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/182827fe6ad4e223adc4bf4bcf44d469847b773d/AreaChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/AreaChart.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... |
+ TaskRepositoriesView.NAME + "."); | + TaskRepositoriesView.NAME + ".\n\n"); MylarStatusHandler.log(e, "Failed to retrieve products from server"); | private void initProducts() { // try to get the list of products from the server if (!bugWizard.model.hasParsedProducts()) { String repositoryUrl = repository.getUrl(); try { String[] storedProducts = BugzillaUiPlugin.getQueryOptions(IBugzillaConstants.VALUES_PRODUCT, null, repositoryUrl); if (storedProducts.length > 0) { products = Arrays.asList(storedProducts); } else { products = BugzillaServerFacade.getProductList(repository.getUrl(), TasksUiPlugin.getDefault() .getProxySettings(), repository.getUserName(), repository.getPassword(), repository .getCharacterEncoding()); } bugWizard.model.setConnected(true); bugWizard.model.setParsedProductsStatus(true); } catch (Exception e) { bugWizard.model.setConnected(false); PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { MessageDialog.openError(Display.getDefault().getActiveShell(), NEW_BUGZILLA_TASK_ERROR_TITLE, "Unable to get products. Ensure proper repository configuration in " + TaskRepositoriesView.NAME + "."); } }); } } } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/3cadf1d4fe7ee5bfe2841c88dcb73dc0d1c1f333/BugzillaProductPage.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/BugzillaProductPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1208,
13344,
1435,
288,
202,
202,
759,
775,
358,
336,
326,
666,
434,
10406,
628,
326,
1438,
202,
202,
430,
16051,
925,
27130,
18,
2284,
18,
5332,
11257,
13344,
10756,
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,
225,
202,
1152,
918,
1208,
13344,
1435,
288,
202,
202,
759,
775,
358,
336,
326,
666,
434,
10406,
628,
326,
1438,
202,
202,
430,
16051,
925,
27130,
18,
2284,
18,
5332,
11257,
13344,
10756,
288,... |
String name = event.getTask().getTaskName(); | String name = event.getTask().getName(); | public void messageLogged( BuildEvent event ) { // Filter out messages based on priority if( event.getPriority() <= msgOutputLevel ) { StringBuffer message = new StringBuffer(); // Print out the name of the task if we're in one if( event.getTask() != null ) { String name = event.getTask().getTaskName(); if( !emacsMode ) { String label = "[" + name + "] "; for( int i = 0; i < ( LEFT_COLUMN_SIZE - label.length() ); i++ ) { message.append( " " ); } message.append( label ); } } message.append( event.getMessage() ); String msg = message.toString(); if( event.getPriority() != Project.MSG_ERR ) { out.println( msg ); } else { err.println( msg ); } log( msg ); } } | 17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/a7e57725e0310ca20182465f2ab2aa877ac5b9b5/DefaultLogger.java/clean/proposal/myrmidon/src/todo/org/apache/tools/ant/DefaultLogger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
883,
19862,
12,
3998,
1133,
871,
262,
565,
288,
3639,
368,
4008,
596,
2743,
2511,
603,
4394,
3639,
309,
12,
871,
18,
588,
8183,
1435,
1648,
1234,
1447,
2355,
262,
3639,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
883,
19862,
12,
3998,
1133,
871,
262,
565,
288,
3639,
368,
4008,
596,
2743,
2511,
603,
4394,
3639,
309,
12,
871,
18,
588,
8183,
1435,
1648,
1234,
1447,
2355,
262,
3639,
288,
... |
return getContextClassLoader().loadClass(className, true).asClass(); | return getContextClassLoader().asClassLoader().loadClass(className); | public static Class forName(String className) throws ClassNotFoundException { return getContextClassLoader().loadClass(className, true).asClass(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c2a519140737c4d249f6c5d568256db2030112e9/VmSystem.java/buggy/core/src/core/org/jnode/vm/VmSystem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1659,
11595,
12,
780,
2658,
13,
1216,
10403,
288,
202,
202,
2463,
23384,
7675,
945,
797,
12,
12434,
16,
638,
2934,
345,
797,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1659,
11595,
12,
780,
2658,
13,
1216,
10403,
288,
202,
202,
2463,
23384,
7675,
945,
797,
12,
12434,
16,
638,
2934,
345,
797,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-10... |
AttributedCharacterIterator iter = las.getIterator(); | AttributedCharacterIterator iter = las.getIterator(); | protected List buildAttributedStrings(BridgeContext ctx, Element element, GraphicsNode node, boolean top, LinkedList result) { // !!! return two lists Map m = getAttributeMap(ctx, element, node); String s = XMLSupport.getXMLSpace(element); boolean preserve = s.equals("preserve"); boolean first = true; boolean last; boolean stripFirst = !preserve; boolean stripLast = !preserve; Element nodeElement = element; AttributedString as = null; if (!result.isEmpty()) { as = (AttributedString) result.getLast(); } for (Node n = element.getFirstChild(); n != null; n = n.getNextSibling()) { last = n.getNextSibling() == null; int lastChar = (as != null) ? (as.getIterator().last()) : CharacterIterator.DONE; stripFirst = !preserve && first && (top || (lastChar == ' ') || (lastChar == CharacterIterator.DONE)); switch (n.getNodeType()) { case Node.ELEMENT_NODE: nodeElement = (Element)n; if (n.getLocalName().equals("tspan")) { buildAttributedStrings(ctx, nodeElement, node, false, result); } else if (n.getLocalName().equals("tref")) { try { String uriStr = XLinkSupport.getXLinkHref((Element)n); SVGDocument svgDoc = (SVGDocument)element.getOwnerDocument(); URL baseURL = ((SVGOMDocument)svgDoc).getURLObject(); URL url = new URL(baseURL, uriStr); DocumentLoader loader = ctx.getDocumentLoader(); URIResolver resolver = new URIResolver(svgDoc, loader); Element ref = (Element)resolver.getNode(url.toString()); s = getElementContent(ref); Map map = getAttributeMap(ctx, nodeElement, node); int[] indexMap = new int[s.length()]; as = createAttributedString(s, map, indexMap, preserve, stripFirst, last && top); if (as != null) { addGlyphPositionAttributes( as, true, indexMap, ctx, nodeElement); stripLast = !preserve && (as.getIterator().first() == ' '); if (stripLast) { AttributedString las = (AttributedString) result.removeLast(); if (las != null) { AttributedCharacterIterator iter = las.getIterator(); int endIndex = iter.getEndIndex()-1; if (iter.setIndex(endIndex) == ' ') { las = new AttributedString( las.getIterator(null, iter.getBeginIndex(), endIndex)); } result.add(las); } } result.add(as); } } catch(MalformedURLException ex) { throw new IllegalAttributeValueException( Messages.formatMessage("tref.xlinkHref.badURL", null)); } catch (Exception ex) { /* Nothing to do */ } } break; case Node.TEXT_NODE: s = n.getNodeValue(); int[] indexMap = new int[s.length()]; as = createAttributedString( s, m, indexMap, preserve, stripFirst, last && top); if (as != null) { if (first) { addGlyphPositionAttributes(as, !top, indexMap, ctx, element); } stripLast = !preserve && (as.getIterator().first() == ' '); if (stripLast && !result.isEmpty()) { AttributedString las = (AttributedString) result.removeLast(); if (las != null) { AttributedCharacterIterator iter = las.getIterator(); int endIndex = iter.getEndIndex()-1; if (iter.setIndex(endIndex) == ' ') { las = new AttributedString( las.getIterator(null, iter.getBeginIndex(), endIndex)); } result.add(las); } } result.add(as); } } first = false; } return result; } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/53cdbea418666ebb910c6f217e648b1581a19135/SVGTextElementBridge.java/buggy/sources/org/apache/batik/bridge/SVGTextElementBridge.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
987,
1361,
861,
11050,
7957,
12,
13691,
1042,
1103,
16,
4766,
1850,
3010,
930,
16,
4766,
1850,
16830,
907,
756,
16,
4766,
1850,
1250,
1760,
16,
4766,
1850,
10688,
563,
13,
288,
3639... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
987,
1361,
861,
11050,
7957,
12,
13691,
1042,
1103,
16,
4766,
1850,
3010,
930,
16,
4766,
1850,
16830,
907,
756,
16,
4766,
1850,
1250,
1760,
16,
4766,
1850,
10688,
563,
13,
288,
3639... |
if ( user.canAccess( document ) && imcref.checkDocAdminRights( intMetaId, user ) ) { | if ( user.canEdit( document ) ) { | public void doGet( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { // Lets get the parameters and validate them Properties params = this.getParameters( req ); UserDomainObject user = Utility.getLoggedOnUser( req ); if ( !isUserAuthorized( req, res, user ) ) { return; } // Lets get the replylist from DB String discId = params.getProperty( "DISC_ID" ); String userId = ""; // Lets update the sessions DISC_ID HttpSession session = req.getSession( false ); if ( session != null ) { session.setAttribute( "Conference.disc_id", discId ); userId = (String)session.getAttribute( "Conference.user_id" ); } // Lets get serverinformation ImcmsServices imcref = Imcms.getServices(); String[][] sqlAnswer = imcref.sqlProcedureMulti( "A_GetAllRepliesInDisc", new String[]{discId, userId} ); // Lets get the discussion header String discHeader = imcref.sqlProcedureStr( "A_GetDiscussionHeader", new String[]{discId} ); if ( discHeader == null || discId.equalsIgnoreCase( "-1" ) ) discHeader = " "; // THIS CODE IS USED IF WE WANT RADIOBUTTONS // UsersSortOrderRadioButtons String metaId = params.getProperty( "META_ID" ); int intMetaId = Integer.parseInt( metaId ); String sortOrderValue = imcref.sqlProcedureStr( "A_ConfUsersGetReplyOrderSel", new String[]{metaId, userId} ); String ascState = ""; String descState = ""; String ascVal = "0"; if ( sortOrderValue.equalsIgnoreCase( "1" ) ) ascState = "checked"; else descState = "checked"; // SYNTAX: date first_name last_name headline text reply_level // Lets build our variable list Vector tagsV = new Vector(); tagsV.add( "#REPLY_DATE#" ); tagsV.add( "#FIRST_NAME#" ); tagsV.add( "#LAST_NAME#" ); tagsV.add( "#REPLY_HEADER#" ); tagsV.add( "#REPLY_TEXT#" ); tagsV.add( "#REPLY_LEVEL#" ); // Lets get path to the imagefolder. http://dev.imcode.com/images/102/ConfDiscNew.gif String imagePath = super.getExternalImageFolder( req ) + "ConfExpert.gif"; // Lets get the part of the expert html // Lets get the part of an html page, wich will be parsed for every a Href reference File templateLib = super.getExternalTemplateFolder( req ); File aSnippetFile = new File( templateLib, RECS_HTML ); // Lets update the discussion list this.updateDiscFlagList( req, discId ); // Lets preparse all records String allRecs = " "; if ( sqlAnswer != null ) allRecs = preParse( sqlAnswer, tagsV, aSnippetFile, imagePath ); // Lets build the Responsepage //lets generate the buttons that should appear String commentButton = " "; //lets show comment button if user has more than readrights DocumentMapper documentMapper = imcref.getDocumentMapper(); DocumentDomainObject document = documentMapper.getDocument(intMetaId); if ( user.canAccess( document ) && imcref.checkDocAdminRights( intMetaId, user ) ) { VariableManager vmButtons = new VariableManager(); vmButtons.addProperty( "#SERVLET_URL#", "" ); vmButtons.addProperty( "#IMAGE_URL#", this.getExternalImageFolder( req ) ); commentButton = getTemplate( NEW_COMMENT_TEMPLATE, user, vmButtons.getTagsAndData() ); } VariableManager vm = new VariableManager(); vm.addProperty( "NEW_COMMENT", commentButton ); vm.addProperty( "USER_SORT_ORDER", ascVal ); vm.addProperty( "CHECKBOX_STATE_ASC", ascState ); vm.addProperty( "CHECKBOX_STATE_DESC", descState ); vm.addProperty( "REPLIES_RECORDS", allRecs ); vm.addProperty( "CURRENT_DISCUSSION_HEADER", discHeader ); vm.addProperty( "ADMIN_LINK_HTML", ADMIN_LINK_TEMPLATE ); this.sendHtml( req, res, vm, HTML_TEMPLATE ); } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/962b9fbccc20a9dc1f7559965c2b0b91e0712a46/ConfReply.java/clean/server/src/com/imcode/imcms/servlet/conference/ConfReply.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23611,
12,
9984,
1111,
16,
12446,
400,
262,
1216,
16517,
16,
1860,
288,
3639,
368,
511,
2413,
336,
326,
1472,
471,
1954,
2182,
3639,
6183,
859,
273,
333,
18,
588,
2402,
12,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23611,
12,
9984,
1111,
16,
12446,
400,
262,
1216,
16517,
16,
1860,
288,
3639,
368,
511,
2413,
336,
326,
1472,
471,
1954,
2182,
3639,
6183,
859,
273,
333,
18,
588,
2402,
12,
1... |
if (jj_scan_token(NEW)) return true; | if (jj_scan_token(DOT)) return true; | final private boolean jj_3_24() { if (jj_scan_token(NEW)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_56()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_234()) 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/83d81b076b32acdf3f82077c7f4c2a2e160aa32f/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
67,
3247,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
17591,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
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,
3247,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
17591,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
... |
final Object o = (oOutputIdentifier instanceof String) ? new File((String) oOutputIdentifier) : oOutputIdentifier; | final Object o = (_oOutputIdentifier instanceof String) ? new File((String) _oOutputIdentifier) : _oOutputIdentifier; | public final void after() throws RenderingException { super.after(); // SEARCH FOR WRITER USING FORMAT Iterator it = null; String s = getFormat(); if (s != null) { it = ImageIO.getImageWritersByFormatName(s); if (!it.hasNext()) { it = null; // GET INTO NEXT CONSTRUCT; SEARCH BY MIME TYPE } } // SEARCH FOR WRITER USING MIME TYPE if (it == null) { s = getMimeType(); if (s == null) { throw new RenderingException("Unable to find any registered image writers for mime type [" + getMimeType() + "] and format [" + getFormat() + "] for " + getClass().getName()); } it = ImageIO.getImageWritersByMIMEType(s); if (!it.hasNext()) { throw new RenderingException("Unable to find any registered image writers for mime type [" + getMimeType() + "]"); } } final ImageWriter iw = (ImageWriter) it.next(); DefaultLoggerImpl.instance().log(ILogger.INFORMATION, "Using "+getFormat()+" image writer " + iw.getClass().getName()); final Object o = (oOutputIdentifier instanceof String) ? new File((String) oOutputIdentifier) : oOutputIdentifier; try { final ImageOutputStream ios = ImageIO.createImageOutputStream(o); updateWriterParameters(iw.getDefaultWriteParam()); // SET ANY OUTPUT FORMAT SPECIFIC PARAMETERS IF NEEDED iw.setOutput(ios); iw.write((BufferedImage) img); ios.close(); } catch (Exception ex) { throw new RenderingException(ex); } } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/33beeddc227788afba30169ba3caf62900be93f8/JavaxImageIOWriter.java/clean/chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/image/JavaxImageIOWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
1839,
1435,
1216,
18018,
503,
565,
288,
377,
202,
9565,
18,
5205,
5621,
377,
202,
377,
202,
759,
24053,
12108,
12984,
11844,
11836,
1360,
10449,
377,
202,
3198,
518,
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,
727,
918,
1839,
1435,
1216,
18018,
503,
565,
288,
377,
202,
9565,
18,
5205,
5621,
377,
202,
377,
202,
759,
24053,
12108,
12984,
11844,
11836,
1360,
10449,
377,
202,
3198,
518,
273,
... |
domainClass = Domain.lookupAny(TestDomainClassAttributesCustomerWithWriteOnlyAttribute.class); | domainClass = Domain.lookupAny(CustomerWithWriteOnlyAttribute.class); | public void testWhetherEAttributeIsChangeableForWriteOnlyAttribute() { domainClass = Domain.lookupAny(TestDomainClassAttributesCustomerWithWriteOnlyAttribute.class); EAttribute eAttribute = domainClass.getEAttributeNamed("surname"); assertTrue(eAttribute.isChangeable()); assertTrue(domainClass.isChangeable(eAttribute)); } | 13434 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13434/548568cf4c6144a14c8b7f3055943f455a74eca8/TestDomainClassAttributes.java/clean/trunk/workspace/de.berlios.rcpviewer.domain.tests/test/de/berlios/rcpviewer/progmodel/standard/attribute/TestDomainClassAttributes.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
18247,
41,
1499,
2520,
3043,
429,
1290,
3067,
3386,
1499,
1435,
288,
202,
202,
4308,
797,
273,
6648,
18,
8664,
2961,
12,
4709,
3748,
797,
2498,
8883,
1190,
3067,
3386... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18247,
41,
1499,
2520,
3043,
429,
1290,
3067,
3386,
1499,
1435,
288,
202,
202,
4308,
797,
273,
6648,
18,
8664,
2961,
12,
4709,
3748,
797,
2498,
8883,
1190,
3067,
3386... |
if(handle.getDataSetName( ) != null) | if ( handle.getDataSetName( ) != null ) | private DataSetHandle getDataSet( ScalarParameterHandle handle ) { if ( !isSingle( ) ) { if(handle.getDataSetName( ) != null) { return getDataSet( handle.getDataSetName( ) ); } else { return null; } } return inputParameterGroup.getDataSet( ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/6e556b6ba79fd7c2229aa78a94d04fb0e81aa9db/CascadingParametersDialog.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/CascadingParametersDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
14065,
3259,
4303,
694,
12,
15791,
1662,
3259,
1640,
262,
202,
95,
202,
202,
430,
261,
401,
291,
5281,
12,
262,
225,
262,
202,
202,
95,
1082,
202,
430,
12,
4110,
18,
588,
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,
1152,
14065,
3259,
4303,
694,
12,
15791,
1662,
3259,
1640,
262,
202,
95,
202,
202,
430,
261,
401,
291,
5281,
12,
262,
225,
262,
202,
202,
95,
1082,
202,
430,
12,
4110,
18,
588,
7... |
void evalScript(final String url, final String text) { | public void evalScript(final String url, final String text) { | void evalScript(final String url, final String text) { DimIProxy action = new DimIProxy(this, IPROXY_EVAL_SCRIPT); action.url = url; action.text = text; action.withContext(); } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/2d4fc75b74d717c754829dde488ff0a7456682cc/Dim.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Dim.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
5302,
3651,
12,
6385,
514,
880,
16,
727,
514,
977,
13,
565,
288,
3639,
463,
381,
45,
3886,
1301,
273,
394,
463,
381,
45,
3886,
12,
2211,
16,
2971,
1457,
8546,
67,
41,
2669,
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,
918,
5302,
3651,
12,
6385,
514,
880,
16,
727,
514,
977,
13,
565,
288,
3639,
463,
381,
45,
3886,
1301,
273,
394,
463,
381,
45,
3886,
12,
2211,
16,
2971,
1457,
8546,
67,
41,
2669,
67,
... |
public Kern(int[] firstGlyphCodes, int[] secondGlyphCodes, | public Kern(int[] firstGlyphCodes, int[] secondGlyphCodes, | public Kern(int[] firstGlyphCodes, int[] secondGlyphCodes, UnicodeRange[] firstUnicodeRanges, UnicodeRange[] secondUnicodeRanges, float adjustValue) { this.firstGlyphCodes = firstGlyphCodes; this.secondGlyphCodes = secondGlyphCodes; this.firstUnicodeRanges = firstUnicodeRanges; this.secondUnicodeRanges = secondUnicodeRanges; this.kerningAdjust = adjustValue; } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/4c1a37c6e3e260eb88efd61d61285ad704f7c64a/Kern.java/buggy/sources/org/apache/batik/gvt/font/Kern.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1475,
8865,
12,
474,
8526,
1122,
15141,
6295,
16,
509,
8526,
2205,
15141,
6295,
16,
7734,
9633,
2655,
8526,
1122,
16532,
9932,
16,
7734,
9633,
2655,
8526,
2205,
16532,
9932,
16,
7734,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1475,
8865,
12,
474,
8526,
1122,
15141,
6295,
16,
509,
8526,
2205,
15141,
6295,
16,
7734,
9633,
2655,
8526,
1122,
16532,
9932,
16,
7734,
9633,
2655,
8526,
2205,
16532,
9932,
16,
7734,... |
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... | ||
rewind(_m178); | rewind(_m184); | public final void forwardOrReverseStep() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST forwardOrReverseStep_AST = null; boolean synPredMatched176 = false; if (((_tokenSet_9.member(LA(1))))) { int _m176 = mark(); synPredMatched176 = true; inputState.guessing++; try { { forwardAxisSpecifier(); match(COLON); } } catch (RecognitionException pe) { synPredMatched176 = false; } rewind(_m176); inputState.guessing--; } if ( synPredMatched176 ) { forwardAxis(); astFactory.addASTChild(currentAST, returnAST); nodeTest(); astFactory.addASTChild(currentAST, returnAST); forwardOrReverseStep_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; } else { boolean synPredMatched178 = false; if ((((LA(1) >= LITERAL_parent && LA(1) <= 145)))) { int _m178 = mark(); synPredMatched178 = true; inputState.guessing++; try { { reverseAxisSpecifier(); match(COLON); } } catch (RecognitionException pe) { synPredMatched178 = false; } rewind(_m178); inputState.guessing--; } if ( synPredMatched178 ) { reverseAxis(); astFactory.addASTChild(currentAST, returnAST); nodeTest(); astFactory.addASTChild(currentAST, returnAST); forwardOrReverseStep_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; } else if ((_tokenSet_7.member(LA(1)))) { abbrevStep(); astFactory.addASTChild(currentAST, returnAST); forwardOrReverseStep_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; } else { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = forwardOrReverseStep_AST; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/06537933dfbae14c444eb15b44247b312b5f47d7/XQueryParser.java/buggy/src/org/exist/xquery/parser/XQueryParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
5104,
1162,
12650,
4160,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
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,
225,
202,
482,
727,
918,
5104,
1162,
12650,
4160,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
... |
long ceil = integerCeil.getLongValue(); | ceil = integerCeil.getLongValue(); ceil = Math.abs(ceil); | public static RubyNumeric rand(IRubyObject recv, IRubyObject args[]) { if (args.length == 0) { double result = recv.getRuntime().random.nextDouble(); return RubyFloat.newFloat(recv.getRuntime(), result); } else if (args.length == 1) { RubyInteger integerCeil = (RubyInteger) args[0].convertToType("Integer", "to_int", true); long ceil = integerCeil.getLongValue(); if (ceil > Integer.MAX_VALUE) { throw new NotImplementedError(recv.getRuntime(), "Random values larger than Integer.MAX_VALUE not supported"); } return RubyFixnum.newFixnum(recv.getRuntime(), recv.getRuntime().random.nextInt((int) ceil)); } else { throw new ArgumentError(recv.getRuntime(), "wrong # of arguments(" + args.length + " for 1)"); } } | 47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/5742ade921eb900cb64ec6888a7431f111da5c32/KernelModule.java/clean/org/jruby/KernelModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
9902,
5605,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
833,
63,
5717,
288,
3639,
309,
261,
1968,
18,
2469,
422,
374,
13,
288,
5411,
1645,
563,
273,
10665,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
9902,
5605,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
833,
63,
5717,
288,
3639,
309,
261,
1968,
18,
2469,
422,
374,
13,
288,
5411,
1645,
563,
273,
10665,
18,
... |
final void read(final IMenuService menuService, final ICommandService commandService) { | protected final void read() { super.read(); | final void read(final IMenuService menuService, final ICommandService commandService) { // Create the extension registry mementos. final IExtensionRegistry registry = Platform.getExtensionRegistry(); int itemCount = 0; int menuCount = 0; int groupCount = 0; int widgetCount = 0; int actionSetCount = 0; final IConfigurationElement[][] indexedConfigurationElements = new IConfigurationElement[5][]; // Sort the commands extension point based on element name. final IConfigurationElement[] menusExtensionPoint = registry .getConfigurationElementsFor(EXTENSION_MENUS); for (int i = 0; i < menusExtensionPoint.length; i++) { final IConfigurationElement configurationElement = menusExtensionPoint[i]; final String name = configurationElement.getName(); // Check if it is a handler submission or a command definition. if (ELEMENT_ITEM.equals(name)) { addElementToIndexedArray(configurationElement, indexedConfigurationElements, INDEX_ITEMS, itemCount++); } else if (ELEMENT_MENU.equals(name)) { addElementToIndexedArray(configurationElement, indexedConfigurationElements, INDEX_MENUS, menuCount++); } else if (ELEMENT_GROUP.equals(name)) { addElementToIndexedArray(configurationElement, indexedConfigurationElements, INDEX_GROUPS, groupCount++); } else if (ELEMENT_WIDGET.equals(name)) { addElementToIndexedArray(configurationElement, indexedConfigurationElements, INDEX_WIDGETS, widgetCount++); } else if (ELEMENT_ACTION_SET.equals(name)) { addElementToIndexedArray(configurationElement, indexedConfigurationElements, INDEX_ACTION_SETS, actionSetCount++); } } clearContributions(menuService); readItemsFromRegistry(indexedConfigurationElements[INDEX_ITEMS], itemCount, menuService, commandService); readMenusFromRegistry(indexedConfigurationElements[INDEX_MENUS], menuCount, menuService); readGroupsFromRegistry(indexedConfigurationElements[INDEX_GROUPS], groupCount, menuService); readWidgetsFromRegistry(indexedConfigurationElements[INDEX_WIDGETS], widgetCount, menuService); readActionSetsFromRegistry( indexedConfigurationElements[INDEX_ACTION_SETS], actionSetCount, menuService); /* * Adds listener so that future registry changes trigger an update of * the command manager automatically. */ if (!listenersAttached) { registry.addRegistryChangeListener(new IRegistryChangeListener() { public final void registryChanged( final IRegistryChangeEvent event) { /* * Menus will need to be re-read (i.e., re-verified) if any * of the menu extensions change (i.e., menus), or if any of * the command extensions change (i.e., action definitions). */ final IExtensionDelta[] menuDeltas = event .getExtensionDeltas(PlatformUI.PLUGIN_ID, IWorkbenchConstants.PL_MENUS); if (menuDeltas.length == 0) { return; } /* * At least one of the deltas is non-zero, so re-read all of * the bindings. */ Display.getDefault().asyncExec(new Runnable() { public void run() { read(menuService, commandService); } }); } }, PlatformUI.PLUGIN_ID); listenersAttached = true; } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/539b29bd9f4ed0020b6fce0d726b8d740d87469d/MenuPersistence.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/MenuPersistence.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6385,
918,
855,
12,
6385,
467,
4599,
1179,
3824,
1179,
16,
1082,
202,
6385,
467,
2189,
1179,
1296,
1179,
13,
288,
202,
202,
759,
1788,
326,
2710,
4023,
312,
820,
538,
18,
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,
6385,
918,
855,
12,
6385,
467,
4599,
1179,
3824,
1179,
16,
1082,
202,
6385,
467,
2189,
1179,
1296,
1179,
13,
288,
202,
202,
759,
1788,
326,
2710,
4023,
312,
820,
538,
18,
202,
202,... |
jmsSupport.createConsumer((Session) mockSession.proxy(), topic, null, noLocal, durableName); | jmsSupport.createConsumer((Session) mockSession.proxy(), topic, null, noLocal, durableName, true); | public void testNoLocalCalledForDurableTopic() throws Exception { Jms11Support jmsSupport = new Jms11Support(new JmsConnector(), null, false, false); Mock mockTopic = new Mock(Topic.class); Topic topic = (Topic) mockTopic.proxy(); String durableName = "durableName"; boolean noLocal = true; FullConstraintMatcher matcher = new FullConstraintMatcher(new Constraint[] { C.eq(topic), C.eq(durableName), C.IS_NULL, C.IS_TRUE }); Mock mockSession = new Mock(Session.class); mockSession.expect("createDurableSubscriber", matcher); jmsSupport.createConsumer((Session) mockSession.proxy(), topic, null, noLocal, durableName); mockTopic.verify(); mockSession.verify(); } | 28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/2da07b2e68f6a70ecd7a3eef319a983cbe6e6067/Jms11SupportTestCase.java/buggy/providers/jms/src/test/java/org/mule/providers/jms/Jms11SupportTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2279,
2042,
8185,
1290,
23073,
6657,
1435,
1216,
1185,
565,
288,
3639,
19870,
2499,
6289,
23007,
6289,
273,
394,
19870,
2499,
6289,
12,
2704,
19870,
7487,
9334,
446,
16,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2279,
2042,
8185,
1290,
23073,
6657,
1435,
1216,
1185,
565,
288,
3639,
19870,
2499,
6289,
23007,
6289,
273,
394,
19870,
2499,
6289,
12,
2704,
19870,
7487,
9334,
446,
16,
62... |
if (SanityManager.DEBUG) { SanityManager.ASSERT(xact != null); } | public final RawTransaction getTransaction() { if (SanityManager.DEBUG) { SanityManager.ASSERT(xact != null); } return xact; } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/b44abbf2a3b0bab1fe6f415ad771771017fcf3bc/BaseContainerHandle.java/clean/java/engine/org/apache/derby/impl/store/raw/data/BaseContainerHandle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
6576,
3342,
15674,
1435,
377,
288,
202,
202,
430,
261,
55,
10417,
1318,
18,
9394,
13,
540,
288,
1082,
202,
55,
10417,
1318,
18,
8423,
11539,
12,
92,
621,
480,
446,
1769,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
6576,
3342,
15674,
1435,
377,
288,
202,
202,
430,
261,
55,
10417,
1318,
18,
9394,
13,
540,
288,
1082,
202,
55,
10417,
1318,
18,
8423,
11539,
12,
92,
621,
480,
446,
1769,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.