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
System.out.println("Parse " + (++parseCount) + ": "
Util.debugLog( "Parse " + (++parseCount) + ": "
public boolean parse() throws Backtrack { long startTime = System.currentTimeMillis(); translationUnit(); System.out.println("Parse " + (++parseCount) + ": " + ( System.currentTimeMillis() - startTime ) + "ms" + ( parsePassed ? "" : " - parse failure" )); return parsePassed; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/4d93d6c4dfbf4ed6d2df5a861214da56db3b7684/Parser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1109, 1435, 1216, 4297, 4101, 288, 202, 202, 5748, 8657, 273, 2332, 18, 2972, 28512, 5621, 202, 202, 10173, 2802, 5621, 202, 202, 3163, 18, 659, 18, 8222, 2932, 3201, 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, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1109, 1435, 1216, 4297, 4101, 288, 202, 202, 5748, 8657, 273, 2332, 18, 2972, 28512, 5621, 202, 202, 10173, 2802, 5621, 202, 202, 3163, 18, 659, 18, 8222, 2932, 3201, 315,...
protected void notifyAboutToUndo(IUndoableOperation operation) {
private void notifyAboutToUndo(IUndoableOperation operation) {
protected void notifyAboutToUndo(IUndoableOperation operation) { if (DEBUG_OPERATION_HISTORY_NOTIFICATION) { System.out.print("OPERATIONHISTORY >>> ABOUT_TO_UNDO "); //$NON-NLS-1$ System.out.print(operation); System.out.println(); } OperationHistoryEvent event = new OperationHistoryEvent( OperationHistoryEvent.ABOUT_TO_UNDO, this, operation); preNotifyOperation(operation, event); for (int i = 0; i < listeners.size(); i++) try { ((IOperationHistoryListener) listeners.get(i)) .historyNotification(event); } catch (Exception e) { handleNotificationException(e); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/3bad50e6f68ff26b260565b7df8938cfe4826b83/DefaultOperationHistory.java/clean/bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/operations/DefaultOperationHistory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 5066, 24813, 774, 31224, 12, 45, 31224, 429, 2988, 1674, 13, 288, 202, 202, 430, 261, 9394, 67, 22040, 67, 31746, 67, 4400, 14865, 13, 288, 1082, 202, 3163, 18, 659, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 5066, 24813, 774, 31224, 12, 45, 31224, 429, 2988, 1674, 13, 288, 202, 202, 430, 261, 9394, 67, 22040, 67, 31746, 67, 4400, 14865, 13, 288, 1082, 202, 3163, 18, 659, 18,...
void unsuspect(Address mbr) {
private void unsuspect(Address mbr) {
void unsuspect(Address mbr) { bcast_task.removeSuspectedMember(mbr); pingable_mbrs.removeAllElements(); pingable_mbrs.addAll(members); pingable_mbrs.removeAll(bcast_task.getSuspectedMembers()); ping_dest=(Address)getPingDest(pingable_mbrs); }
47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/0abdfadc655ddc3210312ed5ca837768a4e54342/FD.java/clean/src/org/jgroups/protocols/FD.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 16804, 407, 1181, 12, 1887, 312, 2848, 13, 288, 3639, 324, 4155, 67, 4146, 18, 4479, 55, 407, 1789, 4419, 12, 1627, 86, 1769, 3639, 10087, 429, 67, 1627, 5453, 18, 4479, 1595...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16804, 407, 1181, 12, 1887, 312, 2848, 13, 288, 3639, 324, 4155, 67, 4146, 18, 4479, 55, 407, 1789, 4419, 12, 1627, 86, 1769, 3639, 10087, 429, 67, 1627, 5453, 18, 4479, 1595...
void submitActionSetAndGlobalHandlers() { /* Mash the action sets and global actions together, with global actions * taking priority. */ Map handlersByCommandId = new HashMap(); handlersByCommandId.putAll(actionSetHandlersByCommandId); handlersByCommandId.putAll(globalActionHandlersByCommandId); // Create a low priority submission for each handler. final List newHandlerSubmissions = new ArrayList(); final Shell shell = getShell(); if (shell != null) { for (Iterator iterator = handlersByCommandId.entrySet().iterator(); iterator .hasNext();) { Map.Entry entry = (Map.Entry) iterator.next(); String commandId = (String) entry.getKey(); IHandler handler = (IHandler) entry.getValue(); newHandlerSubmissions.add(new HandlerSubmission(null, shell, null, commandId, handler, Priority.LEGACY)); } } // Remove the old submissions, and the add the new ones. final IWorkbenchCommandSupport commandSupport = Workbench.getInstance() .getCommandSupport(); commandSupport.removeHandlerSubmissions(handlerSubmissions); handlerSubmissions = newHandlerSubmissions; commandSupport.addHandlerSubmissions(newHandlerSubmissions); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/80cd048d71d12588ca69deda03625740f72c7a3e/WorkbenchWindow.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 918, 9297, 1803, 694, 1876, 5160, 6919, 1435, 95, 20308, 49, 961, 5787, 1128, 4424, 464, 6347, 1128, 334, 717, 2437, 16, 1918, 6347, 4905, 14, 88, 6159, 8457, 4509, 19, 863, 11046, 858, 2189, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9297, 1803, 694, 1876, 5160, 6919, 1435, 95, 20308, 49, 961, 5787, 1128, 4424, 464, 6347, 1128, 334, 717, 2437, 16, 1918, 6347, 4905, 14, 88, 6159, 8457, 4509, 19, 863, 11046, 858, 2189, ...
mi.postCommand(var); MIVarCreateInfo info = var.getMIVarCreateInfo(); if (info == null) { throw new CDIException(CdiResources.getString("cdi.Common.No_answer")); } argument = new Argument(argDesc, info.getMIVar());
mi.postCommand(var, -1); argument = new Argument(argDesc, var);
public Argument createArgument(ArgumentDescriptor argDesc) throws CDIException { Variable variable = findVariable(argDesc); Argument argument = null; if (variable != null && variable instanceof Argument) { argument = (Argument) variable; } if (argument == null) { String name = argDesc.getQualifiedName(); StackFrame stack = (StackFrame)argDesc.getStackFrame(); Target target = (Target)argDesc.getTarget(); Thread currentThread = (Thread)target.getCurrentThread(); StackFrame currentFrame = currentThread.getCurrentStackFrame(); target.setCurrentThread(stack.getThread(), false); ((Thread)stack.getThread()).setCurrentStackFrame(stack, false); try { MISession mi = target.getMISession(); CommandFactory factory = mi.getCommandFactory(); MIVarCreate var = factory.createMIVarCreate(name); mi.postCommand(var); MIVarCreateInfo info = var.getMIVarCreateInfo(); if (info == null) { throw new CDIException(CdiResources.getString("cdi.Common.No_answer")); //$NON-NLS-1$ } argument = new Argument(argDesc, info.getMIVar()); List variablesList = getVariablesList(target); variablesList.add(argument); } catch (MIException e) { throw new MI2CDIException(e); } finally { target.setCurrentThread(currentThread, false); currentThread.setCurrentStackFrame(currentFrame, false); } } return argument; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/55872940c2323d2bc6159446d3d36830d34f067c/VariableManager.java/buggy/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/VariableManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5067, 752, 1379, 12, 1379, 3187, 1501, 4217, 13, 1216, 385, 2565, 503, 288, 202, 202, 3092, 2190, 273, 1104, 3092, 12, 3175, 4217, 1769, 202, 202, 1379, 1237, 273, 446, 31, 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, 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, 5067, 752, 1379, 12, 1379, 3187, 1501, 4217, 13, 1216, 385, 2565, 503, 288, 202, 202, 3092, 2190, 273, 1104, 3092, 12, 3175, 4217, 1769, 202, 202, 1379, 1237, 273, 446, 31, 20...
p3 );
p3 );
public void testLogicalAssertionsWithExists() throws Exception { final PackageBuilder builder = new PackageBuilder(); builder.addPackageFromDrl( new InputStreamReader( getClass().getResourceAsStream( "test_LogicalAssertionWithExists.drl" ) ) ); final Package pkg = builder.getPackage(); final RuleBase ruleBase = getRuleBase(); ruleBase.addPackage( pkg ); final WorkingMemory workingMemory = ruleBase.newWorkingMemory(); Person p1 = new Person( "p1", "stilton", 20 ); p1.setStatus( "europe" ); FactHandle c1FactHandle = workingMemory.assertObject( p1 ); Person p2 = new Person( "p2", "stilton", 30 ); p2.setStatus( "europe" ); FactHandle c2FactHandle = workingMemory.assertObject( p2 ); Person p3 = new Person( "p3", "stilton", 40 ); p3.setStatus( "europe" ); FactHandle c3FactHandle = workingMemory.assertObject( p3 ); workingMemory.fireAllRules(); // all 3 in europe, so, 2 cheese List cheeseList = workingMemory.getObjects( Cheese.class ); assertEquals( 2, cheeseList.size() ); // europe=[ 1, 2 ], america=[ 3 ] p3.setStatus( "america" ); workingMemory.modifyObject( c3FactHandle, p3 ); workingMemory.fireAllRules(); cheeseList = workingMemory.getObjects( Cheese.class ); assertEquals( 1, cheeseList.size() ); // europe=[ 1 ], america=[ 2, 3 ] p2.setStatus( "america" ); workingMemory.modifyObject( c2FactHandle, p2 ); workingMemory.fireAllRules(); cheeseList = workingMemory.getObjects( Cheese.class ); assertEquals( 1, cheeseList.size() ); // europe=[ ], america=[ 1, 2, 3 ] p1.setStatus( "america" ); workingMemory.modifyObject( c1FactHandle, p1 ); workingMemory.fireAllRules(); cheeseList = workingMemory.getObjects( Cheese.class ); assertEquals( 2, cheeseList.size() ); // europe=[ 2 ], america=[ 1, 3 ] p2.setStatus( "europe" ); workingMemory.modifyObject( c2FactHandle, p2 ); workingMemory.fireAllRules(); cheeseList = workingMemory.getObjects( Cheese.class ); assertEquals( 1, cheeseList.size() ); // europe=[ 1, 2 ], america=[ 3 ] p1.setStatus( "europe" ); workingMemory.modifyObject( c1FactHandle, p1 ); workingMemory.fireAllRules(); cheeseList = workingMemory.getObjects( Cheese.class ); assertEquals( 1, cheeseList.size() ); // europe=[ 1, 2, 3 ], america=[ ] p3.setStatus( "europe" ); workingMemory.modifyObject( c3FactHandle, p3 ); workingMemory.fireAllRules(); cheeseList = workingMemory.getObjects( Cheese.class ); assertEquals( 2, cheeseList.size() ); }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/3943f90e624c362e86db72655aaa28741c820e7e/IntegrationCases.java/buggy/drools-compiler/src/test/java/org/drools/integrationtests/IntegrationCases.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 17955, 8213, 1115, 1190, 4002, 1435, 1216, 1185, 288, 3639, 727, 7508, 1263, 2089, 273, 394, 7508, 1263, 5621, 3639, 2089, 18, 1289, 2261, 1265, 40, 1321, 12, 394, 15322, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17955, 8213, 1115, 1190, 4002, 1435, 1216, 1185, 288, 3639, 727, 7508, 1263, 2089, 273, 394, 7508, 1263, 5621, 3639, 2089, 18, 1289, 2261, 1265, 40, 1321, 12, 394, 15322, ...
AST tmp2275_AST_in = (AST)_t;
AST tmp2291_AST_in = (AST)_t;
public final void comboboxphrase(AST _t) throws RecognitionException { AST comboboxphrase_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1703 = _t; AST tmp2262_AST_in = (AST)_t; match(_t,COMBOBOX); _t = _t.getFirstChild(); { _loop1715: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LISTITEMS: { AST __t1705 = _t; AST tmp2263_AST_in = (AST)_t; match(_t,LISTITEMS); _t = _t.getFirstChild(); constant(_t); _t = _retTree; { _loop1707: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp2264_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); constant(_t); _t = _retTree; } else { break _loop1707; } } while (true); } _t = __t1705; _t = _t.getNextSibling(); break; } case LISTITEMPAIRS: { AST __t1708 = _t; AST tmp2265_AST_in = (AST)_t; match(_t,LISTITEMPAIRS); _t = _t.getFirstChild(); constant(_t); _t = _retTree; { _loop1710: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp2266_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); constant(_t); _t = _retTree; } else { break _loop1710; } } while (true); } _t = __t1708; _t = _t.getNextSibling(); break; } case INNERLINES: { AST __t1711 = _t; AST tmp2267_AST_in = (AST)_t; match(_t,INNERLINES); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1711; _t = _t.getNextSibling(); break; } case SORT: { AST tmp2268_AST_in = (AST)_t; match(_t,SORT); _t = _t.getNextSibling(); break; } case TOOLTIP: { tooltip_expr(_t); _t = _retTree; break; } case SIMPLE: { AST tmp2269_AST_in = (AST)_t; match(_t,SIMPLE); _t = _t.getNextSibling(); break; } case DROPDOWN: { AST tmp2270_AST_in = (AST)_t; match(_t,DROPDOWN); _t = _t.getNextSibling(); break; } case DROPDOWNLIST: { AST tmp2271_AST_in = (AST)_t; match(_t,DROPDOWNLIST); _t = _t.getNextSibling(); break; } case MAXCHARS: { AST __t1712 = _t; AST tmp2272_AST_in = (AST)_t; match(_t,MAXCHARS); _t = _t.getFirstChild(); AST tmp2273_AST_in = (AST)_t; match(_t,NUMBER); _t = _t.getNextSibling(); _t = __t1712; _t = _t.getNextSibling(); break; } case AUTOCOMPLETION: { AST __t1713 = _t; AST tmp2274_AST_in = (AST)_t; match(_t,AUTOCOMPLETION); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case UNIQUEMATCH: { AST tmp2275_AST_in = (AST)_t; match(_t,UNIQUEMATCH); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1713; _t = _t.getNextSibling(); break; } case SIZE: case SIZECHARS: case SIZEPIXELS: { sizephrase(_t); _t = _retTree; break; } default: { break _loop1715; } } } while (true); } _t = __t1703; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3894, 27570, 9429, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 3894, 27570, 9429, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3894, 27570, 9429, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 3894, 27570, 9429, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, ...
protected void fireMenuKeyPressed(MenuKeyEvent event) { }
protected void fireMenuKeyPressed(MenuKeyEvent event) { }
protected void fireMenuKeyPressed(MenuKeyEvent event) { // TODO } // fireMenuKeyPressed()
1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/14511e3ad21013e92c6399b2bd2ec09a8263e33a/JMenuItem.java/clean/libjava/javax/swing/JMenuItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 4452, 4599, 653, 24624, 12, 4599, 653, 1133, 871, 13, 288, 202, 202, 759, 2660, 202, 97, 368, 4452, 4599, 653, 24624, 1435, 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, 225, 202, 1117, 918, 4452, 4599, 653, 24624, 12, 4599, 653, 1133, 871, 13, 288, 202, 202, 759, 2660, 202, 97, 368, 4452, 4599, 653, 24624, 1435, 2, -100, -100, -100, -100, -100, -100, -100, ...
throw new IllegalArgumentException("Invalid format");
throw new IllegalArgumentException(Messages.getString("awt.66"));
private static String getNextToken(StringTokenizer tokenizer) { try { return tokenizer.nextToken(); } catch (NoSuchElementException exception) { throw new IllegalArgumentException("Invalid format"); } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/3b500ee5922bc7890c276ddee76f1520b369f2fd/AWTKeyStroke.java/clean/modules/awt/src/main/java/common/java/awt/AWTKeyStroke.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 514, 22616, 12, 780, 10524, 10123, 13, 288, 3639, 775, 288, 5411, 327, 10123, 18, 4285, 1345, 5621, 3639, 289, 1044, 261, 28341, 20826, 1520, 13, 288, 2398, 604, 394, 2754, 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, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 514, 22616, 12, 780, 10524, 10123, 13, 288, 3639, 775, 288, 5411, 327, 10123, 18, 4285, 1345, 5621, 3639, 289, 1044, 261, 28341, 20826, 1520, 13, 288, 2398, 604, 394, 2754, 12,...
iter = prev.iter; prev = prev.prev;
if (count > 0) { count --; } else { iter = prev.iter; prev = prev.prev; }
public void pop() { iter = prev.iter; prev = prev.prev; }
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/f629550c5947df9c1dbe414645f3dc76bcb70df4/RubyIter.java/clean/org/jruby/runtime/RubyIter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1843, 1435, 288, 3639, 1400, 273, 2807, 18, 2165, 31, 3639, 2807, 273, 2807, 18, 10001, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1843, 1435, 288, 3639, 1400, 273, 2807, 18, 2165, 31, 3639, 2807, 273, 2807, 18, 10001, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
throws org.xml.sax.SAXException {
throws org.xml.sax.SAXException {
public void startContextElement(String name, Attributes attributes) throws org.xml.sax.SAXException { String className = attributes.getValue("class"); if (!checkNonEmpty(className)) { throw new org.xml.sax.SAXException( "Process defined without specifying the class"); } try { targetProcess = proActiveDescriptor.createProcess(id, className); } catch (ProActiveException e) { //e.printStackTrace(); throw new org.xml.sax.SAXException(e.getMessage()); } String closeStream = attributes.getValue("closeStream"); if (checkNonEmpty(closeStream) && closeStream.equals("yes")) { targetProcess.closeStream(); } String hostname = attributes.getValue("hostname"); if (checkNonEmpty(hostname)) { targetProcess.setHostname(hostname); } String username = attributes.getValue("username"); if (checkNonEmpty(username)) { targetProcess.setUsername(username); } }
14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/02b74933ab36f3053e665e84b8287cd5fd62e098/ProcessDefinitionHandler.java/buggy/src/org/objectweb/proactive/core/descriptor/xml/ProcessDefinitionHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 787, 1042, 1046, 12, 780, 508, 16, 9055, 1677, 13, 5411, 1216, 2358, 18, 2902, 18, 87, 651, 18, 55, 2501, 503, 288, 5411, 514, 2658, 273, 1677, 18, 24805, 2932, 1106, 8863, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 787, 1042, 1046, 12, 780, 508, 16, 9055, 1677, 13, 5411, 1216, 2358, 18, 2902, 18, 87, 651, 18, 55, 2501, 503, 288, 5411, 514, 2658, 273, 1677, 18, 24805, 2932, 1106, 8863, ...
return(activeAttempts--);
return(activeAttempts--);
public int getActiveAttempts() { return(activeAttempts--); }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/41422245404c0fad8a30437d75fc29381b02be42/ConnectionManager.java/clean/components/gnutella-core/src/main/java/com/limegroup/gnutella/ConnectionManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 11960, 10113, 1435, 565, 288, 202, 2463, 12, 3535, 10113, 413, 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...
[ 1, 1, 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, 377, 1071, 509, 11960, 10113, 1435, 565, 288, 202, 2463, 12, 3535, 10113, 413, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return RubyModule.newModule(getRuntime(), classId, parentModule);
return RubyModule.newModule(getRuntime(), getBaseName(), parentModule);
protected IRubyObject doClone() { return RubyModule.newModule(getRuntime(), classId, parentModule); }
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/abfe85d15f992ecf4447b155d177050fe2239c3b/RubyModule.java/buggy/src/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 15908, 10340, 921, 741, 10930, 1435, 288, 377, 202, 2463, 19817, 3120, 18, 2704, 3120, 12, 588, 5576, 9334, 8297, 461, 9334, 982, 3120, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 15908, 10340, 921, 741, 10930, 1435, 288, 377, 202, 2463, 19817, 3120, 18, 2704, 3120, 12, 588, 5576, 9334, 8297, 461, 9334, 982, 3120, 1769, 565, 289, 2, -100, -100, -100, -100, -1...
url = addCredentials(repository, url);
url = addCredentials(url, userName, password);
public static String getBugUrl(String repositoryUrl, int id) { TaskRepository repository = MylarTaskListPlugin.getRepositoryManager().getRepository( BugzillaPlugin.REPOSITORY_KIND, repositoryUrl); String url = repository.getUrl() + POST_ARGS_SHOW_BUG + id; try { url = addCredentials(repository, url); } catch (UnsupportedEncodingException e) { return ""; } return url; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/02c6a88e37a9d04f1fe217ec64c0a8b84fab1fb9/BugzillaRepositoryUtil.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 2882, 637, 1489, 12, 780, 3352, 1489, 16, 509, 612, 13, 288, 202, 202, 2174, 3305, 3352, 273, 8005, 7901, 2174, 682, 3773, 18, 588, 3305, 1318, 7675, 588, 3305, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 2882, 637, 1489, 12, 780, 3352, 1489, 16, 509, 612, 13, 288, 202, 202, 2174, 3305, 3352, 273, 8005, 7901, 2174, 682, 3773, 18, 588, 3305, 1318, 7675, 588, 3305, 12, ...
if (attributeValuesByName.containsKey("enabled") && !Boolean.TRUE.equals(attributeValuesByName .get("enabled"))) return false; else return true;
private boolean executeCommand(String commandId) throws CommandException { if (DEBUG) { System.out .println("KEYS >>> WorkbenchKeyboard.executeCommand(commandId = '" //$NON-NLS-1$ + commandId + "')"); //$NON-NLS-1$ } // Reset the key binding state (close window, clear status line, etc.) resetState(); // Dispatch to the handler. ICommand command = commandManager.getCommand(commandId); if (DEBUG && DEBUG_VERBOSE) { if (!command.isDefined()) { System.out.println("KEYS >>> not defined"); //$NON-NLS-1$ } else if (!command.isHandled()) { System.out.println("KEYS >>> not handled"); //$NON-NLS-1$ } else if (!isEnabled(command)) { System.out.println("KEYS >>> not enabled"); //$NON-NLS-1$ } else { try { Map attributeValuesByName = command .getAttributeValuesByName(); System.out .println("KEYS >>> value for 'id' attribute = " //$NON-NLS-1$ + attributeValuesByName.get("id")); //$NON-NLS-1$ System.out .println("KEYS >>> value for 'enabled' attribute = " //$NON-NLS-1$ + attributeValuesByName.get("enabled")); //$NON-NLS-1$ if (attributeValuesByName.containsKey("enabled") && !Boolean.TRUE.equals(attributeValuesByName .get("enabled"))) return false; else return true; } catch (NotHandledException eNotHandled) { System.out.println(eNotHandled); } } } final boolean commandDefined = command.isDefined(); final boolean commandHandled = command.isHandled(); if (commandDefined && commandHandled && isEnabled(command)) { command.execute(null); } return (commandDefined && commandHandled); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5fb2670c20652c581dabd4d53413ef87669267b9/WorkbenchKeyboard.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/WorkbenchKeyboard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 21120, 12, 780, 1296, 548, 13, 5411, 1216, 3498, 503, 288, 3639, 309, 261, 9394, 13, 288, 5411, 2332, 18, 659, 10792, 263, 8222, 2932, 16333, 4080, 4147, 22144, 17872, 18, 883...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 21120, 12, 780, 1296, 548, 13, 5411, 1216, 3498, 503, 288, 3639, 309, 261, 9394, 13, 288, 5411, 2332, 18, 659, 10792, 263, 8222, 2932, 16333, 4080, 4147, 22144, 17872, 18, 883...
defaultPerspID = Platform.getPreferencesService().getString( PlatformUI.PLUGIN_ID, IWorkbenchPreferenceConstants.DEFAULT_PERSPECTIVE_ID, "", null);
defaultPerspID = PrefUtil.getAPIPreferenceStore().getString( IWorkbenchPreferenceConstants.DEFAULT_PERSPECTIVE_ID);
public void load() { // Load the registries. loadPredefined(); loadCustom(); // Get default perspective. // Get it from the R1.0 dialog settings first. Fixes bug 17039 IDialogSettings dialogSettings = WorkbenchPlugin.getDefault().getDialogSettings(); String str = dialogSettings.get(ID_DEF_PERSP); if (str != null && str.length() > 0) { setDefaultPerspective(str); dialogSettings.put(ID_DEF_PERSP, ""); //$NON-NLS-1$ } else { defaultPerspID = Platform.getPreferencesService().getString( PlatformUI.PLUGIN_ID, IWorkbenchPreferenceConstants.DEFAULT_PERSPECTIVE_ID, "", //$NON-NLS-1$ null); } verifyDefaultPerspective(); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/b7361699ae1f314b870e5e3310e450a40e7a0ece/PerspectiveRegistry.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/PerspectiveRegistry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1262, 1435, 288, 202, 202, 759, 4444, 326, 960, 22796, 18, 21114, 202, 945, 1386, 2178, 5621, 202, 202, 945, 3802, 5621, 202, 202, 759, 968, 805, 26651, 18, 202, 202, 759...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1262, 1435, 288, 202, 202, 759, 4444, 326, 960, 22796, 18, 21114, 202, 945, 1386, 2178, 5621, 202, 202, 945, 3802, 5621, 202, 202, 759, 968, 805, 26651, 18, 202, 202, 759...
public AttackOption(CEntity target, Mounted weapon, double value, ToHitData toHit) {
public AttackOption(CEntity target, Mounted weapon, double value, ToHitData toHit, int sec_mod) {
public AttackOption(CEntity target, Mounted weapon, double value, ToHitData toHit) { this.target = target; this.weapon = weapon; this.toHit = toHit; this.value = value; if (target != null) { WeaponType w = (WeaponType) weapon.getType(); // As a primary attack. Damage is already odds-adjusted. this.primary_odds = Compute.oddsAbove(toHit.getValue()) / 100.0; this.primary_expected = this.value; // As a secondary attack. Raw damage is extracted, then adjusted // for secondary to-hit odds. Since units with active Stealth armor // cannot be secondary targets, chances of hitting are 0. if (target.getEntity().isStealthActive()){ this.odds = 0.0; } else { this.odds = Compute.oddsAbove(toHit.getValue() + 1) / 100.0; } this.heat = w.getHeat(); this.expected = this.value/this.primary_odds; this.expected = this.expected * this.odds; final boolean isInfantryWeapon = ((w.getFlags() & WeaponType.F_INFANTRY) == WeaponType.F_INFANTRY); final boolean usesAmmo = (!isInfantryWeapon && w.getAmmoType() != AmmoType.T_NA); final Mounted ammo = usesAmmo ? weapon.getLinked() : null; if (usesAmmo && (ammo == null || ammo.getShotsLeft() == 0)) { this.value = 0; //should have already been caught... } else if (usesAmmo) { this.ammoLeft = ammo.getShotsLeft(); } } }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/10d90e529b74a119c18b19ca356a1a227209309f/AttackOption.java/buggy/megamek/src/megamek/client/bot/AttackOption.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6020, 484, 1895, 12, 1441, 1628, 1018, 16, 13076, 329, 732, 28629, 16, 1645, 460, 16, 2974, 13616, 751, 358, 13616, 16, 509, 1428, 67, 1711, 13, 288, 3639, 333, 18, 3299, 273, 101...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6020, 484, 1895, 12, 1441, 1628, 1018, 16, 13076, 329, 732, 28629, 16, 1645, 460, 16, 2974, 13616, 751, 358, 13616, 16, 509, 1428, 67, 1711, 13, 288, 3639, 333, 18, 3299, 273, 101...
public static Node parse (Tokenizer toker) throws Exception { NodeTerm nt = new NodeTerm(); Token t = toker.peek(); // integer literal if (t instanceof TokenIntegerLiteral) { nt.type = NodeTerm.INTEGER; nt.tokInt = (TokenIntegerLiteral) nt.eatToken(toker); return nt; } // boolean literal if (t.equals(TokenKeyword.TRUE) || t.equals(TokenKeyword.FALSE)) { nt.type = NodeTerm.BOOL; nt.boolValue = t.equals(TokenKeyword.TRUE); nt.eatToken(toker); return nt; } // string literal if (t instanceof TokenStringLiteral) { TokenStringLiteral ts = (TokenStringLiteral) t; int ql = ts.getQuotesLeft(); int qr = ts.getQuotesRight(); if (qr != 0) { // whole string literal nt.type = NodeTerm.STRING; nt.tokStr = (TokenStringLiteral) nt.eatToken(toker); nt.setStart(nt.tokStr); return nt; } // interpolated string literal (turn into a subexpr) LinkedList toklist = new LinkedList(); nt.type = NodeTerm.STRING; nt.tokStr = (TokenStringLiteral) nt.eatToken(toker); toklist.add(nt.tokStr.clone()); // cloned before it's changed. nt.tokStr.setQuotesRight(ql); Node lhs = nt; FilePos filepos = (FilePos) nt.tokStr.getFilePos(); boolean loop = true; while (loop) { Node rhs = null; Token tok = toker.peek(); if (tok instanceof TokenStringLiteral) { rhs = new NodeTerm(); NodeTerm rhsnt = (NodeTerm) rhs; ts = (TokenStringLiteral) tok; rhsnt.type = NodeTerm.STRING; rhsnt.tokStr = (TokenStringLiteral) rhsnt.eatToken(toker); toklist.add(rhsnt.tokStr.clone()); // cloned before it's changed. if (ts.getQuotesRight() == ql) { loop = false; } ts.setQuotesRight(ql); ts.setQuotesLeft(ql); } else if (tok.equals(TokenPunct.DOLLAR)) { rhs = NodeTerm.parse(toker); toklist.add(rhs); } else { throw new Exception("Error parsing "+ "interpolated string."); } // don't make a sum out of a blank string on either side boolean join = true; if (lhs instanceof NodeTerm) { NodeTerm lhst = (NodeTerm) lhs; if (lhst.type == STRING && lhst.tokStr.getString().length() == 0) { lhs = rhs; join = false; } } if (rhs instanceof NodeTerm) { NodeTerm rhst = (NodeTerm) rhs; if (rhst.type == STRING && rhst.tokStr.getString().length() == 0) { join = false; } } if (join) { lhs = new NodeSum(lhs, TokenPunct.PLUS, rhs); } } lhs.setTokenList(toklist); lhs.setStart(filepos); NodeTerm rnt = new NodeTerm(); rnt.type = NodeTerm.STRING; rnt.nodeString = lhs; rnt.addNode(lhs); return rnt; } // Sub-expression (in parenthesis) if (t.equals(TokenPunct.LPAREN)) { nt.type = NodeTerm.SUBEXPR; nt.setStart(nt.eatToken(toker)); nt.subExpr = (NodeExpr) NodeExpr.parse(toker); nt.addNode(nt.subExpr); nt.requireToken(toker, TokenPunct.RPAREN); return nt; } // defined test if (t.equals(TokenKeyword.DEFINED)) { nt.type = NodeTerm.DEFINEDTEST; nt.eatToken(toker); nt.subExpr = (NodeExpr) NodeExpr.parse(toker); nt.addNode(nt.subExpr); return nt; } // reverse function if (t.equals(TokenKeyword.REVERSE)) { nt.type = NodeTerm.REVERSEFUNC; nt.eatToken(toker); nt.subExpr = (NodeExpr) NodeExpr.parse(toker); nt.addNode(nt.subExpr); return nt; } // size function if (t.equals(TokenKeyword.SIZE)) { nt.type = NodeTerm.SIZEFUNC; nt.eatToken(toker); nt.subExpr = (NodeExpr) NodeExpr.parse(toker); nt.addNode(nt.subExpr); return nt; } // isnull function if (t.equals(TokenKeyword.ISNULL)) { nt.type = NodeTerm.ISNULLFUNC; nt.eatToken(toker); nt.subExpr = (NodeExpr) NodeExpr.parse(toker); nt.addNode(nt.subExpr); return nt; } // new and null if (t.equals(TokenKeyword.NEW) || t.equals(TokenKeyword.NEWNULL)) { nt.type = (t.equals(TokenKeyword.NEW) ? NodeTerm.NEW : NodeTerm.NEWNULL); nt.eatToken(toker); nt.newClass = nt.getIdent(toker); return nt; } // VarRef if (t.equals(TokenPunct.DOLLAR)) { nt.type = VARREF; nt.var = (NodeVarRef) NodeVarRef.parse(toker); nt.addNode(nt.var); // check for -> after, like: $object->method(arg1, arg2, ...) if (toker.peek().equals(TokenPunct.DEREF)) { nt.derefLine = toker.peek().getFilePos().line; nt.eatToken(toker); nt.type = METHCALL; // don't return... parsing continues below. } else { return nt; } } // function/method call if (t instanceof TokenIdent || nt.type == METHCALL) { if (nt.type != METHCALL) nt.type = FUNCCALL; nt.funcIdent = nt.getIdent(toker); nt.funcArgs = (NodeArguments) NodeArguments.parse(toker); nt.addNode(nt.funcArgs); return nt; } // array/hash literal if (NodeArrayLiteral.canStart(toker)) { nt.type = ARRAY; nt.subExpr = (NodeExpr) NodeArrayLiteral.parse(toker); return nt; } throw new Exception("Can't finish parsing NodeTerm at " + toker.locationString() + ", toker.peek() = " + t.toString()); }
5345 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5345/6676d99df452023146df224343fbbc77da7ccc7b/NodeTerm.java/clean/danga/s2/NodeTerm.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 2029, 1109, 261, 10524, 946, 264, 13, 1216, 1185, 565, 288, 202, 907, 4065, 9513, 273, 394, 2029, 4065, 5621, 202, 1345, 268, 273, 946, 264, 18, 347, 3839, 5621, 202, 759, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2029, 1109, 261, 10524, 946, 264, 13, 1216, 1185, 565, 288, 202, 907, 4065, 9513, 273, 394, 2029, 4065, 5621, 202, 1345, 268, 273, 946, 264, 18, 347, 3839, 5621, 202, 759, 35...
return findBuildInfo(resource.getProject());
return getBuildInfo(resource, true);
public static IManagedBuildInfo getBuildInfo(IResource resource) { return findBuildInfo(resource.getProject()); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/d4bc99f45dbe082adf7fb99858b9cc8d66cd8797/ManagedBuildManager.java/clean/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 6246, 4184, 3116, 966, 21122, 966, 12, 45, 1420, 1058, 13, 288, 202, 202, 2463, 1104, 3116, 966, 12, 3146, 18, 588, 4109, 10663, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 6246, 4184, 3116, 966, 21122, 966, 12, 45, 1420, 1058, 13, 288, 202, 202, 2463, 1104, 3116, 966, 12, 3146, 18, 588, 4109, 10663, 202, 97, 2, -100, -100, -100, -100, -100,...
Utils.writeStyleAttribute(d, c.getStyle());
Utils.writeStyleAttribute(d, dialog.getStyle());
protected void writePrefix(Device d, SContainer c) throws IOException { SDialog dialog = (SDialog) c; String encodingType = dialog.getEncodingType(); d.append("<form method=\""); if (dialog.getMethod()) d.append("post"); else d.append("get"); d.append("\""); Utils.writeStyleAttribute(d, c.getStyle()); if (encodingType != null) d.append(" enctype=\"").append(encodingType).append("\""); d.append(" action=\"").append(dialog.getServerAddress()). append("\">\n"); }
3911 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3911/248fc5ac421ad84c531a282e883e037228f5ab93/DialogCG.java/buggy/wings/src/org/wings/plaf/xhtml/css1/DialogCG.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1045, 2244, 12, 3654, 302, 16, 348, 2170, 276, 13, 3639, 1216, 1860, 565, 288, 3639, 348, 6353, 6176, 273, 261, 55, 6353, 13, 276, 31, 3639, 514, 2688, 559, 273, 6176, 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, 4750, 918, 1045, 2244, 12, 3654, 302, 16, 348, 2170, 276, 13, 3639, 1216, 1860, 565, 288, 3639, 348, 6353, 6176, 273, 261, 55, 6353, 13, 276, 31, 3639, 514, 2688, 559, 273, 6176, 18, ...
public org.quickfix.field.RepoCollateralSecurityType getRepoCollateralSecurityType() throws FieldNotFound { org.quickfix.field.RepoCollateralSecurityType value = new org.quickfix.field.RepoCollateralSecurityType();
public quickfix.field.RepoCollateralSecurityType getRepoCollateralSecurityType() throws FieldNotFound { quickfix.field.RepoCollateralSecurityType value = new quickfix.field.RepoCollateralSecurityType();
public org.quickfix.field.RepoCollateralSecurityType getRepoCollateralSecurityType() throws FieldNotFound { org.quickfix.field.RepoCollateralSecurityType value = new org.quickfix.field.RepoCollateralSecurityType(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/IndicationOfInterest.java/buggy/src/java/src/quickfix/fix44/IndicationOfInterest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8791, 13535, 2045, 287, 4368, 559, 5561, 1631, 13535, 2045, 287, 4368, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8791, 13535, 2045, 287, 4368, 559, 5561, 1631, 13535, 2045, 287, 4368, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18,...
public InetAddress getAddress()
public final InetAddress getAddress()
public InetAddress getAddress() { return addr; }
25352 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25352/b36f8eef237505f078dd95cd2d50183f990c35aa/InetSocketAddress.java/buggy/libjava/java/net/InetSocketAddress.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 14218, 14808, 1435, 565, 288, 202, 2463, 3091, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 14218, 14808, 1435, 565, 288, 202, 2463, 3091, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Raster rr = cr.getData(); Point pt = new Point(0,0); WritableRaster wr = Raster.createWritableRaster(rr.getSampleModel(), rr.getDataBuffer(), pt);
public RenderedImage createRendering(RenderContext rc) { // Just copy over the rendering hints. RenderingHints rh = rc.getRenderingHints(); if (rh == null) rh = new RenderingHints(null); // update the current affine transform AffineTransform at = rc.getTransform(); // This splits out the scale and applies it // prior to the Gaussian. Then after appying the gaussian // it applies the shear (rotation) and translation components. double sx = at.getScaleX(); double sy = at.getScaleY(); double shx = at.getShearX(); double shy = at.getShearY(); double tx = at.getTranslateX(); double ty = at.getTranslateY(); // The Scale is the "hypotonose" of the matrix vectors. double scaleX = Math.sqrt(sx*sx + shy*shy); double scaleY = Math.sqrt(sy*sy + shx*shx); double sdx = stdDeviationX*scaleX; double sdy = stdDeviationY*scaleY; GaussianBlurOp op = new GaussianBlurOp(sdx, sdy, rh); double blurRadX = op.getRadiusX(); double blurRadY = op.getRadiusY(); Shape aoi = rc.getAreaOfInterest(); if(aoi == null) aoi = getBounds2D(); Rectangle2D r = aoi.getBounds2D(); // Grow the region in usr space. r = new Rectangle2D.Double(r.getX()-blurRadX/scaleX, r.getY()-blurRadY/scaleY, r.getWidth() +2*blurRadX/scaleX, r.getHeight()+2*blurRadY/scaleY); // This is the affine transform between our usr space and an // intermediate space which is scaled similarly to our device // space but is still axially aligned with our device space. AffineTransform srcAt; // This is the affine transform between our intermediate // coordinate space and the real device space, or null (if // we don't need an intermediate space). AffineTransform resAt; if (eps_eq(blurRadX, blurRadY) && eps_abs_eq(sx/scaleX, sy/scaleY)) { // Ok we have a square Gaussian kernel which means it is // circularly symetric, further our residual matrix (after // removing scaling) is a rotation matrix (perhaps with // mirroring), thus we can generate our source directly in // device space and convolve there rather than going to an // intermediate space (axially aligned with usr space) and // then completing the requested rotation/shear, with an // AffineRed... srcAt = at; resAt = null; } else { // Scale to device coords. srcAt = AffineTransform.getScaleInstance(scaleX, scaleY); // The shear/rotation simply divides out the // common scale factor in the matrix. resAt = new AffineTransform(sx/scaleX, shy/scaleX, shx/scaleY, sy/scaleY, tx, ty); } RenderedImage ri; ri = getSource().createRendering(new RenderContext(srcAt, r, rh)); if (ri == null) return null; CachableRed cr; cr = ConcreteRenderedImageCachableRed.wrap(ri); Shape devShape = srcAt.createTransformedShape(aoi); r = devShape.getBounds2D(); r = new Rectangle2D.Double(r.getX()-blurRadX, r.getY()-blurRadY, r.getWidth() +2*blurRadX, r.getHeight()+2*blurRadY); if (!r.getBounds().equals(cr.getBounds())) cr = new PadRed(cr, r.getBounds(), PadMode.ZERO_PAD, rh); ColorModel cm = cr.getColorModel(); // OK this is a bit of a cheat. We Pull the DataBuffer out of // The read-only raster that getData gives us. And use it to // build a WritableRaster. This avoids a copy of the data. Raster rr = cr.getData(); Point pt = new Point(0,0); WritableRaster wr = Raster.createWritableRaster(rr.getSampleModel(), rr.getDataBuffer(), pt); BufferedImage srcBI; srcBI = new BufferedImage(cm, wr, cm.isAlphaPremultiplied(), null); BufferedImage destBI; destBI = op.filter(srcBI, null); final int rrMinX = cr.getMinX(); final int rrMinY = cr.getMinY(); cr = new ConcreteBufferedImageCachableRed(destBI, rrMinX, rrMinY); if ((resAt != null) && (!resAt.isIdentity())) cr = new AffineRed(cr, resAt, rh); return cr; }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/e94df1e1f84e3f01c3cc2dd5b67ab11198e395bd/ConcreteGaussianBlurRable.java/clean/sources/org/apache/batik/refimpl/gvt/filter/ConcreteGaussianBlurRable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6987, 329, 2040, 752, 14261, 12, 3420, 1042, 4519, 13, 288, 3639, 368, 12526, 1610, 1879, 326, 9782, 13442, 18, 3639, 22391, 6259, 273, 4519, 18, 588, 14261, 13368, 5621, 3639, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6987, 329, 2040, 752, 14261, 12, 3420, 1042, 4519, 13, 288, 3639, 368, 12526, 1610, 1879, 326, 9782, 13442, 18, 3639, 22391, 6259, 273, 4519, 18, 588, 14261, 13368, 5621, 3639, 309, ...
if (Double.isNaN(number)) return("NaN");
if (Double.isNaN(number)) return("NaN"); else if (number == Double.NEGATIVE_INFINITY) return("-Infinity"); else if (number == Double.POSITIVE_INFINITY) return("Infinity");
public static String formatNumber(double number, String pattern, DecimalFormat formatter) { try { if (Double.isNaN(number)) return("NaN"); StringBuffer result = new StringBuffer(); formatter.applyLocalizedPattern(pattern); formatter.format(number,result,_fieldPosition); return(result.toString()); } catch (IllegalArgumentException e) { runTimeError("Attempting to format number '"+ number + "' using pattern '" + pattern + "'."); return(EMPTYSTRING); } }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/1e435ccb0550817516163c070c373c3c38e179f1/BasisLibrary.java/buggy/src/org/apache/xalan/xsltc/runtime/BasisLibrary.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 740, 1854, 12, 9056, 1300, 16, 514, 1936, 16, 6862, 1377, 29665, 4453, 13, 288, 202, 698, 288, 202, 565, 309, 261, 5265, 18, 291, 21172, 12, 2696, 3719, 327, 2932, 21172...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 740, 1854, 12, 9056, 1300, 16, 514, 1936, 16, 6862, 1377, 29665, 4453, 13, 288, 202, 698, 288, 202, 565, 309, 261, 5265, 18, 291, 21172, 12, 2696, 3719, 327, 2932, 21172...
titlePanel.add(title); Color aColor = title.getBackground();
title.setForeground(new Color(255,255,255)); JButton saveButton = new JButton("Save"); saveButton.setPreferredSize(new Dimension(70,17)); saveButton.setActionCommand("save"); saveButton.addActionListener(this); saveButton.setOpaque(false); saveButton.setForeground(TEXT_COLOR); if(!addSave) saveButton.setVisible(false); Color aColor = getBackground(); JTextArea descrip = new JTextArea();
public void renderTab(TabPanel tp) { if(!tp.isRendered) { tp.isRendered = true; tp.removeAll(); Vector iHoldTables = new Vector(); //add a title label to show which element JPanel titlePanel = new JPanel(); titlePanel.setLayout(new GridLayout(2,1)); JLabel title = new JLabel(); Font thisFont = title.getFont(); Font newFont = new Font(thisFont.getFontName(),Font.BOLD,18); title.setFont(newFont); if (tp.oNode != null) title.setText(" " + getTreePathName(tp.el,tp.oNode) + ":"); else title.setText(" " + getTreePathName(tp.el) + ":"); titlePanel.add(title); Color aColor = title.getBackground(); //if title has a description, add it in italics if (tp.el.hasAttribute("Description")) { if(tp.el.getAttribute("Description").length() != 0) { JTextArea descrip = new JTextArea(); descrip.setEditable(false); descrip.setLineWrap(true); descrip.setWrapStyleWord(true); descrip.setBackground(aColor); newFont = new Font(thisFont.getFontName(), Font.ITALIC,thisFont.getSize()); descrip.setFont(newFont); descrip.setText( " " + tp.el.getAttribute("Description")); titlePanel.add(descrip); } } title.setForeground(new Color(255,255,255)); titlePanel.setBackground(new Color(0,0,50)); //this sets up titlePanel so we can access its height later to //use for "Goto" button scrollpane view setting purposes tp.titlePanel = titlePanel; //First instantiation of TablePanel. This one corresponds to the //actual "top-level" element, e.g. what the main Tab element is TablePanel pan = new TablePanel(tp.el, tp, tp.oNode); iHoldTables.add(pan); //make the nested elements have a further indent to distinguish them //look at the template to get the nested Elements we need to display //with their own TablePanels Vector theseElements = DOMUtil.getChildElements("OMEElement",tp.el); //will be a list of those nested elements that have their own nested //elements Vector branchElements = new Vector(theseElements.size()); //check out each nested Element for(int i = 0;i<theseElements.size();i++) { Element e = null; if (theseElements.get(i) instanceof Element) { e = (Element) theseElements.get(i); } if (DOMUtil.getChildElements("OMEElement",e).size() != 0) { branchElements.add(e); } else { if(tp.oNode != null) { Vector v = new Vector(); String aName = e.getAttribute("XMLName"); if( aName.equals("Image") || aName.equals("Feature") || aName.equals("Dataset") || aName.equals("Project") ) { v = DOMUtil.getChildElements(aName, tp.oNode.getDOMElement()); } else if (tp.oNode.getChild("CustomAttributes") != null) { v = DOMUtil.getChildElements(aName, tp.oNode.getChild("CustomAttributes").getDOMElement()); } if (v.size() == 0) { OMEXMLNode n = null; TablePanel p = new TablePanel(e, tp, n); iHoldTables.add(p); } else { for(int j = 0;j<v.size();j++) { Element anEle = (Element) v.get(j); OMEXMLNode n = null; String unknownName = aName; try { ReflectedUniverse r = new ReflectedUniverse(); if (unknownName.equals("Project") || unknownName.equals("Feature") || unknownName.equals("CustomAttributes") || unknownName.equals("Dataset") || unknownName.equals("Image")) { r.exec("import org.openmicroscopy.xml." + unknownName + "Node"); r.setVar("DOMElement", anEle); r.exec("result = new " + unknownName + "Node(DOMElement)"); n = (OMEXMLNode) r.getVar("result"); } else { r.exec("import org.openmicroscopy.xml.st." + unknownName + "Node"); r.setVar("DOMElement", anEle); r.exec("result = new " + unknownName + "Node(DOMElement)"); n = (OMEXMLNode) r.getVar("result"); } } catch (Exception exc) {// System.out.println(exc.toString()); } if (n == null) { n = new AttributeNode(anEle); } TablePanel p = new TablePanel(e, tp, n); iHoldTables.add(p); } } } else { OMEXMLNode n = null; TablePanel p = new TablePanel(e, tp, n); iHoldTables.add(p); } } } String rowString = ""; for (int i = 0;i<iHoldTables.size();i++) { rowString = rowString + "5dlu, pref, "; } rowString = rowString.substring(0, rowString.length() - 2); FormLayout layout = new FormLayout( "5dlu, 5dlu, pref:grow, 5dlu, 5dlu", rowString); PanelBuilder builder = new PanelBuilder(layout); CellConstraints cc = new CellConstraints(); int row = 0; for (int i = 0;i<iHoldTables.size();i++) { row = row + 2; if (i == 0) builder.add( (Component)iHoldTables.get(i), cc.xyw(2, row, 2, "left,center")); else builder.add( (Component)iHoldTables.get(i), cc.xyw(3, row, 2, "left,center")); } //Layout stuff distinguishes between the title and the data panels tp.setLayout(new BorderLayout()); tp.add(titlePanel,BorderLayout.NORTH); tp.add(builder.getPanel(),BorderLayout.CENTER); } }
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/6298bc44d12f634ef846a5bb08de557962763ff0/MetadataPane.java/buggy/loci/ome/notebook/MetadataPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1743, 5661, 12, 5661, 5537, 8071, 13, 288, 565, 309, 12, 5, 6834, 18, 291, 19222, 13, 288, 1377, 8071, 18, 291, 19222, 273, 638, 31, 1377, 8071, 18, 4479, 1595, 5621, 5411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1743, 5661, 12, 5661, 5537, 8071, 13, 288, 565, 309, 12, 5, 6834, 18, 291, 19222, 13, 288, 1377, 8071, 18, 291, 19222, 273, 638, 31, 1377, 8071, 18, 4479, 1595, 5621, 5411, ...
String sExpected = "<xml-fragment at0=\"val0\"/>";
String sExpected = "<xml-fragment at0=\"val0\" xmlns:pre=\"http:
public void testChildAttribute() throws XmlException { String sExpected = "<xml-fragment at0=\"val0\"/>"; String sQuery1 = "$this/foo/bar/attribute::at0"; XmlCursor c = Public2.getCursor(Public2.parse(sXmlChild)); c.selectPath(sQuery1, options ); assertEquals(1, c.getSelectionCount()); c.toNextSelection(); assertEquals(sExpected, c.xmlText()); }
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/3719a765810de7eb12546e7f61fd46f491fff9e3/AxesTest.java/buggy/v2/test/src/xmlcursor/xpath/xbean_xpath/detailed/AxesTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1763, 1499, 1435, 1216, 5714, 503, 288, 3639, 514, 272, 6861, 273, 3532, 2902, 17, 11956, 622, 20, 5189, 1125, 20, 2412, 12302, 30, 1484, 5189, 2505, 30, 3639, 514, 26656...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1763, 1499, 1435, 1216, 5714, 503, 288, 3639, 514, 272, 6861, 273, 3532, 2902, 17, 11956, 622, 20, 5189, 1125, 20, 2412, 12302, 30, 1484, 5189, 2505, 30, 3639, 514, 26656...
if (dbadaptor.getNumDatasetConfigs() < 1)
if (dbadaptor.getNumDatasetConfigs(true) < 1)
public void removeDataset(StringTokenizer toks) throws InvalidQueryException { if (toks.hasMoreTokens()) { String name = toks.nextToken(); //special case where x.y must be of sourcename.datasetname String[] nametoks = name.split("\\."); try { if (nametoks.length == 2) { if (!(adaptorManager.supportsAdaptor(nametoks[0]) && adaptorManager.supportsDataset(nametoks[1]))) throw new InvalidQueryException( "Cannot remove dataset with name: " + name + " must remove it with datasetname relative to the environmental mart, or sourcename.datasetname explicitly\n"); DSConfigAdaptor adaptor = adaptorManager.getAdaptorByName(nametoks[0]); if (adaptor == null) throw new InvalidQueryException("Nothing loaded for Mart " + nametoks[0] + "\n"); if (adaptor.supportsDataset(nametoks[1])) { if (adaptor instanceof MultiDSConfigAdaptor) { MultiDSConfigAdaptor dbadaptor = (MultiDSConfigAdaptor) adaptor; DatasetConfigIterator dsvs = dbadaptor.getDatasetConfigsByDataset(nametoks[1]); while (dsvs.hasNext()) dbadaptor.removeDatasetConfig((DatasetConfig) dsvs.next()); if (dbadaptor.getNumDatasetConfigs() < 1) adaptorManager.remove(dbadaptor); } else adaptorManager.remove(adaptor); } else throw new InvalidQueryException("Mart " + nametoks[0] + " does not support dataset " + nametoks[1] + "\n"); } else if (nametoks.length == 1) { if (envMart == null) throw new InvalidQueryException("Must set environmental Mart to remove datasets relative to it."); DSConfigAdaptor adaptor = adaptorManager.getAdaptorByName(envMart.getName()); if (adaptor.supportsDataset(nametoks[0])) { if (adaptor instanceof MultiDSConfigAdaptor) { MultiDSConfigAdaptor dbadaptor = (MultiDSConfigAdaptor) adaptor; DatasetConfigIterator dsvs = dbadaptor.getDatasetConfigsByDataset(nametoks[1]); while (dsvs.hasNext()) { dbadaptor.removeDatasetConfig((DatasetConfig) dsvs.next()); } if (dbadaptor.getNumDatasetConfigs() < 1) adaptorManager.remove(dbadaptor); } else adaptorManager.remove(adaptor); } else throw new InvalidQueryException( "Dataset " + nametoks[0] + " is not supported by environmental Mart " + envMart.getName() + "\n"); } else throw new InvalidQueryException( "Cannot remove dataset with name " + name + " must remove it with datasetname relative to the environmental mart, or sourcename.datasetname explicitly\n"); } catch (ConfigurationException e) { throw new InvalidQueryException( "Caught ConfigurationException removing dataset " + name + " " + e.getMessage(), e); } catch (InvalidQueryException e) { throw e; } } else throw new InvalidQueryException("Invalid remove dataset command.\n"); }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/8cbbe7ecedabbc74b15d29992004a181d5da1959/MartShellLib.java/buggy/src/java/org/ensembl/mart/shell/MartShellLib.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1206, 10656, 12, 780, 10524, 21404, 13, 1216, 1962, 1138, 503, 288, 565, 309, 261, 17692, 87, 18, 5332, 7417, 5157, 10756, 288, 1377, 514, 508, 273, 21404, 18, 4285, 1345, 5621...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1206, 10656, 12, 780, 10524, 21404, 13, 1216, 1962, 1138, 503, 288, 565, 309, 261, 17692, 87, 18, 5332, 7417, 5157, 10756, 288, 1377, 514, 508, 273, 21404, 18, 4285, 1345, 5621...
for (i=0;i<=lpcSize;i++)
for (i = 0; i <= lpcSize; i++)
public int encode(final Bits bits, final float[] in) { int i; float[] res, target, mem; float[] syn_resp; float[] orig; /* Copy new data in input buffer */ System.arraycopy(frmBuf, frameSize, frmBuf, 0, bufSize-frameSize); frmBuf[bufSize-frameSize] = in[0] - preemph*pre_mem; for (i=1; i<frameSize; i++) frmBuf[bufSize-frameSize+i] = in[i] - preemph*in[i-1]; pre_mem = in[frameSize-1]; /* Move signals 1 frame towards the past */ System.arraycopy(exc2Buf, frameSize, exc2Buf, 0, bufSize-frameSize); System.arraycopy(excBuf, frameSize, excBuf, 0, bufSize-frameSize); System.arraycopy(swBuf, frameSize, swBuf, 0, bufSize-frameSize); /* Window for analysis */ for (i=0; i<windowSize; i++) buf2[i] = frmBuf[i+frmIdx] * window[i]; /* Compute auto-correlation */ Lpc.autocorr(buf2, autocorr, lpcSize+1, windowSize); autocorr[0] += 10; /* prevents NANs */ autocorr[0] *= lpc_floor; /* Noise floor in auto-correlation domain */ /* Lag windowing: equivalent to filtering in the power-spectrum domain */ for (i=0; i<lpcSize+1; i++) autocorr[i] *= lagWindow[i]; /* Levinson-Durbin */ Lpc.wld(lpc, autocorr, rc, lpcSize); // tmperr System.arraycopy(lpc, 0, lpc, 1, lpcSize); lpc[0]=1; /* LPC to LSPs (x-domain) transform */ int roots=Lsp.lpc2lsp (lpc, lpcSize, lsp, 15, 0.2f); /* Check if we found all the roots */ if (roots==lpcSize) { /* LSP x-domain to angle domain*/ for (i=0;i<lpcSize;i++) lsp[i] = (float)Math.acos(lsp[i]); } else { /* Search again if we can afford it */ if (complexity>1) roots = Lsp.lpc2lsp (lpc, lpcSize, lsp, 11, 0.05f); if (roots==lpcSize) { /* LSP x-domain to angle domain*/ for (i=0;i<lpcSize;i++) lsp[i] = (float)Math.acos(lsp[i]); } else { /*If we can't find all LSP's, do some damage control and use previous filter*/ for (i=0;i<lpcSize;i++) { lsp[i]=old_lsp[i]; } } } float lsp_dist=0; for (i=0;i<lpcSize;i++) lsp_dist += (old_lsp[i] - lsp[i])*(old_lsp[i] - lsp[i]); /* Whole frame analysis (open-loop estimation of pitch and excitation gain) */ float ol_gain; int ol_pitch; float ol_pitch_coef; { if (first != 0) for (i=0; i<lpcSize;i++) interp_lsp[i] = lsp[i]; else for (i=0;i<lpcSize;i++) interp_lsp[i] = .375f*old_lsp[i] + .625f*lsp[i]; Lsp.enforce_margin(interp_lsp, lpcSize, .002f); /* Compute interpolated LPCs (unquantized) for whole frame*/ for (i=0; i<lpcSize; i++) interp_lsp[i] = (float)Math.cos(interp_lsp[i]); m_lsp.lsp2lpc(interp_lsp, interp_lpc, lpcSize); /*Open-loop pitch*/ if (submodes[submodeID] == null || vbr_enabled != 0 || vad_enabled != 0 || submodes[submodeID].forced_pitch_gain != 0 || submodes[submodeID].lbr_pitch != -1) { int[] nol_pitch = new int[6]; float[] nol_pitch_coef = new float[6]; Filters.bw_lpc(gamma1, interp_lpc, bw_lpc1, lpcSize); Filters.bw_lpc(gamma2, interp_lpc, bw_lpc2, lpcSize); Filters.filter_mem2(frmBuf, frmIdx, bw_lpc1, bw_lpc2, swBuf, swIdx, frameSize, lpcSize, mem_sw_whole, 0); Ltp.open_loop_nbest_pitch(swBuf, swIdx, min_pitch, max_pitch, frameSize, nol_pitch, nol_pitch_coef, 6); ol_pitch=nol_pitch[0]; ol_pitch_coef = nol_pitch_coef[0]; /*Try to remove pitch multiples*/ for (i=1;i<6;i++) { if ((nol_pitch_coef[i]>.85*ol_pitch_coef) && (Math.abs(nol_pitch[i]-ol_pitch/2.0)<=1 || Math.abs(nol_pitch[i]-ol_pitch/3.0)<=1 || Math.abs(nol_pitch[i]-ol_pitch/4.0)<=1 || Math.abs(nol_pitch[i]-ol_pitch/5.0)<=1)) { /*ol_pitch_coef=nol_pitch_coef[i];*/ ol_pitch = nol_pitch[i]; } } /*if (ol_pitch>50) ol_pitch/=2;*/ /*ol_pitch_coef = sqrt(ol_pitch_coef);*/ } else { ol_pitch=0; ol_pitch_coef=0; } /*Compute "real" excitation*/ Filters.fir_mem2(frmBuf, frmIdx, interp_lpc, excBuf, excIdx, frameSize, lpcSize, mem_exc); /* Compute open-loop excitation gain */ ol_gain=0; for (i=0;i<frameSize;i++) ol_gain += excBuf[excIdx+i]*excBuf[excIdx+i]; ol_gain=(float)Math.sqrt(1+ol_gain/frameSize); } /*VBR stuff*/ if (vbr != null && (vbr_enabled != 0 || vad_enabled != 0)) { if (abr_enabled != 0) { float qual_change=0; if (abr_drift2 * abr_drift > 0) { /* Only adapt if long-term and short-term drift are the same sign */ qual_change = -.00001f*abr_drift/(1+abr_count); if (qual_change>.05f) qual_change=.05f; if (qual_change<-.05f) qual_change=-.05f; } vbr_quality += qual_change; if (vbr_quality>10) vbr_quality=10; if (vbr_quality<0) vbr_quality=0; } relative_quality = vbr.analysis(in, frameSize, ol_pitch, ol_pitch_coef); /*if (delta_qual<0)*/ /* delta_qual*=.1*(3+st->vbr_quality);*/ if (vbr_enabled != 0) { int mode; int choice=0; float min_diff=100; mode = 8; while (mode > 0) { int v1; float thresh; v1=(int)Math.floor(vbr_quality); if (v1==10) thresh = Vbr.nb_thresh[mode][v1]; else thresh = (vbr_quality-v1)*Vbr.nb_thresh[mode][v1+1] + (1+v1-vbr_quality)*Vbr.nb_thresh[mode][v1]; if (relative_quality > thresh && relative_quality-thresh<min_diff) { choice = mode; min_diff = relative_quality-thresh; } mode--; } mode=choice; if (mode==0) { if (dtx_count==0 || lsp_dist>.05 || dtx_enabled==0 || dtx_count>20) { mode=1; dtx_count=1; } else { mode=0; dtx_count++; } } else { dtx_count=0; } setMode(mode); if (abr_enabled != 0) { int bitrate; bitrate = getBitRate(); abr_drift+=(bitrate-abr_enabled); abr_drift2 = .95f*abr_drift2 + .05f*(bitrate-abr_enabled); abr_count += 1.0; } } else { /*VAD only case*/ int mode; if (relative_quality<2) { if (dtx_count==0 || lsp_dist>.05 || dtx_enabled == 0 || dtx_count>20) { dtx_count=1; mode=1; } else { mode=0; dtx_count++; } } else { dtx_count = 0; mode=submodeSelect; } /*speex_encoder_ctl(state, SPEEX_SET_MODE, &mode);*/ submodeID=mode; } } else { relative_quality = -1; } /* First, transmit a zero for narrowband */ bits.pack(0, 1); /* Transmit the sub-mode we use for this frame */ bits.pack(submodeID, NB_SUBMODE_BITS); /* If null mode (no transmission), just set a couple things to zero*/ if (submodes[submodeID] == null) { for (i=0;i<frameSize;i++) excBuf[excIdx+i]=exc2Buf[exc2Idx+i]=swBuf[swIdx+i]=VERY_SMALL; for (i=0;i<lpcSize;i++) mem_sw[i]=0; first=1; bounded_pitch = 1; /* Final signal synthesis from excitation */ Filters.iir_mem2(excBuf, excIdx, interp_qlpc, frmBuf, frmIdx, frameSize, lpcSize, mem_sp); in[0] = frmBuf[frmIdx] + preemph*pre_mem2; for (i=1;i<frameSize;i++) in[i]=frmBuf[frmIdx=i] + preemph*in[i-1]; pre_mem2=in[frameSize-1]; return 0; } /* LSP Quantization */ if (first != 0) { for (i=0; i<lpcSize;i++) old_lsp[i] = lsp[i]; } /*Quantize LSPs*///#if 1 /*0 for unquantized*/ submodes[submodeID].lsqQuant.quant(lsp, qlsp, lpcSize, bits);//#else// for (i=0;i<lpcSize;i++)// qlsp[i]=lsp[i];//#endif /*If we use low bit-rate pitch mode, transmit open-loop pitch*/ if (submodes[submodeID].lbr_pitch!=-1) { bits.pack(ol_pitch-min_pitch, 7); } if (submodes[submodeID].forced_pitch_gain != 0) { int quant; quant = (int)Math.floor(.5+15*ol_pitch_coef); if (quant>15) quant=15; if (quant<0) quant=0; bits.pack(quant, 4); ol_pitch_coef=(float) 0.066667*quant; } /*Quantize and transmit open-loop excitation gain*/ { int qe = (int)(Math.floor(0.5+3.5*Math.log(ol_gain))); if (qe<0) qe=0; if (qe>31) qe=31; ol_gain = (float) Math.exp(qe/3.5); bits.pack(qe, 5); } /* Special case for first frame */ if (first != 0) { for (i=0;i<lpcSize;i++) old_qlsp[i] = qlsp[i]; } /* Filter response */ res = new float[subframeSize]; /* Target signal */ target = new float[subframeSize]; syn_resp = new float[subframeSize]; mem = new float[lpcSize]; orig = new float[frameSize]; for (i=0;i<frameSize;i++) orig[i]=frmBuf[frmIdx+i]; /* Loop on sub-frames */ for (int sub=0;sub<nbSubframes;sub++) { float tmp; int offset; int sp, sw, exc, exc2; int pitchval; /* Offset relative to start of frame */ offset = subframeSize*sub; /* Original signal */ sp=frmIdx+offset; /* Excitation */ exc=excIdx+offset; /* Weighted signal */ sw=swIdx+offset; exc2=exc2Idx+offset; /* LSP interpolation (quantized and unquantized) */ tmp = (float) (1.0 + sub)/nbSubframes; for (i=0;i<lpcSize;i++) interp_lsp[i] = (1-tmp)*old_lsp[i] + tmp*lsp[i]; for (i=0;i<lpcSize;i++) interp_qlsp[i] = (1-tmp)*old_qlsp[i] + tmp*qlsp[i]; /* Make sure the filters are stable */ Lsp.enforce_margin(interp_lsp, lpcSize, .002f); Lsp.enforce_margin(interp_qlsp, lpcSize, .002f); /* Compute interpolated LPCs (quantized and unquantized) */ for (i=0;i<lpcSize;i++) interp_lsp[i] = (float) Math.cos(interp_lsp[i]); m_lsp.lsp2lpc(interp_lsp, interp_lpc, lpcSize); for (i=0;i<lpcSize;i++) interp_qlsp[i] = (float) Math.cos(interp_qlsp[i]); m_lsp.lsp2lpc(interp_qlsp, interp_qlpc, lpcSize); /* Compute analysis filter gain at w=pi (for use in SB-CELP) */ tmp=1; pi_gain[sub]=0; for (i=0;i<=lpcSize;i++) { pi_gain[sub] += tmp*interp_qlpc[i]; tmp = -tmp; } /* Compute bandwidth-expanded (unquantized) LPCs for perceptual weighting */ Filters.bw_lpc(gamma1, interp_lpc, bw_lpc1, lpcSize); if (gamma2>=0) Filters.bw_lpc(gamma2, interp_lpc, bw_lpc2, lpcSize); else { bw_lpc2[0]=1; bw_lpc2[1]=-preemph; for (i=2;i<=lpcSize;i++) bw_lpc2[i]=0; } /* Compute impulse response of A(z/g1) / ( A(z)*A(z/g2) )*/ for (i=0;i<subframeSize;i++) excBuf[exc+i]=0; excBuf[exc]=1; Filters.syn_percep_zero(excBuf, exc, interp_qlpc, bw_lpc1, bw_lpc2, syn_resp, subframeSize, lpcSize); /* Reset excitation */ for (i=0;i<subframeSize;i++) excBuf[exc+i]=0; for (i=0;i<subframeSize;i++) exc2Buf[exc2+i]=0; /* Compute zero response of A(z/g1) / ( A(z/g2) * A(z) ) */ for (i=0;i<lpcSize;i++) mem[i]=mem_sp[i]; Filters.iir_mem2(excBuf, exc, interp_qlpc, excBuf, exc, subframeSize, lpcSize, mem); for (i=0;i<lpcSize;i++) mem[i]=mem_sw[i]; Filters.filter_mem2(excBuf, exc, bw_lpc1, bw_lpc2, res, 0, subframeSize, lpcSize, mem, 0); /* Compute weighted signal */ for (i=0;i<lpcSize;i++) mem[i]=mem_sw[i]; Filters.filter_mem2(frmBuf, sp, bw_lpc1, bw_lpc2, swBuf, sw, subframeSize, lpcSize, mem, 0); /* Compute target signal */ for (i=0;i<subframeSize;i++) target[i]=swBuf[sw+i]-res[i]; for (i=0;i<subframeSize;i++) excBuf[exc+i]=exc2Buf[exc2+i]=0; /* If we have a long-term predictor (otherwise, something's wrong) */// if (submodes[submodeID].ltp.quant)// { int pit_min, pit_max; /* Long-term prediction */ if (submodes[submodeID].lbr_pitch != -1) { /* Low bit-rate pitch handling */ int margin; margin = submodes[submodeID].lbr_pitch; if (margin != 0) { if (ol_pitch < min_pitch+margin-1) ol_pitch=min_pitch+margin-1; if (ol_pitch > max_pitch-margin) ol_pitch=max_pitch-margin; pit_min = ol_pitch-margin+1; pit_max = ol_pitch+margin; } else { pit_min=pit_max=ol_pitch; } } else { pit_min = min_pitch; pit_max = max_pitch; } /* Force pitch to use only the current frame if needed */ if (bounded_pitch != 0 && pit_max>offset) pit_max=offset; /* Perform pitch search */ pitchval = submodes[submodeID].ltp.quant(target, swBuf, sw, interp_qlpc, bw_lpc1, bw_lpc2, excBuf, exc, pit_min, pit_max, ol_pitch_coef, lpcSize, subframeSize, bits, exc2Buf, exc2, syn_resp, complexity); pitch[sub]=pitchval;// } else {// speex_error ("No pitch prediction, what's wrong");// } /* Update target for adaptive codebook contribution */ Filters.syn_percep_zero(excBuf, exc, interp_qlpc, bw_lpc1, bw_lpc2, res, subframeSize, lpcSize); for (i=0;i<subframeSize;i++) target[i]-=res[i]; /* Quantization of innovation */ { int innovptr; float ener=0, ener_1; innovptr = sub*subframeSize; for (i=0;i<subframeSize;i++) innov[innovptr+i]=0; Filters.residue_percep_zero(target, 0, interp_qlpc, bw_lpc1, bw_lpc2, buf2, subframeSize, lpcSize); for (i=0;i<subframeSize;i++) ener+=buf2[i]*buf2[i]; ener=(float)Math.sqrt(.1f+ener/subframeSize); /*for (i=0;i<subframeSize;i++) System.out.print(buf2[i]/ener + "\t"); */ ener /= ol_gain; /* Calculate gain correction for the sub-frame (if any) */ if (submodes[submodeID].have_subframe_gain != 0) { int qe; ener=(float)Math.log(ener); if (submodes[submodeID].have_subframe_gain==3) { qe = VQ.index(ener, exc_gain_quant_scal3, 8); bits.pack(qe, 3); ener=exc_gain_quant_scal3[qe]; } else { qe = VQ.index(ener, exc_gain_quant_scal1, 2); bits.pack(qe, 1); ener=exc_gain_quant_scal1[qe]; } ener=(float)Math.exp(ener); } else { ener=1; } ener*=ol_gain; /*System.out.println(ener + " " + ol_gain);*/ ener_1 = 1/ener; /* Normalize innovation */ for (i=0;i<subframeSize;i++) target[i]*=ener_1; /* Quantize innovation */// if (submodes[submodeID].innovation != null)// { /* Codebook search */ submodes[submodeID].innovation.quant(target, interp_qlpc, bw_lpc1, bw_lpc2, lpcSize, subframeSize, innov, innovptr, syn_resp, bits, complexity); /* De-normalize innovation and update excitation */ for (i=0;i<subframeSize;i++) innov[innovptr+i]*=ener; for (i=0;i<subframeSize;i++) excBuf[exc+i] += innov[innovptr+i];// } else {// speex_error("No fixed codebook");// } /* In some (rare) modes, we do a second search (more bits) to reduce noise even more */ if (submodes[submodeID].double_codebook != 0) { float[] innov2 = new float[subframeSize];// for (i=0;i<subframeSize;i++)// innov2[i]=0; for (i=0;i<subframeSize;i++) target[i]*=2.2; submodes[submodeID].innovation.quant(target, interp_qlpc, bw_lpc1, bw_lpc2, lpcSize, subframeSize, innov2, 0, syn_resp, bits, complexity); for (i=0;i<subframeSize;i++) innov2[i]*=ener*(1/2.2); for (i=0;i<subframeSize;i++) excBuf[exc+i] += innov2[i]; } for (i=0;i<subframeSize;i++) target[i]*=ener; } /*Keep the previous memory*/ for (i=0;i<lpcSize;i++) mem[i]=mem_sp[i]; /* Final signal synthesis from excitation */ Filters.iir_mem2(excBuf, exc, interp_qlpc, frmBuf, sp, subframeSize, lpcSize, mem_sp); /* Compute weighted signal again, from synthesized speech (not sure it's the right thing) */ Filters.filter_mem2(frmBuf, sp, bw_lpc1, bw_lpc2, swBuf, sw, subframeSize, lpcSize, mem_sw, 0); for (i=0;i<subframeSize;i++) exc2Buf[exc2+i]=excBuf[exc+i]; } /* Store the LSPs for interpolation in the next frame */ if (submodeID>=1) { for (i=0;i<lpcSize;i++) old_lsp[i] = lsp[i]; for (i=0;i<lpcSize;i++) old_qlsp[i] = qlsp[i]; } if (submodeID==1) { if (dtx_count != 0) { bits.pack(15, 4); } else { bits.pack(0, 4); } } /* The next frame will not be the first (Duh!) */ first = 0; { float ener=0, err=0; float snr; for (i=0;i<frameSize;i++) { ener+=frmBuf[frmIdx+i]*frmBuf[frmIdx+i]; err += (frmBuf[frmIdx+i]-orig[i])*(frmBuf[frmIdx+i]-orig[i]); } snr = (float) (10*Math.log((ener+1)/(err+1))); /*System.out.println("Frame result: SNR="+snr+" E="+ener+" Err="+err+"\r\n");*/ } /* Replace input by synthesized speech */ in[0] = frmBuf[frmIdx] + preemph*pre_mem2; for (i=1;i<frameSize;i++) in[i]=frmBuf[frmIdx+i] + preemph*in[i-1]; pre_mem2=in[frameSize-1]; if (submodes[submodeID].innovation instanceof NoiseSearch || submodeID==0) bounded_pitch = 1; else bounded_pitch = 0; return 1; }
6221 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6221/81112208859292bc5ef5f9b0033ab2ea6dab38c0/NbEncoder.java/buggy/main/trunk/codec/src/main/java/org/xiph/speex/NbEncoder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 2017, 12, 6385, 18690, 4125, 16, 727, 1431, 8526, 316, 13, 225, 288, 565, 509, 277, 31, 565, 1431, 8526, 400, 16, 1018, 16, 1663, 31, 565, 1431, 8526, 6194, 67, 12243, 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, 282, 1071, 509, 2017, 12, 6385, 18690, 4125, 16, 727, 1431, 8526, 316, 13, 225, 288, 565, 509, 277, 31, 565, 1431, 8526, 400, 16, 1018, 16, 1663, 31, 565, 1431, 8526, 6194, 67, 12243, 31, ...
public void endElement(String uri, String localName, String qName) throws SAXException {
public void endElement(String uri, String localName, String qName) {
public void endElement(String uri, String localName, String qName) throws SAXException { if ("ERROR".equals(name)) { LOG.error("Unable to retrieve pubmed record: " + characters); } else if ("Id".equals(name)) { publication = itemFactory.makeItemForClass(TARGET_NS + "Publication"); toStore.add(publication); publication.setAttribute("pubMedId", characters.toString()); } else if ("PubDate".equals(name)) { String year = characters.toString().split(" ")[0]; try { Integer.parseInt(year); publication.setAttribute("year", year); } catch (NumberFormatException e) { LOG.warn("Publication: " + publication + " has a year that cannot be parsed" + " to an Integer: " + year); } } else if ("Source".equals(name)) { publication.setAttribute("journal", characters.toString()); } else if ("Title".equals(name)) { publication.setAttribute("title", characters.toString()); } else if ("Volume".equals(name)) { publication.setAttribute("volume", characters.toString()); } else if ("Issue".equals(name)) { publication.setAttribute("issue", characters.toString()); } else if ("Pages".equals(name)) { publication.setAttribute("pages", characters.toString()); } else if ("Author".equals(name)) { Item author = itemFactory.makeItemForClass(TARGET_NS + "Author"); toStore.add(author); String authorString = characters.toString(); author.setAttribute("name", authorString); author.addToCollection("publications", publication); publication.addToCollection("authors", author); if (!publication.hasAttribute("firstAuthor")) { publication.setAttribute("firstAuthor", authorString); } } name = null; }
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/bfb2e598221e0f266af5d15cdf8975e288e0acf8/UpdatePublications.java/clean/bio/postprocess/main/src/org/intermine/bio/postprocess/UpdatePublications.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 14840, 12, 780, 2003, 16, 514, 11927, 16, 514, 22914, 13, 288, 5411, 309, 7566, 3589, 9654, 14963, 12, 529, 3719, 288, 7734, 2018, 18, 1636, 2932, 3370, 358, 4614, 5634, 2937, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 14840, 12, 780, 2003, 16, 514, 11927, 16, 514, 22914, 13, 288, 5411, 309, 7566, 3589, 9654, 14963, 12, 529, 3719, 288, 7734, 2018, 18, 1636, 2932, 3370, 358, 4614, 5634, 2937, ...
} if (isDeletedFromEditor((ISourceReference)elem))
} if (elem instanceof IMember){ /* feature in jdt core - initializers from class files are not binary but have no cus * see bug 37199 * we just say 'no' to them */ IMember member= (IMember)elem; if (! member.isBinary() && SourceReferenceUtil.getCompilationUnit(member) == null) return false; } if (isDeletedFromEditor((ISourceReference)elem))
protected boolean canWorkOn(Object elem) throws JavaModelException{ if (elem == null) return false; if (! (elem instanceof ISourceReference)) return false; if (! (elem instanceof IJavaElement)) return false; if (elem instanceof IClassFile) return false; if (elem instanceof ICompilationUnit) return false; if (elem instanceof IMember){ IMember member= (IMember)elem; if (member.isBinary() && (member.getSourceRange() == null || fgUnknownRange.equals(member.getSourceRange()))) return false; } if (isDeletedFromEditor((ISourceReference)elem)) return false; if (elem instanceof IMember) //binary excluded before return true; if (elem instanceof IImportContainer) return true; if (elem instanceof IImportDeclaration) return true; if (elem instanceof IPackageDeclaration) return true; //we never get here normally return false; }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/4a735ace0840dea91f9043c758cfb8ae7504b758/SourceReferenceAction.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/SourceReferenceAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1250, 848, 2421, 1398, 12, 921, 3659, 13, 1216, 5110, 1488, 503, 95, 202, 202, 430, 261, 10037, 422, 446, 13, 1082, 202, 2463, 629, 31, 6862, 202, 430, 16051, 261, 10037, 127...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1250, 848, 2421, 1398, 12, 921, 3659, 13, 1216, 5110, 1488, 503, 95, 202, 202, 430, 261, 10037, 422, 446, 13, 1082, 202, 2463, 629, 31, 6862, 202, 430, 16051, 261, 10037, 127...
assertObject( handle, handle.getObject(), propagationContext, workingMemory );
workingMemory.queueWorkingMemoryAction( workingMemory.new WorkingMemoryReteAssertAction( handle, false, true, null, null ) );
public WorkingMemory newWorkingMemory(final boolean keepReference) { final ReteooWorkingMemory workingMemory = new ReteooWorkingMemory( this.workingMemoryCounter++, this ); super.addWorkingMemory( workingMemory, keepReference ); final InitialFactHandle handle = new InitialFactHandle( workingMemory.getFactHandleFactory().newFactHandle( new Serializable() {} ) ); final PropagationContext propagationContext = new PropagationContextImpl( workingMemory.getNextPropagationIdCounter(), PropagationContext.ASSERTION, null, null ); assertObject( handle, handle.getObject(), propagationContext, workingMemory ); return workingMemory; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/86cff4d74a04222d865bf5eeac956f1056a94dab/ReteooRuleBase.java/clean/drools-core/src/main/java/org/drools/reteoo/ReteooRuleBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 22732, 6031, 394, 14836, 6031, 12, 6385, 1250, 3455, 2404, 13, 288, 3639, 727, 17100, 4361, 83, 14836, 6031, 5960, 6031, 273, 394, 17100, 4361, 83, 14836, 6031, 12, 333, 18, 20478, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22732, 6031, 394, 14836, 6031, 12, 6385, 1250, 3455, 2404, 13, 288, 3639, 727, 17100, 4361, 83, 14836, 6031, 5960, 6031, 273, 394, 17100, 4361, 83, 14836, 6031, 12, 333, 18, 20478, ...
{ String s = getString(columnIndex); if (s != null) { try { return Integer.parseInt(s); } catch (NumberFormatException e) { throw new SQLException ("Bad Integer Form: " + s); } } return 0; }
{ String s = getString(columnIndex); if (s != null) { try { return Integer.parseInt(s); } catch (NumberFormatException e) { throw new SQLException ("Bad Integer Form: " + s); } } return 0; }
public int getInt(int columnIndex) throws SQLException { String s = getString(columnIndex); if (s != null) { try { return Integer.parseInt(s); } catch (NumberFormatException e) { throw new SQLException ("Bad Integer Form: " + s); } } return 0; // SQL NULL }
45454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45454/6a061da272f04e1463864065f87f1f3fd61d6162/ResultSet.java/buggy/src/interfaces/jdbc/postgresql/ResultSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 8145, 12, 474, 14882, 13, 1216, 6483, 202, 95, 202, 202, 780, 272, 273, 4997, 12, 2827, 1016, 1769, 202, 202, 430, 261, 87, 480, 446, 13, 202, 202, 95, 1082, 202, 698, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 8145, 12, 474, 14882, 13, 1216, 6483, 202, 95, 202, 202, 780, 272, 273, 4997, 12, 2827, 1016, 1769, 202, 202, 430, 261, 87, 480, 446, 13, 202, 202, 95, 1082, 202, 698, ...
terminate();
terminate();
public void start() { if (connectDebugger(true) != RemotePort.mWaitOK) terminate(); }
48756 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48756/3c3802a2d729ade92bfe215f545aff7a4fc13839/DebugTarget.java/clean/org.epic.debug/src/org/epic/debug/DebugTarget.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 787, 1435, 202, 95, 202, 202, 430, 261, 3612, 24113, 12, 3767, 13, 480, 6304, 2617, 18, 81, 5480, 3141, 13, 6862, 202, 30017, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 787, 1435, 202, 95, 202, 202, 430, 261, 3612, 24113, 12, 3767, 13, 480, 6304, 2617, 18, 81, 5480, 3141, 13, 6862, 202, 30017, 5621, 202, 97, 2, -100, -100, -100, -100, ...
if (inProgress == true) {
last = lastEdit();
public boolean addEdit(UndoableEdit anEdit) { // Variables UndoableEdit lastEdit; if (inProgress == true) { // Get Last Edit lastEdit = lastEdit(); // Check for null if (lastEdit != null) { if (lastEdit.addEdit(anEdit) == false) { if (lastEdit.replaceEdit(anEdit) == false) { edits.add(anEdit); } } } // if: lastEdit return true; } else { return false; } } // addEdit()
1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/1a56510a6b5772240a0ed85a7518db15a15edb8a/CompoundEdit.java/buggy/libjava/javax/swing/undo/CompoundEdit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 527, 4666, 12, 31224, 429, 4666, 392, 4666, 13, 288, 202, 202, 759, 23536, 202, 202, 31224, 429, 4666, 202, 2722, 4666, 31, 202, 202, 430, 261, 267, 5491, 422, 638, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 527, 4666, 12, 31224, 429, 4666, 392, 4666, 13, 288, 202, 202, 759, 23536, 202, 202, 31224, 429, 4666, 202, 2722, 4666, 31, 202, 202, 430, 261, 267, 5491, 422, 638, 13, ...
return xsltObj.toString(); } else if(javaClass.isPrimitive()) { XString xstr = new XString(xsltObj.toString()); double num = xstr.num(); return convertDoubleToNumber(num, javaClass); } else if(javaClass == java.lang.Class.class) { return xsltObj.getClass();
if(javaClass == java.lang.String.class) { return xsltObj.toString(); } else if(javaClass.isPrimitive()) { XString xstr = new XString(xsltObj.toString()); double num = xstr.num(); return convertDoubleToNumber(num, javaClass); } else if(javaClass == java.lang.Class.class) { return xsltObj.getClass(); } else { return xsltObj; }
static Object convert(Object xsltObj, Class javaClass) throws javax.xml.transform.TransformerException { if(xsltObj instanceof XObject) { XObject xobj = ((XObject)xsltObj); int xsltClassType = xobj.getType(); switch(xsltClassType) { case XObject.CLASS_NULL: return null; case XObject.CLASS_BOOLEAN: { if(javaClass == java.lang.String.class) return xobj.str(); else return new Boolean(xobj.bool()); } // break; Unreachable case XObject.CLASS_NUMBER: { if(javaClass == java.lang.String.class) return xobj.str(); else if(javaClass == Boolean.TYPE) return new Boolean(xobj.bool()); else { return convertDoubleToNumber(xobj.num(), javaClass); } } // break; Unreachable case XObject.CLASS_STRING: { if((javaClass == java.lang.String.class) || (javaClass == java.lang.Object.class)) return xobj.str(); else if(javaClass == Character.TYPE) { String str = xobj.str(); if(str.length() > 0) return new Character(str.charAt(0)); else return null; // ?? } else if(javaClass == Boolean.TYPE) return new Boolean(xobj.bool()); else { return convertDoubleToNumber(xobj.num(), javaClass); } } // break; Unreachable case XObject.CLASS_RTREEFRAG: { // GLP: I don't see the reason for the isAssignableFrom call // instead of an == test as is used everywhere else. // Besides, if the javaClass is a subclass of NodeIterator // the condition will be true and we'll create a NodeIterator // which may not match the javaClass, causing a RuntimeException. // if((NodeIterator.class.isAssignableFrom(javaClass)) || if ( (javaClass == NodeIterator.class) || (javaClass == java.lang.Object.class) ) { return ((XRTreeFrag) xobj).asNodeIterator(); } else if (javaClass == NodeList.class) { return ((XRTreeFrag) xobj).convertToNodeset(); } // Same comment as above // else if(Node.class.isAssignableFrom(javaClass)) else if(javaClass == Node.class) { return xobj.rtree().getFirstChild(); } else if(javaClass == java.lang.String.class) { return xobj.str(); } else if(javaClass == Boolean.TYPE) { return new Boolean(xobj.bool()); } else if(javaClass.isPrimitive()) { return convertDoubleToNumber(xobj.num(), javaClass); } else { Node child = xobj.rtree().getFirstChild(); if(javaClass.isAssignableFrom(child.getClass())) return child; else return null; } } // break; Unreachable case XObject.CLASS_NODESET: { // GLP: I don't see the reason for the isAssignableFrom call // instead of an == test as is used everywhere else. // Besides, if the javaClass is a subclass of NodeIterator // the condition will be true and we'll create a NodeIterator // which may not match the javaClass, causing a RuntimeException. // if((NodeIterator.class.isAssignableFrom(javaClass)) || if ( (javaClass == NodeIterator.class) || (javaClass == java.lang.Object.class) ) { return xobj.nodeset(); } // Same comment as above // else if(NodeList.class.isAssignableFrom(javaClass)) else if(javaClass == NodeList.class) { return xobj.mutableNodeset(); } // Same comment as above // else if(Node.class.isAssignableFrom(javaClass)) else if(javaClass == Node.class) { // Xalan ensures that nodeset() always returns an // iterator positioned at the beginning. NodeIterator ni = xobj.nodeset(); return ni.nextNode(); // may be null. } else if(javaClass == java.lang.String.class) { return xobj.str(); } else if(javaClass == Boolean.TYPE) { return new Boolean(xobj.bool()); } else if(javaClass.isPrimitive()) { return convertDoubleToNumber(xobj.num(), javaClass); } else { Node child = xobj.nodeset().nextNode(); if(javaClass.isAssignableFrom(child.getClass())) return child; else return null; } } // break; Unreachable // No default:, fall-through on purpose } // end switch xsltObj = xobj.object(); } // end if if(xsltObj instanceof XObject) // At this point, we have a raw java object. if(javaClass == java.lang.String.class) { return xsltObj.toString(); } else if(javaClass.isPrimitive()) { // Assume a number conversion XString xstr = new XString(xsltObj.toString()); double num = xstr.num(); return convertDoubleToNumber(num, javaClass); } else if(javaClass == java.lang.Class.class) { return xsltObj.getClass(); } else { // Just pass the object directly, and hope for the best. return xsltObj; } }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/627db9799eee023955b11b6b1e6d253405940660/MethodResolver.java/buggy/src/org/apache/xalan/extensions/MethodResolver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 1033, 1765, 12, 921, 31399, 2675, 16, 1659, 2252, 797, 13, 565, 1216, 6863, 18, 2902, 18, 6547, 18, 8319, 503, 225, 288, 565, 309, 12, 92, 14414, 2675, 1276, 1139, 921, 13, 565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 1033, 1765, 12, 921, 31399, 2675, 16, 1659, 2252, 797, 13, 565, 1216, 6863, 18, 2902, 18, 6547, 18, 8319, 503, 225, 288, 565, 309, 12, 92, 14414, 2675, 1276, 1139, 921, 13, 565, ...
count = ScriptRuntime.toInteger(args[1]); if (count < 0)
double dcount = ScriptRuntime.toInteger(args[1]); if (dcount < 0) {
private static Object jsFunction_splice(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { /* create an empty Array to return. */ scope = getTopLevelScope(scope); Object result = ScriptRuntime.newObject(cx, scope, "Array", null); int argc = args.length; if (argc == 0) return result; double length = getLengthProperty(thisObj); /* Convert the first argument into a starting index. */ double begin = ScriptRuntime.toInteger(args[0]); double end; double delta; double count; if (begin < 0) { begin += length; if (begin < 0) begin = 0; } else if (begin > length) { begin = length; } argc--; /* Convert the second argument from a count into a fencepost index. */ delta = length - begin; if (args.length == 1) { count = delta; end = length; } else { count = ScriptRuntime.toInteger(args[1]); if (count < 0) count = 0; else if (count > delta) count = delta; end = begin + count; argc--; } long lbegin = (long)begin; long lend = (long)end; /* If there are elements to remove, put them into the return value. */ if (count > 0) { if (count == 1 && (cx.getLanguageVersion() == Context.VERSION_1_2)) { /* * JS lacks "list context", whereby in Perl one turns the * single scalar that's spliced out into an array just by * assigning it to @single instead of $single, or by using it * as Perl push's first argument, for instance. * * JS1.2 emulated Perl too closely and returned a non-Array for * the single-splice-out case, requiring callers to test and * wrap in [] if necessary. So JS1.3, default, and other * versions all return an array of length 1 for uniformity. */ result = getElem(thisObj, lbegin); } else { for (long last = lbegin; last < lend; last++) { Scriptable resultArray = (Scriptable)result; Object temp = getElem(thisObj, last); setElem(resultArray, last - lbegin, temp); } } } else if (count == 0 && cx.getLanguageVersion() == Context.VERSION_1_2) { /* Emulate C JS1.2; if no elements are removed, return undefined. */ result = Context.getUndefinedValue(); } /* Find the direction (up or down) to copy and make way for argv. */ delta = argc - count; if (delta > 0) { for (long last = (long)length - 1; last >= lend; last--) { Object temp = getElem(thisObj, last); setElem(thisObj, last + (long)delta, temp); } } else if (delta < 0) { for (long last = lend; last < length; last++) { Object temp = getElem(thisObj, last); setElem(thisObj, last + (long)delta, temp); } } /* Copy from argv into the hole to complete the splice. */ int argoffset = args.length - argc; for (int i = 0; i < argc; i++) { setElem(thisObj, lbegin + i, args[i + argoffset]); } /* Update length in case we deleted elements from the end. */ ScriptRuntime.setProp(thisObj, "length", new Double(length + delta), thisObj); return result; }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/5f6a565762eea9efee2aee1297e0f938ac7edf63/NativeArray.java/clean/js/rhino/src/org/mozilla/javascript/NativeArray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1033, 3828, 2083, 67, 19535, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 5411, 22780, 15261, 16, 1033, 8526, 833, 13, 565, 288, 3639, 1748, 752, 392, 1008, 1510, 358, 327, 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, 3238, 760, 1033, 3828, 2083, 67, 19535, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 5411, 22780, 15261, 16, 1033, 8526, 833, 13, 565, 288, 3639, 1748, 752, 392, 1008, 1510, 358, 327, 18, ...
if (isTopLevel) for (int i = 0; i < typeDeclarations.length ; i++) trash = typeDeclarations[i].accept(this);
if (TopLevelDeclaration != null) trash = TopLevelDeclaration.accept(this);
public Object visitCompilationUnit(JCompilationUnit self, JPackageName packageName, JPackageImport[] importedPackages, JClassImport[] importedClasses, JTypeDeclaration[] typeDeclarations) { /* The beginning of the visit! */ //install a try to catch all runtime errors and report the line //number try { blockStart("CompilationUnit", self); boolean isTopLevel = false; /*if (packageName.getName().length() > 0) packageName.accept(this);*/ /*for (int i = 0; i < importedPackages.length ; i++) importedPackages[i].accept(this);*/ /* for (int i = 0; i < importedClasses.length ; i++) importedClasses[i].accept(this);*/ //check to see if this is the top level compilation unit //by checking all of the class declarations for (int i = 0; i < typeDeclarations.length ; i++) { if (typeDeclarations[i] instanceof JClassDeclaration) { JClassDeclaration decl = (JClassDeclaration) typeDeclarations[i]; if (decl.getSourceClass().getSuperClass(). getIdent().equals("StreamIt")) { if (isTopLevel) at.dms.util.Utils.fail(printLine(decl) + "Top level stream already twice."); isTopLevel = true; } } } //visit the file only if it is the top level!!!! if (isTopLevel) for (int i = 0; i < typeDeclarations.length ; i++) trash = typeDeclarations[i].accept(this); /* the end of the visit */ } catch (Throwable t) { System.err.println("Error at or around line " + lineNumber); System.err.println("Stack Trace:\n"); t.printStackTrace(); System.exit(-1); } return topLevel; }
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/a62974f972e075f9eb88fe8fe9ba988c82ef88e3/Kopi2SIR.java/clean/streams/src/at/dms/kjc/Kopi2SIR.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 3757, 19184, 2802, 12, 46, 19184, 2802, 365, 16, 19694, 804, 18308, 9929, 16, 19694, 804, 2261, 5010, 8526, 9101, 11425, 16, 19694, 804, 797, 5010, 8526, 9101, 4818, 16, 19694, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 3757, 19184, 2802, 12, 46, 19184, 2802, 365, 16, 19694, 804, 18308, 9929, 16, 19694, 804, 2261, 5010, 8526, 9101, 11425, 16, 19694, 804, 797, 5010, 8526, 9101, 4818, 16, 19694, ...
public void extra_statement() throws RecognitionException { try { // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:401:9: ( ( import_statement | global | function ) ) // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:401:9: ( import_statement | global | function ) { // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:401:9: ( import_statement | global | function ) int alt24=3; switch ( input.LA(1) ) { case 17: alt24=1; break; case 19: alt24=2; break; case 20: alt24=3; break; default: NoViableAltException nvae = new NoViableAltException("401:9: ( import_statement | global | function )", 24, 0, input); throw nvae; } switch (alt24) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:401:17: import_statement { following.push(FOLLOW_import_statement_in_extra_statement720); import_statement(); following.pop(); } break; case 2 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:402:17: global { following.push(FOLLOW_global_in_extra_statement725); global(); following.pop(); } break; case 3 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:403:17: function { following.push(FOLLOW_function_in_extra_statement730); function(); following.pop(); } break; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/ca87e40b5754cd366785b207f8cd109258275f53/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2870, 67, 11516, 1435, 1216, 9539, 288, 6647, 775, 288, 5411, 368, 342, 6588, 19, 70, 947, 19, 17300, 87, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2870, 67, 11516, 1435, 1216, 9539, 288, 6647, 775, 288, 5411, 368, 342, 6588, 19, 70, 947, 19, 17300, 87, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, ...
if (canceled[0] != null) {
if (canceled[0] != null) {
public void runInUI(final IRunnableContext context, final IRunnableWithProgress runnable, final ISchedulingRule rule) throws InvocationTargetException, InterruptedException { final IJobManager manager = Platform.getJobManager(); final InvocationTargetException[] exception = new InvocationTargetException[1]; final InterruptedException[] canceled = new InterruptedException[1]; BusyIndicator.showWhile(Display.getDefault(), new Runnable() { public void run() { try { manager.beginRule(rule, ((Workbench) PlatformUI.getWorkbench()) .isStarting() ? new NullProgressMonitor() : getEventLoopMonitor()); context.run(false, false, runnable); } catch (InvocationTargetException e) { exception[0] = e; } catch (InterruptedException e) { canceled[0] = e; } catch (OperationCanceledException e) { canceled[0] = new InterruptedException(e.getMessage()); } finally { manager.endRule(rule); } } /** * Get a progress monitor that forwards to an event loop monitor. * Override #setBlocked() so that we always open the blocked dialog. * * @return the monitor on the event loop */ private IProgressMonitor getEventLoopMonitor() { return new EventLoopProgressMonitor(new NullProgressMonitor()) { /* * (non-Javadoc) * * @see org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor#setBlocked(org.eclipse.core.runtime.IStatus) */ public void setBlocked(IStatus reason) { // Set a shell to open with as we want to create this // even if there is a modal shell. Dialog.getBlockedHandler().showBlocked( ProgressManagerUtil.getDefaultParent(), this, reason, getTaskName()); } }; } }); if (exception[0] != null) { throw exception[0]; } if (canceled[0] != null) { throw canceled[0]; } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/82e45bfb168fa5c37a8ced4976d2cc8fef6ce0f2/ProgressManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 382, 5370, 12, 6385, 467, 20013, 1042, 819, 16, 1082, 202, 6385, 467, 20013, 1190, 5491, 14685, 16, 727, 4437, 13252, 2175, 1720, 13, 1082, 202, 15069, 15342, 16, 755...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 382, 5370, 12, 6385, 467, 20013, 1042, 819, 16, 1082, 202, 6385, 467, 20013, 1190, 5491, 14685, 16, 727, 4437, 13252, 2175, 1720, 13, 1082, 202, 15069, 15342, 16, 755...
SportletLog log = (SportletLog)logMap.get(clazz);
SportletLog log = (SportletLog) logMap.get(clazz);
public static synchronized PortletLog getInstance(Class clazz) { SportletLog log = (SportletLog)logMap.get(clazz); if (log != null) return log; log = new SportletLog(clazz); logMap.put(clazz, new SportletLog(clazz)); return log; }
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/7435ddafff452aa8d099de2180b3d30143fa29c5/SportletLog.java/buggy/src/org/gridlab/gridsphere/portlet/impl/SportletLog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 3852, 21305, 1343, 3694, 12, 797, 4003, 13, 288, 3639, 348, 655, 1810, 1343, 613, 273, 261, 55, 655, 1810, 1343, 13, 613, 863, 18, 588, 12, 830, 3638, 1769, 3639, 309, 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, 377, 1071, 760, 3852, 21305, 1343, 3694, 12, 797, 4003, 13, 288, 3639, 348, 655, 1810, 1343, 613, 273, 261, 55, 655, 1810, 1343, 13, 613, 863, 18, 588, 12, 830, 3638, 1769, 3639, 309, 261, ...
public Par Decs() throws Exception{ /* * Decs ::= Decs; Dec * Decso.pend = Decs1.pend ??? Dec.pend ??? (si Dec.props.clase = tipo entonces {Dec.id} si no ??? ) * * Decs ::= Dec * Decs.pend = Dec.pend ??? (si Dec.props.clase = tipo entonces {Dec.id} si no ??????) */ Par a = new Par(); System.out.println("llamo a dec"); Par atrDeDec = Dec(); System.out.println("vuevlo de dec"); TS.agnadeID(atrDeDec.getId(), atrDeDec.getProps(), atrDeDec.getClase(), atrDeDec.getDir()); TS.muestra(); //System.out.println(atrDeDec.getId()); //System.out.println(atrDeDec.getProps().getTipo()); dir = dir + atrDeDec.getProps().getTam(); //System.out.println(dir); if (atrDeDec.getProps().getTipo().equals("error")){ a.getProps().setTipo("error"); } Token tk = lexico.getNextToken(); if (tk.equals(new Token("#", Tipos.TKCUA))){ lexico.lexer(); //consumimos # return a; } else{ if (tk.equals(new Token(";", Tipos.TKPYCOMA))){ lexico.lexer(); //consumimos ; //System.out.println(""); System.out.println("llamo a decs"); Par atrDeDecs = Decs(); System.out.println("vuelvo de decs"); //TS.agnadeID(atrDeDecs.getId(), atrDeDecs.getProps(), atrDeDecs.getClase(), atrDeDecs.getDir()); //TS.muestra(); if (atrDeDecs.getProps().getTipo().equals("error")){ a.getProps().setTipo("error"); } return a; } else{ a.getProps().setTipo("error"); return a; } } }
10474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10474/f6dc44d80fd64451a5eb89c4413e42d14f2f424d/Sintactico.java/buggy/plg/procesador/Sintactico.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2280, 3416, 87, 1435, 1216, 1185, 95, 202, 20308, 202, 380, 3416, 87, 493, 33, 3416, 87, 31, 3416, 202, 380, 3416, 2048, 18, 1302, 273, 3416, 87, 21, 18, 1302, 5317, 35, 341...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2280, 3416, 87, 1435, 1216, 1185, 95, 202, 20308, 202, 380, 3416, 87, 493, 33, 3416, 87, 31, 3416, 202, 380, 3416, 2048, 18, 1302, 273, 3416, 87, 21, 18, 1302, 5317, 35, 341...
private void loadDataFromFile() throws IOException, SQLException { final InputStream is = openInputStream(); final InputStreamReader reader = new InputStreamReader(is); final BufferedReader bufferedReader = new BufferedReader(reader); final Pattern regex = Pattern.compile("INSERT INTO ([^ ]+)(.*)VALUES(.*)\\((.*)\\);"); String line; int lineNumber = 0; int tableRowCount = 0; String prevTable = "";
private void loadDataFromFile() throws Exception { InputStream is = openInputStream(); if (is == null) { throw new Exception("No data file to process"); } try { final InputStreamReader reader = new InputStreamReader(is); final BufferedReader bufferedReader = new BufferedReader(reader); final Pattern regex = Pattern.compile("INSERT INTO `([^ ]+)` \\((.*)\\) VALUES\\((.*)\\);"); String line; int lineNumber = 0; int tableRowCount = 0; String prevTable = ""; String quotedTableName = null; String quotedColumnNames = null; Column[] orderedColumns = null; String[] batch = new String[inputBatchSize]; int batchSize = 0; while ((line = bufferedReader.readLine()) != null) { ++lineNumber; if (line.startsWith("#")) { continue; } final Matcher matcher = regex.matcher(line); if (!matcher.matches()) { throw MondrianResource.instance().newInvalidInsertLine( new Integer(lineNumber), line); } String tableName = matcher.group(1); String columnNames = matcher.group(2); String values = matcher.group(3);
private void loadDataFromFile() throws IOException, SQLException { final InputStream is = openInputStream(); final InputStreamReader reader = new InputStreamReader(is); final BufferedReader bufferedReader = new BufferedReader(reader); final Pattern regex = Pattern.compile("INSERT INTO ([^ ]+)(.*)VALUES(.*)\\((.*)\\);"); String line; int lineNumber = 0; int tableRowCount = 0; String prevTable = ""; String[] batch = new String[inputBatchSize]; int batchSize = 0; while ((line = bufferedReader.readLine()) != null) { ++lineNumber; if (line.startsWith("#")) { continue; } // Split the up the line. For example, // INSERT INTO foo VALUES (1, 'bar'); // would yield // tableName = "foo" // values = "1, 'bar'" final Matcher matcher = regex.matcher(line); if (!matcher.matches()) { throw MondrianResource.instance().newInvalidInsertLine( new Integer(lineNumber), line); } final String tableName = matcher.group(1); // e.g. "foo" final String values = matcher.group(2); // e.g. "1, 'bar'" Util.discard(values); // Not needed now // If table just changed, flush the previous batch. if (!tableName.equals(prevTable)) { if (!prevTable.equals("")) { System.out.println("Table " + prevTable + ": loaded " + tableRowCount + " rows."); } tableRowCount = 0; writeBatch(batch, batchSize); batchSize = 0; prevTable = tableName; } // remove trailing ';' assert line.endsWith(";"); line = line.substring(0, line.length() - 1); // this database represents booleans as integers if (sqlQuery.isMySQL()) { line = line.replaceAll("false", "0") .replaceAll("true", "1"); } ++tableRowCount; batch[batchSize++] = line; if (batchSize >= inputBatchSize) { writeBatch(batch, batchSize); batchSize = 0; } } // Print summary of the final table. if (!prevTable.equals("")) { System.out.println("Table " + prevTable + ": loaded " + tableRowCount + " rows."); tableRowCount = 0; writeBatch(batch, batchSize); batchSize = 0; } }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/7a5a66ebc66d989ac82c2b6fd80bfc14c5531667/MondrianFoodMartLoader.java/buggy/testsrc/main/mondrian/test/loader/MondrianFoodMartLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 29422, 13087, 1435, 1216, 1860, 16, 6483, 288, 3639, 727, 5037, 353, 273, 1696, 4348, 5621, 3639, 727, 15322, 2949, 273, 394, 15322, 12, 291, 1769, 3639, 727, 10633, 11445, 2514,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29422, 13087, 1435, 1216, 1860, 16, 6483, 288, 3639, 727, 5037, 353, 273, 1696, 4348, 5621, 3639, 727, 15322, 2949, 273, 394, 15322, 12, 291, 1769, 3639, 727, 10633, 11445, 2514,...
ColorModel dstCM = getColorModel();
public WritableRaster copyData(WritableRaster wr) { // Get my source. CachableRed src = (CachableRed)getSources().get(0); Rectangle r = wr.getBounds(); r.x -= xinset; r.y -= yinset; r.width += 2*xinset; r.height += 2*yinset; // System.out.println("Gaussian GenR: " + wr); // System.out.println("SrcReq: " + r); ColorModel srcCM = src.getColorModel(); ColorModel dstCM = getColorModel(); WritableRaster tmpR1=null, tmpR2=null; tmpR1 = srcCM.createCompatibleWritableRaster(r.width, r.height); { WritableRaster fill; fill = tmpR1.createWritableTranslatedChild(r.x, r.y); src.copyData(fill); } if (srcCM.hasAlpha() && !srcCM.isAlphaPremultiplied()) GraphicsUtil.coerceData(tmpR1, srcCM, true); // For the blur box approx we can use dest as our intermediate // otherwise we let it default to null which means we create a new // one... // this lets the Vertical conv know how much is junk, so it // doesn't bother to convolve the top and bottom edges int skipX; // long t1 = System.currentTimeMillis(); if (xinset == 0) { skipX = 0; } else if (convOp[0] != null) { tmpR2 = getColorModel().createCompatibleWritableRaster (r.width, r.height); tmpR2 = convOp[0].filter(tmpR1, tmpR2); skipX = convOp[0].getKernel().getXOrigin(); // Swap them... WritableRaster tmp = tmpR1; tmpR1 = tmpR2; tmpR2 = tmp; } else { if ((dX&0x01) == 0){ tmpR1 = boxFilterH(tmpR1, tmpR1, 0, 0, dX, dX/2); tmpR1 = boxFilterH(tmpR1, tmpR1, dX/2, 0, dX, dX/2-1); tmpR1 = boxFilterH(tmpR1, tmpR1, dX-1, 0, dX+1, dX/2); skipX = dX-1 + dX/2; } else { tmpR1 = boxFilterH(tmpR1, tmpR1, 0, 0, dX, dX/2); tmpR1 = boxFilterH(tmpR1, tmpR1, dX/2, 0, dX, dX/2); tmpR1 = boxFilterH(tmpR1, tmpR1, dX-2, 0, dX, dX/2); skipX = dX-2 + dX/2; } } if (yinset == 0) { tmpR2 = tmpR1; } else if (convOp[1] != null) { if (tmpR2 == null) { tmpR2 = getColorModel().createCompatibleWritableRaster (r.width, r.height); } tmpR2 = convOp[1].filter(tmpR1, tmpR2); } else { if ((dY&0x01) == 0){ tmpR1 = boxFilterV(tmpR1, tmpR1, skipX, 0, dY, dY/2); tmpR1 = boxFilterV(tmpR1, tmpR1, skipX, dY/2, dY, dY/2-1); tmpR1 = boxFilterV(tmpR1, tmpR1, skipX, dY-1, dY+1, dY/2); } else { tmpR1 = boxFilterV(tmpR1, tmpR1, skipX, 0, dY, dY/2); tmpR1 = boxFilterV(tmpR1, tmpR1, skipX, dY/2, dY, dY/2); tmpR1 = boxFilterV(tmpR1, tmpR1, skipX, dY-2, dY, dY/2); } tmpR2 = tmpR1; } // long t2 = System.currentTimeMillis(); // System.out.println("Time: " + (t2-t1) + // (((convOp[0] != null) || (convOp[1] != null))? // " ConvOp":"")); // System.out.println("Rasters WR :" + wr.getBounds()); // System.out.println(" tmp:" + tmpR2.getBounds()); // System.out.println(" bounds:" + getBounds()); // System.out.println(" skipX:" + skipX + // " dx:" + dX + " Dy: " + dY); tmpR2 = tmpR2.createWritableTranslatedChild(r.x, r.y); GraphicsUtil.copyData(tmpR2, wr); return wr; }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/37794489f7dedd0c74c1b7ae67e92cf8d877b256/GaussianBlurRed8Bit.java/clean/sources/org/apache/batik/ext/awt/image/rendered/GaussianBlurRed8Bit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 14505, 18637, 1610, 751, 12, 12061, 18637, 12408, 13, 288, 3639, 368, 968, 3399, 1084, 18, 3639, 23782, 429, 3715, 1705, 273, 261, 11309, 429, 3715, 13, 588, 8628, 7675, 588, 12, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 14505, 18637, 1610, 751, 12, 12061, 18637, 12408, 13, 288, 3639, 368, 968, 3399, 1084, 18, 3639, 23782, 429, 3715, 1705, 273, 261, 11309, 429, 3715, 13, 588, 8628, 7675, 588, 12, 20...
new WriteCommandAction(selectedNode.getDomElement().getParent().getManager().getProject()) { protected void run(final Result result) throws Throwable {
final DomElement domElement = selectedNode.getDomElement(); new WriteCommandAction(domElement.getManager().getProject(), domElement.getXmlTag().getContainingFile()) { protected void run(final Result result) throws Throwable {
public void actionPerformed(AnActionEvent e, DomModelTreeView treeView) { if (treeView.getTree().getSelectedNode() instanceof BaseDomElementNode) { final BaseDomElementNode selectedNode = (BaseDomElementNode)treeView.getTree().getSelectedNode(); new WriteCommandAction(selectedNode.getDomElement().getParent().getManager().getProject()) { protected void run(final Result result) throws Throwable { selectedNode.getDomElement().undefine(); } }.execute(); } }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/543a6720cd446dc379bb0ee3e213c600fff9aac5/DeleteDomElement.java/clean/dom/impl/src/com/intellij/util/xml/tree/actions/DeleteDomElement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 26100, 12, 979, 1803, 1133, 425, 16, 12965, 1488, 2471, 1767, 2151, 1767, 13, 288, 1377, 309, 261, 3413, 1767, 18, 588, 2471, 7675, 588, 7416, 907, 1435, 1276, 3360, 8832, 1046...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26100, 12, 979, 1803, 1133, 425, 16, 12965, 1488, 2471, 1767, 2151, 1767, 13, 288, 1377, 309, 261, 3413, 1767, 18, 588, 2471, 7675, 588, 7416, 907, 1435, 1276, 3360, 8832, 1046...
Object oldValue= getValue();
Object oldValue= computeValue();
public void setValue(final Object value) { AsyncRunnable runnable = new AsyncRunnable(){ public void run(){ try { updating = true; if (attribute.equals(ViewersProperties.SINGLE_SELECTION)) { Object oldValue= getValue(); viewer.setSelection(value == null ? StructuredSelection.EMPTY : new StructuredSelection(value)); fireChangeEvent(ChangeEvent.CHANGE, oldValue, getValue()); } } finally { updating = false; } } }; runnable.runOn(viewer.getControl().getDisplay()); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/0761e1ecd3419699cb01bfda9e914b2a545d7fac/StructuredViewerUpdatableValue.java/clean/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/viewers/StructuredViewerUpdatableValue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 5524, 12, 6385, 1033, 460, 13, 288, 202, 202, 2771, 20013, 14685, 273, 394, 9672, 20013, 1435, 95, 1082, 202, 482, 918, 1086, 1435, 95, 9506, 202, 698, 288, 6862, 202, 55...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5524, 12, 6385, 1033, 460, 13, 288, 202, 202, 2771, 20013, 14685, 273, 394, 9672, 20013, 1435, 95, 1082, 202, 482, 918, 1086, 1435, 95, 9506, 202, 698, 288, 6862, 202, 55...
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...
Ring ring2 = new Ring();
Ring ring2 = builder.newRing();
public void testContains_Atom() { RingSet ringset = new RingSet(); Atom ring1Atom1 = new Atom("C"); // rather artificial molecule Atom ring1Atom2 = new Atom("C"); Atom sharedAtom1 = new Atom("C"); Atom sharedAtom2 = new Atom("C"); Atom ring2Atom1 = new Atom("C"); Atom ring2Atom2 = new Atom("C"); Bond ring1Bond1 = new Bond(ring1Atom1, ring1Atom2); Bond ring1Bond2 = new Bond(sharedAtom1, ring1Atom1); Bond ring1Bond3 = new Bond(sharedAtom2, ring1Atom2); Bond sharedBond = new Bond(sharedAtom1, sharedAtom2); Bond ring2Bond1 = new Bond(ring2Atom1, ring2Atom2); Bond ring2Bond2 = new Bond(sharedAtom1, ring2Atom1); Bond ring2Bond3 = new Bond(sharedAtom2, ring2Atom2); Ring ring1 = new Ring(); ring1.addAtom(ring1Atom1); ring1.addAtom(ring1Atom2); ring1.addAtom(sharedAtom1); ring1.addAtom(sharedAtom2); ring1.addBond(ring1Bond1); ring1.addBond(ring1Bond2); ring1.addBond(ring1Bond3); ring1.addBond(sharedBond); Ring ring2 = new Ring(); ring2.addAtom(ring2Atom1); ring2.addAtom(ring2Atom2); ring2.addAtom(sharedAtom1); ring2.addAtom(sharedAtom2); ring2.addBond(ring2Bond1); ring2.addBond(ring2Bond2); ring2.addBond(ring2Bond3); ring2.addBond(sharedBond); ringset.add(ring1); ringset.add(ring2); assertTrue(ringset.contains(ring1Atom1)); assertTrue(ringset.contains(ring1Atom2)); assertTrue(ringset.contains(sharedAtom1)); assertTrue(ringset.contains(sharedAtom2)); assertTrue(ringset.contains(ring2Atom1)); assertTrue(ringset.contains(ring2Atom2)); }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/67261c8143759a6ee4feb79dc1687d6dcfa25f40/RingSetTest.java/buggy/src/org/openscience/cdk/test/RingSetTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 10846, 67, 3641, 1435, 288, 3639, 25463, 694, 9221, 542, 273, 394, 25463, 694, 5621, 3639, 7149, 9221, 21, 3641, 21, 273, 394, 7149, 2932, 39, 8863, 368, 9178, 3688, 1507...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10846, 67, 3641, 1435, 288, 3639, 25463, 694, 9221, 542, 273, 394, 25463, 694, 5621, 3639, 7149, 9221, 21, 3641, 21, 273, 394, 7149, 2932, 39, 8863, 368, 9178, 3688, 1507...
return "java.lang.StringBuffer".equals(name)|| "java.lang.StringBuilder".equals(name);
return "java.lang.StringBuffer".equals(name) || "java.lang.StringBuilder".equals(name);
public static boolean isAppend(PsiMethodCallExpression call) { final PsiReferenceExpression methodExpression = call.getMethodExpression(); if(methodExpression == null){ return false; } final String callName = methodExpression.getReferenceName(); if(!"append".equals(callName)){ return false; } final PsiMethod method = call.resolveMethod(); if(method == null){ return false; } final PsiClass containingClass = method.getContainingClass(); if(containingClass == null){ return false; } final String name = containingClass.getQualifiedName(); return "java.lang.StringBuffer".equals(name)|| "java.lang.StringBuilder".equals(name); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/3837c95856454e21e9059f3aa91174a1e2c65526/AppendUtil.java/buggy/plugins/IntentionPowerPak/src/com/siyeh/ipp/concatenation/AppendUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 353, 5736, 12, 52, 7722, 12592, 2300, 745, 13, 565, 288, 3639, 727, 453, 7722, 2404, 2300, 707, 2300, 273, 7734, 745, 18, 588, 1305, 2300, 5621, 3639, 309, 12, 2039, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 353, 5736, 12, 52, 7722, 12592, 2300, 745, 13, 565, 288, 3639, 727, 453, 7722, 2404, 2300, 707, 2300, 273, 7734, 745, 18, 588, 1305, 2300, 5621, 3639, 309, 12, 2039, 23...
else if (sym.isModule()) { Symbol clasz = sym.moduleClass();
else if (sym.isModule())
private void putSymbol(Symbol sym) { if (putEntry(sym)) { if (debug) System.out.println("put " + sym); if (isLocal(sym)) { putEntry(sym.name); putSymbol(sym.isConstructor() ? sym.constructorClass() : sym.owner()); switch (sym.kind) { case TYPE: if (sym.isViewBounded()) putType(sym.vuBound()); else putType(sym.info()); putType(sym.loBound()); break; case ALIAS: putType(sym.info()); putSymbol(sym.allConstructors()); break; case CLASS: putType(sym.info()); putType(sym.typeOfThis()); putSymbol(sym.allConstructors()); for (Scope.SymbolIterator it = sym.members().iterator(); it.hasNext();) putSymbol(it.next()); break; case VAL: putType(sym.info()); if (sym.isConstructor() && sym == sym.constructorClass().allConstructors()) putSymbol(sym.constructorClass()); else if (sym.isModule()) { Symbol clasz = sym.moduleClass(); putSymbol(sym.moduleClass()); assert !modules.containsKey(clasz): Debug.show(sym); modules.put(clasz, sym); } break; default: throw new ApplicationError(); } } else if (sym.kind != NONE) { putEntry(sym.isModuleClass() || sym.isRoot() ? sym.name.toTermName() : sym.name); if (!sym.owner().isRoot()) putSymbol(sym.owner()); } } }
48012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48012/3ec2af254866c60389b3fd304c14d1137b9cf4c8/Pickle.java/clean/sources/scalac/symtab/classfile/Pickle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1378, 5335, 12, 5335, 5382, 13, 288, 202, 430, 261, 458, 1622, 12, 8117, 3719, 288, 202, 565, 309, 261, 4148, 13, 2332, 18, 659, 18, 8222, 2932, 458, 315, 397, 5382, 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, 918, 1378, 5335, 12, 5335, 5382, 13, 288, 202, 430, 261, 458, 1622, 12, 8117, 3719, 288, 202, 565, 309, 261, 4148, 13, 2332, 18, 659, 18, 8222, 2932, 458, 315, 397, 5382, 1769, ...
node.createPage();
createPage(node);
protected boolean showPage(IPreferenceNode node) { if (node == null) return false; // Create the page if nessessary if (node.getPage() == null) node.createPage(); if (node.getPage() == null) return false; IPreferencePage newPage = getPage(node); if (newPage == currentPage) return true; if (currentPage != null) { if (!currentPage.okToLeave()) return false; } IPreferencePage oldPage = currentPage; currentPage = newPage; // Set the new page's container currentPage.setContainer(this); // Ensure that the page control has been created // (this allows lazy page control creation) if (currentPage.getControl() == null) { final boolean[] failed = { false }; Platform.run(new ISafeRunnable() { public void handleException(Throwable e) { failed[0] = true; } public void run() { createPageControl(currentPage, pageContainer); } }); if (failed[0]) return false; // the page is responsible for ensuring the created control is // accessable // via getControl. Assert.isNotNull(currentPage.getControl()); } // Force calculation of the page's description label because // label can be wrapped. final Point[] size = new Point[1]; final Point failed = new Point(-1, -1); Platform.run(new ISafeRunnable() { public void handleException(Throwable e) { size[0] = failed; } public void run() { size[0] = currentPage.computeSize(); } }); if (size[0].equals(failed)) return false; Point contentSize = size[0]; // Do we need resizing. Computation not needed if the // first page is inserted since computing the dialog's // size is done by calling dialog.open(). // Also prevent auto resize if the user has manually resized Shell shell = getShell(); Point shellSize = shell.getSize(); if (oldPage != null) { Rectangle rect = pageContainer.getClientArea(); Point containerSize = new Point(rect.width, rect.height); int hdiff = contentSize.x - containerSize.x; int vdiff = contentSize.y - containerSize.y; if (hdiff > 0 || vdiff > 0) { if (shellSize.equals(lastShellSize)) { hdiff = Math.max(0, hdiff); vdiff = Math.max(0, vdiff); setShellSize(shellSize.x + hdiff, shellSize.y + vdiff); lastShellSize = shell.getSize(); if (currentPage.getControl().getSize().x == 0) currentPage.getControl().setSize(containerSize); } else { currentPage.setSize(containerSize); } } else if (hdiff < 0 || vdiff < 0) { currentPage.setSize(containerSize); } } // Ensure that all other pages are invisible // (including ones that triggered an exception during // their creation). Control[] children = pageContainer.getChildren(); Control currentControl = currentPage.getControl(); for (int i = 0; i < children.length; i++) { if (children[i] != currentControl) children[i].setVisible(false); } // Make the new page visible currentPage.setVisible(true); if (oldPage != null) oldPage.setVisible(false); // update the dialog controls update(); return true; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/b04822b19da25d2275db8f0e7c40d9d979503af4/PreferenceDialog.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1250, 2405, 1964, 12, 45, 9624, 907, 756, 13, 288, 202, 202, 430, 261, 2159, 422, 446, 13, 1082, 202, 2463, 629, 31, 202, 202, 759, 1788, 326, 1363, 309, 290, 403, 403, 814...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1250, 2405, 1964, 12, 45, 9624, 907, 756, 13, 288, 202, 202, 430, 261, 2159, 422, 446, 13, 1082, 202, 2463, 629, 31, 202, 202, 759, 1788, 326, 1363, 309, 290, 403, 403, 814...
EmailElementCache eecache = new EmailElementCache(); addEmails(m, eecache, Mime.parseAddressHeader(mm, "From"), EmailType.FROM); addEmails(m, eecache, Mime.parseAddressHeader(mm, "Reply-To"), EmailType.REPLY_TO); addEmails(m, eecache, Mime.parseAddressHeader(mm, "To"), EmailType.TO); addEmails(m, eecache, Mime.parseAddressHeader(mm, "Cc"), EmailType.CC); addEmails(m, eecache, Mime.parseAddressHeader(mm, "Bcc"), EmailType.BCC);
addEmails(m, Mime.parseAddressHeader(mm, "From"), EmailType.FROM); addEmails(m, Mime.parseAddressHeader(mm, "Reply-To"), EmailType.REPLY_TO); addEmails(m, Mime.parseAddressHeader(mm, "To"), EmailType.TO); addEmails(m, Mime.parseAddressHeader(mm, "Cc"), EmailType.CC); addEmails(m, Mime.parseAddressHeader(mm, "Bcc"), EmailType.BCC);
public static Element encodeMessageAsMP(Element parent, ZimbraSoapContext lc, Message msg, String part, boolean wantHTML, boolean neuter) throws ServiceException { boolean wholeMessage = (part == null || part.trim().equals("")); Element m; if (wholeMessage) { m = encodeMessageCommon(parent, lc, msg, NOTIFY_FIELDS); m.addAttribute(MailService.A_ID, lc.formatItemId(msg)); } else { m = parent.addElement(MailService.E_MSG); m.addAttribute(MailService.A_ID, lc.formatItemId(msg)); m.addAttribute(MailService.A_PART, part); } try { MimeMessage mm = msg.getMimeMessage(); if (!wholeMessage) { MimePart mp = Mime.getMimePart(mm, part); if (mp == null) throw MailServiceException.NO_SUCH_PART(part); Object content = Mime.getMessageContent(mp); if (!(content instanceof MimeMessage)) throw MailServiceException.NO_SUCH_PART(part); mm = (MimeMessage) content; } else part = ""; EmailElementCache eecache = new EmailElementCache(); addEmails(m, eecache, Mime.parseAddressHeader(mm, "From"), EmailType.FROM); addEmails(m, eecache, Mime.parseAddressHeader(mm, "Reply-To"), EmailType.REPLY_TO); addEmails(m, eecache, Mime.parseAddressHeader(mm, "To"), EmailType.TO); addEmails(m, eecache, Mime.parseAddressHeader(mm, "Cc"), EmailType.CC); addEmails(m, eecache, Mime.parseAddressHeader(mm, "Bcc"), EmailType.BCC); String subject = mm.getSubject(); if (subject != null) m.addAttribute(MailService.E_SUBJECT, StringUtil.stripControlCharacters(subject), Element.DISP_CONTENT); String messageID = mm.getMessageID(); if (messageID != null && !messageID.trim().equals("")) m.addAttribute(MailService.E_MSG_ID_HDR, StringUtil.stripControlCharacters(messageID), Element.DISP_CONTENT); if (wholeMessage && msg.isDraft()) { if (msg.getDraftOrigId() > 0) m.addAttribute(MailService.A_ORIG_ID, lc.formatItemId(msg.getDraftOrigId())); if (!msg.getDraftReplyType().equals("")) m.addAttribute(MailService.A_REPLY_TYPE, msg.getDraftReplyType()); String inReplyTo = mm.getHeader("In-Reply-To", null); if (inReplyTo != null && !inReplyTo.equals("")) m.addAttribute(MailService.E_IN_REPLY_TO, StringUtil.stripControlCharacters(inReplyTo), Element.DISP_CONTENT); } if (!wholeMessage) m.addAttribute(MailService.A_SIZE, mm.getSize()); java.util.Date sent = mm.getSentDate(); if (sent != null) m.addAttribute(MailService.A_SENT_DATE, sent.getTime()); if (msg.isInvite()) encodeInvitesForMessage(m, lc, msg, NOTIFY_FIELDS); List parts = Mime.getParts(mm); if (parts != null && !parts.isEmpty()) { MPartInfo body = Mime.getBody(parts, wantHTML); addParts(m, (MPartInfo) parts.get(0), body, part, neuter); } } catch (IOException ex) { throw ServiceException.FAILURE(ex.getMessage(), ex); } catch (MessagingException ex) { throw ServiceException.FAILURE(ex.getMessage(), ex); } return m; }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/fad4c84f4ca0d2273e9f0c27a34fcd6a6449b7e7/ToXML.java/buggy/ZimbraServer/src/java/com/zimbra/cs/service/mail/ToXML.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 3010, 2017, 1079, 1463, 4566, 12, 1046, 982, 16, 2285, 381, 15397, 20601, 1042, 9109, 16, 2350, 1234, 16, 514, 1087, 16, 1250, 2545, 4870, 16, 1250, 1073, 26812, 13, 565, 1216,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3010, 2017, 1079, 1463, 4566, 12, 1046, 982, 16, 2285, 381, 15397, 20601, 1042, 9109, 16, 2350, 1234, 16, 514, 1087, 16, 1250, 2545, 4870, 16, 1250, 1073, 26812, 13, 565, 1216,...
int definedArgs = theData.itsVariableTable.getParameterCount();
int definedArgs = fnOrScript.argCount;
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Scriptable fnOrScript, InterpreterData theData) throws JavaScriptException { int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = theData.itsVariableTable.size(); 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; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { int definedArgs = theData.itsVariableTable.getParameterCount(); 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; long lLongValue; double lDbl; int rIntValue; double rDbl; int[] catchStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } if (maxTryDepth != 0) { // catchStack[2 * i]: starting pc of catch block // catchStack[2 * i + 1]: starting pc of finally block catchStack = new int[maxTryDepth * 2]; } /* Save the security domain. Must restore upon normal exit. * If we exit the interpreter loop by throwing an exception, * set cx.interpreterSecurityDomain to null, and require the * catching function to restore it. */ Object savedSecurityDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; Object result = undefined; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : i = getTarget(iCode, pc + 1); if (i == pc) i = 0; catchStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; catchStack[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; lLongValue = stack_uint32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lLongValue >>> 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 : stack[++stackTop] = ScriptRuntime.bind(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.GETBASE : stack[++stackTop] = ScriptRuntime.getBase(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); // what about class cast exception here ? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, getString(theData.itsStringTable, 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 : id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getElem(lhs, id, scope); break; case TokenStream.SETELEM : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setElem(lhs, id, rhs, scope); 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 = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); name = getString(theData.itsStringTable, iCode, pc + 3); count = (iCode[pc + 5] << 8) | (iCode[pc + 6] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } 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 = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } 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) { lhs = getString(theData.itsStringTable, iCode, pc + 1); } 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 = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && (iCode[pc+1] << 8) + (iCode[pc+2] & 0xFF) != -1) { // special code for better error message for call // to undefined lhs = getString(theData.itsStringTable, 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 = getString(theData.itsStringTable, iCode, pc + 1); stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = getString(theData.itsStringTable, iCode, pc + 1); pc += 2; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getNumber(theData.itsNumberTable, iCode, pc + 1); pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement(scope, getString(theData.itsStringTable, 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 = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case TokenStream.SOURCEFILE : cx.interpreterSourceFile = theData.itsSourceFile; break; case TokenStream.LINE : case TokenStream.BREAKPOINT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == TokenStream.BREAKPOINT || 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 (Exception ex) { cx.interpreterSecurityDomain = null; if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, OTHER = 2; int exType; Object errObj; // Object seen by catch if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { // an offical ECMA error object, errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else { errObj = ex; exType = OTHER; } if (cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, errObj); } boolean rethrow = true; if (tryStackTop > 0) { --tryStackTop; scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; if (exType == SCRIPT_THROW || exType == ECMA) { pc = catchStack[tryStackTop * 2]; if (pc != 0) { // Has catch block rethrow = false; } } if (rethrow) { pc = catchStack[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; else throw (RuntimeException)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) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // prepare stack and restore this function's security domain. stackTop = 0; stack[0] = errObj; cx.interpreterSecurityDomain = theData.securityDomain; } } cx.interpreterSecurityDomain = savedSecurityDomain; if (frame != null) cx.popFrame(); if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/2e5f0c80aa851723c959897d5baa5abe7a788df3/Interpreter.java/clean/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, 565, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 565, 22780, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 326, 75...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 565, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 565, 22780, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 326, 75...
if (node != null) { db.setOwnerObject(lockKey); long addr = db.findValue(lockKey, node); if(addr == KEY_NOT_FOUND) return false; RecordPos rec = findValuePosition(addr); page = rec.page.getPageNum(); p = rec.page; offset = rec.offset - 2; node = null; } else if (-1 < startAddress) { RecordPos rec = findValuePosition(startAddress); page = rec.page.getPageNum(); offset = rec.offset - 2; p = rec.page; } else if (page > -1) p = db.getCurrentPage(page); else { lock.release(lockKey); return false; } db.buffer.add(p); DOMFilePageHeader ph = p.getPageHeader();
public boolean hasNext() { Lock lock = db.getLock(); try { try { lock.acquire(lockKey); lock.enter(lockKey); } catch (LockException e) { return false; } if (node != null) { db.setOwnerObject(lockKey); long addr = db.findValue(lockKey, node); if(addr == KEY_NOT_FOUND) return false; RecordPos rec = findValuePosition(addr); page = rec.page.getPageNum(); p = rec.page; offset = rec.offset - 2; node = null; } else if (-1 < startAddress) { RecordPos rec = findValuePosition(startAddress); page = rec.page.getPageNum(); offset = rec.offset - 2; p = rec.page; } else if (page > -1) p = db.getCurrentPage(page); else { lock.release(lockKey); return false; } db.buffer.add(p); DOMFilePageHeader ph = p.getPageHeader(); lock.release(lockKey); if (offset < ph.getDataLength()) return true; else if (ph.getNextDataPage() < 0) return false; else return true; } catch (BTreeException e) { LOG.warn(e); } catch (IOException e) { LOG.warn(e); } lock.release(lockKey); return false; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/1c0cc42431436631d1b2e9ea8af63bb6dd883496/DOMFile.java/clean/src/org/exist/storage/DOMFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1250, 4564, 1435, 288, 1082, 202, 2531, 2176, 273, 1319, 18, 588, 2531, 5621, 1082, 202, 698, 288, 9506, 202, 698, 288, 6862, 202, 739, 18, 1077, 1039, 12, 739, 653, 1769, 68...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1250, 4564, 1435, 288, 1082, 202, 2531, 2176, 273, 1319, 18, 588, 2531, 5621, 1082, 202, 698, 288, 9506, 202, 698, 288, 6862, 202, 739, 18, 1077, 1039, 12, 739, 653, 1769, 68...
public String getPGType(int oid) throws SQLException
public int getPGType(String typeName) throws SQLException
public String getPGType(int oid) throws SQLException { String pgType = (String) pgTypeCache.get(new Integer(oid)); if (pgType == null) { getSQLType(oid); pgType = (String) pgTypeCache.get(new Integer(oid)); } return pgType; }
49504 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49504/0378a269f3ab3c44e67b14f96414b6ca95263263/AbstractJdbc1Connection.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1689, 43, 559, 12, 474, 7764, 13, 1216, 6483, 202, 95, 202, 202, 780, 7184, 559, 273, 261, 780, 13, 7184, 559, 1649, 18, 588, 12, 2704, 2144, 12, 839, 10019, 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, 514, 1689, 43, 559, 12, 474, 7764, 13, 1216, 6483, 202, 95, 202, 202, 780, 7184, 559, 273, 261, 780, 13, 7184, 559, 1649, 18, 588, 12, 2704, 2144, 12, 839, 10019, 202, 202, ...
public CreateConnectorViewAndElementRequest(IElementType type, PreferencesHint preferencesHint) { super( new ConnectorViewAndElementDescriptor( new CreateElementRequestAdapter( new CreateRelationshipRequest(type)), preferencesHint));
public CreateConnectorViewAndElementRequest(ConnectorViewAndElementDescriptor connectorViewAndElementDescriptor) { super(connectorViewAndElementDescriptor);
public CreateConnectorViewAndElementRequest(IElementType type, PreferencesHint preferencesHint) { super( new ConnectorViewAndElementDescriptor( new CreateElementRequestAdapter( new CreateRelationshipRequest(type)), preferencesHint)); }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/8cde65fc058a9faaf847d04bf9b28594ea600f8f/CreateConnectorViewAndElementRequest.java/clean/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui/src/org/eclipse/gmf/runtime/diagram/ui/requests/CreateConnectorViewAndElementRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1788, 7487, 1767, 1876, 1046, 691, 12, 45, 17481, 618, 16, 28310, 7002, 12750, 7002, 13, 288, 202, 202, 9565, 12, 1082, 202, 2704, 15779, 1767, 1876, 1046, 3187, 12, 9506, 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, 1788, 7487, 1767, 1876, 1046, 691, 12, 45, 17481, 618, 16, 28310, 7002, 12750, 7002, 13, 288, 202, 202, 9565, 12, 1082, 202, 2704, 15779, 1767, 1876, 1046, 3187, 12, 9506, 202, ...
public void test218RDFProductConfig() throws IOException { ServerConfigurationFactory factory = ServerConfigurationFactory.getInstance(); RepositoryConfiguration config = factory.getConfiguration(IBugzillaConstants.TEST_BUGZILLA_218_URL); assertNotNull(config); assertEquals("2.18.5", config.getInstallVersion()); assertEquals(7, config.getStatusValues().size()); assertEquals(8, config.getResolutions().size()); assertEquals(8, config.getPlatforms().size()); assertEquals(37, config.getOSs().size()); assertEquals(5, config.getPriorities().size()); assertEquals(7, config.getSeverities().size()); assertEquals(1, config.getProducts().size()); assertEquals(4, config.getOpenStatusValues().size()); assertEquals(1, config.getComponents("TestProduct").size()); assertEquals(1, config.getVersions("TestProduct").size()); //assertEquals(1, config.getTargetMilestones("TestProduct").size()); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/4db4cd6e586263286bb85a61cf90591f0c599a6f/BugzillaConfigurationTest.java/buggy/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaConfigurationTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 22, 2643, 30137, 4133, 809, 1435, 1216, 1860, 288, 202, 202, 2081, 1750, 1733, 3272, 273, 3224, 1750, 1733, 18, 588, 1442, 5621, 202, 202, 3305, 1750, 642, 273, 3272,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22, 2643, 30137, 4133, 809, 1435, 1216, 1860, 288, 202, 202, 2081, 1750, 1733, 3272, 273, 3224, 1750, 1733, 18, 588, 1442, 5621, 202, 202, 3305, 1750, 642, 273, 3272,...
public void ignorableWhitespace(XMLString text) throws XNIException {
public void ignorableWhitespace(XMLString text, Augmentations augs) throws XNIException {
public void ignorableWhitespace(XMLString text) throws XNIException { printIndent(); fOut.print("ignorableWhitespace("); fOut.print("text="); printQuotedString(text.ch, text.offset, text.length); fOut.println(')'); fOut.flush(); } // ignorableWhitespace(XMLString)
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/1281996de10d3af1b51f0b4d78cfcd75d8ade6fe/DocumentTracer.java/clean/samples/xni/DocumentTracer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 9750, 15514, 9431, 12, 4201, 780, 977, 16, 432, 14870, 1012, 279, 9024, 13, 1216, 1139, 50, 45, 503, 288, 3639, 1172, 7790, 5621, 3639, 284, 1182, 18, 1188, 2932, 724, 15514, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9750, 15514, 9431, 12, 4201, 780, 977, 16, 432, 14870, 1012, 279, 9024, 13, 1216, 1139, 50, 45, 503, 288, 3639, 1172, 7790, 5621, 3639, 284, 1182, 18, 1188, 2932, 724, 15514, ...
this.container.setVerticalDimensions(translateY, this.screenHeight);
setContentArea( 0, translateY, this.screenWidth, this.screenHeight - (this.infoHeight + this.subTitleHeight + translateY) );
public final void paint(Graphics g) { //#if tmp.fullScreenInPaint if (!this.isInFullScreenMode) { super.setFullScreenMode( true ); this.isInFullScreenMode = true; //#ifdef polish.FullCanvasHeight:defined //#= this.fullScreenHeight = ${polish.FullCanvasHeight}; //#else this.fullScreenHeight = getHeight(); //#endif this.screenHeight = this.fullScreenHeight - this.menuBarHeight; this.originalScreenHeight = this.screenHeight; this.scrollIndicatorY = this.screenHeight - this.scrollIndicatorWidth - 1; } //#endif //#if polish.useFullScreen && polish.api.nokia-ui this.isInPaintMethod = true; //#endif //#ifdef polish.debug.error try { //#endif // paint background: if (this.background != null) { //#ifdef tmp.menuFullScreen this.background.paint(0, 0, this.screenWidth, this.fullScreenHeight, g); //#else this.background.paint(0, 0, this.screenWidth, this.screenHeight, g); //#endif } else { g.setColor( 0xFFFFFF ); //#ifdef tmp.menuFullScreen g.fillRect( 0, 0, this.screenWidth, this.fullScreenHeight ); //#else g.fillRect( 0, 0, this.screenWidth, this.screenHeight ); //#endif } int tHeight = 0; //#ifdef tmp.usingTitle // paint title: if (this.title != null && this.showTitleOrMenu) { this.title.paint(0, 0, 0, this.screenWidth, g); tHeight = this.titleHeight; } //#elif !tmp.menuFullScreen int translateY = g.getTranslateY(); if (translateY != 0 && this.screenHeight == this.originalScreenHeight) { this.screenHeight -= translateY; this.scrollIndicatorY -= translateY; //#debug System.out.println("Adjusting screenheight from " + this.originalScreenHeight + " to " + this.screenHeight ); if (this.container != null) { this.container.setVerticalDimensions(translateY, this.screenHeight); } } //#endif if (this.subTitle != null) { this.subTitle.paint( 0, tHeight, 0, this.screenWidth, g ); tHeight += this.subTitleHeight; } if (this.showInfoItem) { this.infoItem.paint( 0, tHeight, 0, this.screenWidth, g ); tHeight += this.infoHeight; } // protect the title, ticker and the full-screen-menu area: g.setClip(0, tHeight, this.screenWidth, this.screenHeight - tHeight ); g.translate( 0, tHeight ); // paint content: //System.out.println("starting to paint content of screen"); paintScreen( g ); //System.out.println("done painting content of screen"); g.translate( 0, - tHeight ); // allow painting outside of the screen again: //#ifdef tmp.menuFullScreen g.setClip(0, 0, this.screenWidth, this.fullScreenHeight ); //#else g.setClip(0, 0, this.screenWidth, this.originalScreenHeight ); //#endif //#ifndef polish.skipTicker if (this.ticker != null) { this.ticker.paint( 0, this.screenHeight, 0, this.screenWidth, g ); } //#endif // paint border: if (this.border != null) { this.border.paint(0, 0, this.screenWidth, this.screenHeight, g); } // paint menu in full-screen mode: //#ifdef tmp.menuFullScreen //#ifdef tmp.useExternalMenuBar this.menuBar.paint(0, this.screenHeight, 0, this.screenWidth, g); if (this.menuBar.isOpened) { this.paintScrollIndicator = this.menuBar.paintScrollIndicator; this.paintScrollIndicatorUp = this.menuBar.canScrollUpwards; this.paintScrollIndicatorDown = this.menuBar.canScrollDownwards; } //#else if (this.menuOpened) { tHeight -= this.infoHeight; int menuHeight = this.menuContainer.getItemHeight(this.menuMaxWidth, this.menuMaxWidth); int y = this.originalScreenHeight - menuHeight; if (y < tHeight) { this.paintScrollIndicator = true; this.paintScrollIndicatorUp = (this.menuContainer.yOffset != 0); this.paintScrollIndicatorDown = (this.menuContainer.yOffset + menuHeight > this.originalScreenHeight - tHeight); y = tHeight; this.menuContainer.setVerticalDimensions(y, this.originalScreenHeight); } else { this.paintScrollIndicator = false; } g.setClip(0, tHeight, this.screenWidth, this.originalScreenHeight - tHeight ); this.menuContainer.paint(0, y, 0, this.menuMaxWidth, g); g.setClip(0, 0, this.screenWidth, this.fullScreenHeight ); } if (this.showTitleOrMenu || this.menuOpened) { // clear menu-bar: if (this.menuBarColor != Item.TRANSPARENT) { g.setColor( this.menuBarColor ); g.fillRect(0, this.originalScreenHeight, this.screenWidth, this.menuBarHeight ); } if (this.menuContainer != null && this.menuContainer.size() > 0) { String menuText = null; if (this.menuOpened) { //#ifdef polish.command.select:defined //#= menuText = "${polish.command.select}"; //#else menuText = "Select"; //#endif } else { if (this.menuSingleLeftCommand != null) { menuText = this.menuSingleLeftCommand.getLabel(); } else { //#ifdef polish.command.options:defined //#= menuText = "${polish.command.options}"; //#else menuText = "Options"; //#endif } } //#ifdef polish.hasPointerEvents this.menuLeftCommandX = 2 + this.menuFont.stringWidth( menuText ); //#endif g.setColor( this.menuFontColor ); g.setFont( this.menuFont ); //#ifdef polish.Menu.MarginLeft:defined //#= int menuX = ${polish.Menu.MarginLeft}; //#else int menuX = 2; //#endif //#ifdef polish.Menu.MarginTop:defined //#= g.drawString(menuText, menuX, this.originalScreenHeight + ${polish.Menu.MarginTop}, Graphics.TOP | Graphics.LEFT ); //#else g.drawString(menuText, menuX, this.originalScreenHeight + 2, Graphics.TOP | Graphics.LEFT ); //#endif if ( this.menuOpened ) { // draw cancel string: //#ifdef polish.command.cancel:defined //#= menuText = "${polish.command.cancel}"; //#else menuText = "Cancel"; //#endif //#ifdef polish.Menu.MarginRight:defined //#= menuX = ${polish.Menu.MarginRight}; //#elifdef polish.Menu.MarginLeft:defined menuX = 2; //#endif //#ifdef polish.Menu.MarginTop:defined //#= g.drawString(menuText, this.screenWidth - menuX, this.originalScreenHeight + ${polish.Menu.MarginTop}, Graphics.TOP | Graphics.RIGHT ); //#else g.drawString(menuText, this.screenWidth - menuX, this.originalScreenHeight + 2, Graphics.TOP | Graphics.RIGHT ); //#endif //#ifdef polish.hasPointerEvents this.menuRightCommandX = this.screenWidth - 2 - this.menuFont.stringWidth( menuText ); //#endif } } if (this.menuSingleRightCommand != null && !this.menuOpened) { g.setColor( this.menuFontColor ); g.setFont( this.menuFont ); String menuText = this.menuSingleRightCommand.getLabel(); //#ifdef polish.Menu.MarginRight:defined //#= int menuX = ${polish.Menu.MarginRight}; //#else int menuX = 2; //#endif //#ifdef polish.Menu.MarginTop:defined //#= g.drawString(menuText, this.screenWidth - menuX, this.originalScreenHeight + ${polish.Menu.MarginTop}, Graphics.TOP | Graphics.RIGHT ); //#else g.drawString(menuText, this.screenWidth - menuX, this.originalScreenHeight + 2, Graphics.TOP | Graphics.RIGHT ); //#endif //#ifdef polish.hasPointerEvents this.menuRightCommandX = this.screenWidth - menuX - this.menuFont.stringWidth( menuText ); //#endif } } // if this.showTitleOrMenu || this.menuOpened //#endif //#endif // paint scroll-indicator in the middle of the menu: if (this.paintScrollIndicator) { g.setColor( this.scrollIndicatorColor ); int x = this.scrollIndicatorX; int y = this.scrollIndicatorY; int width = this.scrollIndicatorWidth; int halfWidth = width / 2; if (this.paintScrollIndicatorUp) { //#ifdef polish.midp2 g.fillTriangle(x, y + halfWidth-1, x + width, y + halfWidth-1, x + halfWidth, y ); //#else g.drawLine( x, y + halfWidth-1, x + width, y + halfWidth-1 ); g.drawLine( x, y + halfWidth-1, x + halfWidth, y ); g.drawLine( x + width, y + halfWidth-1, x + halfWidth, y ); //#endif } if (this.paintScrollIndicatorDown) { //#ifdef polish.midp2 g.fillTriangle(x, y + halfWidth+1, x + width, y + halfWidth+1, x + halfWidth, y + width ); //#else g.drawLine( x, y + halfWidth+1, x + width, y + halfWidth+1 ); g.drawLine( x, y + halfWidth+1, x + halfWidth, y + width ); g.drawLine(x + width, y + halfWidth+1, x + halfWidth, y + width ); //#endif } } //#ifdef polish.css.foreground-image if (this.foregroundImage != null) { g.drawImage( this.foregroundImage, this.foregroundX, this.foregroundY, Graphics.TOP | Graphics.LEFT ); } //#endif //#ifdef polish.debug.error } catch (RuntimeException e) { //#debug error Debug.debug( "unable to paint screen", e ); } //#endif //#if polish.useFullScreen && polish.api.nokia-ui this.lastPaintTime = System.currentTimeMillis(); this.isInPaintMethod = false; //#endif }
9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/2d2ee1a8b2dd39fe6c831aded2568d110a1ee975/Screen.java/buggy/j2me/source/src/de/enough/polish/ui/Screen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 12574, 12, 17558, 314, 13, 288, 202, 202, 759, 7, 430, 1853, 18, 2854, 7956, 382, 12699, 1082, 202, 430, 16051, 2211, 18, 291, 382, 5080, 7956, 2309, 13, 288, 9506, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12574, 12, 17558, 314, 13, 288, 202, 202, 759, 7, 430, 1853, 18, 2854, 7956, 382, 12699, 1082, 202, 430, 16051, 2211, 18, 291, 382, 5080, 7956, 2309, 13, 288, 9506, ...
action.setToolTipText(WorkbenchMessages.getString("Workbench.move.ToolTip"));
action.setToolTipText(WorkbenchMessages.getString("Workbench.moveToolTip"));
public IWorkbenchAction create(IWorkbenchWindow window) { if (window == null) { throw new IllegalArgumentException(); } RetargetAction action = new RetargetAction(getId(), WorkbenchMessages.getString("Workbench.move")); //$NON-NLS-1$ //$NON-NLS-2$ action.setToolTipText(WorkbenchMessages.getString("Workbench.move.ToolTip")); //$NON-NLS-1$ window.getPartService().addPartListener(action); action.setActionDefinitionId("org.eclipse.ui.edit.move"); //$NON-NLS-1$ return action; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/041bd5e759c0bce2ddee002925167c673a5abed9/ActionFactory.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/actions/ActionFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 467, 2421, 22144, 1803, 752, 12, 45, 2421, 22144, 3829, 2742, 13, 288, 1082, 202, 430, 261, 5668, 422, 446, 13, 288, 9506, 202, 12849, 394, 2754, 5621, 1082, 202, 97, 1082, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 467, 2421, 22144, 1803, 752, 12, 45, 2421, 22144, 3829, 2742, 13, 288, 1082, 202, 430, 261, 5668, 422, 446, 13, 288, 9506, 202, 12849, 394, 2754, 5621, 1082, 202, 97, 1082, 2...
if (idx == tabFolder.getItemCount()) idx = 0;
public void addPart(IPresentablePart newPart, IPresentablePart position) { int idx = indexOf(position); if (idx == tabFolder.getItemCount()) idx = 0; createPartTab(newPart, idx); setControlSize(); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/1f3843fe8162789eb313a39b251f51eaa5163737/BasicStackPresentation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/BasicStackPresentation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 527, 1988, 12, 2579, 1581, 429, 1988, 394, 1988, 16, 2971, 1581, 429, 1988, 1754, 13, 288, 202, 202, 474, 2067, 273, 3133, 12, 3276, 1769, 202, 202, 430, 261, 3465, 422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 527, 1988, 12, 2579, 1581, 429, 1988, 394, 1988, 16, 2971, 1581, 429, 1988, 1754, 13, 288, 202, 202, 474, 2067, 273, 3133, 12, 3276, 1769, 202, 202, 430, 261, 3465, 422, ...
album.addItemListener( this );
album.addActionListener( this );
private void jbInitEvents() { fetch.addActionListener( this ); upload.addActionListener( this ); browse.addActionListener( this ); newGallery.addActionListener( this ); gallery.addActionListener( this ); username.addCaretListener( this ); password.addCaretListener( this ); jMenuItemQuit.addActionListener( this ); jMenuItemAbout.addActionListener( this ); jCheckBoxMenuThumbnails.addItemListener( this ); jCheckBoxMenuPreview.addItemListener( this ); jCheckBoxMenuPath.addItemListener( this ); album.addItemListener( this ); picturesList.addListSelectionListener( this ); addWindowListener( new java.awt.event.WindowAdapter() { public void windowClosing( java.awt.event.WindowEvent e ) { thisWindowClosing( e ); } } ); previewFrame.addWindowListener( new java.awt.event.WindowAdapter() { public void windowClosing( java.awt.event.WindowEvent e ) { jCheckBoxMenuPreview.setState( false ); } } ); picturesList.addKeyListener( new KeyAdapter() { public void keyPressed( KeyEvent e ) { jListKeyPressed( e ); } } ); }
9402 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9402/479482292b2f0fd02e996191faf0ed69b7fe8f02/MainFrame.java/buggy/com/gallery/GalleryRemote/MainFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 20515, 2570, 3783, 1435, 288, 202, 202, 5754, 18, 1289, 1803, 2223, 12, 333, 11272, 202, 202, 6327, 18, 1289, 1803, 2223, 12, 333, 11272, 202, 202, 25731, 18, 1289, 1803, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20515, 2570, 3783, 1435, 288, 202, 202, 5754, 18, 1289, 1803, 2223, 12, 333, 11272, 202, 202, 6327, 18, 1289, 1803, 2223, 12, 333, 11272, 202, 202, 25731, 18, 1289, 1803, ...
if(Plugin.class.isAssignableFrom(clazz))
int modifiers = clazz.getModifiers(); if(Plugin.class.isAssignableFrom(clazz) && !Modifier.isInterface(modifiers) && !Modifier.isAbstract(modifiers))
public void loadPluginClass(String name) throws Exception { Class clazz = loadClass(MiscUtilities.fileToClass(name),false); if(Plugin.class.isAssignableFrom(clazz)) { Plugin plugin = (Plugin)clazz.newInstance(); System.out.println(" -- loaded plugin: " + clazz.getName()); jEdit.addPlugin(plugin); } }
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/3b3f81d530ce47fcca4f76a4b2d4c70674ca7967/JARClassLoader.java/buggy/org/gjt/sp/jedit/JARClassLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1262, 3773, 797, 12, 780, 508, 13, 202, 202, 15069, 1185, 202, 95, 202, 202, 797, 4003, 273, 16038, 12, 11729, 71, 11864, 18, 768, 774, 797, 12, 529, 3631, 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, 225, 202, 482, 918, 1262, 3773, 797, 12, 780, 508, 13, 202, 202, 15069, 1185, 202, 95, 202, 202, 797, 4003, 273, 16038, 12, 11729, 71, 11864, 18, 768, 774, 797, 12, 529, 3631, 5743, 1769, ...
m_root.setComplete(true);
public void endDocument() throws org.xml.sax.SAXException { // System.out.println("endDocument: "+m_id); m_root.setComplete(true); m_eventsCount = m_maxEventsToNotify; notifyWaiters(); Object synchObj = m_root; synchronized (synchObj) { m_sourceTreeHandler.endDocument(); popShouldStripWhitespace(); if (!m_useMultiThreading && (null != m_transformer) && m_shouldTransformAtEnd) { try { m_transformer.transformNode(m_root); } catch(TransformerException te) { // te.printStackTrace(); throw new org.xml.sax.SAXException(te); } } } m_eventsCount = m_maxEventsToNotify; notifyWaiters(); // printTree(m_root); if (m_useMultiThreading && (null != m_transformer)) { Thread transformThread = m_transformer.getTransformThread(); if (null != transformThread) { try { // This should wait until the transformThread is considered not alive. transformThread.join(); m_transformer.setTransformThread(null); } catch (InterruptedException ie){} } } }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/7bcd4fe17487a265fc35c75d972eba8342f496b8/SourceTreeHandler.java/clean/src/org/apache/xalan/stree/SourceTreeHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 679, 2519, 1435, 1216, 2358, 18, 2902, 18, 87, 651, 18, 55, 2501, 503, 225, 288, 565, 368, 2332, 18, 659, 18, 8222, 2932, 409, 2519, 30, 13773, 81, 67, 350, 1769, 377, 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, 282, 1071, 918, 679, 2519, 1435, 1216, 2358, 18, 2902, 18, 87, 651, 18, 55, 2501, 503, 225, 288, 565, 368, 2332, 18, 659, 18, 8222, 2932, 409, 2519, 30, 13773, 81, 67, 350, 1769, 377, 312,...
p.sysex[patchNameStart+(i*2)]=namebytes[i];
((Patch)p).sysex[patchNameStart+(i*2)]=namebytes[i];
public void setPatchName(Patch p, String name) { if (patchNameSize==0) {JOptionPane.showMessageDialog(null, "The Driver for this patch does not support Patch Name Editing.","Error", JOptionPane.ERROR_MESSAGE); return; } if (name.length()<patchNameSize) name=name+" "; byte [] namebytes = new byte [64]; try { namebytes=name.getBytes("US-ASCII"); for (int i=0;i<patchNameSize;i++) p.sysex[patchNameStart+(i*2)]=namebytes[i]; } catch (UnsupportedEncodingException ex) {return;} calculateChecksum(p); }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/b6e99a36d447b749f8ec1622f6d2477fcd586fcb/EmuProteusMPSSingleDriver.java/clean/JSynthLib/synthdrivers/EmuProteusMPS/EmuProteusMPSSingleDriver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 7332, 461, 12, 7332, 293, 16, 514, 508, 13, 225, 288, 565, 309, 261, 2272, 461, 1225, 631, 20, 13, 4202, 288, 46, 1895, 8485, 18, 4500, 1079, 6353, 12, 2011, 16, 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, 282, 1071, 918, 444, 7332, 461, 12, 7332, 293, 16, 514, 508, 13, 225, 288, 565, 309, 261, 2272, 461, 1225, 631, 20, 13, 4202, 288, 46, 1895, 8485, 18, 4500, 1079, 6353, 12, 2011, 16, 3639,...
mLogger.info("getPost() Called =========[ SUPPORTED ]====="); mLogger.info(" PostId: " + postid); mLogger.info(" UserId: " + userid);
mLogger.debug("getPost() Called =========[ SUPPORTED ]====="); mLogger.debug(" PostId: " + postid); mLogger.debug(" UserId: " + userid);
public Object getPost(String postid, String userid, String password) throws Exception { mLogger.info("getPost() Called =========[ SUPPORTED ]====="); mLogger.info(" PostId: " + postid); mLogger.info(" UserId: " + userid); Roller roller = RollerFactory.getRoller(); WeblogManager weblogMgr = roller.getWeblogManager(); WeblogEntryData entry = weblogMgr.retrieveWeblogEntry(postid); validate(entry.getWebsite().getHandle(), userid,password); try { return createPostStruct(entry, userid); } catch (Exception e) { String msg = "ERROR in MetaWeblogAPIHandler.getPost"; mLogger.error(msg,e); throw new XmlRpcException(UNKNOWN_EXCEPTION, msg); } }
46431 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46431/8303161b2baeb9ed6394bbe61608f373b4ca9fbf/MetaWeblogAPIHandler.java/clean/src/org/roller/presentation/xmlrpc/MetaWeblogAPIHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 14150, 12, 780, 1603, 350, 16, 514, 6709, 16, 514, 2201, 13, 5411, 1216, 1185, 288, 7734, 312, 3328, 18, 1376, 2932, 588, 3349, 1435, 11782, 422, 894, 12275, 63, 29556, 308, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 14150, 12, 780, 1603, 350, 16, 514, 6709, 16, 514, 2201, 13, 5411, 1216, 1185, 288, 7734, 312, 3328, 18, 1376, 2932, 588, 3349, 1435, 11782, 422, 894, 12275, 63, 29556, 308, ...
public void dimInsert(Row row, String table, boolean newentry, String keyfield, boolean autoinc, Value technicalKey, String versionfield, Value val_version, String datefrom, Value val_datfrom, String dateto, Value val_datto, String fieldlookup[], int fieldnrs[], String key[], String keylookup[], int keynrs[] ) throws KettleDatabaseException { int i; if (prepStatementInsert==null && prepStatementUpdate==null) // first time: construct prepared statement { /* Construct the SQL statement... * * INSERT INTO * d_customer(keyfield, versionfield, datefrom, dateto, key[], fieldlookup[]) * VALUES (val_key ,val_version , val_datfrom, val_datto, keynrs[], fieldnrs[]) * ; */ String sql="INSERT INTO "+table+"( "; if (!autoinc) sql+=keyfield+", "; // NO AUTOINCREMENT else if (databaseMeta.getDatabaseType()==DatabaseMeta.TYPE_DATABASE_INFORMIX) sql+="0, "; // placeholder on informix! sql+=versionfield+", "+datefrom+", "+dateto; for (i=0;i<keylookup.length;i++) { sql+=", "+keylookup[i]; } for (i=0;i<fieldlookup.length;i++) { sql+=", "+fieldlookup[i]; } sql+=") VALUES("; if (!autoinc) sql+="?, "; sql+="?, ?, ?"; for (i=0;i<keynrs.length;i++) { sql+=", ?"; } for (i=0;i<fieldnrs.length;i++) { sql+=", ?"; } sql+=" )"; try { if (keyfield==null) { log.logDetailed(toString(), "SQL w/ return keys=["+sql+"]"); prepStatementInsert=connection.prepareStatement(databaseMeta.stripCR(sql), Statement.RETURN_GENERATED_KEYS); } else { log.logDetailed(toString(), "SQL=["+sql+"]"); prepStatementInsert=connection.prepareStatement(databaseMeta.stripCR(sql)); } //pstmt=con.prepareStatement(sql, new String[] { "klant_tk" } ); } catch(SQLException ex) { throw new KettleDatabaseException("Unable to prepare dimension insert :"+Const.CR+sql, ex); } /* * UPDATE d_customer * SET dateto = val_datnow * WHERE keylookup[] = keynrs[] * AND versionfield = val_version - 1 * ; */ String sql_upd="UPDATE "+table+Const.CR+"SET "+dateto+" = ?"+Const.CR; sql_upd+="WHERE "; for (i=0;i<keylookup.length;i++) { if (i>0) sql_upd+="AND "; sql_upd+=keylookup[i]+" = ?"+Const.CR; } sql_upd+="AND "+versionfield+" = ? "; try { log.logDetailed(toString(), "Preparing update: "+Const.CR+sql_upd+Const.CR); prepStatementUpdate=connection.prepareStatement(databaseMeta.stripCR(sql_upd)); } catch(SQLException ex) { throw new KettleDatabaseException("Unable to prepare dimension update :"+Const.CR+sql_upd, ex); } } Row rins=new Row(); if (!autoinc) rins.addValue(technicalKey); if (!newentry) { Value val_new_version = new Value(val_version); val_new_version.setValue( val_new_version.getNumber()+1 ); // determine next version rins.addValue(val_new_version); } else { rins.addValue(val_version); } rins.addValue(val_datfrom); rins.addValue(val_datto); for (i=0;i<keynrs.length;i++) { rins.addValue( row.getValue(keynrs[i])); } for (i=0;i<fieldnrs.length;i++) { Value val = row.getValue(fieldnrs[i]); rins.addValue( val ); } log.logDebug(toString(), "rins, size="+rins.size()+", values="+rins.toString()); // INSERT NEW VALUE! setValues(rins, prepStatementInsert); insertRow(prepStatementInsert); log.logDebug(toString(), "Row inserted!"); if (keyfield==null) { try { Row keys = getGeneratedKeys(prepStatementInsert); if (keys.size()>0) { technicalKey.setValue(keys.getValue(0).getInteger()); } else { throw new KettleDatabaseException("Unable to retrieve value of auto-generated technical key : no value found!"); } } catch(Exception e) { throw new KettleDatabaseException("Unable to retrieve value of auto-generated technical key : unexpected error: ", e); } } if (!newentry) // we have to update the previous version in the dimension! { /* * UPDATE d_customer * SET dateto = val_datfrom * WHERE keylookup[] = keynrs[] * AND versionfield = val_version - 1 * ; */ Row rupd = new Row(); rupd.addValue(val_datfrom); for (i=0;i<keynrs.length;i++) { rupd.addValue( row.getValue(keynrs[i])); } rupd.addValue(val_version); log.logRowlevel(toString(), "UPDATE using rupd="+rupd.toString()); // UPDATE VALUES setValues(rupd, prepStatementUpdate); // set values for update log.logDebug(toString(), "Values set for update ("+rupd.size()+")"); insertRow(prepStatementUpdate); // do the actual update log.logDebug(toString(), "Row updated!"); } }
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/5f2d3456db02ff640ffd7d8a5ed4f458e0989468/Database.java/clean/kettle/src/be/ibridge/kettle/core/database/Database.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6459, 3509, 4600, 12, 1999, 492, 16, 202, 780, 2121, 16, 202, 6494, 2704, 4099, 16, 202, 780, 856, 1518, 16, 202, 6494, 5854, 885, 71, 16, 202, 58, 700, 278, 22528, 1706, 65...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3509, 4600, 12, 1999, 492, 16, 202, 780, 2121, 16, 202, 6494, 2704, 4099, 16, 202, 780, 856, 1518, 16, 202, 6494, 5854, 885, 71, 16, 202, 58, 700, 278, 22528, 1706, 65...
for ( Iterator i = dependencies.iterator(); i.hasNext(); )
for ( Iterator i = plugins.iterator(); i.hasNext(); )
private void transformPomToReleaseVersionPom( MavenProject project ) throws MojoExecutionException { if ( !getReleaseProgress().verifyCheckpoint( ReleaseProgressTracker.CP_POM_TRANSFORMED_FOR_RELEASE ) ) { if ( !isSnapshot( project.getVersion() ) ) { throw new MojoExecutionException( "The project " + project.getGroupId() + ":" + project.getArtifactId() + " isn't a snapshot (" + project.getVersion() + ")." ); } Model model = project.getOriginalModel(); //Rewrite parent version if ( model.getParent() != null ) { Artifact parentArtifact = project.getParentArtifact(); if ( isSnapshot( parentArtifact.getBaseVersion() ) ) { String version = resolveVersion( parentArtifact, "parent", project ); model.getParent().setVersion( version ); } } //Rewrite dependencies section List dependencies = model.getDependencies(); if ( dependencies != null ) { for ( Iterator i = dependencies.iterator(); i.hasNext(); ) { Dependency dep = (Dependency) i.next(); // Avoid in dep mgmt if ( dep.getVersion() != null ) { String resolvedVersion = getVersionResolver().getResolvedVersion( dep.getGroupId(), dep.getArtifactId() ); if ( resolvedVersion != null ) { dep.setVersion( resolvedVersion ); } } } } DependencyManagement dependencyManagement = model.getDependencyManagement(); dependencies = dependencyManagement != null ? dependencyManagement.getDependencies() : null; if ( dependencies != null ) { for ( Iterator i = dependencies.iterator(); i.hasNext(); ) { Dependency dep = (Dependency) i.next(); if ( dep.getVersion() != null ) { String resolvedVersion = getVersionResolver().getResolvedVersion( dep.getGroupId(), dep.getArtifactId() ); if ( resolvedVersion != null ) { dep.setVersion( resolvedVersion ); } } } } Build build = model.getBuild(); if ( build != null ) { //Rewrite plugins section List plugins = build.getPlugins(); if ( plugins != null ) { for ( Iterator i = plugins.iterator(); i.hasNext(); ) { Plugin plugin = (Plugin) i.next(); // Avoid in plugin mgmt if ( plugin.getVersion() != null ) { String resolvedVersion = getVersionResolver().getResolvedVersion( plugin.getGroupId(), plugin.getArtifactId() ); if ( resolvedVersion != null ) { plugin.setVersion( resolvedVersion ); } } } } PluginManagement pluginManagement = build.getPluginManagement(); plugins = pluginManagement != null ? pluginManagement.getPlugins() : null; if ( plugins != null ) { for ( Iterator i = plugins.iterator(); i.hasNext(); ) { Plugin plugin = (Plugin) i.next(); if ( plugin.getVersion() != null ) { String resolvedVersion = getVersionResolver().getResolvedVersion( plugin.getGroupId(), plugin.getArtifactId() ); if ( resolvedVersion != null ) { plugin.setVersion( resolvedVersion ); } } } } //Rewrite extensions section List extensions = build.getExtensions(); for ( Iterator i = extensions.iterator(); i.hasNext(); ) { Extension ext = (Extension) i.next(); String resolvedVersion = getVersionResolver().getResolvedVersion( ext.getGroupId(), ext.getArtifactId() ); if ( resolvedVersion != null ) { ext.setVersion( resolvedVersion ); } } } Reporting reporting = model.getReporting(); if ( reporting != null ) { //Rewrite reports section List reports = reporting.getPlugins(); for ( Iterator i = reports.iterator(); i.hasNext(); ) { ReportPlugin plugin = (ReportPlugin) i.next(); String resolvedVersion = getVersionResolver().getResolvedVersion( plugin.getGroupId(), plugin.getArtifactId() ); if ( resolvedVersion != null ) { plugin.setVersion( resolvedVersion ); } } } Writer writer = null; try { writer = new FileWriter( project.getFile() ); project.writeOriginalModel( writer ); } catch ( IOException e ) { throw new MojoExecutionException( "Cannot write released version of pom to: " + project.getFile(), e ); } finally { IOUtil.close( writer ); } try { getReleaseProgress().checkpoint( basedir, ReleaseProgressTracker.CP_POM_TRANSFORMED_FOR_RELEASE ); } catch ( IOException e ) { getLog().warn( "Error writing checkpoint.", e ); } } }
47160 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47160/22f9a34107d27782bab8e88b50b54708304b73dc/PrepareReleaseMojo.java/buggy/maven-plugins/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2510, 52, 362, 774, 7391, 1444, 52, 362, 12, 17176, 4109, 1984, 262, 3639, 1216, 18780, 565, 288, 3639, 309, 261, 401, 588, 7391, 5491, 7675, 8705, 14431, 12, 10819, 5491, 8135...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2510, 52, 362, 774, 7391, 1444, 52, 362, 12, 17176, 4109, 1984, 262, 3639, 1216, 18780, 565, 288, 3639, 309, 261, 401, 588, 7391, 5491, 7675, 8705, 14431, 12, 10819, 5491, 8135...
OPT_BasicBlock origBlock = getOrigBlock (inst);
OPT_BasicBlock _origBlock = getOrigBlock (inst);
void move(OPT_Instruction inst, OPT_BasicBlock to) { OPT_BasicBlock origBlock = getOrigBlock (inst); OPT_Instruction cand = null; /* find a position within bestBlock */ if (dominator.dominates (origBlock.getNumber(), to.getNumber())) { // moved down, so insert in from OPT_Instruction last = null; OPT_InstructionEnumeration e = to.forwardInstrEnumerator(); while (e.hasMoreElements()) { cand = e.next(); if (DEBUG) VM.sysWrite(cand.toString() + "\n"); if (( !Label.conforms (cand)) // skip labels, phis, and yieldpoints && !cand.isYieldPoint() && !Phi.conforms(cand)) break; last = cand; } cand = last; } else { // moved up, so insert at end of block OPT_InstructionEnumeration e = to.reverseInstrEnumerator(); while (e.hasMoreElements()) { cand = e.next(); if (DEBUG) VM.sysWrite(cand.toString() + "\n"); if (( !BBend.conforms(cand)) && !cand.isBranch() // skip branches and newly placed insts && !relocated.contains (cand)) break; } if (DEBUG) VM.sysWrite ("Adding to relocated: "+inst+"\n"); relocated.add (inst); } if (DEBUG && moved.add(inst.operator)) VM.sysWrite("m(" + (ir.IRStage == ir.LIR ? "l" : "h") + ") " + inst.operator + "\n"); if (verbose) { VM.sysWrite(ir.IRStage == ir.LIR ? "%" : "#"); VM.sysWrite(" moving " + inst + " from " + origBlock + " to " + to + "\n" + "behind " + cand + "\n"); } inst.remove(); cand.insertAfter(inst); }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/cb4d5807180265c43e09e55a868066d05d56274a/OPT_LICM.java/clean/rvm/src/vm/compilers/optimizing/optimizations/global/ssa/codePlacement/OPT_LICM.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 3635, 12, 15620, 67, 11983, 1804, 16, 16456, 67, 8252, 1768, 358, 13, 288, 565, 16456, 67, 8252, 1768, 389, 4949, 1768, 273, 336, 4741, 1768, 261, 8591, 1769, 565, 16456, 67, 11983, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 3635, 12, 15620, 67, 11983, 1804, 16, 16456, 67, 8252, 1768, 358, 13, 288, 565, 16456, 67, 8252, 1768, 389, 4949, 1768, 273, 336, 4741, 1768, 261, 8591, 1769, 565, 16456, 67, 11983, ...
{
{
public Container getContainer() { return textComponent; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4039, 9272, 1435, 202, 202, 95, 1377, 327, 977, 1841, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4039, 9272, 1435, 202, 202, 95, 1377, 327, 977, 1841, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
addTaskAction = IDEActionFactory.ADD_TASK.create(getWindow());
addTaskAction = IDEActionFactory.ADD_TASK.create(window);
protected void makeActions(IWorkbenchWindow window) { // @issue should obtain from ConfigurationItemFactory statusLineItem = new StatusLineContributionItem("ModeContributionItem"); //$NON-NLS-1$ newWizardAction = ActionFactory.NEW.create(getWindow()); register(newWizardAction); newWizardDropDownAction = IDEActionFactory.NEW_WIZARD_DROP_DOWN .create(getWindow()); register(newWizardDropDownAction); importResourcesAction = ActionFactory.IMPORT.create(getWindow()); register(importResourcesAction); exportResourcesAction = ActionFactory.EXPORT.create(getWindow()); register(exportResourcesAction); buildAllAction = IDEActionFactory.BUILD.create(getWindow()); register(buildAllAction); cleanAction = IDEActionFactory.BUILD_CLEAN.create(getWindow()); register(cleanAction); toggleAutoBuildAction = IDEActionFactory.BUILD_AUTOMATICALLY .create(getWindow()); register(toggleAutoBuildAction); saveAction = ActionFactory.SAVE.create(getWindow()); register(saveAction); saveAsAction = ActionFactory.SAVE_AS.create(getWindow()); register(saveAsAction); saveAllAction = ActionFactory.SAVE_ALL.create(getWindow()); register(saveAllAction); undoAction = ActionFactory.UNDO.create(getWindow()); register(undoAction); redoAction = ActionFactory.REDO.create(getWindow()); register(redoAction); cutAction = ActionFactory.CUT.create(getWindow()); register(cutAction); copyAction = ActionFactory.COPY.create(getWindow()); register(copyAction); pasteAction = ActionFactory.PASTE.create(getWindow()); register(pasteAction); printAction = ActionFactory.PRINT.create(getWindow()); register(printAction); selectAllAction = ActionFactory.SELECT_ALL.create(getWindow()); register(selectAllAction); findAction = ActionFactory.FIND.create(getWindow()); register(findAction); closeAction = ActionFactory.CLOSE.create(getWindow()); register(closeAction); closeAllAction = ActionFactory.CLOSE_ALL.create(getWindow()); register(closeAllAction); closeAllSavedAction = ActionFactory.CLOSE_ALL_SAVED.create(getWindow()); register(closeAllSavedAction); helpContentsAction = ActionFactory.HELP_CONTENTS.create(getWindow()); register(helpContentsAction); aboutAction = ActionFactory.ABOUT.create(getWindow()); aboutAction .setImageDescriptor(IDEInternalWorkbenchImages .getImageDescriptor(IDEInternalWorkbenchImages.IMG_OBJS_DEFAULT_PROD)); register(aboutAction); openPreferencesAction = ActionFactory.PREFERENCES.create(getWindow()); register(openPreferencesAction); addBookmarkAction = IDEActionFactory.BOOKMARK.create(getWindow()); register(addBookmarkAction); addTaskAction = IDEActionFactory.ADD_TASK.create(getWindow()); register(addTaskAction); deleteAction = ActionFactory.DELETE.create(getWindow()); register(deleteAction); AboutInfo[] infos = IDEWorkbenchPlugin.getDefault().getFeatureInfos(); // See if a welcome page is specified for (int i = 0; i < infos.length; i++) { if (infos[i].getWelcomePageURL() != null) { quickStartAction = IDEActionFactory.QUICK_START .create(getWindow()); register(quickStartAction); break; } } // See if a tips and tricks page is specified for (int i = 0; i < infos.length; i++) { if (infos[i].getTipsAndTricksHref() != null) { tipsAndTricksAction = IDEActionFactory.TIPS_AND_TRICKS .create(getWindow()); register(tipsAndTricksAction); break; } } // Actions for invisible accelerators showViewMenuAction = ActionFactory.SHOW_VIEW_MENU.create(getWindow()); register(showViewMenuAction); showPartPaneMenuAction = ActionFactory.SHOW_PART_PANE_MENU .create(getWindow()); register(showPartPaneMenuAction); nextEditorAction = ActionFactory.NEXT_EDITOR.create(getWindow()); register(nextEditorAction); prevEditorAction = ActionFactory.PREVIOUS_EDITOR.create(getWindow()); register(prevEditorAction); ActionFactory.linkCycleActionPair(nextEditorAction, prevEditorAction); nextPartAction = ActionFactory.NEXT_PART.create(getWindow()); register(nextPartAction); prevPartAction = ActionFactory.PREVIOUS_PART.create(getWindow()); register(prevPartAction); ActionFactory.linkCycleActionPair(nextPartAction, prevPartAction); nextPerspectiveAction = ActionFactory.NEXT_PERSPECTIVE .create(getWindow()); register(nextPerspectiveAction); prevPerspectiveAction = ActionFactory.PREVIOUS_PERSPECTIVE .create(getWindow()); register(prevPerspectiveAction); ActionFactory.linkCycleActionPair(nextPerspectiveAction, prevPerspectiveAction); activateEditorAction = ActionFactory.ACTIVATE_EDITOR .create(getWindow()); register(activateEditorAction); maximizePartAction = ActionFactory.MAXIMIZE.create(getWindow()); register(maximizePartAction); minimizePartAction = ActionFactory.MINIMIZE.create(getWindow()); register(minimizePartAction); workbenchEditorsAction = ActionFactory.SHOW_OPEN_EDITORS .create(getWindow()); register(workbenchEditorsAction); workbookEditorsAction = ActionFactory.SHOW_WORKBOOK_EDITORS .create(getWindow()); register(workbookEditorsAction); hideShowEditorAction = ActionFactory.SHOW_EDITOR.create(getWindow()); register(hideShowEditorAction); savePerspectiveAction = ActionFactory.SAVE_PERSPECTIVE .create(getWindow()); register(savePerspectiveAction); editActionSetAction = ActionFactory.EDIT_ACTION_SETS .create(getWindow()); register(editActionSetAction); lockToolBarAction = ActionFactory.LOCK_TOOL_BAR.create(getWindow()); register(lockToolBarAction); resetPerspectiveAction = ActionFactory.RESET_PERSPECTIVE .create(getWindow()); register(resetPerspectiveAction); closePerspAction = ActionFactory.CLOSE_PERSPECTIVE.create(getWindow()); register(closePerspAction); closeAllPerspsAction = ActionFactory.CLOSE_ALL_PERSPECTIVES .create(getWindow()); register(closeAllPerspsAction); forwardHistoryAction = ActionFactory.FORWARD_HISTORY .create(getWindow()); register(forwardHistoryAction); backwardHistoryAction = ActionFactory.BACKWARD_HISTORY .create(getWindow()); register(backwardHistoryAction); revertAction = ActionFactory.REVERT.create(getWindow()); register(revertAction); refreshAction = ActionFactory.REFRESH.create(getWindow()); register(refreshAction); propertiesAction = ActionFactory.PROPERTIES.create(getWindow()); register(propertiesAction); quitAction = ActionFactory.QUIT.create(getWindow()); register(quitAction); moveAction = ActionFactory.MOVE.create(getWindow()); register(moveAction); renameAction = ActionFactory.RENAME.create(getWindow()); register(renameAction); goIntoAction = ActionFactory.GO_INTO.create(getWindow()); register(goIntoAction); backAction = ActionFactory.BACK.create(getWindow()); register(backAction); forwardAction = ActionFactory.FORWARD.create(getWindow()); register(forwardAction); upAction = ActionFactory.UP.create(getWindow()); register(upAction); nextAction = ActionFactory.NEXT.create(getWindow()); nextAction .setImageDescriptor(IDEInternalWorkbenchImages .getImageDescriptor(IDEInternalWorkbenchImages.IMG_ETOOL_NEXT_NAV)); register(nextAction); previousAction = ActionFactory.PREVIOUS.create(getWindow()); previousAction .setImageDescriptor(IDEInternalWorkbenchImages .getImageDescriptor(IDEInternalWorkbenchImages.IMG_ETOOL_PREVIOUS_NAV)); register(previousAction); buildProjectAction = IDEActionFactory.BUILD_PROJECT.create(getWindow()); register(buildProjectAction); openProjectAction = IDEActionFactory.OPEN_PROJECT.create(getWindow()); register(openProjectAction); closeProjectAction = IDEActionFactory.CLOSE_PROJECT.create(getWindow()); register(closeProjectAction); openWorkspaceAction = IDEActionFactory.OPEN_WORKSPACE .create(getWindow()); register(openWorkspaceAction); projectPropertyDialogAction = IDEActionFactory.OPEN_PROJECT_PROPERTIES .create(getWindow()); register(projectPropertyDialogAction); if (getWindow().getWorkbench().getIntroManager().hasIntro()) { introAction = ActionFactory.INTRO.create(window); register(introAction); } String showInQuickMenuId = "org.eclipse.ui.navigate.showInQuickMenu"; //$NON-NLS-1$ showInQuickMenu = new QuickMenuAction(showInQuickMenuId) { protected void fillMenu(IMenuManager menu) { menu.add(ContributionItemFactory.VIEWS_SHOW_IN .create(getWindow())); } }; register(showInQuickMenu); final String newQuickMenuId = "org.eclipse.ui.file.newQuickMenu"; //$NON-NLS-1$ newQuickMenu = new QuickMenuAction(newQuickMenuId) { protected void fillMenu(IMenuManager menu) { menu.add(new NewWizardMenu(getWindow())); } }; register(newQuickMenu); pinEditorContributionItem = ContributionItemFactory.PIN_EDITOR .create(getWindow()); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/1bde0643dd187b23bf57cd332e0997f6c371aaa1/WorkbenchActionBuilder.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1221, 6100, 12, 45, 2421, 22144, 3829, 2742, 13, 288, 3639, 368, 632, 13882, 1410, 7161, 628, 4659, 1180, 1733, 3639, 1267, 30038, 273, 394, 2685, 1670, 442, 4027, 1180, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1221, 6100, 12, 45, 2421, 22144, 3829, 2742, 13, 288, 3639, 368, 632, 13882, 1410, 7161, 628, 4659, 1180, 1733, 3639, 1267, 30038, 273, 394, 2685, 1670, 442, 4027, 1180, 2932, ...
udpService = new Service( name, TransportType.DATAGRAM, port ); tcpService = new Service( name, TransportType.SOCKET, port ); registry.bind( udpService, handler ); registry.bind( tcpService, handler );
acceptor.bind( new InetSocketAddress( port ), handler );
public DnsServer(DnsConfiguration config, ServiceRegistry registry, RecordStore store) { this.config = config; this.registry = registry; this.store = store; String name = config.getName(); int port = config.getPort(); try { handler = new DnsProtocolHandler( config, this.store ); udpService = new Service( name, TransportType.DATAGRAM, port ); tcpService = new Service( name, TransportType.SOCKET, port ); registry.bind( udpService, handler ); registry.bind( tcpService, handler ); log.debug( "{} listening on port {}", name, new Integer( port ) ); } catch ( IOException ioe ) { log.error( ioe.getMessage(), ioe ); } }
10677 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10677/05ad6b2f1dfc0a667fdae4160212ce3cf4f8151a/DnsServer.java/buggy/protocol-dns/src/main/java/org/apache/directory/server/dns/DnsServer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 28456, 2081, 12, 18600, 1750, 642, 16, 1956, 4243, 4023, 16, 5059, 2257, 1707, 13, 565, 288, 3639, 333, 18, 1425, 273, 642, 31, 3639, 333, 18, 9893, 273, 4023, 31, 3639, 333, 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, 28456, 2081, 12, 18600, 1750, 642, 16, 1956, 4243, 4023, 16, 5059, 2257, 1707, 13, 565, 288, 3639, 333, 18, 1425, 273, 642, 31, 3639, 333, 18, 9893, 273, 4023, 31, 3639, 333, 18, ...
String global, boolean flat);
String global, boolean flat);
public Object newRegExp(Context cx, Scriptable scope, String source, String global, boolean flat);
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/fb69c14ae4e860dfb5b5df7d866e510acca73ed9/RegExpProxy.java/buggy/js/rhino/src/org/mozilla/javascript/RegExpProxy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 394, 13673, 12, 1042, 9494, 16, 22780, 2146, 16, 514, 1084, 16, 4766, 2398, 514, 2552, 16, 1250, 3569, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 394, 13673, 12, 1042, 9494, 16, 22780, 2146, 16, 514, 1084, 16, 4766, 2398, 514, 2552, 16, 1250, 3569, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
return TableSorter.DESCENDING;
return TableComparator.DESCENDING;
public int getDefaultDirection() { return TableSorter.DESCENDING; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/b34bac03ab70048a4b238ebb6ad2383d1ae284b3/FieldPriority.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldPriority.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 4829, 8212, 1435, 288, 202, 202, 2463, 3555, 24952, 18, 10964, 12280, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 4829, 8212, 1435, 288, 202, 202, 2463, 3555, 24952, 18, 10964, 12280, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
String enc = serverInfo.getProperty(ENCODING, "UTF-8");
String enc = serverInfo.getProperty(Configuration.ENCODING, "UTF-8");
public static void main(String args[]) { Runtime.getRuntime().addShutdownHook(new Thread() { public void run() { Shutdown.shutdown(); } }); // load server defaults configuration try { serverInfo.load(AppServer.class.getResourceAsStream("/conf/snipsnap.conf")); } catch (IOException e) { // ignore } System.setProperty(VERSION, serverInfo.getProperty(VERSION)); // output version and copyright information System.out.println("SnipSnap " + serverInfo.getProperty(VERSION)); BufferedReader copyrightReader = new BufferedReader(new InputStreamReader(AppServer.class.getResourceAsStream("/conf/copyright.txt"))); String line = null; try { while ((line = copyrightReader.readLine()) != null) { System.out.println(line); } } catch (IOException e) { // ignore io exception here ... } // load additional local configuration try { serverInfo.load(new FileInputStream("conf/snipsnap.conf")); } catch (IOException e) { // ignore local server configuration not found } serverInfo = parseArguments(args, serverInfo); // set encoding of the JVM String enc = serverInfo.getProperty(ENCODING, "UTF-8"); System.setProperty("file.encoding", enc); // start jetty server and install web application try { jettyServer = new Server(getResource("/conf/jetty.conf", "./conf/jetty.conf")); jettyServer.start(); } catch (IOException e) { System.err.println("WARNING: admin server configuration not found: " + e); } catch (MultiException e) { Iterator exceptions = e.getExceptions().iterator(); while (exceptions.hasNext()) { Exception ex = (Exception) exceptions.next(); ex.printStackTrace(); System.out.println("ERROR: can't start server: " + ex.getMessage()); } System.exit(-1); } // now, after loading all possible services we will look for applications and start them int errors = ApplicationLoader.loadApplications(serverInfo.getProperty(WEBAPP_ROOT)); if (errors == 0 && ApplicationLoader.getApplicationCount() == 0) { System.out.println("ATTENTION: Server is still unconfigured!"); System.out.println("ATTENTION: Point your browser to the following address:"); HttpListener listener = jettyServer.getListeners()[0]; String host = listener.getHost(); if (InetAddrPort.__0_0_0_0.equals(host)) { try { host = InetAddress.getLocalHost().getHostName(); } catch (UnknownHostException e) { host = System.getProperty("host", "localhost"); } } System.out.println("ATTENTION: http://" + host + ":" + listener.getPort() + "/install"); } else { System.out.println(ApplicationLoader.getApplicationCount() + " applications loaded and running (" + errors + " errors)."); } }
6853 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6853/bd335d59f4f784dcaffcc5850ea73efff2300495/AppServer.java/buggy/src/org/snipsnap/server/AppServer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2774, 12, 780, 833, 63, 5717, 288, 565, 2509, 18, 588, 5576, 7675, 1289, 10961, 5394, 12, 2704, 4884, 1435, 288, 1377, 1071, 918, 1086, 1435, 288, 3639, 17640, 18, 15132, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2774, 12, 780, 833, 63, 5717, 288, 565, 2509, 18, 588, 5576, 7675, 1289, 10961, 5394, 12, 2704, 4884, 1435, 288, 1377, 1071, 918, 1086, 1435, 288, 3639, 17640, 18, 15132, ...
} else if (getFormConfiguration().captchaFieldIsOnCheckPage() && ACTION_CONFIRMED.equals(getRequest().getParameter(PARAM_FORMACTION)) && !validationCorrect) {
} else if (getFormConfiguration().captchaFieldIsOnCheckPage() && ACTION_CONFIRMED.equals(getRequest().getParameter(PARAM_FORMACTION)) && !validate()) {
public boolean showCheck() { boolean result = false; boolean validationCorrect = validate(); if (getFormConfiguration().getShowCheck() && ACTION_SUBMIT.equals(getRequest().getParameter(PARAM_FORMACTION))) { result = true; } else if (getFormConfiguration().captchaFieldIsOnCheckPage() && ACTION_CONFIRMED.equals(getRequest().getParameter(PARAM_FORMACTION)) && !validationCorrect) { result = true; } return result; }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/f0f12c4913fd8751ca68b32444bbf5f77c976de9/CmsFormHandler.java/buggy/src-modules/org/opencms/frontend/templateone/form/CmsFormHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 2405, 1564, 1435, 288, 7734, 1250, 563, 273, 629, 31, 3639, 1250, 3379, 16147, 273, 1954, 5621, 7734, 309, 261, 588, 1204, 1750, 7675, 588, 5706, 1564, 1435, 597, 11385, 67, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 2405, 1564, 1435, 288, 7734, 1250, 563, 273, 629, 31, 3639, 1250, 3379, 16147, 273, 1954, 5621, 7734, 309, 261, 588, 1204, 1750, 7675, 588, 5706, 1564, 1435, 597, 11385, 67, 8...
int defaultVal = extend+restrict+list+union+substitute;
int defaultVal = extend+restrict+substitute;
private int parseBlockSet (String blockString) throws Exception { if( blockString == null) return fBlockDefault; else if ( blockString.equals (SchemaSymbols.ATTVAL_POUNDALL) ) { return SchemaSymbols.SUBSTITUTION+SchemaSymbols.EXTENSION+SchemaSymbols.LIST+SchemaSymbols.RESTRICTION+SchemaSymbols.UNION; } else { int extend = 0; int restrict = 0; int substitute = 0; int list = 0; int union = 0; StringTokenizer t = new StringTokenizer (blockString, " "); while (t.hasMoreTokens()) { String token = t.nextToken (); if ( token.equals (SchemaSymbols.ATTVAL_SUBSTITUTION) ) { if ( substitute == 0 ) { substitute = SchemaSymbols.SUBSTITUTION; } else { // REVISIT: Localize reportGenericSchemaError ( "The value 'substitution' already in the list" ); } } else if ( token.equals (SchemaSymbols.ATTVAL_EXTENSION) ) { if ( extend == 0 ) { extend = SchemaSymbols.EXTENSION; } else { // REVISIT: Localize reportGenericSchemaError ( "The value 'extension' is already in the list" ); } } else if ( token.equals (SchemaSymbols.ELT_LIST) ) { if ( list == 0 ) { list = SchemaSymbols.LIST; } else { // REVISIT: Localize reportGenericSchemaError ( "The value 'list' is already present in the list" ); } } else if ( token.equals (SchemaSymbols.ELT_UNION) ) { if ( union == 0 ) { union = SchemaSymbols.UNION; } else { // REVISIT: Localize reportGenericSchemaError ( "The value 'union' is already present in the list" ); } } else if ( token.equals (SchemaSymbols.ATTVAL_RESTRICTION) ) { if ( restrict == 0 ) { restrict = SchemaSymbols.RESTRICTION; } else { // REVISIT: Localize reportGenericSchemaError ( "The value 'restriction' is already in the list" ); } } else { // REVISIT: Localize reportGenericSchemaError ( "Invalid block value (" + blockString + ")" ); } } int defaultVal = extend+restrict+list+union+substitute; return (defaultVal == 0 ? fBlockDefault : defaultVal); } }
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/23ae44560d6bd8800691f13371bc64acd5f995ae/TraverseSchema.java/buggy/src/org/apache/xerces/validators/schema/TraverseSchema.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 1109, 1768, 694, 261, 780, 1203, 780, 13, 225, 1216, 1185, 565, 288, 5411, 309, 12, 1203, 780, 422, 446, 13, 1171, 327, 284, 1768, 1868, 31, 5411, 469, 309, 261, 1203, 780, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 1109, 1768, 694, 261, 780, 1203, 780, 13, 225, 1216, 1185, 565, 288, 5411, 309, 12, 1203, 780, 422, 446, 13, 1171, 327, 284, 1768, 1868, 31, 5411, 469, 309, 261, 1203, 780, ...
ProjectUtil.createNewProject(null);
try { BrowserUtil.launchBrowser(KEYMAP_URL); } catch (IllegalThreadStateException ex) { }
protected void onPress(InputEvent e) { ProjectUtil.createNewProject(null); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/057c1fc4eca73d8d659037771b3e5b73e8b81dd3/WelcomeScreen.java/clean/source/com/intellij/openapi/wm/impl/welcomeScreen/WelcomeScreen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 4750, 918, 603, 11840, 12, 1210, 1133, 425, 13, 288, 3639, 775, 288, 15408, 1304, 18, 20738, 9132, 12, 3297, 8352, 67, 1785, 1769, 289, 1044, 261, 12195, 3830, 5060, 431, 13, 288, 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, 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, 4750, 918, 603, 11840, 12, 1210, 1133, 425, 13, 288, 3639, 775, 288, 15408, 1304, 18, 20738, 9132, 12, 3297, 8352, 67, 1785, 1769, 289, 1044, 261, 12195, 3830, 5060, 431, 13, 288, 225, ...
File pedFile = new File(inputOptions[0]);
File inFile = new File(inputOptions[0]);
void readPedGenotypes(String[] f, int type){ //input is a 3 element array with //inputOptions[0] = ped file //inputOptions[1] = info file (null if none) //inputOptions[2] = max comparison distance (don't compute d' if markers are greater than this dist apart) //type is either 3 or 4 for ped and hapmap files respectively inputOptions = f; File pedFile = new File(inputOptions[0]); try { if (pedFile.length() < 1){ throw new HaploViewException("Pedfile is empty or nonexistent: " + pedFile.getName()); } checkPanel = new CheckDataPanel(pedFile, type); checkPanel.setAlignmentX(Component.CENTER_ALIGNMENT); theData = new HaploData(assocTest); JTable table = checkPanel.getTable(); boolean[] markerResultArray = new boolean[table.getRowCount()]; for (int i = 0; i < table.getRowCount(); i++){ markerResultArray[i] = ((Boolean)table.getValueAt(i,7)).booleanValue(); } theData.linkageToChrom(markerResultArray,checkPanel.getPedFile(),checkPanel.getPedFile().getHMInfo()); processData(checkPanel.getPedFile().getHMInfo()); }catch(IOException ioexec) { JOptionPane.showMessageDialog(this, ioexec.getMessage(), "File Error", JOptionPane.ERROR_MESSAGE); } catch(PedFileException pfe){ JOptionPane.showMessageDialog(this, pfe.getMessage(), "File Error", JOptionPane.ERROR_MESSAGE); }catch (HaploViewException hve){ JOptionPane.showMessageDialog(this, hve.getMessage(), "File Error", JOptionPane.ERROR_MESSAGE); } }
51222 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51222/74b6b739164a324ce0d6aa10c62d5cca5cc16768/HaploView.java/buggy/edu/mit/wi/haploview/HaploView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 855, 52, 329, 7642, 20297, 12, 780, 8526, 284, 16, 509, 618, 15329, 3639, 368, 2630, 353, 279, 890, 930, 526, 598, 3639, 368, 2630, 1320, 63, 20, 65, 273, 31840, 585, 3639, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 855, 52, 329, 7642, 20297, 12, 780, 8526, 284, 16, 509, 618, 15329, 3639, 368, 2630, 353, 279, 890, 930, 526, 598, 3639, 368, 2630, 1320, 63, 20, 65, 273, 31840, 585, 3639, 368, ...
public Effect pieceMoved (BangObject bangobj, Piece piece)
public void pieceMoved (BangObject bangobj, Piece piece)
public Effect pieceMoved (BangObject bangobj, Piece piece) { return null; }
8059 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8059/61174950174b0f249df257a59cb9325ec9646940/Scenario.java/buggy/src/java/com/threerings/bang/game/server/scenario/Scenario.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 11151, 25317, 261, 38, 539, 921, 324, 539, 2603, 16, 453, 8414, 11151, 13, 565, 288, 3639, 327, 446, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 11151, 25317, 261, 38, 539, 921, 324, 539, 2603, 16, 453, 8414, 11151, 13, 565, 288, 3639, 327, 446, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
log.finest("\n" + Util.dumpString(sfBytes, "+++ sfBytes "));
log.finest("\n" + Util.dumpString(sfBytes, "+++ sfBytes "));
void writeSF(JarOutputStream jar) throws IOException { if (this.state != FINISHED) throw new IllegalStateException("Helper is NOT finished"); ByteArrayOutputStream baos = new ByteArrayOutputStream(); JarUtils.writeSFManifest(sfMainAttributes, sfEntries, baos); sfBytes = baos.toByteArray(); log.finest("\n" + Util.dumpString(sfBytes, "+++ sfBytes ")); jar.write(sfBytes); jar.flush(); this.state = SF_GENERATED; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/a0a1b5a96bc35d919f1dc104ff6cc513e7610801/SFHelper.java/clean/core/src/classpath/tools/gnu/classpath/tools/jarsigner/SFHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 1045, 22395, 12, 10813, 4632, 7334, 13, 1216, 1860, 225, 288, 565, 309, 261, 2211, 18, 2019, 480, 25768, 2056, 13, 1377, 604, 394, 5477, 2932, 2276, 353, 4269, 6708, 8863, 565, 11559...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 1045, 22395, 12, 10813, 4632, 7334, 13, 1216, 1860, 225, 288, 565, 309, 261, 2211, 18, 2019, 480, 25768, 2056, 13, 1377, 604, 394, 5477, 2932, 2276, 353, 4269, 6708, 8863, 565, 11559...
random = new Random(17);
layout.random = new Random(17);
public static void simAnnealAssign(FlatNode node) { System.out.println("Simulated Annealing Assignment"); int nsucc =0, j = 0; double currentCost = 0.0, minCost = 0.0; //number of paths tried at an iteration int nover = 100; //* RawBackend.rawRows * RawBackend.rawColumns; try { init(node); random = new Random(17); //random placement randomPlacement(); filew = new FileWriter("simanneal.out"); int configuration = 0; currentCost = placementCost(); System.out.println("Initial Cost: " + currentCost); if (KjcOptions.noanneal || KjcOptions.decoupled) { dumpLayout("noanneal.dot"); return; } //as a little hack, we will cache the layout with the minimum cost //these two hashmaps store this layout HashMap sirMin = (HashMap)SIRassignment.clone(); HashMap tileMin = (HashMap)tileAssignment.clone(); minCost = currentCost; if (currentCost == 0.0) { dumpLayout("layout.dot"); return; } //run the annealing twice. The first iteration is really just to get a //good initial layout. Some random layouts really kill the algorithm for (int two = 0; two < RawBackend.rawRows ; two++) { double t = annealMaxTemp(); double tFinal = annealMinTemp(); while (true) { int k = 0; nsucc = 0; for (k = 0; k < nover; k++) { if (perturbConfiguration(t)) { filew.write(configuration++ + " " + placementCost() + "\n"); nsucc++; } currentCost = placementCost(); //keep the layout with the minimum cost //this will be the final layout if (currentCost < minCost) { minCost = currentCost; //save the layout with the minimum cost sirMin = (HashMap)SIRassignment.clone(); tileMin = (HashMap)tileAssignment.clone(); } if (placementCost() == 0.0) break; } t *= TFACTR; if (nsucc == 0) break; if (currentCost == 0) break; if (t <= tFinal) break; j++; } if (currentCost == 0) break; } currentCost = placementCost(); System.out.println("Final Cost: " + currentCost + " Min Cost : " + minCost + " in " + j + " iterations."); if (minCost < currentCost) { SIRassignment = sirMin; tileAssignment = tileMin; } filew.close(); } catch (Exception e) { e.printStackTrace(); } dumpLayout("layout.dot"); }
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/5b2a87706aed7992affe11d823069f4e5bc6fc36/Layout.java/clean/streams/src/at/dms/kjc/raw/Layout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 3142, 979, 4644, 287, 4910, 12, 16384, 907, 756, 13, 377, 288, 202, 3163, 18, 659, 18, 8222, 2932, 7993, 11799, 1922, 4644, 287, 310, 15499, 8863, 202, 474, 3153, 89, 95...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 3142, 979, 4644, 287, 4910, 12, 16384, 907, 756, 13, 377, 288, 202, 3163, 18, 659, 18, 8222, 2932, 7993, 11799, 1922, 4644, 287, 310, 15499, 8863, 202, 474, 3153, 89, 95...
+ "\n\nCheck network connection.", e));
+ "\n\nCheck network connection.", e));
protected List<AbstractQueryHit> performQuery(AbstractRepositoryQuery repositoryQuery, final IProgressMonitor monitor, MultiStatus queryStatus) { if (!(repositoryQuery instanceof JiraRepositoryQuery)) { return Collections.emptyList(); } final JiraRepositoryQuery jiraRepositoryQuery = (JiraRepositoryQuery) repositoryQuery; final List<AbstractQueryHit> hits = new ArrayList<AbstractQueryHit>(); JiraIssueCollector collector = new JiraIssueCollector(monitor, jiraRepositoryQuery, hits); try { TaskRepository repository = MylarTaskListPlugin.getRepositoryManager().getRepository( MylarJiraPlugin.REPOSITORY_KIND, repositoryQuery.getRepositoryUrl()); JiraServerFacade.getDefault().getJiraServer(repository).search(jiraRepositoryQuery.getNamedFilter(), collector); } catch (Exception e) { queryStatus.add(new Status(IStatus.OK, MylarTaskListPlugin.PLUGIN_ID, IStatus.OK, "Could not log in to server: " + repositoryQuery.getRepositoryUrl() + "\n\nCheck network connection.", e)); } queryStatus.add(Status.OK_STATUS); return hits; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/8488498a51ba5cd9d5edff02a2a327fe4773890c/JiraRepositoryConnector.java/clean/org.eclipse.mylyn.jira.ui/src/org/eclipse/mylyn/internal/jira/JiraRepositoryConnector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 987, 32, 7469, 1138, 13616, 34, 3073, 1138, 12, 7469, 3305, 1138, 3352, 1138, 16, 1082, 202, 6385, 467, 5491, 7187, 6438, 16, 5991, 1482, 843, 1482, 13, 288, 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, 1117, 987, 32, 7469, 1138, 13616, 34, 3073, 1138, 12, 7469, 3305, 1138, 3352, 1138, 16, 1082, 202, 6385, 467, 5491, 7187, 6438, 16, 5991, 1482, 843, 1482, 13, 288, 202, 202, 430, 1...
WorkbenchWindow win = (WorkbenchWindow) window; if (win != null) { WorkbenchPage page = win.getActiveWorkbenchPage(); if (page != null) { IPerspectiveDescriptor perspectives[] = page .getOpenPerspectives(); for (int i = 0; i < perspectives.length; i++) { IPerspectiveDescriptor persp = perspectives[i]; if (perspectiveId.equals(persp.getId())) { win.getShell().open(); page.setPerspective(persp); return page; } } } }
WorkbenchWindow win = (WorkbenchWindow) window; if (win != null) { WorkbenchPage page = win.getActiveWorkbenchPage(); if (page != null) { IPerspectiveDescriptor perspectives[] = page .getOpenPerspectives(); for (int i = 0; i < perspectives.length; i++) { IPerspectiveDescriptor persp = perspectives[i]; if (perspectiveId.equals(persp.getId())) { win.getShell().open(); page.setPerspective(persp); return page; } } } }
public IWorkbenchPage showPerspective(String perspectiveId, IWorkbenchWindow window) throws WorkbenchException { Assert.isNotNull(perspectiveId); // If the specified window has the requested perspective open, then the // window // is given focus and the perspective is shown. The page's input is // ignored. WorkbenchWindow win = (WorkbenchWindow) window; if (win != null) { WorkbenchPage page = win.getActiveWorkbenchPage(); if (page != null) { IPerspectiveDescriptor perspectives[] = page .getOpenPerspectives(); for (int i = 0; i < perspectives.length; i++) { IPerspectiveDescriptor persp = perspectives[i]; if (perspectiveId.equals(persp.getId())) { win.getShell().open(); page.setPerspective(persp); return page; } } } } // If another window that has the workspace root as input and the // requested // perpective open and active, then the window is given focus. IAdaptable input = getDefaultPageInput(); IWorkbenchWindow[] windows = getWorkbenchWindows(); for (int i = 0; i < windows.length; i++) { win = (WorkbenchWindow) windows[i]; if (window != win) { WorkbenchPage page = win.getActiveWorkbenchPage(); if (page != null) { boolean inputSame = false; if (input == null) inputSame = (page.getInput() == null); else inputSame = input.equals(page.getInput()); if (inputSame) { Perspective persp = page.getActivePerspective(); if (perspectiveId.equals(persp.getDesc().getId())) { Shell shell = win.getShell(); shell.open(); if (shell.getMinimized()) shell.setMinimized(false); return page; } } } } } // Otherwise the requested perspective is opened and shown in the // specified // window or in a new window depending on the current user preference // for opening // perspectives, and that window is given focus. win = (WorkbenchWindow) window; if (win != null) { IPreferenceStore store = WorkbenchPlugin.getDefault() .getPreferenceStore(); int mode = store.getInt(IPreferenceConstants.OPEN_PERSP_MODE); IWorkbenchPage page = win.getActiveWorkbenchPage(); IPerspectiveDescriptor persp = null; if (page != null) persp = page.getPerspective(); // Only open a new window if user preference is set and the window // has an active perspective. if (IPreferenceConstants.OPM_NEW_WINDOW == mode && persp != null) { IWorkbenchWindow newWindow = openWorkbenchWindow(perspectiveId, input); return newWindow.getActivePage(); } IPerspectiveDescriptor desc = getPerspectiveRegistry() .findPerspectiveWithId(perspectiveId); if (desc == null) throw new WorkbenchException( NLS.bind(WorkbenchMessages.WorkbenchPage_ErrorCreatingPerspective, perspectiveId )); win.getShell().open(); if (page == null) page = win.openPage(perspectiveId, input); else page.setPerspective(desc); return page; } // Just throw an exception.... throw new WorkbenchException( NLS.bind(WorkbenchMessages.Workbench_showPerspectiveError, perspectiveId )); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/9337b828e86179850647141c34d497be28275ed2/Workbench.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 2421, 22144, 1964, 2405, 14781, 16772, 12, 780, 26651, 548, 16, 5411, 467, 2421, 22144, 3829, 2742, 13, 1216, 4147, 22144, 503, 288, 3639, 5452, 18, 291, 5962, 12, 10422, 16772, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 2421, 22144, 1964, 2405, 14781, 16772, 12, 780, 26651, 548, 16, 5411, 467, 2421, 22144, 3829, 2742, 13, 1216, 4147, 22144, 503, 288, 3639, 5452, 18, 291, 5962, 12, 10422, 16772, ...
Commandline cl = StarteamCommandLineUtils.createStarteamBaseCommandLine( "add", toBeAddedFile, repo );
Commandline cl = StarteamCommandLineUtils.createStarteamBaseCommandLine( "add", scmFileSet, repo );
static Commandline createCommandLine( StarteamScmProviderRepository repo, File toBeAddedFile, String issue ) { Commandline cl = StarteamCommandLineUtils.createStarteamBaseCommandLine( "add", toBeAddedFile, repo ); if ( issue != null && issue.length() > 0 ) { cl.createArgument().setValue( "-cr" ); cl.createArgument().setValue( issue ); } cl.createArgument().setValue( toBeAddedFile.getName() ); return cl; }
48502 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48502/e75a8292d17bf2c67ba0aedf8478c856ecc161f3/StarteamAddCommand.java/clean/maven-scm-providers/maven-scm-provider-starteam/src/main/java/org/apache/maven/scm/provider/starteam/command/add/StarteamAddCommand.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 3498, 1369, 752, 21391, 12, 3603, 3820, 1541, 81, 2249, 3305, 3538, 16, 1387, 21333, 8602, 812, 16, 514, 5672, 262, 565, 288, 3639, 3498, 1369, 927, 273, 3603, 3820, 21391, 1989, 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, 760, 3498, 1369, 752, 21391, 12, 3603, 3820, 1541, 81, 2249, 3305, 3538, 16, 1387, 21333, 8602, 812, 16, 514, 5672, 262, 565, 288, 3639, 3498, 1369, 927, 273, 3603, 3820, 21391, 1989, 18,...
log.error(ioError);
System.err.println(ioError);
public static void main(String[] args) { String config="config.txt"; BufferedReader fileReader; String line; boolean sender=false; int num_msgs=1000; int msg_size=500; int num_senders=1; long log_interval=1000; ServerSocket srv_sock; List nodes=new ArrayList(); // list of cluster nodes (InetAddresses) for(int i=0; i < args.length; i++) { if("-sender".equals(args[i])) { sender=true; continue; } if("-receiver".equals(args[i])) { sender=false; continue; } if("-config".equals(args[i])) { config=args[++i]; continue; } help(); return; } try { fileReader=new BufferedReader(new FileReader(config)); while((line=fileReader.readLine()) != null) { if(line.startsWith("#")) continue; else if(line.startsWith("NUM_MSGS=")) { num_msgs=Integer.parseInt(line.substring(line.indexOf('=') + 1, line.indexOf(';'))); } else if(line.startsWith("MSG_SIZE=")) { msg_size=Integer.parseInt(line.substring(line.indexOf('=') + 1, line.indexOf(';'))); } else if(line.startsWith("GRPMEMBERS=")) { grpMembers=Integer.parseInt(line.substring(line.indexOf('=') + 1, line.indexOf(';'))); } else if(line.startsWith("NUM_SENDERS=")) { num_senders=Integer.parseInt(line.substring(line.indexOf('=') + 1, line.indexOf(';'))); } else if(line.startsWith("LOG_INTERVAL=")) { log_interval=Long.parseLong(line.substring(line.indexOf('=') + 1, line.indexOf(';'))); } else if(line.startsWith("CLUSTER=")) { nodes=parseCommaDelimitedList(line.substring(line.indexOf('=') + 1, line.indexOf(';')).trim()); } else if(line.startsWith("GNUPLOT_OUTPUT=")) { // only parse if not yet set by -Dgnuplot_output=true option (overrides file) if(System.getProperty("gnuplot_output") == null) { String gnuplot_output=line.substring(line.indexOf('=') + 1, line.indexOf(';')).trim(); if(gnuplot_output != null) System.setProperty("gnuplot_output", gnuplot_output); } } } fileReader.close(); System.out.println("Javagroups test:"); String s="Initial params parsing completed. Starting test" + " with these values:\n" + "Sender:" + sender + " num_msgs:" + num_msgs + " Size(bytes):" + msg_size + " # Mbrs:" + grpMembers + " Senders: " + num_senders + "\nLog interval: " + log_interval + '\n'; System.out.println(s); Logger.getLogger(Test.class).info("main(): " + s); srv_sock=new ServerSocket(srv_port); new TcpTester(sender, num_msgs, msg_size, grpMembers, num_senders, log_interval, srv_sock, nodes).initialize(); } catch(FileNotFoundException notFound) { log.error("File not found.\n" + notFound); } catch(IOException ioError) { log.error(ioError); } catch(Exception ex) { ex.printStackTrace(); } }
50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/13de68466e3cf7fde6ee0bde0cee09a33e837e89/Test.java/buggy/tests/other/org/jgroups/tests/adapttcp/Test.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 3639, 514, 642, 1546, 1425, 18, 5830, 14432, 3639, 10633, 585, 2514, 31, 3639, 514, 980, 31, 3639, 1250, 5793, 33, 5743, 31, 3639, 509...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 3639, 514, 642, 1546, 1425, 18, 5830, 14432, 3639, 10633, 585, 2514, 31, 3639, 514, 980, 31, 3639, 1250, 5793, 33, 5743, 31, 3639, 509...
int x0 = getLocation().x;
public int columnAtPoint(Point point) { if (point != null) { int x0 = getLocation().x; int ncols = getColumnCount(); Dimension gap = getIntercellSpacing(); TableColumnModel cols = getColumnModel(); int x = point.x; for (int i = 0; i < ncols; ++i) { int width = cols.getColumn(i).getWidth() + (gap == null ? 0 : gap.width); if (0 <= x && x < width) return i; x -= width; } } return -1; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e8a49a412752cdcc88a774cac2de160a23c6f550/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 1057, 861, 2148, 12, 2148, 1634, 13, 225, 288, 565, 309, 261, 1153, 480, 446, 13, 1377, 288, 9079, 509, 21330, 273, 6716, 1380, 5621, 3639, 13037, 9300, 273, 336, 2465, 3855, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 1057, 861, 2148, 12, 2148, 1634, 13, 225, 288, 565, 309, 261, 1153, 480, 446, 13, 1377, 288, 9079, 509, 21330, 273, 6716, 1380, 5621, 3639, 13037, 9300, 273, 336, 2465, 3855, ...
serial = mol.getAtomNumber(ca);
serial = mol.getAtomNumber(connectedAtom);
private void writeMolecule(IMoleculeSet som) throws IOException { //int na = 0; //String info = ""; String sym; double chrg; //boolean writecharge = true; for (int molnum = 0; molnum < som.getMoleculeCount(); molnum++) { IMolecule mol = som.getMolecule(molnum); try { int natom = mol.getAtomCount(); int nbond = mol.getBondCount(); String molname = "mol " + (molnum + 1) + " " + mol.getProperty(CDKConstants.TITLE); writer.write(molname, 0, molname.length()); writer.newLine(); // Loop through the atoms and write them out: IAtom[] atoms = mol.getAtoms(); IBond[] bonds = mol.getBonds(); for (int i = 0; i < natom; i++) { String line = "atom "; IAtom a = atoms[i]; sym = a.getSymbol(); chrg = a.getCharge(); Point3d p3 = a.getPoint3d(); line = line + Integer.toString(i + 1) + " - " + sym + " ** - " + Double.toString(chrg) + " " + Double.toString(p3.x) + " " + Double.toString(p3.y) + " " + Double.toString(p3.z) + " "; String buf = ""; int ncon = 0; for (int j = 0; j < nbond; j++) { IBond b = bonds[j]; if (b.contains(a)) { // current atom is in the bond so lets get the connected atom IAtom ca = b.getConnectedAtom(a); double bo = b.getOrder(); int serial; String bt = ""; // get the serial no for this atom serial = mol.getAtomNumber(ca); if (bo == 1) bt = "s"; else if (bo == 2) bt = "d"; else if (bo == 3) bt = "t"; else if (bo == 1.5) bt = "a"; buf = buf + Integer.toString(serial + 1) + " " + bt + " "; ncon++; } } line = line + " " + Integer.toString(ncon) + " " + buf; writer.write(line, 0, line.length()); writer.newLine(); } String buf = "endmol " + (molnum + 1); writer.write(buf, 0, buf.length()); writer.newLine(); } catch (IOException e) { throw e; } } }
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/ac0a6b18a6d245827364b5448594afbcc11a0a28/HINWriter.java/clean/src/org/openscience/cdk/io/HINWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1045, 29669, 12, 3445, 10545, 694, 4737, 13, 1216, 1860, 288, 3639, 368, 474, 9583, 273, 374, 31, 3639, 368, 780, 1123, 273, 1408, 31, 3639, 514, 5382, 31, 3639, 1645, 4513, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 29669, 12, 3445, 10545, 694, 4737, 13, 1216, 1860, 288, 3639, 368, 474, 9583, 273, 374, 31, 3639, 368, 780, 1123, 273, 1408, 31, 3639, 514, 5382, 31, 3639, 1645, 4513, ...
DebuggerTreeNodeImpl child = (DebuggerTreeNodeImpl)e.nextElement(); NodeDescriptorImpl descriptor = child.getDescriptor(); if(descriptor != null) { if (descriptor instanceof LocalVariableDescriptorImpl) { if (((LocalVariableDescriptorImpl) descriptor).isNewLocal() && getDebuggerContext().getDebuggerSession().isSteppingThrough(getDebuggerContext().getThreadProxy())) { TreePath treePath = new TreePath(child.getPath()); addSelectionPath (treePath); scrollPathToVisible(treePath); myAnyNewLocals = true; descriptor.myIsSelected = true; } else { removeSelectionPath(new TreePath(child.getPath())); descriptor.myIsSelected = false; } ((LocalVariableDescriptorImpl) descriptor).setNewLocal(false); }
final DebuggerTreeNodeImpl child = (DebuggerTreeNodeImpl)e.nextElement(); final NodeDescriptorImpl descriptor = child.getDescriptor(); if(!(descriptor instanceof LocalVariableDescriptorImpl)) { continue;
public void threadAction() { super.threadAction(); DebuggerTreeNodeImpl rootNode; final ThreadReferenceProxyImpl currentThread = getDebuggerContext().getThreadProxy(); if(currentThread == null) return; try { StackFrameProxyImpl frame = getDebuggerContext().getFrameProxy(); if (frame != null) { NodeManagerImpl nodeManager = getNodeFactory(); rootNode = nodeManager.createNode(nodeManager.getStackFrameDescriptor(null, frame), getDebuggerContext().createEvaluationContext()); } else { rootNode = getNodeFactory().getDefaultNode(); SuspendManager suspendManager = getSuspendContext().getDebugProcess().getSuspendManager(); if(suspendManager.isSuspended(currentThread)) { try { if(currentThread.frameCount() == 0) { rootNode.add(MessageDescriptor.THREAD_IS_EMPTY); } else { rootNode.add(MessageDescriptor.DEBUG_INFO_UNAVAILABLE); } } catch (EvaluateException e) { rootNode.add(new MessageDescriptor(e.getMessage())); } } else { rootNode.add(MessageDescriptor.THREAD_IS_RUNNING); } } } catch (Exception ex) { if (LOG.isDebugEnabled()) { LOG.debug(ex); } rootNode = getNodeFactory().getDefaultNode(); rootNode.add(MessageDescriptor.DEBUG_INFO_UNAVAILABLE); } final DebuggerTreeNodeImpl rootNode1 = rootNode; DebuggerInvocationUtil.invokeLater(getProject(), new Runnable() { public void run() { getMutableModel().setRoot(rootNode1); treeChanged(); getModel().addTreeModelListener(new TreeModelAdapter() { public void treeStructureChanged(TreeModelEvent e) { Object[] path = e.getPath(); if(path.length > 0 && path[path.length - 1] == rootNode1) { if(ViewsGeneralSettings.getInstance().AUTOSCROLL_TO_NEW_LOCALS) { autoscrollToNewLocals(rootNode1); } } } }); } private void autoscrollToNewLocals(DebuggerTreeNodeImpl frameNode) { for (Enumeration e = frameNode.rawChildren(); e.hasMoreElements();) { DebuggerTreeNodeImpl child = (DebuggerTreeNodeImpl)e.nextElement(); NodeDescriptorImpl descriptor = child.getDescriptor(); if(descriptor != null) { if (descriptor instanceof LocalVariableDescriptorImpl) { if (((LocalVariableDescriptorImpl) descriptor).isNewLocal() && getDebuggerContext().getDebuggerSession().isSteppingThrough(getDebuggerContext().getThreadProxy())) { TreePath treePath = new TreePath(child.getPath()); addSelectionPath (treePath); scrollPathToVisible(treePath); myAnyNewLocals = true; descriptor.myIsSelected = true; } else { removeSelectionPath(new TreePath(child.getPath())); descriptor.myIsSelected = false; } ((LocalVariableDescriptorImpl) descriptor).setNewLocal(false); } } } } }); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/84b20496caf8e6402adec0168964a1bb5832373f/FrameDebuggerTree.java/clean/source/com/intellij/debugger/ui/impl/FrameDebuggerTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2650, 1803, 1435, 288, 1377, 2240, 18, 5930, 1803, 5621, 1377, 28645, 12513, 2828, 10181, 31, 1377, 727, 4884, 2404, 3886, 2828, 11800, 273, 336, 24113, 1042, 7675, 588, 3830, 38...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2650, 1803, 1435, 288, 1377, 2240, 18, 5930, 1803, 5621, 1377, 28645, 12513, 2828, 10181, 31, 1377, 727, 4884, 2404, 3886, 2828, 11800, 273, 336, 24113, 1042, 7675, 588, 3830, 38...
} Certificate cert = new Certificate(); cert.readBytes(bais); long msgId = DataHelper.readLong(bais, 4); Date expiration = DataHelper.readDate(bais); set.setCertificate(cert); set.setMessageId(msgId); set.setExpiration(expiration.getTime()); return set; } catch (IOException ioe) { _log.error("Error reading clove set", ioe); return null; } catch (DataFormatException dfe) { _log.error("Error reading clove set", dfe); return null;
private CloveSet readCloveSet(byte data[]) { Set cloves = new HashSet(); ByteArrayInputStream bais = new ByteArrayInputStream(data); try { CloveSet set = new CloveSet(); int numCloves = (int)DataHelper.readLong(bais, 1); _log.debug("# cloves to read: " + numCloves); for (int i = 0; i < numCloves; i++) { _log.debug("Reading clove " + i); try { GarlicClove clove = new GarlicClove(_context); clove.readBytes(bais); set.addClove(clove); } catch (DataFormatException dfe) { _log.warn("Unable to read clove " + i, dfe); } catch (IOException ioe) { _log.warn("Unable to read clove " + i, ioe); } _log.debug("After reading clove " + i); } Certificate cert = new Certificate(); cert.readBytes(bais); long msgId = DataHelper.readLong(bais, 4); Date expiration = DataHelper.readDate(bais); set.setCertificate(cert); set.setMessageId(msgId); set.setExpiration(expiration.getTime()); return set; } catch (IOException ioe) { _log.error("Error reading clove set", ioe); return null; } catch (DataFormatException dfe) { _log.error("Error reading clove set", dfe); return null; } }
27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/1107e50108f2845c6b117044e0ab95019b20a309/GarlicMessageParser.java/clean/router/java/src/net/i2p/router/message/GarlicMessageParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 22442, 537, 694, 855, 4082, 537, 694, 12, 7229, 501, 63, 5717, 288, 3639, 1000, 1219, 3324, 273, 394, 6847, 5621, 3639, 16180, 9846, 291, 273, 394, 16180, 12, 892, 1769, 3639, 775, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22442, 537, 694, 855, 4082, 537, 694, 12, 7229, 501, 63, 5717, 288, 3639, 1000, 1219, 3324, 273, 394, 6847, 5621, 3639, 16180, 9846, 291, 273, 394, 16180, 12, 892, 1769, 3639, 775, ...
SecurityManager sm = Runtime.securityManager;
SecurityManager sm = SecurityManager.current;
public static void setProperties(Properties properties) { SecurityManager sm = Runtime.securityManager; // Be thread-safe. if (sm != null) sm.checkPropertiesAccess(); if (properties == null) { // Note that we use clone here and not new. Some programs // assume that the system properties do not have a parent. properties = (Properties) Runtime.defaultProperties.clone(); } System.properties = properties; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/206de32e8ebd7bc5080236c5c9ea198dd5243913/System.java/buggy/core/src/classpath/java/java/lang/System.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 23126, 12, 2297, 1790, 13, 225, 288, 565, 6036, 1318, 3029, 273, 6036, 1318, 18, 2972, 31, 368, 4823, 2650, 17, 4626, 18, 565, 309, 261, 4808, 480, 446, 13, 1377, 3029, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 23126, 12, 2297, 1790, 13, 225, 288, 565, 6036, 1318, 3029, 273, 6036, 1318, 18, 2972, 31, 368, 4823, 2650, 17, 4626, 18, 565, 309, 261, 4808, 480, 446, 13, 1377, 3029, ...
receiveMessage("You must select an agent in the list first and add one if none is already present");
receiveMessage("You must select an agent in the list first or add one if none is already present");
private int getIndex() { int n = agentList.getSelectedIndex(); if (n == -1) { receiveMessage("You must select an agent in the list first and add one if none is already present"); } return agentList.getSelectedIndex(); }
23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/fa5a996c0fc1921a71bd3e973d207e138f215eb8/PenguinApplet.java/buggy/src/org/objectweb/proactive/examples/penguin/PenguinApplet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 509, 8088, 1435, 288, 565, 509, 290, 273, 4040, 682, 18, 588, 7416, 1016, 5621, 565, 309, 261, 82, 422, 300, 21, 13, 288, 1377, 6798, 1079, 2932, 6225, 1297, 2027, 392, 4040, 316,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 8088, 1435, 288, 565, 509, 290, 273, 4040, 682, 18, 588, 7416, 1016, 5621, 565, 309, 261, 82, 422, 300, 21, 13, 288, 1377, 6798, 1079, 2932, 6225, 1297, 2027, 392, 4040, 316,...
new ErrorStatus("filename property not set. Assuming [" + filename
new WarnStatus("filename property not set. Assuming [" + filename
public void start() throws Exception { if (filename == null) { String jettyHomeProperty = System.getProperty("jetty.home"); filename = jettyHomeProperty + File.separatorChar + DEFAULT_CONFIG_FILE; getStatusManager().add( new ErrorStatus("filename property not set. Assuming [" + filename + "]", this)); } File configFile = new File(filename); if (configFile.exists()) { JoranConfigurator jc = new JoranConfigurator(); jc.setContext(this); jc.doConfigure(filename); StatusPrinter.print(getStatusManager()); } else { getStatusManager().add( new ErrorStatus("[" + filename + "] does not exist", this)); } }
47402 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47402/ad921370b11c2d5450b34e8fb16ee195cd947f7c/RequestLogImpl.java/buggy/logback-access/src/main/java/ch/qos/logback/access/jetty/RequestLogImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 787, 1435, 1216, 1185, 288, 565, 309, 261, 3459, 422, 446, 13, 288, 1377, 514, 525, 22084, 8684, 1396, 273, 2332, 18, 588, 1396, 2932, 78, 22084, 18, 8712, 8863, 1377, 1544, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 787, 1435, 1216, 1185, 288, 565, 309, 261, 3459, 422, 446, 13, 288, 1377, 514, 525, 22084, 8684, 1396, 273, 2332, 18, 588, 1396, 2932, 78, 22084, 18, 8712, 8863, 1377, 1544, ...
if( newElement != null ) { final String onFocusHandler = newElement.getAttributeValue("onfocus"); if( onFocusHandler.length() != 0 ) { final HtmlPage currentPage = newElement.getPage(); final Page newPage = currentPage.executeJavaScriptIfPossible( onFocusHandler, "OnFocus handler", true, newElement).getNewPage(); if( currentPage != newPage ) { elementWithFocus_ = null; return false; }
if( currentPage != newPage ) { elementWithFocus_ = null; return false;
public boolean moveFocusToElement( final HtmlElement newElement ) { if( elementWithFocus_ == newElement ) { // nothing to do return true; } // TODO: This is an incredibly inefficient way to find out if the element is tabbable. // Refactor this into something reasonable. if( newElement != null && newElement.getPage().getTabbableElements().contains(newElement) == false ) { // This element isn't tabbable. return false; } if( elementWithFocus_ != null ) { final String onBlurHandler = elementWithFocus_.getAttributeValue("onblur"); if( onBlurHandler.length() != 0 ) { elementWithFocus_.getPage().executeJavaScriptIfPossible( onBlurHandler, "OnBlur handler", true, elementWithFocus_); } } if( newElement != null ) { final String onFocusHandler = newElement.getAttributeValue("onfocus"); if( onFocusHandler.length() != 0 ) { final HtmlPage currentPage = newElement.getPage(); final Page newPage = currentPage.executeJavaScriptIfPossible( onFocusHandler, "OnFocus handler", true, newElement).getNewPage(); // If a page reload happened as a result of the focus change then obviously this // element will not have the focus because its page has gone away. if( currentPage != newPage ) { elementWithFocus_ = null; return false; } } } elementWithFocus_ = newElement; return true; }
3508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3508/efd75a9ac94ddbd24e3b33ff0b28e78acaaa4af1/WebClient.java/clean/htmlunit/src/java/com/gargoylesoftware/htmlunit/WebClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 3635, 9233, 774, 1046, 12, 727, 5430, 1046, 31308, 262, 288, 3639, 309, 12, 930, 1190, 9233, 67, 422, 31308, 262, 288, 5411, 368, 5083, 358, 741, 5411, 327, 638, 31, 3639, 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, 1250, 3635, 9233, 774, 1046, 12, 727, 5430, 1046, 31308, 262, 288, 3639, 309, 12, 930, 1190, 9233, 67, 422, 31308, 262, 288, 5411, 368, 5083, 358, 741, 5411, 327, 638, 31, 3639, 2...
if ( m_AutoResponse == null) {
if (m_AutoResponse == null) {
public void getAutoresponse(Commandline cmd) { if ( m_AutoResponse == null) { cmd.createArgument().setValue(FLAG_AUTORESPONSE_DEF); } else if ( m_AutoResponse.equalsIgnoreCase("Y")) { cmd.createArgument().setValue(FLAG_AUTORESPONSE_YES); } else if ( m_AutoResponse.equalsIgnoreCase("N")) { cmd.createArgument().setValue(FLAG_AUTORESPONSE_NO); }else { cmd.createArgument().setValue(FLAG_AUTORESPONSE_DEF); } // end of else }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/0dab862ee09d706c3f373fc18bedbf17caf427b9/MSVSSCHECKIN.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSCHECKIN.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26707, 2740, 12, 2189, 1369, 1797, 13, 288, 3639, 309, 261, 81, 67, 4965, 1064, 422, 446, 13, 288, 5411, 1797, 18, 2640, 1379, 7675, 542, 620, 12, 9651, 67, 37, 1693, 8607, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26707, 2740, 12, 2189, 1369, 1797, 13, 288, 3639, 309, 261, 81, 67, 4965, 1064, 422, 446, 13, 288, 5411, 1797, 18, 2640, 1379, 7675, 542, 620, 12, 9651, 67, 37, 1693, 8607, ...
if (jj_3R_187()) jj_scanpos = xsp;
if (jj_3R_324()) jj_scanpos = xsp;
final private boolean jj_3R_59() { if (jj_scan_token(IDENTIFIER)) return true; Token xsp; xsp = jj_scanpos; if (jj_3R_186()) jj_scanpos = xsp; xsp = jj_scanpos; if (jj_3R_187()) jj_scanpos = xsp; return false; }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/2c4cc3303f04cdb3883f34b25cfe841b0bdf1fb5/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 6162, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 16606, 3719, 327, 638, 31, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 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, 54, 67, 6162, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 16606, 3719, 327, 638, 31, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 10684...
if (id == null) { id = configurationElement.getAttribute(ATT_ID); } if (id == null) { id = DEFAULT_ID;
if (visibilityId == null) { visibilityId = definedId;
private void init() { try { // we try the id attribute if no override id was supplied. if (id == null) { id = configurationElement.getAttribute(ATT_ID); } // if there was no id attribute, use the default id. if (id == null) { id = DEFAULT_ID; } dependsOnId = configurationElement.getAttribute(ATT_DEPENDS_ON); IConfigurationElement[] children = configurationElement .getChildren(TAG_ENABLEMENT); // if no child enablement is specified, and we have an override, use // it if (children.length == 0 && enablementElement != null) { enablement = new CustomAndExpression(enablementElement); // otherwise the child enablement takes priority } else if (children.length == 1) { enablement = ElementHandler.getDefault().create( ExpressionConverter.getDefault(), children[0]); } else { System.err.println("Incorrect number of expressions: " + //$NON-NLS-1$ TAG_ENABLEMENT + " in navigator extension: " + //$NON-NLS-1$ configurationElement.getDeclaringExtension() .getUniqueIdentifier()); } } catch (CoreException e) { NavigatorPlugin.log(IStatus.ERROR, 0, e.getMessage(), e); } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/5ba42d658418932dd87c4f6692a18456781cacf2/CommonActionProviderDescriptor.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/actions/CommonActionProviderDescriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1208, 1435, 288, 202, 202, 698, 288, 1082, 202, 759, 732, 775, 326, 612, 1566, 309, 1158, 3849, 612, 1703, 4580, 18, 1082, 202, 430, 261, 350, 422, 446, 13, 288, 9506, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1435, 288, 202, 202, 698, 288, 1082, 202, 759, 732, 775, 326, 612, 1566, 309, 1158, 3849, 612, 1703, 4580, 18, 1082, 202, 430, 261, 350, 422, 446, 13, 288, 9506, ...
URL url= getClass().getResource("icons/Save24.gif"); JButton button= new JButton(new ImageIcon(url)); button.setToolTipText( "Store the modified data back into the database.");
URL url = getClass().getResource("icons/Save24.gif"); JButton button = new JButton(new ImageIcon(url)); button .setToolTipText("Store the modified data back into the database.");
private void setupComponents() throws XMLDBException { JToolBar toolbar= new JToolBar(); URL url= getClass().getResource("icons/Save24.gif"); JButton button= new JButton(new ImageIcon(url)); button.setToolTipText( "Store the modified data back into the database."); button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { save(); } }); toolbar.add(button); url= getClass().getResource("icons/Export24.gif"); button= new JButton(new ImageIcon(url)); button.setToolTipText( "Export to file."); button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { export(); } }); toolbar.add(button); getContentPane().add(toolbar, BorderLayout.NORTH); text= new ClientTextArea(true, "XML"); getContentPane().add(text, BorderLayout.CENTER); Box statusbar= Box.createHorizontalBox(); statusbar.setBorder( BorderFactory.createBevelBorder(BevelBorder.LOWERED)); statusMessage= new JTextField(20); statusMessage.setEditable(false); statusMessage.setFocusable(false); statusMessage.setText("Loading " + resource.getId() + " ..."); statusbar.add(statusMessage); progress= new JProgressBar(); progress.setPreferredSize(new Dimension(200, 30)); statusbar.add(progress); getContentPane().add(statusbar, BorderLayout.SOUTH); }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/96a020d1e295b0656cc0cf89c67a713d91bb61ad/DocumentView.java/buggy/src/org/exist/client/DocumentView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3875, 7171, 1435, 1216, 26014, 503, 288, 202, 202, 46, 6364, 5190, 12748, 33, 394, 804, 6364, 5190, 5621, 202, 202, 1785, 880, 33, 2900, 7675, 588, 1420, 2932, 14516, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3875, 7171, 1435, 1216, 26014, 503, 288, 202, 202, 46, 6364, 5190, 12748, 33, 394, 804, 6364, 5190, 5621, 202, 202, 1785, 880, 33, 2900, 7675, 588, 1420, 2932, 14516, 19, ...
return dialog.open() == 0;
dialog.open(); return dialog;
public static boolean openConfirm(Shell parent, String title, String message, String toggleMessage, boolean toggleState) { MessageDialogWithToggle dialog = new MessageDialogWithToggle( parent, title, null, // accept the default window icon message, QUESTION, new String[] {IDialogConstants.OK_LABEL, IDialogConstants.CANCEL_LABEL}, 0, // OK is the default toggleMessage, toggleState); return dialog.open() == 0; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/4320f5cf5ef7ceef49def03f1ae5cb6e8cf3eac3/MessageDialogWithToggle.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/MessageDialogWithToggle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1250, 1696, 11269, 12, 13220, 982, 16, 514, 2077, 16, 514, 883, 16, 514, 10486, 1079, 16, 1250, 10486, 1119, 13, 288, 202, 202, 1079, 6353, 1190, 17986, 6176, 273, 394, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1250, 1696, 11269, 12, 13220, 982, 16, 514, 2077, 16, 514, 883, 16, 514, 10486, 1079, 16, 1250, 10486, 1119, 13, 288, 202, 202, 1079, 6353, 1190, 17986, 6176, 273, 394, 2...
Token t = gen.findTokenAfter(vt.getType()); if(t!=null) { gen.add(new SpanMarker(lineMap,t, getCssClass(e,"d"),buildId(e)));
if(e.getKind()!= ElementKind.ENUM_CONSTANT) { Token t = gen.findTokenAfter(vt.getType()); if(t!=null) { gen.add(new SpanMarker(lineMap,t, getCssClass(e,"d"),buildId(e))); } } else { gen.add(new SpanMarker(cu,srcPos,vt,getCssClass(e,"d"),buildId(e)));
protected void configure(final CompilationUnitTree cu, final HtmlGenerator gen) throws IOException { final LineMap lineMap = cu.getLineMap(); final LinkResolver linkResolver = linkResolverFactory.create(cu,this); // add lexical markers JavaLexer lexer = new JavaLexer(new StringReader(gen.sourceFile)); lexer.setTabSize(tabWidth); try { while(true) { Token token = lexer.nextToken(); int type = token.getType(); if(type == JavaTokenTypes.EOF) break; if(type == JavaTokenTypes.IDENT && ReservedWords.LIST.contains(token.getText())) gen.add(new SpanMarker(lineMap,token,"rw")); if(type == JavaTokenTypes.ML_COMMENT || type == JavaTokenTypes.SL_COMMENT) gen.add(new CommentMarker(lineMap,token)); } } catch (TokenStreamException e) { // the analysis phase should have reported all the errors, // so we should ignore any failures at this point. } // then semantic ones new TreePathScanner<Void,Void>() { private String buildId(Element e) { String buf = linkResolver.href(e); if(buf.length()==0) return null; // no ID if(buf.charAt(0)!='#') throw new IllegalStateException("Computed ID for "+e+" is "+buf); return buf.substring(1); } /** * primitive types like int, long, void, etc. */ public Void visitPrimitiveType(PrimitiveTypeTree pt, Void _) { gen.add(new SpanMarker(cu,srcPos,pt,"pr")); return super.visitPrimitiveType(pt,_); } /** * literal string, int, etc. Null. */ public Void visitLiteral(LiteralTree lit, Void _) { gen.add(new SpanMarker(cu,srcPos,lit,"lt")); return super.visitLiteral(lit, _); } /** * Definition of a variable, such as parameter, field, and local variables. */ public Void visitVariable(VariableTree vt, Void _) { Element e = getCurrentElement(); if(e!=null) { // put the marker just on the variable name Token t = gen.findTokenAfter(vt.getType()); // token for the variable name if(t!=null) { gen.add(new SpanMarker(lineMap,t, getCssClass(e,"d"),buildId(e))); } } return super.visitVariable(vt,_); } private void addBookmark(Tree t, Bookmark bookmark) { gen.add( lineMap.getLineNumber(srcPos.getStartPosition(cu,t)),bookmark); } /** * Method declaration. */ public Void visitMethod(MethodTree mt, Void _) { ExecutableElement e = (ExecutableElement) getCurrentElement(); if(e!=null) { gen.add(new SpanMarker(cu,srcPos,mt,getCssClass(e,"d"),buildId(e))); ParsedType pt = getParsedType((TypeElement) e.getEnclosingElement()); // put overridden bookmark Set<Match> r = pt.findOverriddenMethods(elements, e); if(!r.isEmpty()) { addBookmark(mt,new OverriddenMethodsBookmark(r,linkResolver)); } // ... and overriding bookmark r = pt.findOverridingMethods(elements, e); if(!r.isEmpty()) { addBookmark(mt,new OverridingMethodsBookmark(r,linkResolver)); } } return super.visitMethod(mt, _); } /** * Class declaration. */ public Void visitClass(ClassTree ct, Void _) { TypeElement e = (TypeElement) getCurrentElement(); if(e!=null) { gen.add(new SpanMarker(cu,srcPos,ct,getCssClass(e,"d"),buildId(e))); // put subclass bookmark List<ParsedType> descendants = getParsedType(e).descendants; if(!descendants.isEmpty()) { addBookmark(ct,new SubClassBookmark(descendants,linkResolver)); } if(e.getNestingKind()== NestingKind.ANONYMOUS) { // don't visit the extends and implements clause as // they already show up in the NewClassTree scan(ct.getMembers()); return _; } } return super.visitClass(ct, _); } /** * All the symbols found in the source code. */ public Void visitIdentifier(IdentifierTree id, Void _) { if(!ReservedWords.LIST.contains(id.getName().toString())) { Element e = getCurrentElement(); if(e!=null) { // add a marker for syntax coloring and jump to definition gen.add(new LinkMarker(cu,srcPos,id, linkResolver.href(e), getCssClass(e,"r"))); } } return super.visitIdentifier(id,_); } /** * "exp.token" */ public Void visitMemberSelect(MemberSelectTree mst, Void _) { long ep = srcPos.getEndPosition(cu,mst); long sp = ep-mst.getIdentifier().length(); // marker for the selected identifier Element e = getCurrentElement(); if(e!=null) { gen.add(new LinkMarker(sp,ep, linkResolver.href(e), getCssClass(e,"r"))); } // TODO: not exactly sure when it can be null return super.visitMemberSelect(mst, _); } public Void visitNewClass(NewClassTree nt, Void _) { long ep = srcPos.getEndPosition(cu, nt.getIdentifier()); long sp = srcPos.getStartPosition(cu, nt.getIdentifier()); // marker for jumping to the definition Element e = getCurrentElement(); if(e!=null) {// be defensive gen.add(new LinkMarker(sp,ep,linkResolver.href(e),getCssClass(e,"r"))); } scan(nt.getEnclosingExpression()); scan(nt.getArguments()); scan(nt.getTypeArguments()); scan(nt.getClassBody()); return _; } /** * Method invocation of the form "exp.method()" */ public Void visitMethodInvocation(MethodInvocationTree mi, Void _) { ExpressionTree ms = mi.getMethodSelect(); // PRIMARY.methodName portion Element e = getCurrentElement(); if(e!=null) { Name methodName = e.getSimpleName(); long ep = srcPos.getEndPosition(cu, ms); // marker for the method name (and jump to definition) gen.add(new LinkMarker(ep-methodName.length(),ep,linkResolver.href(e), getCssClass(e,"r"))); } return super.visitMethodInvocation(mi,_); } private Element getCurrentElement() { // return trees.getElement(getCurrentPath()); return getElement((JCTree)getCurrentPath().getLeaf()); } // recursively scan trees private void scan(List<? extends Tree> list) { for (Tree t : list) scan(t); } private void scan(Tree t) { scan(t,null); } }.scan(cu,null); // compilationUnit -> package name consists of member select trees // but it fails to create an element, so do this manually ExpressionTree packageName = cu.getPackageName(); if(packageName!=null) { new TreePathScanner<String,Void>() { /** * For "a" of "a.b.c" */ public String visitIdentifier(IdentifierTree id, Void _) { String name = id.getName().toString(); PackageElement pe = elements.getPackageElement(name); gen.add(new LinkMarker(cu,srcPos,id,linkResolver.href(pe), getCssClass(pe,"r"))); return name; } public String visitMemberSelect(MemberSelectTree mst, Void _) { String baseName = scan(mst.getExpression(),_); String name = mst.getIdentifier().toString(); if(baseName.length()>0) name = baseName+'.'+name; PackageElement pe = elements.getPackageElement(name); long ep = srcPos.getEndPosition(cu,mst); long sp = ep-mst.getIdentifier().length(); gen.add(new LinkMarker(sp,ep, linkResolver.href(pe), getCssClass(pe,"r"))); return name; } }.scan(new TreePath(new TreePath(cu),packageName),null); } }
48783 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48783/6fdff9a022b9d6f4b891aaf933b45c823d04fc72/ParsedSourceSet.java/buggy/core/src/main/java/org/jvnet/sorcerer/ParsedSourceSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 5068, 12, 6385, 22416, 2802, 2471, 15985, 16, 727, 5430, 3908, 3157, 13, 1216, 1860, 288, 3639, 727, 5377, 863, 980, 863, 273, 15985, 18, 588, 1670, 863, 5621, 3639, 727, 4048,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5068, 12, 6385, 22416, 2802, 2471, 15985, 16, 727, 5430, 3908, 3157, 13, 1216, 1860, 288, 3639, 727, 5377, 863, 980, 863, 273, 15985, 18, 588, 1670, 863, 5621, 3639, 727, 4048,...
String m = Context.getMessage1("msg.incompat.call", "toString"); throw NativeGlobal.constructError(cx, "TypeError", m, funObj);
throw NativeGlobal.typeError1 ("msg.incompat.call", "toString", funObj);
public static Object jsFunction_toString(Context cx, Scriptable thisObj, Object[] args, Function funObj) { Object val = thisObj.getDefaultValue(ScriptRuntime.FunctionClass); if (!(val instanceof NativeFunction)) { String m = Context.getMessage1("msg.incompat.call", "toString"); throw NativeGlobal.constructError(cx, "TypeError", m, funObj); } if (val instanceof NativeJavaMethod) { return "\nfunction " + ((NativeFunction) val).jsGet_name() + "() {/*\n" + val.toString() + "*/}\n"; } int indent = 0; if (args.length > 0) indent = (int)ScriptRuntime.toNumber(args[0]); return ((NativeFunction) val).decompile(indent, true, false); }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/b02ef84e1ee1b7785116d47aef2410fd5d98b65a/NativeFunction.java/clean/src/org/mozilla/javascript/NativeFunction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 3828, 2083, 67, 10492, 12, 1042, 9494, 16, 22780, 15261, 16, 4766, 2398, 1033, 8526, 833, 16, 4284, 9831, 2675, 13, 565, 288, 3639, 1033, 1244, 273, 15261, 18, 588, 15646...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3828, 2083, 67, 10492, 12, 1042, 9494, 16, 22780, 15261, 16, 4766, 2398, 1033, 8526, 833, 16, 4284, 9831, 2675, 13, 565, 288, 3639, 1033, 1244, 273, 15261, 18, 588, 15646...