rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
private char readCh ()
private char readCh()
private char readCh () throws SAXException, IOException { // As long as there's nothing in the // read buffer, try reading more data // (for an external entity) or popping // the entity stack (for either). while (readBufferPos >= readBufferLength) { switch (sourceType) { case INPUT_READER: case INPUT_STREAM: readDataChunk (); while (readBufferLength < 1) { popInput (); if (readBufferLength < 1) { readDataChunk (); } } break; default: popInput (); break; } } char c = readBuffer [readBufferPos++]; if (c == '\n') { line++; column = 0; } else { if (c == '<') { /* the most common return to parseContent () ... NOP */ } else if (((c < 0x0020 && (c != '\t') && (c != '\r')) || c > 0xFFFD) || ((c >= 0x007f) && (c <= 0x009f) && (c != 0x0085) && xmlVersion == XML_11)) error ("illegal XML character U+" + Integer.toHexString (c)); // If we're in the DTD and in a context where PEs get expanded, // do so ... 1/14/2000 errata identify those contexts. There // are also spots in the internal subset where PE refs are fatal // errors, hence yet another flag. else if (c == '%' && expandPE) { if (peIsError) error ("PE reference within decl in internal subset."); parsePEReference (); return readCh (); } column++; } return c; }
27835 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27835/7fb7568e63c3fe14af521de4699cb37898923ca7/XmlParser.java/buggy/libjava/gnu/xml/aelfred2/XmlParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1149, 855, 782, 1435, 565, 1216, 14366, 16, 1860, 565, 288, 202, 759, 2970, 1525, 487, 1915, 1807, 5083, 316, 326, 202, 759, 855, 1613, 16, 775, 6453, 1898, 501, 202, 759, 261, 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, 1149, 855, 782, 1435, 565, 1216, 14366, 16, 1860, 565, 288, 202, 759, 2970, 1525, 487, 1915, 1807, 5083, 316, 326, 202, 759, 855, 1613, 16, 775, 6453, 1898, 501, 202, 759, 261, 18...
Util.discard(runQuery( "select {[Measures].[Unit Sales]} on columns," + nl + " {[Customers].members(0)} on rows" + nl + "from [Sales]"));
Util.discard(executeQuery("select {[Measures].[Unit Sales]} on columns," + nl + " {[Customers].members(0)} on rows" + nl + "from [Sales]"));
public void _testMembersFunction() { Util.discard(runQuery( // the simple-minded implementation of members(<number>) is // inefficient "select {[Measures].[Unit Sales]} on columns," + nl + " {[Customers].members(0)} on rows" + nl + "from [Sales]")); }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/3041f930b5fc4bf6aa3339845b828801c1d8b366/BasicQueryTest.java/buggy/testsrc/main/mondrian/test/BasicQueryTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 389, 3813, 6918, 2083, 1435, 288, 3639, 3564, 18, 31992, 12, 2681, 1138, 12, 7734, 368, 326, 4143, 17, 1154, 785, 4471, 434, 4833, 12, 32, 2696, 23429, 353, 7734, 368, 316, 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, 918, 389, 3813, 6918, 2083, 1435, 288, 3639, 3564, 18, 31992, 12, 2681, 1138, 12, 7734, 368, 326, 4143, 17, 1154, 785, 4471, 434, 4833, 12, 32, 2696, 23429, 353, 7734, 368, 316, 2...
invalidateProperties(c, inherited);
invalidateProperties(c, inherited, null);
protected void propagateChanges(Node node, int[] props) { if (!(node instanceof CSSStylableElement)) return; CSSStylableElement elt = (CSSStylableElement)node; StyleMap style = elt.getComputedStyleMap(null); if (style != null) { boolean[] updated = styleDeclarationUpdateHandler.updatedProperties; for (int i = getNumberOfProperties() - 1; i >= 0; --i) { updated[i] = false; } if (props != null) { for (int i = props.length - 1; i >= 0; --i) { int idx = props[i]; updated[idx] = true; } } // Invalidate the relative values boolean fs = (fontSizeIndex == -1) ? false : updated[fontSizeIndex]; boolean lh = (lineHeightIndex == -1) ? false : updated[lineHeightIndex]; boolean cl = (colorIndex == -1) ? false : updated[colorIndex]; int count = 0; for (int i = getNumberOfProperties() - 1; i >= 0; --i) { if (updated[i]) { count++; } else if ((fs && style.isFontSizeRelative(i)) || (lh && style.isLineHeightRelative(i)) || (cl && style.isColorRelative(i))) { updated[i] = true; clearComputedValue(style, i); count++; } } if (count == 0) { props = null; } else { props = new int[count]; count = 0; for (int i = getNumberOfProperties() - 1; i >= 0; --i) { if (updated[i]) { props[count++] = i; } } firePropertiesChangedEvent(elt, props); } } int [] inherited = props; if (props != null) { // Filter out uninheritable properties when we // propogate to children. int count = 0; for (int i=0; i<props.length; i++) { ValueManager vm = valueManagers[props[i]]; if (vm.isInheritedProperty()) count++; else props[i] = -1; } if (count == 0) { // nothing to propogate for sure inherited = null; } else { inherited = new int[count]; count=0; for (int i=0; i<props.length; i++) if (props[i] != -1) inherited[count++] = props[i]; } } Node c = getImportedChild(node); if (c != null) { invalidateProperties(c, inherited); } for (Node n = node.getFirstChild(); n != null; n = n.getNextSibling()) { invalidateProperties(n, inherited); } }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/27594ff02fe6c691023289eb497cbd1763c11900/CSSEngine.java/buggy/sources/org/apache/batik/css/engine/CSSEngine.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 13551, 7173, 12, 907, 756, 16, 509, 8526, 3458, 13, 288, 3639, 309, 16051, 12, 2159, 1276, 6765, 24273, 80, 429, 1046, 3719, 5411, 327, 31, 3639, 6765, 24273, 80, 429, 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, 377, 4750, 918, 13551, 7173, 12, 907, 756, 16, 509, 8526, 3458, 13, 288, 3639, 309, 16051, 12, 2159, 1276, 6765, 24273, 80, 429, 1046, 3719, 5411, 327, 31, 3639, 6765, 24273, 80, 429, 1046, ...
result = interfaces[index].getMethodDefinition(name, signature);
result = myInterfaces[index].getMethodDefinition(name, signature);
public IMethod getMethodDefinition(String name, ISignature signature) { IMethod result = null; result = getDeclaredMethod(name, signature); if (result == null) { result = getMostCompatibleMethod(name, signature); } if (result == null) { if (superclass != null) { result = superclass.getMethodDefinition(name, signature); } } if (result == null) { IClass[] interfaces = getInterfaces(); for (int index = 0; index < interfaces.length && result == null; index++) { result = interfaces[index].getMethodDefinition(name, signature); } } // not sure why this is here -- inner classes, maybe? // regardless, write better if (result == null) { if (getParentScope() != null) { result = getParentScope().getMethodDefinition(name, signature); } } return result; }
50482 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50482/a9b4a2f37c890a168471e9a890acf4a9f08b5391/ClassDef.java/clean/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/usage/transmogrify/ClassDef.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 1305, 6272, 1852, 12, 780, 508, 16, 467, 5374, 3372, 13, 288, 3639, 467, 1305, 563, 273, 446, 31, 3639, 563, 273, 11959, 1305, 12, 529, 16, 3372, 1769, 3639, 309, 261, 2088, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1305, 6272, 1852, 12, 780, 508, 16, 467, 5374, 3372, 13, 288, 3639, 467, 1305, 563, 273, 446, 31, 3639, 563, 273, 11959, 1305, 12, 529, 16, 3372, 1769, 3639, 309, 261, 2088, ...
static void parseElement(XMLElement el, PresentationObjectContainer parent, CachedBuilderPage ibxml) { PresentationObject inst = null;
public static UIComponent parseElement(XMLElement el, UIComponent parent, CachedBuilderPage ibxml) { UIComponent firstUICInstance = null;
static void parseElement(XMLElement el, PresentationObjectContainer parent, CachedBuilderPage ibxml) { PresentationObject inst = null; List at = el.getAttributes(); boolean isLocked = true; if ((at == null) || (at.isEmpty())) { System.err.println("No attributes specified"); return; } String className = null; String id = null; String ic_object_id = null; Iterator it = at.iterator(); while (it.hasNext()) { XMLAttribute attr = (XMLAttribute) it.next(); if (attr.getName().equalsIgnoreCase(XMLConstants.CLASS_STRING)) { className = attr.getValue(); } else if (attr.getName().equalsIgnoreCase(XMLConstants.ID_STRING)) { id = attr.getValue(); } else if (attr.getName().equalsIgnoreCase(XMLConstants.IC_OBJECT_ID_STRING)) { ic_object_id = attr.getValue(); } else if (attr.getName().equalsIgnoreCase(XMLConstants.REGION_LOCKED)) { if (attr.getValue().equals("false")) isLocked = false; else isLocked = true; } } try { if (id == null) { try { inst = (PresentationObject) RefactorClassRegistry.forName(className).newInstance(); } catch (Exception e) { e.printStackTrace(System.err); throw new Exception("Invalid Class tag for module"); } } else { ICObjectInstance ico = ((com.idega.core.component.data.ICObjectInstanceHome) com.idega.data.IDOLookup.getHomeLegacy(ICObjectInstance.class)).findByPrimaryKeyLegacy(Integer.parseInt(id)); inst = ico.getNewInstance(); inst.setICObjectInstance(ico); if (ic_object_id == null) { inst.setICObject(ico.getObject()); } else { inst.setICObjectID(Integer.parseInt(ic_object_id)); } // added by gummi@idega.is // - cache ObjectInstance if (!"0".equals(id)) { setObjectInstance(ibxml, id, inst); } } //This is a hack to refresh the property cache so that we don't get old properties. //(this is used in JSF state restoring for PresentationObjects) if(inst != null){ String objectCacheKey = Integer.toString(inst.getICObjectInstanceID()); PropertyCache.getInstance().clearPropertiesForKey(objectCacheKey); } if (inst instanceof PresentationObjectContainer) { if (isLocked) ((PresentationObjectContainer) inst).lock(); else ((PresentationObjectContainer) inst).unlock(); } if (inst instanceof com.idega.presentation.Table) { com.idega.presentation.Table table = (com.idega.presentation.Table) inst; parent.add(table); if (el.hasChildren()) { List children = el.getChildren(); Iterator itr = children.iterator(); while (itr.hasNext()) { XMLElement child = (XMLElement) itr.next(); if (child.getName().equalsIgnoreCase(XMLConstants.PROPERTY_STRING)) { setProperties(child, table); } else if (child.getName().equalsIgnoreCase(XMLConstants.ELEMENT_STRING) || child.getName().equalsIgnoreCase(XMLConstants.MODULE_STRING)) { parseElement(child, table, ibxml); } else if (child.getName().equalsIgnoreCase(XMLConstants.REGION_STRING)) { parseRegion(child, table, ibxml); } else System.err.println("Unknown tag in xml description file : " + child.getName()); } } } else { try { parent.add(inst); } catch (Exception e) { e.printStackTrace(System.err); if (parent != null) System.err.println("ParentID: " + parent.getID()); if (inst != null) System.err.println("InstanceID: " + inst.getICObjectInstanceID()); } if (el.hasChildren()) { List children = el.getChildren(); Iterator itr = children.iterator(); while (itr.hasNext()) { XMLElement child = (XMLElement) itr.next(); if (child.getName().equalsIgnoreCase(XMLConstants.PROPERTY_STRING)) { setProperties(child, inst); } else if (child.getName().equalsIgnoreCase(XMLConstants.ELEMENT_STRING) || child.getName().equalsIgnoreCase(XMLConstants.MODULE_STRING)) { parseElement(child, (PresentationObjectContainer) inst, ibxml); } else if (child.getName().equalsIgnoreCase(XMLConstants.REGION_STRING)) { parseRegion(child, (PresentationObjectContainer) inst, ibxml); } else { System.err.println("Unknown tag in xml description file : " + child.getName()); } } } } } catch (ClassNotFoundException e) { System.err.println("The specified class can not be found: " + className); e.printStackTrace(); } catch (java.lang.IllegalAccessException e2) { System.err.println("Illegal access"); e2.printStackTrace(); } catch (java.lang.InstantiationException e3) { System.err.println("Unable to instanciate class: " + className); e3.printStackTrace(); } catch (Exception e4) { System.err.println("Exception"); e4.printStackTrace(); } }
54061 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54061/5e789efa8069f0a5684374a0aa2aa84e0b02c934/XMLReader.java/clean/src/java/com/idega/builder/business/XMLReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 3845, 918, 1109, 1046, 12, 15223, 415, 16, 25130, 367, 921, 2170, 982, 16, 15771, 1263, 1964, 9834, 2902, 13, 288, 202, 202, 6351, 367, 921, 1804, 273, 446, 31, 202, 202, 682, 622,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 3845, 918, 1109, 1046, 12, 15223, 415, 16, 25130, 367, 921, 2170, 982, 16, 15771, 1263, 1964, 9834, 2902, 13, 288, 202, 202, 6351, 367, 921, 1804, 273, 446, 31, 202, 202, 682, 622,...
msgContext = new MessageContext();
MessageContext msgContext = new MessageContext();
createAndSetInitialParamsToMsgCtxt(MessageContext msgContext, HttpServletResponse resp, HttpServletRequest req) throws AxisFault { msgContext = new MessageContext(); if (axisConfiguration.isManageTransportSession()) { // We need to create this only if transport session is enabled. Object sessionContext = getSessionContext(req); msgContext.setSessionContext((SessionContext) sessionContext); } msgContext.setConfigurationContext(configContext); msgContext.setTransportIn(axisConfiguration.getTransportIn(new QName(Constants .TRANSPORT_HTTP))); msgContext.setTransportOut(axisConfiguration.getTransportOut(new QName(Constants.TRANSPORT_HTTP))); msgContext.setProperty(Constants.OUT_TRANSPORT_INFO, new ServletBasedOutTransportInfo(resp)); msgContext.setProperty(MessageContext.REMOTE_ADDR, req.getRemoteAddr()); msgContext.setFrom(new EndpointReference(req.getRemoteAddr())); msgContext.setProperty(MessageContext.TRANSPORT_HEADERS, getTransportHeaders(req)); msgContext.setProperty(SESSION_ID, req.getSession().getId()); msgContext.setProperty(Constants.Configuration.TRANSPORT_IN_URL, req.getRequestURL().toString()); msgContext.setIncomingTransportName(Constants.TRANSPORT_HTTP); msgContext.setProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST, req); msgContext.setProperty(HTTPConstants.MC_HTTP_SERVLETCONTEXT, servletConfig.getServletContext()); return msgContext; }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/64e6f4eab1243b0ee5e5ebe87ce90331d53ab2d7/AxisServlet.java/buggy/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 752, 13152, 4435, 1370, 774, 3332, 28866, 12, 1079, 1042, 1234, 1042, 16, 4766, 9079, 12446, 1718, 16, 4766, 9079, 9984, 1111, 13, 1216, 15509, 7083, 288, 3639, 2350, 1042, 1234, 1042, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 752, 13152, 4435, 1370, 774, 3332, 28866, 12, 1079, 1042, 1234, 1042, 16, 4766, 9079, 12446, 1718, 16, 4766, 9079, 9984, 1111, 13, 1216, 15509, 7083, 288, 3639, 2350, 1042, 1234, 1042, 273...
TestSuite suite = (TestSuite)test;
TestSuite suite = (TestSuite) test;
private String[] filterTests(String[] tests) { ClassLoader loader = getDynamicClassLoader(); TestRunnerResults testResults = new TestRunnerResults(); TestRunner tester = new TestRunner(loader, testResults, false); List names = new ArrayList(Arrays.asList(tests)); Iterator iterator = names.iterator(); while (iterator.hasNext()) { String name = (String)iterator.next(); try { Class clazz = loader.loadClass(name); if (!Test.class.isAssignableFrom(clazz)) { iterator.remove(); } else { Test test = tester.getTest(name); if (test instanceof TestSuite) { TestSuite suite = (TestSuite)test; if (suite.testCount() == 0) { iterator.remove(); } else if (suite.testCount() == 1) { Test singleTest = suite.testAt(0); if (singleTest.getClass().getName().equals("junit.framework.TestSuite$1")) { // no test method found iterator.remove(); } } } } } catch (ClassNotFoundException e) { iterator.remove(); } catch (NoClassDefFoundError e) { // ignore, just avoid HTTP 500 -> will cause an error again in test runner } } return (String[])names.toArray(new String[names.size()]); }
3994 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3994/cc22dd640a4ef4682c6852d0a9a8f6750c959f68/JUnitEEServlet.java/clean/JUnitEE/src/testrunner/org/junitee/servlet/JUnitEEServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 514, 8526, 1034, 14650, 12, 780, 8526, 7434, 13, 288, 565, 9403, 4088, 273, 2343, 3920, 7805, 5621, 565, 7766, 9709, 3447, 1842, 3447, 273, 394, 7766, 9709, 3447, 5621, 565, 7766, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 514, 8526, 1034, 14650, 12, 780, 8526, 7434, 13, 288, 565, 9403, 4088, 273, 2343, 3920, 7805, 5621, 565, 7766, 9709, 3447, 1842, 3447, 273, 394, 7766, 9709, 3447, 5621, 565, 7766, 9...
return "vm:
return "axis:vm:
protected String getRequestResponseEndpoint() { return "vm://mycomponent?method=echo"; }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/e210a622e29dd34feed9619d9da60bf69103c098/AxisConnectorVMFunctionalTestCase.java/clean/tests/integration/src/test/java/org/mule/test/integration/providers/soap/AxisConnectorVMFunctionalTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 4328, 1064, 3293, 1435, 288, 3639, 327, 315, 3489, 2207, 4811, 4652, 35, 2039, 33, 12946, 14432, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 514, 4328, 1064, 3293, 1435, 288, 3639, 327, 315, 3489, 2207, 4811, 4652, 35, 2039, 33, 12946, 14432, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
synchronized (this.historyDocuments) { if (!this.historyDocuments.containsKey(filename)) { throw new InvalidParameterException("The requested " + "filename does not exist in the document list."); }
synchronized (this.historyDocuments) { if (!this.historyDocuments.containsKey(filename)) { throw new InvalidParameterException("The requested " + "filename does not exist in the document list."); }
protected Document getDocumentForFile(String filename) throws InvalidParameterException, RuntimeException { Document retVal = null; synchronized (this.historyDocuments) { if (!this.historyDocuments.containsKey(filename)) { throw new InvalidParameterException("The requested " + "filename does not exist in the document list."); } Object obj = this.historyDocuments.get(filename); if (obj instanceof Document) { // Document already loaded. Use it directly retVal = (Document) obj; } else if (obj instanceof File) { File file = (File) obj; DocumentBuilder builder = this.historyServiceImpl .getDocumentBuilder(); try { retVal = builder.parse(file); } catch (Exception e) { throw new RuntimeException("Error occured while " + "parsing XML document.", e); } // Cache the loaded document for reuse this.historyDocuments.put(filename, retVal); } else { // TODO: Assert: Assert.fail("Internal error - the data type " + // "should be either Document or File."); } } return retVal; }
43455 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/43455/dd511f0f97892bf31dc2a7a1989480bf6b6b5308/HistoryImpl.java/clean/src/net/java/sip/communicator/impl/history/HistoryImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 4319, 9956, 1290, 812, 12, 780, 1544, 13, 1082, 202, 15069, 26669, 16, 3235, 288, 202, 202, 2519, 12197, 273, 446, 31, 202, 202, 22043, 261, 2211, 18, 8189, 12922, 13, 288, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 4319, 9956, 1290, 812, 12, 780, 1544, 13, 1082, 202, 15069, 26669, 16, 3235, 288, 202, 202, 2519, 12197, 273, 446, 31, 202, 202, 22043, 261, 2211, 18, 8189, 12922, 13, 288, 1...
if (jj_scan_token(19)) {
if (jj_3R_190()) {
final private boolean jj_3R_155() { Token xsp; xsp = jj_scanpos; if (jj_scan_token(19)) { jj_scanpos = xsp; if (jj_3R_190()) return true; } if (jj_scan_token(IDENTIFIER)) return true; xsp = jj_scanpos; if (jj_3R_252()) jj_scanpos = xsp; xsp = jj_scanpos; if (jj_3R_253()) jj_scanpos = xsp; xsp = jj_scanpos; if (jj_3R_254()) jj_scanpos = xsp; if (jj_3R_198()) return true; return false; }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/606e83b0f5c7b0b4f0d05f9c5bcc8d92c81d9342/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, 23643, 1435, 288, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 10684, 67, 9871, 917, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 30454, 10756,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 23643, 1435, 288, 565, 3155, 619, 1752, 31, 565, 619, 1752, 273, 10684, 67, 9871, 917, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 30454, 10756,...
if (node == null) {return;}
if (node == null) { return; }
private void drawDown() { // Now Draw as many nodes as neccessary. startPoint.y = Preferences.getPreferenceInt(Preferences.TOP_MARGIN).cur; Node node = getNodeToDrawFrom(); if (node == null) {return;} JoeNodeList visibleNodes = panel.doc.tree.getVisibleNodes(); int visibleNodesSize = visibleNodes.size(); int nodeIndex = ioNodeToDrawFrom; ioFirstVisNode = ioNodeToDrawFrom; // Pre-compute some values int effectiveBottom = bottom - Preferences.getPreferenceInt(Preferences.BOTTOM_MARGIN).cur; if (OutlinerCellRendererImpl.pShowLineNumbers) { // Increment the LineCountKey panel.doc.tree.incrementLineCountKey(); // Prep the line numbers since this will improve performance. Don't need to do this for UP since the order preps itself. int index = nodeIndex + CACHE_SIZE; if (index >= visibleNodesSize) { visibleNodes.get(visibleNodesSize - 1).getLineNumber(panel.doc.tree.getLineCountKey()); } else { visibleNodes.get(index).getLineNumber(panel.doc.tree.getLineCountKey()); } } OutlinerCellRendererImpl renderer; while (true) { renderer = textAreas[numNodesDrawn]; renderer.drawDown(startPoint, node); renderer.setVisible(true); renderer.node.setVisible(true); numNodesDrawn++; // Make sure we don't draw past the bottom. And don't count nodes that are partially drawn. if (startPoint.y > effectiveBottom) { renderer.node.setVisible(false); partialCellDrawn = true; break; } // Make sure we dont' try to draw more nodes than the cache size if (numNodesDrawn == CACHE_SIZE) { break; } // Get the Next Node to Draw nodeIndex++; if (nodeIndex == visibleNodesSize) { break; } node = visibleNodes.get(nodeIndex); } // Hide any drawing elements that were not used. for (int i = numNodesDrawn; i < CACHE_SIZE; i++) { textAreas[i].setVisible(false); } // Record Indexes and get things ready for the scrollbar if (partialCellDrawn) { numNodesDrawn--; partialCellDrawn = false; } ioLastVisNode = ioFirstVisNode + (numNodesDrawn - 1); if (ioLastVisNode >= visibleNodesSize) { ioLastVisNode = visibleNodesSize - 1; } }
49473 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49473/3a18955261b04e885a98a6c833c7237bf762a4e4/OutlineLayoutManager.java/clean/outliner/src/com/organic/maynard/outliner/OutlineLayoutManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3724, 4164, 1435, 288, 9506, 202, 759, 4494, 10184, 487, 4906, 2199, 487, 290, 557, 614, 814, 18, 202, 202, 1937, 2148, 18, 93, 273, 28310, 18, 588, 9624, 1702, 12, 1237...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3724, 4164, 1435, 288, 9506, 202, 759, 4494, 10184, 487, 4906, 2199, 487, 290, 557, 614, 814, 18, 202, 202, 1937, 2148, 18, 93, 273, 28310, 18, 588, 9624, 1702, 12, 1237...
}
}
protected void initTab(CTabItem tabItem, IPresentablePart part) { // set tab text and tooltip tabItem.setText(getLabelText(part, true, false)); tabItem.setToolTipText(getLabelToolTipText(part)); // set tab image tabItem.setImage(getLabelImage(part)); // following code allows a disabled image // but the result was distracting: didn't see any disabled image //Image image = getLabelImage(part); //boolean useColorIcons = false; // should we use a preference setting? // //if (image == null || image.isDisposed()) { //// normal image //tabItem.setImage(null); //// disabled image //if (!useColorIcons) { //Image disableImage = tabItem.getDisabledImage(); //if (disableImage != null) { //disableImage.dispose(); //tabItem.setDisabledImage(null); //} //} //} else if (!image.equals(tabItem.getImage())) { //// normal image // tabItem.setImage(image); //// disabled image //if (!useColorIcons) { //Image disableImage = tabItem.getDisabledImage(); //if (disableImage != null) //disableImage.dispose(); //Display display = tabItem.getDisplay(); //disableImage = new Image(display, image, SWT.IMAGE_DISABLE); //tabItem.setDisabledImage(disableImage); //} //} }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/38085a8072ad4fd21bad0983f8bc31ac736c9f72/R21EditorStackPresentation.java/buggy/bundles/org.eclipse.ui.presentations.r21/src/org/eclipse/ui/internal/presentations/R21EditorStackPresentation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1208, 5661, 12, 1268, 378, 1180, 3246, 1180, 16, 2971, 1581, 429, 1988, 1087, 13, 288, 3639, 368, 444, 3246, 977, 471, 11915, 3639, 3246, 1180, 18, 542, 1528, 12, 588, 2224, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1208, 5661, 12, 1268, 378, 1180, 3246, 1180, 16, 2971, 1581, 429, 1988, 1087, 13, 288, 3639, 368, 444, 3246, 977, 471, 11915, 3639, 3246, 1180, 18, 542, 1528, 12, 588, 2224, ...
public boolean isCompatibleRaster(Raster raster) {
public boolean isCompatibleRaster(Raster raster) {
public boolean isCompatibleRaster(Raster raster) { SampleModel sampleModel = raster.getSampleModel(); return isCompatibleSampleModel(sampleModel); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/ColorModel.java/buggy/core/src/classpath/java/java/awt/image/ColorModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 14599, 18637, 12, 18637, 12553, 13, 288, 202, 202, 8504, 1488, 3296, 1488, 273, 12553, 18, 588, 8504, 1488, 5621, 202, 202, 2463, 353, 14599, 8504, 1488, 12, 6358, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 14599, 18637, 12, 18637, 12553, 13, 288, 202, 202, 8504, 1488, 3296, 1488, 273, 12553, 18, 588, 8504, 1488, 5621, 202, 202, 2463, 353, 14599, 8504, 1488, 12, 6358, 14...
else if (beforeLine.startsWith("-")) { addContextDiffLine(hunk, beforeLine, PatchLine.Type.REMOVE);
else if (startsWith(beforeLine, "-")) { lastBeforePatchLine = addContextDiffLine(hunk, beforeLine, PatchLine.Type.REMOVE);
private PatchHunk readNextHunkContext() throws PatchSyntaxException { while(myLineIndex < myLines.length) { String curLine = myLines [myLineIndex]; if (curLine.startsWith(CONTEXT_FILE_PREFIX)) { return null; } if (curLine.startsWith(CONTEXT_HUNK_PREFIX)) { break; } myLineIndex++; } if (myLineIndex == myLines.length) { return null; } myLineIndex++; Matcher beforeMatcher = ourContextBeforeHunkStartPattern.matcher(myLines [myLineIndex]); if (!beforeMatcher.matches()) { throw new PatchSyntaxException(myLineIndex, "Unknown before hunk start syntax"); } myLineIndex++; List<String> beforeLines = readContextDiffLines(); if (myLineIndex == myLines.length) { throw new PatchSyntaxException(myLineIndex, "Missing after hunk"); } Matcher afterMatcher = ourContextAfterHunkStartPattern.matcher(myLines [myLineIndex]); if (!afterMatcher.matches()) { throw new PatchSyntaxException(myLineIndex, "Unknown after hunk start syntax"); } myLineIndex++; List<String> afterLines = readContextDiffLines(); int startLineBefore = Integer.parseInt(beforeMatcher.group(1)); int endLineBefore = Integer.parseInt(beforeMatcher.group(2)); int startLineAfter = Integer.parseInt(afterMatcher.group(1)); int endLineAfter = Integer.parseInt(afterMatcher.group(2)); PatchHunk hunk = new PatchHunk(startLineBefore, endLineBefore, startLineAfter, endLineAfter); int beforeLineIndex = 0; int afterLineIndex = 0; if (beforeLines.size() == 0) { for(String line: afterLines) { hunk.addLine(parsePatchLine(line, 2)); } } else if (afterLines.size() == 0) { for(String line: beforeLines) { hunk.addLine(parsePatchLine(line, 2)); } } else { while(beforeLineIndex < beforeLines.size() && afterLineIndex < afterLines.size()) { String beforeLine = beforeLines.get(beforeLineIndex); String afterLine = afterLines.get(afterLineIndex); if (beforeLine.startsWith(" ") && afterLine.startsWith(" ")) { addContextDiffLine(hunk, beforeLine, PatchLine.Type.CONTEXT); beforeLineIndex++; afterLineIndex++; } else if (beforeLine.startsWith("-")) { addContextDiffLine(hunk, beforeLine, PatchLine.Type.REMOVE); beforeLineIndex++; } else if (afterLine.startsWith("+")) { addContextDiffLine(hunk, afterLine, PatchLine.Type.ADD); afterLineIndex++; } else if (beforeLine.startsWith("!") && afterLine.startsWith("!")) { while(beforeLineIndex < beforeLines.size() && beforeLines.get(beforeLineIndex).startsWith("! ")) { addContextDiffLine(hunk, beforeLines.get(beforeLineIndex), PatchLine.Type.REMOVE); beforeLineIndex++; } while(afterLineIndex < afterLines.size() && afterLines.get(afterLineIndex).startsWith("! ")) { addContextDiffLine(hunk, afterLines.get(afterLineIndex), PatchLine.Type.ADD); afterLineIndex++; } } else { throw new PatchSyntaxException(-1, "Unknown line prefix"); } } } return hunk; }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/1e644343da95ee76e1ce293a33e43c31814432c6/PatchReader.java/buggy/source/com/intellij/openapi/diff/impl/patch/PatchReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 12042, 44, 1683, 855, 2134, 44, 1683, 1042, 1435, 1216, 12042, 14714, 288, 565, 1323, 12, 4811, 1670, 1016, 411, 3399, 5763, 18, 2469, 13, 288, 1377, 514, 662, 1670, 273, 3399, 5763...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12042, 44, 1683, 855, 2134, 44, 1683, 1042, 1435, 1216, 12042, 14714, 288, 565, 1323, 12, 4811, 1670, 1016, 411, 3399, 5763, 18, 2469, 13, 288, 1377, 514, 662, 1670, 273, 3399, 5763...
if (force || Util.compare(oldScopeIds, newScopeIds) == 0) {
if (force || Util.compare(oldScopeIds, newScopeIds) != 0) {
public void update(IWorkbenchPart part, boolean force) { if (part == null) return; String[] oldScopeIds = new String[0]; if (activeService != null) oldScopeIds = activeService.getScopeIds(); activeService = (KeyBindingService) part.getSite().getKeyBindingService(); clear(); String[] newScopeIds = new String[0]; if (activeService != null) newScopeIds = activeService.getScopeIds(); if (force || Util.compare(oldScopeIds, newScopeIds) == 0) { Scope[] scopes = new Scope[newScopeIds.length]; for (int i = 0; i < newScopeIds.length; i++) scopes[i] = KeyBindingManager.getInstance().getScopeForId(newScopeIds[i]); KeyBindingManager.getInstance().setScopes(scopes); WorkbenchWindow w = (WorkbenchWindow) getWindow(); MenuManager menuManager = w.getMenuManager(); menuManager.update(IAction.TEXT); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/95a032dc8415e28bfa118034c49a9e0a416518dd/WWinKeyBindingService.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WWinKeyBindingService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 202, 482, 918, 1089, 12, 45, 2421, 22144, 1988, 1087, 16, 1250, 2944, 13, 288, 565, 202, 202, 430, 261, 2680, 422, 446, 13, 565, 1082, 202, 2463, 31, 565, 9506, 202, 780, 8526, 1592, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 202, 482, 918, 1089, 12, 45, 2421, 22144, 1988, 1087, 16, 1250, 2944, 13, 288, 565, 202, 202, 430, 261, 2680, 422, 446, 13, 565, 1082, 202, 2463, 31, 565, 9506, 202, 780, 8526, 1592, ...
checkPermission(new FilePermission(filename, "read"));
if (desc == null) throw new NullPointerException(); checkPermission(new RuntimePermission("readFileDescriptor"));
public void checkRead(String filename) { checkPermission(new FilePermission(filename, "read")); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/206de32e8ebd7bc5080236c5c9ea198dd5243913/SecurityManager.java/buggy/core/src/classpath/java/java/lang/SecurityManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 866, 1994, 12, 780, 1544, 13, 225, 288, 3639, 309, 261, 5569, 422, 446, 13, 604, 394, 10108, 5621, 25300, 12, 2704, 2509, 5041, 2932, 896, 812, 3187, 7923, 1769, 565, 289, 2,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 866, 1994, 12, 780, 1544, 13, 225, 288, 3639, 309, 261, 5569, 422, 446, 13, 604, 394, 10108, 5621, 25300, 12, 2704, 2509, 5041, 2932, 896, 812, 3187, 7923, 1769, 565, 289, 2,...
if ( platform == null )
private void deploy( ) { assert platform == null; platform = context.getRealPath( RESOURCE_BASE ); //Weblogic try to remove the platform but it failes, //so try to copy the platform each time. //if ( platform == null ) { File contextTemp = (File) context .getAttribute( "javax.servlet.context.tempdir" ); //$NON-NLS-1$ File platformFolder = new File( contextTemp, "platform" ); if ( !platformFolder.exists( ) ) { platformFolder.mkdir( ); copyResources( RESOURCE_BASE, platformFolder.getAbsolutePath( ) ); } platform = platformFolder.getAbsolutePath( ); } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/847a41b491a826f3f4012166d31b047f6869dd28/PlatformServletContext.java/buggy/core/org.eclipse.birt.core/src/org/eclipse/birt/core/framework/PlatformServletContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 7286, 12, 262, 202, 95, 202, 202, 11231, 4072, 422, 446, 31, 202, 202, 9898, 273, 819, 18, 588, 6955, 743, 12, 12653, 67, 8369, 11272, 202, 202, 759, 4079, 28339, 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, 225, 202, 1152, 918, 7286, 12, 262, 202, 95, 202, 202, 11231, 4072, 422, 446, 31, 202, 202, 9898, 273, 819, 18, 588, 6955, 743, 12, 12653, 67, 8369, 11272, 202, 202, 759, 4079, 28339, 775, ...
public int compare(Object o1, Object o2) { Integer tag1 = (Integer) o1; Integer tag2 = (Integer) o2; int index1 = indexOf(tag1.intValue(), fieldOrder); int index2 = indexOf(tag2.intValue(), fieldOrder); return index1 != index2 ? (index1 < index2 ? -1 : 1) : 0; }
52526 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52526/ac62cdb33fe9cdcbdda5568204116691fedd13fb/FieldMap.java/buggy/src/quickfix/FieldMap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 474, 9877, 12, 921, 83, 21, 16, 921, 83, 22, 15329, 4522, 2692, 21, 28657, 4522, 13, 83, 21, 31, 4522, 2692, 22, 28657, 4522, 13, 83, 22, 31, 474, 1615, 21, 33, 31806, 12, 2692, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 474, 9877, 12, 921, 83, 21, 16, 921, 83, 22, 15329, 4522, 2692, 21, 28657, 4522, 13, 83, 21, 31, 4522, 2692, 22, 28657, 4522, 13, 83, 22, 31, 474, 1615, 21, 33, 31806, 12, 2692, 21...
props.addLastFile(Props.TYPE_PROPERTIES_SPOON, fname, Const.FILE_SEPARATOR, false, "");
props.addLastFile(Props.TYPE_PROPERTIES_SPOON, fname, RepositoryDirectory.DIRECTORY_SEPARATOR, false, "");
private void save(String fname) { String xml = XMLHandler.getXMLHeader() + transMeta.getXML(); try { DataOutputStream dos = new DataOutputStream(new FileOutputStream(new File(fname))); dos.write(xml.getBytes(Const.XML_ENCODING)); dos.close(); // Handle last opened files... props.addLastFile(Props.TYPE_PROPERTIES_SPOON, fname, Const.FILE_SEPARATOR, false, ""); saveSettings(); addMenuLast(); transMeta.clearChanged(); setShellText(); log.logDebug(toString(), "File written to ["+fname+"]"); } catch(Exception e) { log.logDebug(toString(), "Error opening file for writing! --> "+e.toString()); MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR); mb.setMessage("Error saving file:"+Const.CR+e.toString()); mb.setText("ERROR"); mb.open(); } }
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/57aac50193bcb56732b265a22cbd966d52e9bba4/Spoon.java/buggy/src/be/ibridge/kettle/spoon/Spoon.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1923, 12, 780, 5299, 13, 202, 95, 202, 202, 780, 2025, 273, 3167, 1503, 18, 588, 4201, 1864, 1435, 397, 906, 2781, 18, 588, 4201, 5621, 202, 202, 698, 202, 202, 95, 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, 225, 202, 1152, 918, 1923, 12, 780, 5299, 13, 202, 95, 202, 202, 780, 2025, 273, 3167, 1503, 18, 588, 4201, 1864, 1435, 397, 906, 2781, 18, 588, 4201, 5621, 202, 202, 698, 202, 202, 95, 54...
public Vector getDeleteConstraints() throws SQLException { Vector tableList = new Vector(); //check for eperson in item table TableRowIterator tri = DatabaseManager.query(myContext, "SELECT * from item where submitter_id=" + getID()); if (tri.hasNext()) { tableList.add("item"); } //check for eperson in workflowitem table tri = DatabaseManager.query(myContext, "SELECT * from workflowitem where owner=" + getID()); if (tri.hasNext()) { tableList.add("workflowitem"); } //check for eperson in tasklistitem table tri = DatabaseManager.query(myContext, "SELECT * from tasklistitem where eperson_id=" + getID()); if (tri.hasNext()) { tableList.add("tasklistitem"); } //the list of tables can be used to construct an error message //explaining to the user why the eperson cannot be deleted. return tableList; }
52457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52457/edb9e4bb77e2c137353ec9cbd78be22ac41fdca8/EPerson.java/clean/dspace/src/org/dspace/eperson/EPerson.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5589, 2343, 929, 4878, 1435, 1216, 6483, 565, 288, 3639, 5589, 1014, 682, 273, 394, 5589, 5621, 3639, 368, 1893, 364, 5529, 3565, 316, 761, 1014, 3639, 3555, 1999, 3198, 6882, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5589, 2343, 929, 4878, 1435, 1216, 6483, 565, 288, 3639, 5589, 1014, 682, 273, 394, 5589, 5621, 3639, 368, 1893, 364, 5529, 3565, 316, 761, 1014, 3639, 3555, 1999, 3198, 6882, 273, ...
this.loginName = authorName; }
this.loginName = authorName; }
public void setLoginName(String authorName) { this.loginName = authorName; }
49097 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49097/d9f355feba10445bead0fc80ef15c20d6b50f76c/RevisionData.java/clean/src/net/sf/statcvs/input/RevisionData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 5358, 461, 12, 780, 2869, 461, 13, 288, 202, 202, 2211, 18, 5819, 461, 273, 2869, 461, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 5358, 461, 12, 780, 2869, 461, 13, 288, 202, 202, 2211, 18, 5819, 461, 273, 2869, 461, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
private void initMetadata(String xml) { Vector elements = new Vector(); // first parse each element in the XML string while (xml.length() > 2) { String el = xml.substring(1, xml.indexOf(">")); xml = xml.substring(xml.indexOf(">") + 1); elements.add(el); } // the first element contains version information String token = (String) elements.get(0); String key = token.substring(0, token.indexOf("\"")); String value = token.substring(token.indexOf("\"") + 1, token.length()-1); metadata.put(key, value); // what we have right now is a vector of XML elements, which need to // be parsed into the appropriate image dimensions int ndx = 1; numImages = 0; // the image data we need starts with the token "ElementName='blah'" and // ends with the token "/ImageDescription" int numDatasets = 0; Vector widths = new Vector(); Vector heights = new Vector(); Vector zs = new Vector(); Vector ts = new Vector(); Vector channels = new Vector(); Vector bps = new Vector(); Vector extraDims = new Vector(); while (ndx < elements.size()) { token = (String) elements.get(ndx); // if the element contains a key/value pair, parse it and put it in // the metadata hashtable String tmpToken = token; if (token.indexOf("=") != -1) { while (token.length() > 2) { key = token.substring(0, token.indexOf("\"") - 1); value = token.substring(token.indexOf("\"") + 1, token.indexOf("\"", token.indexOf("\"") + 1)); token = token.substring(key.length() + value.length() + 3); key = key.trim(); value = value.trim(); metadata.put(key, value); } } token = tmpToken; if (token.startsWith("ElementName")) { // loop until we find "/ImageDescription" numDatasets++; int numChannels = 0; while (token.indexOf("/ImageDescription") == -1) { if (token.indexOf("=") != -1) { // create a small hashtable to store just this element's data Hashtable tmp = new Hashtable(); while (token.length() > 2) { key = token.substring(0, token.indexOf("\"") - 1); value = token.substring(token.indexOf("\"") + 1, token.indexOf("\"", token.indexOf("\"") + 1)); token = token.substring(key.length() + value.length() + 3); key = key.trim(); value = value.trim(); tmp.put(key, value); } if (tmp.get("ChannelDescriptionDataType") != null) { // found channel description block numChannels++; if (numChannels == 1) { bps.add(new Integer((String) tmp.get("Resolution"))); } } else if (tmp.get("DimensionDescriptionDimID") != null) { // found dimension description block int w = Integer.parseInt((String) tmp.get("NumberOfElements")); int id = Integer.parseInt((String) tmp.get("DimensionDescriptionDimID")); int extras = 1; switch (id) { case 1: widths.add(new Integer(w)); break; case 2: heights.add(new Integer(w)); break; case 3: zs.add(new Integer(w)); break; case 4: ts.add(new Integer(w)); break; default: extras *= w; } extraDims.add(new Integer(extras)); } } ndx++; token = (String) elements.get(ndx); } channels.add(new Integer(numChannels)); if (zs.size() < channels.size()) zs.add(new Integer(1)); if (ts.size() < channels.size()) ts.add(new Integer(1)); } ndx++; } dims = new int[numDatasets][7]; for (int i=0; i<numDatasets; i++) { dims[i][0] = ((Integer) widths.get(i)).intValue(); dims[i][1] = ((Integer) heights.get(i)).intValue(); dims[i][2] = ((Integer) zs.get(i)).intValue(); dims[i][3] = ((Integer) ts.get(i)).intValue(); dims[i][4] = ((Integer) channels.get(i)).intValue(); dims[i][5] = ((Integer) bps.get(i)).intValue(); dims[i][6] = ((Integer) extraDims.get(i)).intValue(); numImages += (dims[i][2] * dims[i][3] * dims[i][6]); } // Populate metadata store // The metadata store we're working with. try { MetadataStore store = getMetadataStore(currentId); for (int i=0; i<dims.length; i++) { String type = "int8"; switch (dims[i][5]) { case 12: type = "int16"; break; case 16: type = "int16"; break; case 32: type = "float"; break; } store.setPixels( new Integer(dims[i][0]), // SizeX new Integer(dims[i][1]), // SizeY new Integer(dims[i][2]), // SizeZ new Integer(dims[i][4]), // SizeC new Integer(dims[i][3]), // SizeT type, // PixelType new Boolean(!littleEndian), // BigEndian "XYZTC", // DimensionOrder new Integer(i)); // Index } } catch (Exception e) { } }
55303 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55303/ef9698ad6215d7209ca0754a20e4de61585b318c/LIFReader.java/clean/loci/formats/in/LIFReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1208, 2277, 12, 780, 2025, 13, 288, 565, 5589, 2186, 273, 394, 5589, 5621, 565, 368, 1122, 1109, 1517, 930, 316, 326, 3167, 533, 565, 1323, 261, 2902, 18, 2469, 1435, 405, 57...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1208, 2277, 12, 780, 2025, 13, 288, 565, 5589, 2186, 273, 394, 5589, 5621, 565, 368, 1122, 1109, 1517, 930, 316, 326, 3167, 533, 565, 1323, 261, 2902, 18, 2469, 1435, 405, 57...
public org.quickfix.field.EncodedUnderlyingIssuerLen getEncodedUnderlyingIssuerLen() throws FieldNotFound { org.quickfix.field.EncodedUnderlyingIssuerLen value = new org.quickfix.field.EncodedUnderlyingIssuerLen();
public quickfix.field.EncodedUnderlyingIssuerLen getEncodedUnderlyingIssuerLen() throws FieldNotFound { quickfix.field.EncodedUnderlyingIssuerLen value = new quickfix.field.EncodedUnderlyingIssuerLen();
public org.quickfix.field.EncodedUnderlyingIssuerLen getEncodedUnderlyingIssuerLen() throws FieldNotFound { org.quickfix.field.EncodedUnderlyingIssuerLen value = new org.quickfix.field.EncodedUnderlyingIssuerLen(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/MassQuote.java/clean/src/java/src/quickfix/fix44/MassQuote.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 14655, 6291, 16667, 2891, 28799, 14655, 6291, 16667, 2891, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1465...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10397, 14655, 6291, 16667, 2891, 28799, 14655, 6291, 16667, 2891, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1465...
return _cmp_unsafe(o) < 0 ? Py.One : Py.Zero;
return _cmp_unsafe(o) < 0 ? Py.True : Py.False;
public final PyObject _lt(PyObject o) { PyObject token = null; ThreadState ts = Py.getThreadState(); try { if (++ts.compareStateNesting > 10) { if ((token = check_recursion(ts, this, o)) == null) throw Py.ValueError("can't order recursive values"); } PyObject res = __lt__(o); if (res != null) return res; res = o.__gt__(this); if (res != null) return res; return _cmp_unsafe(o) < 0 ? Py.One : Py.Zero; } finally { delete_token(ts, token); ts.compareStateNesting--; } }
6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/7a2fa9e7c826e79970384454e73a68a06e327145/PyObject.java/buggy/src/org/python/core/PyObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 4707, 921, 389, 5618, 12, 9413, 921, 320, 13, 288, 3639, 4707, 921, 1147, 273, 446, 31, 3639, 4884, 1119, 3742, 273, 4707, 18, 588, 3830, 1119, 5621, 3639, 775, 288, 5411, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 4707, 921, 389, 5618, 12, 9413, 921, 320, 13, 288, 3639, 4707, 921, 1147, 273, 446, 31, 3639, 4884, 1119, 3742, 273, 4707, 18, 588, 3830, 1119, 5621, 3639, 775, 288, 5411, 30...
if (wrappedModel instanceof ValueModelWrapper) {
if (wrappedModel instanceof ValueModelWrapper)
public ValueModel getInnerMostWrappedValueModel() { if (wrappedModel instanceof ValueModelWrapper) { return ((ValueModelWrapper)wrappedModel).getInnerMostWrappedValueModel(); } else { return wrappedModel; } }
55916 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55916/970bcdd60ee0c816ab5b641ca1f14ae19799a842/AbstractValueModelWrapper.java/clean/support/src/main/java/org/springframework/binding/value/support/AbstractValueModelWrapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1445, 1488, 22000, 18714, 17665, 620, 1488, 1435, 288, 3639, 309, 261, 18704, 1488, 1276, 1445, 1488, 3611, 13, 5411, 327, 14015, 620, 1488, 3611, 13, 18704, 1488, 2934, 588, 2857, 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, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1445, 1488, 22000, 18714, 17665, 620, 1488, 1435, 288, 3639, 309, 261, 18704, 1488, 1276, 1445, 1488, 3611, 13, 5411, 327, 14015, 620, 1488, 3611, 13, 18704, 1488, 2934, 588, 2857, 18...
assertFalse( UIUtil.containElement( outlineTreeViewer, dataSource ) ); assertFalse( UIUtil.containElement( outlineTreeViewer, dataSet ) ); assertFalse( UIUtil.containElement( outlineTreeViewer, param1 ) ); assertFalse( UIUtil.containElement( outlineTreeViewer, paramGroup ) ); assertFalse( UIUtil.containElement( outlineTreeViewer, param2 ) );
assertTrue( UIUtil.containElement( outlineTreeViewer, dataSource ) ); assertTrue( UIUtil.containElement( outlineTreeViewer, dataSet ) ); assertTrue( UIUtil.containElement( outlineTreeViewer, param1 ) ); assertTrue( UIUtil.containElement( outlineTreeViewer, paramGroup ) ); assertTrue( UIUtil.containElement( outlineTreeViewer, param2 ) );
public void testContainElement( ) throws Throwable { showPerspective( ); openEditor( ); getView( DATA_EXPLORER_ID ).setFocus( ); DataViewPage dataViewPage = (DataViewPage) ( (DataView) getView( DATA_EXPLORER_ID ) ).getCurrentPage( ); TreeViewer dataTreeViewer = (TreeViewer) PrivateAccessor.getField( dataViewPage, "treeViewer" ); ContentOutlinePage outlinePage = (ContentOutlinePage) PrivateAccessor.getField( UIUtil.getActiveReportEditor( ), "outlinePage" ); TreeViewer outlineTreeViewer = (TreeViewer) PrivateAccessor.getField( outlinePage, "treeViewer" ); ReportDesignHandle reportHandle = (ReportDesignHandle) SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ); DataSourceHandle dataSource = reportHandle.getElementFactory( ) .newOdaDataSource( null, null ); DataSetHandle dataSet = reportHandle.getElementFactory( ) .newScriptDataSet( null ); dataSet.setDataSource( dataSource.getName( ) ); ScalarParameterHandle param1 = reportHandle.getElementFactory( ) .newScalarParameter( "P1" ); ScalarParameterHandle param2 = reportHandle.getElementFactory( ) .newScalarParameter( "P2" ); ParameterGroupHandle paramGroup = reportHandle.getElementFactory( ) .newParameterGroup( null ); paramGroup.addElement( param2, ParameterGroupHandle.PARAMETERS_SLOT ); reportHandle.getDataSources( ).add( dataSource ); reportHandle.getDataSets( ).add( dataSet ); reportHandle.getParameters( ).add( param1 ); reportHandle.getParameters( ).add( paramGroup ); LabelHandle label1 = reportHandle.getElementFactory( ).newLabel( null ); LabelHandle label2 = reportHandle.getElementFactory( ).newLabel( null ); TextItemHandle text = reportHandle.getElementFactory( ) .newTextItem( null ); ListHandle list = reportHandle.getElementFactory( ).newList( null ); ListGroupHandle listGroup = reportHandle.getElementFactory( ) .newListGroup( ); listGroup.getHeader( ).add( label2 ); list.getDetail( ).add( text ); list.getGroups( ).add( listGroup ); reportHandle.getBody( ).add( label1 ); reportHandle.getBody( ).add( list ); getView( DATA_EXPLORER_ID ).setFocus( ); dataTreeViewer.refresh( ); getView( OUTLINE_ID ).setFocus( ); outlineTreeViewer.refresh( ); try { assertTrue( UIUtil.containElement( outlineTreeViewer, label1 ) ); assertTrue( UIUtil.containElement( outlineTreeViewer, label2 ) ); assertTrue( UIUtil.containElement( outlineTreeViewer, text ) ); assertTrue( UIUtil.containElement( outlineTreeViewer, list ) ); assertTrue( UIUtil.containElement( outlineTreeViewer, listGroup ) ); assertTrue( UIUtil.containElement( dataTreeViewer, dataSource ) ); assertTrue( UIUtil.containElement( dataTreeViewer, dataSet ) ); assertTrue( UIUtil.containElement( dataTreeViewer, param1 ) ); assertTrue( UIUtil.containElement( dataTreeViewer, paramGroup ) ); assertTrue( UIUtil.containElement( dataTreeViewer, param2 ) ); assertFalse( UIUtil.containElement( outlineTreeViewer, dataSource ) ); assertFalse( UIUtil.containElement( outlineTreeViewer, dataSet ) ); assertFalse( UIUtil.containElement( outlineTreeViewer, param1 ) ); assertFalse( UIUtil.containElement( outlineTreeViewer, paramGroup ) ); assertFalse( UIUtil.containElement( outlineTreeViewer, param2 ) ); assertFalse( UIUtil.containElement( dataTreeViewer, label1 ) ); assertFalse( UIUtil.containElement( dataTreeViewer, label2 ) ); assertFalse( UIUtil.containElement( dataTreeViewer, text ) ); assertFalse( UIUtil.containElement( dataTreeViewer, list ) ); assertFalse( UIUtil.containElement( dataTreeViewer, listGroup ) ); } catch ( Throwable e ) { throw e; } finally { closeEditor( ); } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/313518b91b860447b8f176cf913a05fbab79cab4/UIUtilUITest.java/clean/UI/org.eclipse.birt.report.designer.tests/test/org/eclipse/birt/report/designer/internal/ui/util/UIUtilUITest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 22928, 1046, 12, 262, 1216, 4206, 202, 95, 202, 202, 4500, 14781, 16772, 12, 11272, 202, 202, 3190, 6946, 12, 11272, 202, 202, 588, 1767, 12, 8730, 67, 2294, 6253, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22928, 1046, 12, 262, 1216, 4206, 202, 95, 202, 202, 4500, 14781, 16772, 12, 11272, 202, 202, 3190, 6946, 12, 11272, 202, 202, 588, 1767, 12, 8730, 67, 2294, 6253, ...
Constants.RESOLUTION_OPTIONAL }, PDEMarkerFactory.NO_RESOLUTION);
Constants.RESOLUTION_OPTIONAL });
private void validateResolutionDirective(IHeader header, ManifestElement requireBundleElement) { String resolution = requireBundleElement .getDirective(Constants.RESOLUTION_DIRECTIVE); if (resolution != null) { validateDirectiveValue(header, requireBundleElement, Constants.RESOLUTION_DIRECTIVE, new String[] { Constants.RESOLUTION_MANDATORY, Constants.RESOLUTION_OPTIONAL }, PDEMarkerFactory.NO_RESOLUTION); } }
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/87dd8ec978807e3ea8f676ade2caf585bff26e45/BundleErrorReporter.java/buggy/org.eclipse.pde/src/org/eclipse/pde/internal/builders/BundleErrorReporter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1954, 11098, 13307, 12, 45, 1864, 1446, 16, 1082, 202, 9121, 1046, 2583, 3405, 1046, 13, 288, 202, 202, 780, 7861, 273, 2583, 3405, 1046, 9506, 202, 18, 588, 13307, 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, 1152, 918, 1954, 11098, 13307, 12, 45, 1864, 1446, 16, 1082, 202, 9121, 1046, 2583, 3405, 1046, 13, 288, 202, 202, 780, 7861, 273, 2583, 3405, 1046, 9506, 202, 18, 588, 13307, 12, ...
eventTypes.add(new Integer(STARTDOCUMENT));
eventTypes.add(STARTDOCUMENT);
public void startDocument () throws SAXException { if(buffering) { eventTypes.add(new Integer(STARTDOCUMENT)); } else if (contentHandler != null) { contentHandler.startDocument(); } }
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/5bd8136256b7a06c2a8f66363fbe38b5e9e9f206/SAX2BufferImpl.java/buggy/source/org/jasig/portal/utils/SAX2BufferImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 787, 2519, 1832, 1216, 14366, 565, 288, 3639, 309, 12, 4106, 310, 13, 288, 5411, 871, 2016, 18, 1289, 12, 7570, 18450, 1769, 3639, 289, 469, 309, 261, 1745, 1503, 480, 446, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 787, 2519, 1832, 1216, 14366, 565, 288, 3639, 309, 12, 4106, 310, 13, 288, 5411, 871, 2016, 18, 1289, 12, 7570, 18450, 1769, 3639, 289, 469, 309, 261, 1745, 1503, 480, 446, 1...
return o1 == ((InternalFactHandle) o2).getObject();
InternalFactHandle handle = ((InternalFactHandle) o2); return o1 == ( ( handle.isShadowFact() ) ? ((ShadowProxy) handle.getObject() ).getShadowedObject() : handle.getObject() );
public boolean equal(final Object o1, final Object o2) { if ( o1.getClass() == this.factHandleClass ) { return ((InternalFactHandle) o1).getObject() == ((InternalFactHandle) o2).getObject(); } return o1 == ((InternalFactHandle) o2).getObject(); }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/f9429ab73e0cdd844bde3c93077f112d0ceb15b1/IdentityAssertMapComparator.java/buggy/drools-core/src/main/java/org/drools/common/IdentityAssertMapComparator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 3959, 12, 6385, 1033, 320, 21, 16, 7682, 727, 1033, 320, 22, 13, 288, 3639, 309, 261, 320, 21, 18, 588, 797, 1435, 422, 333, 18, 3493, 3259, 797, 262, 288, 5411, 327, 1401...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3959, 12, 6385, 1033, 320, 21, 16, 7682, 727, 1033, 320, 22, 13, 288, 3639, 309, 261, 320, 21, 18, 588, 797, 1435, 422, 333, 18, 3493, 3259, 797, 262, 288, 5411, 327, 1401...
if ( ability.getKeyName().equals(aKey) )
if (ability.getKeyName().equals(aKey))
public Ability getAbilityKeyed(final AbilityCategory aCategory, final String aKey) { if ( aCategory == AbilityCategory.FEAT ) { return getFeatKeyed(aKey); } final List<Ability> abilities = getAggregateAbilityList(aCategory); for ( final Ability ability : abilities ) { if ( ability.getKeyName().equals(aKey) ) { return ability; } } return null; }
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/376816acf8bf134fa77bd6ea5c602dbe9af9bfbd/PlayerCharacter.java/clean/code/src/java/pcgen/core/PlayerCharacter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 9771, 1889, 4506, 70, 1889, 653, 329, 12, 6385, 9771, 1889, 4457, 279, 4457, 16, 727, 514, 279, 653, 13, 202, 95, 202, 202, 430, 261, 279, 4457, 422, 9771, 1889, 4457, 18, 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, 225, 202, 482, 9771, 1889, 4506, 70, 1889, 653, 329, 12, 6385, 9771, 1889, 4457, 279, 4457, 16, 727, 514, 279, 653, 13, 202, 95, 202, 202, 430, 261, 279, 4457, 422, 9771, 1889, 4457, 18, 8...
Polygon item = (Polygon) iter2.next(); g.fillPolygon(item.xpoints, item.ypoints, item.npoints);
Polygon item = (Polygon)iter2.next(); /* fills the final highlighted area a solid color but covers the encompasing islands. Will be a guessing game to get the islands once the sea zone is done. g.setColor(Color.yellow); g.fillPolygon(item.xpoints, item.ypoints, item.npoints); g.setColor(Color.black); */ g.drawPolygon(item.xpoints, item.ypoints, item.npoints);
private JPanel createMainPanel() { JPanel imagePanel = new JPanel() { public void paint(Graphics g) { //super.paint(g); g.drawImage(m_image, 0,0, this); g.setColor(Color.black); Iterator iter = m_polygons.entrySet().iterator(); while (iter.hasNext()) { Collection polygons = (Collection) ( (Map.Entry) iter.next()).getValue(); Iterator iter2 = polygons.iterator(); while (iter2.hasNext()) { Polygon item = (Polygon) iter2.next(); g.fillPolygon(item.xpoints, item.ypoints, item.npoints); }//while }//while g.setColor(Color.red); if(m_current != null) { Iterator currentIter = m_current.iterator(); while (currentIter.hasNext()) { Polygon item = (Polygon) currentIter.next(); g.fillPolygon(item.xpoints, item.ypoints, item.npoints); }//while }//if }//paint }; return imagePanel; }
8339 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8339/066281e3987b03dad83bc2a86c51f13bb8c0feaa/PolygonGrabber.java/clean/src/util/image/PolygonGrabber.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 24048, 752, 6376, 5537, 1435, 565, 288, 3639, 24048, 1316, 5537, 273, 394, 24048, 1435, 3639, 288, 5411, 1071, 918, 12574, 12, 17558, 314, 13, 5411, 288, 7734, 368, 9565, 18, 84, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 24048, 752, 6376, 5537, 1435, 565, 288, 3639, 24048, 1316, 5537, 273, 394, 24048, 1435, 3639, 288, 5411, 1071, 918, 12574, 12, 17558, 314, 13, 5411, 288, 7734, 368, 9565, 18, 84, 15...
throw getRuntime().newIOError(e.getMessage());
throw getRuntime().newIOError(e.getMessage());
public RubyBoolean eof() { try { boolean isEOF = handler.isEOF(); return isEOF ? getRuntime().getTrue() : getRuntime().getFalse(); } catch (IOHandler.BadDescriptorException e) { throw getRuntime().newErrnoEBADFError(); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); } }
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/a1b8fc1d456e3d5c6e01579b88773383068aa85c/RubyIO.java/buggy/src/org/jruby/RubyIO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 5507, 14813, 1435, 288, 3639, 775, 288, 5411, 1250, 353, 12706, 273, 1838, 18, 291, 12706, 5621, 2398, 327, 353, 12706, 692, 18814, 7675, 588, 5510, 1435, 294, 18814, 7675, 588...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 5507, 14813, 1435, 288, 3639, 775, 288, 5411, 1250, 353, 12706, 273, 1838, 18, 291, 12706, 5621, 2398, 327, 353, 12706, 692, 18814, 7675, 588, 5510, 1435, 294, 18814, 7675, 588...
Iterator<CodeExceptionGen> i = exceptionHandlerList.iterator(); while (i.hasNext()) { CodeExceptionGen exceptionHandler = i.next(); InstructionHandle handlerStart = exceptionHandler.getHandlerPC(); subroutine.addEdgeAndExplore(etb, handlerStart, HANDLED_EXCEPTION_EDGE);
if (!sawAnyExceptionHandler) { if (DEBUG) System.out.println("Adding unhandled exception edge from " + pei); subroutine.addEdge(etb, subroutine.getExit(), UNHANDLED_EXCEPTION_EDGE);
private void handleExceptions(Subroutine subroutine, InstructionHandle pei, BasicBlock etb) { etb.setExceptionThrower(pei); List<CodeExceptionGen> exceptionHandlerList = exceptionHandlerMap.getHandlerList(pei); if (exceptionHandlerList == null) return; // TODO: should try to prune some obviously infeasible exception edges Iterator<CodeExceptionGen> i = exceptionHandlerList.iterator(); while (i.hasNext()) { CodeExceptionGen exceptionHandler = i.next(); InstructionHandle handlerStart = exceptionHandler.getHandlerPC(); subroutine.addEdgeAndExplore(etb, handlerStart, HANDLED_EXCEPTION_EDGE); } }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/01c62d1f09b307ddc4609fccff537c85dd5c6361/BetterCFGBuilder2.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/BetterCFGBuilder2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1640, 11416, 12, 1676, 22640, 720, 22640, 16, 24605, 3259, 2804, 77, 16, 7651, 1768, 3393, 70, 13, 288, 202, 202, 278, 70, 18, 542, 503, 8282, 264, 12, 347, 77, 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, 1152, 918, 1640, 11416, 12, 1676, 22640, 720, 22640, 16, 24605, 3259, 2804, 77, 16, 7651, 1768, 3393, 70, 13, 288, 202, 202, 278, 70, 18, 542, 503, 8282, 264, 12, 347, 77, 1769, ...
if ( formatPattern != null )
if ( formatCategroy == DesignChoiceConstants.STRING_FORMAT_TYPE_CUSTOM || formatCategroy == DesignChoiceConstants.NUMBER_FORMAT_TYPE_CUSTOM || formatCategroy == DesignChoiceConstants.DATETIEM_FORMAT_TYPE_CUSTOM )
private void updateFormatField( ) { String displayFormat; String previewString; String type = getSelectedDataType( ); IChoiceSet choiceSet = getFormatChoiceSet( getSelectedDataType( ) ); if ( choiceSet == null ) {// Boolean type; displayFormat = DesignEngine.getMetaDataDictionary( ) .getChoiceSet( DesignChoiceConstants.CHOICE_STRING_FORMAT_TYPE ) .findChoice( DesignChoiceConstants.STRING_FORMAT_TYPE_UNFORMATTED ) .getDisplayName( ); previewString = "True"; //$NON-NLS-1$ } else { displayFormat = choiceSet.findChoice( formatCategroy ) .getDisplayName( ); if ( defaultValue != null ) { previewString = format( defaultValue ); } else { if ( formatPattern != null ) { displayFormat += ": " + formatPattern; //$NON-NLS-1$ } if ( type.equals( DesignChoiceConstants.PARAM_TYPE_DATETIME ) ) { previewString = new DateFormatter( formatPattern == null ? formatCategroy : formatPattern, ULocale.getDefault( ) ).format( new Date( ) ); } else if ( type.equals( DesignChoiceConstants.PARAM_TYPE_STRING ) ) { previewString = new StringFormatter( formatPattern == null ? formatCategroy : formatPattern, ULocale.getDefault( ) ).format( Messages.getString( "ParameterDialog.Label.Sample" ) ); //$NON-NLS-1$ } else { previewString = new NumberFormatter( formatPattern == null ? formatCategroy : formatPattern, ULocale.getDefault( ) ).format( 123456789.01234 ); } } } formatField.setText( displayFormat ); previewLabel.setText( previewString ); changeFormat.setEnabled( choiceSet != null ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/93723d1ddc3fa20d0b82117bc4c24722aab6a837/ParameterDialog.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ParameterDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 1630, 974, 12, 262, 202, 95, 202, 202, 780, 2562, 1630, 31, 202, 202, 780, 10143, 780, 31, 202, 202, 780, 618, 273, 16625, 6273, 12, 11272, 202, 202, 45, 10538, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 1630, 974, 12, 262, 202, 95, 202, 202, 780, 2562, 1630, 31, 202, 202, 780, 10143, 780, 31, 202, 202, 780, 618, 273, 16625, 6273, 12, 11272, 202, 202, 45, 10538, ...
match(LITERAL_with); if ( inputState.guessing==0 ) { name = "with"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_into:
match(LITERAL_ordered); if ( inputState.guessing==0 ) { name = "ordered"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_unordered:
public final String reservedKeywords() throws RecognitionException, TokenStreamException { String name; returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST reservedKeywords_AST = null; name= null; switch ( LA(1)) { case LITERAL_element: { org.exist.xquery.parser.XQueryAST tmp388_AST = null; tmp388_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp388_AST); match(LITERAL_element); if ( inputState.guessing==0 ) { name = "element"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_to: { org.exist.xquery.parser.XQueryAST tmp389_AST = null; tmp389_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp389_AST); match(LITERAL_to); if ( inputState.guessing==0 ) { name = "to"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_div: { org.exist.xquery.parser.XQueryAST tmp390_AST = null; tmp390_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp390_AST); match(LITERAL_div); if ( inputState.guessing==0 ) { name= "div"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_mod: { org.exist.xquery.parser.XQueryAST tmp391_AST = null; tmp391_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp391_AST); match(LITERAL_mod); if ( inputState.guessing==0 ) { name= "mod"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_text: { org.exist.xquery.parser.XQueryAST tmp392_AST = null; tmp392_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp392_AST); match(LITERAL_text); if ( inputState.guessing==0 ) { name= "text"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_node: { org.exist.xquery.parser.XQueryAST tmp393_AST = null; tmp393_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp393_AST); match(LITERAL_node); if ( inputState.guessing==0 ) { name= "node"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_or: { org.exist.xquery.parser.XQueryAST tmp394_AST = null; tmp394_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp394_AST); match(LITERAL_or); if ( inputState.guessing==0 ) { name= "or"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_and: { org.exist.xquery.parser.XQueryAST tmp395_AST = null; tmp395_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp395_AST); match(LITERAL_and); if ( inputState.guessing==0 ) { name= "and"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_child: { org.exist.xquery.parser.XQueryAST tmp396_AST = null; tmp396_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp396_AST); match(LITERAL_child); if ( inputState.guessing==0 ) { name= "child"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_parent: { org.exist.xquery.parser.XQueryAST tmp397_AST = null; tmp397_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp397_AST); match(LITERAL_parent); if ( inputState.guessing==0 ) { name= "parent"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_self: { org.exist.xquery.parser.XQueryAST tmp398_AST = null; tmp398_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp398_AST); match(LITERAL_self); if ( inputState.guessing==0 ) { name= "self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_attribute: { org.exist.xquery.parser.XQueryAST tmp399_AST = null; tmp399_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp399_AST); match(LITERAL_attribute); if ( inputState.guessing==0 ) { name= "attribute"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_comment: { org.exist.xquery.parser.XQueryAST tmp400_AST = null; tmp400_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp400_AST); match(LITERAL_comment); if ( inputState.guessing==0 ) { name= "comment"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_document: { org.exist.xquery.parser.XQueryAST tmp401_AST = null; tmp401_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp401_AST); match(LITERAL_document); if ( inputState.guessing==0 ) { name= "document"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 166: { org.exist.xquery.parser.XQueryAST tmp402_AST = null; tmp402_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp402_AST); match(166); if ( inputState.guessing==0 ) { name= "document-node"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_collection: { org.exist.xquery.parser.XQueryAST tmp403_AST = null; tmp403_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp403_AST); match(LITERAL_collection); if ( inputState.guessing==0 ) { name= "collection"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_ancestor: { org.exist.xquery.parser.XQueryAST tmp404_AST = null; tmp404_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp404_AST); match(LITERAL_ancestor); if ( inputState.guessing==0 ) { name= "ancestor"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_descendant: { org.exist.xquery.parser.XQueryAST tmp405_AST = null; tmp405_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp405_AST); match(LITERAL_descendant); if ( inputState.guessing==0 ) { name= "descendant"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 178: { org.exist.xquery.parser.XQueryAST tmp406_AST = null; tmp406_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp406_AST); match(178); if ( inputState.guessing==0 ) { name= "descendant-or-self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 182: { org.exist.xquery.parser.XQueryAST tmp407_AST = null; tmp407_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp407_AST); match(182); if ( inputState.guessing==0 ) { name= "ancestor-or-self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 183: { org.exist.xquery.parser.XQueryAST tmp408_AST = null; tmp408_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp408_AST); match(183); if ( inputState.guessing==0 ) { name= "preceding-sibling"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 179: { org.exist.xquery.parser.XQueryAST tmp409_AST = null; tmp409_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp409_AST); match(179); if ( inputState.guessing==0 ) { name= "following-sibling"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_following: { org.exist.xquery.parser.XQueryAST tmp410_AST = null; tmp410_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp410_AST); match(LITERAL_following); if ( inputState.guessing==0 ) { name = "following"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_preceding: { org.exist.xquery.parser.XQueryAST tmp411_AST = null; tmp411_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp411_AST); match(LITERAL_preceding); if ( inputState.guessing==0 ) { name = "preceding"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_item: { org.exist.xquery.parser.XQueryAST tmp412_AST = null; tmp412_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp412_AST); match(LITERAL_item); if ( inputState.guessing==0 ) { name= "item"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_empty: { org.exist.xquery.parser.XQueryAST tmp413_AST = null; tmp413_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp413_AST); match(LITERAL_empty); if ( inputState.guessing==0 ) { name= "empty"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_version: { org.exist.xquery.parser.XQueryAST tmp414_AST = null; tmp414_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp414_AST); match(LITERAL_version); if ( inputState.guessing==0 ) { name= "version"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_xquery: { org.exist.xquery.parser.XQueryAST tmp415_AST = null; tmp415_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp415_AST); match(LITERAL_xquery); if ( inputState.guessing==0 ) { name= "xquery"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_variable: { org.exist.xquery.parser.XQueryAST tmp416_AST = null; tmp416_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp416_AST); match(LITERAL_variable); if ( inputState.guessing==0 ) { name= "variable"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_namespace: { org.exist.xquery.parser.XQueryAST tmp417_AST = null; tmp417_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp417_AST); match(LITERAL_namespace); if ( inputState.guessing==0 ) { name= "namespace"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_if: { org.exist.xquery.parser.XQueryAST tmp418_AST = null; tmp418_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp418_AST); match(LITERAL_if); if ( inputState.guessing==0 ) { name= "if"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_then: { org.exist.xquery.parser.XQueryAST tmp419_AST = null; tmp419_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp419_AST); match(LITERAL_then); if ( inputState.guessing==0 ) { name= "then"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_else: { org.exist.xquery.parser.XQueryAST tmp420_AST = null; tmp420_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp420_AST); match(LITERAL_else); if ( inputState.guessing==0 ) { name= "else"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_for: { org.exist.xquery.parser.XQueryAST tmp421_AST = null; tmp421_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp421_AST); match(LITERAL_for); if ( inputState.guessing==0 ) { name= "for"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_let: { org.exist.xquery.parser.XQueryAST tmp422_AST = null; tmp422_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp422_AST); match(LITERAL_let); if ( inputState.guessing==0 ) { name= "let"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_default: { org.exist.xquery.parser.XQueryAST tmp423_AST = null; tmp423_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp423_AST); match(LITERAL_default); if ( inputState.guessing==0 ) { name= "default"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_function: { org.exist.xquery.parser.XQueryAST tmp424_AST = null; tmp424_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp424_AST); match(LITERAL_function); if ( inputState.guessing==0 ) { name= "function"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_external: { org.exist.xquery.parser.XQueryAST tmp425_AST = null; tmp425_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp425_AST); match(LITERAL_external); if ( inputState.guessing==0 ) { name = "external"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_as: { org.exist.xquery.parser.XQueryAST tmp426_AST = null; tmp426_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp426_AST); match(LITERAL_as); if ( inputState.guessing==0 ) { name = "as"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_union: { org.exist.xquery.parser.XQueryAST tmp427_AST = null; tmp427_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp427_AST); match(LITERAL_union); if ( inputState.guessing==0 ) { name = "union"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_intersect: { org.exist.xquery.parser.XQueryAST tmp428_AST = null; tmp428_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp428_AST); match(LITERAL_intersect); if ( inputState.guessing==0 ) { name = "intersect"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_except: { org.exist.xquery.parser.XQueryAST tmp429_AST = null; tmp429_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp429_AST); match(LITERAL_except); if ( inputState.guessing==0 ) { name = "except"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_order: { org.exist.xquery.parser.XQueryAST tmp430_AST = null; tmp430_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp430_AST); match(LITERAL_order); if ( inputState.guessing==0 ) { name = "order"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_by: { org.exist.xquery.parser.XQueryAST tmp431_AST = null; tmp431_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp431_AST); match(LITERAL_by); if ( inputState.guessing==0 ) { name = "by"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_some: { org.exist.xquery.parser.XQueryAST tmp432_AST = null; tmp432_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp432_AST); match(LITERAL_some); if ( inputState.guessing==0 ) { name = "some"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_every: { org.exist.xquery.parser.XQueryAST tmp433_AST = null; tmp433_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp433_AST); match(LITERAL_every); if ( inputState.guessing==0 ) { name = "every"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_is: { org.exist.xquery.parser.XQueryAST tmp434_AST = null; tmp434_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp434_AST); match(LITERAL_is); if ( inputState.guessing==0 ) { name = "is"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_isnot: { org.exist.xquery.parser.XQueryAST tmp435_AST = null; tmp435_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp435_AST); match(LITERAL_isnot); if ( inputState.guessing==0 ) { name = "isnot"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_module: { org.exist.xquery.parser.XQueryAST tmp436_AST = null; tmp436_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp436_AST); match(LITERAL_module); if ( inputState.guessing==0 ) { name = "module"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_import: { org.exist.xquery.parser.XQueryAST tmp437_AST = null; tmp437_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp437_AST); match(LITERAL_import); if ( inputState.guessing==0 ) { name = "import"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_at: { org.exist.xquery.parser.XQueryAST tmp438_AST = null; tmp438_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp438_AST); match(LITERAL_at); if ( inputState.guessing==0 ) { name = "at"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_cast: { org.exist.xquery.parser.XQueryAST tmp439_AST = null; tmp439_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp439_AST); match(LITERAL_cast); if ( inputState.guessing==0 ) { name = "cast"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_return: { org.exist.xquery.parser.XQueryAST tmp440_AST = null; tmp440_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp440_AST); match(LITERAL_return); if ( inputState.guessing==0 ) { name = "return"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_instance: { org.exist.xquery.parser.XQueryAST tmp441_AST = null; tmp441_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp441_AST); match(LITERAL_instance); if ( inputState.guessing==0 ) { name = "instance"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_of: { org.exist.xquery.parser.XQueryAST tmp442_AST = null; tmp442_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp442_AST); match(LITERAL_of); if ( inputState.guessing==0 ) { name = "of"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_declare: { org.exist.xquery.parser.XQueryAST tmp443_AST = null; tmp443_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp443_AST); match(LITERAL_declare); if ( inputState.guessing==0 ) { name = "declare"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_collation: { org.exist.xquery.parser.XQueryAST tmp444_AST = null; tmp444_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp444_AST); match(LITERAL_collation); if ( inputState.guessing==0 ) { name = "collation"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 63: { org.exist.xquery.parser.XQueryAST tmp445_AST = null; tmp445_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp445_AST); match(63); if ( inputState.guessing==0 ) { name = "boundary-space"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_preserve: { org.exist.xquery.parser.XQueryAST tmp446_AST = null; tmp446_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp446_AST); match(LITERAL_preserve); if ( inputState.guessing==0 ) { name = "preserve"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_strip: { org.exist.xquery.parser.XQueryAST tmp447_AST = null; tmp447_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp447_AST); match(LITERAL_strip); if ( inputState.guessing==0 ) { name = "strip"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_ordering: { org.exist.xquery.parser.XQueryAST tmp448_AST = null; tmp448_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp448_AST); match(LITERAL_ordering); if ( inputState.guessing==0 ) { name = "ordering"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_construction: { org.exist.xquery.parser.XQueryAST tmp449_AST = null; tmp449_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp449_AST); match(LITERAL_construction); if ( inputState.guessing==0 ) { name = "construction"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_ordered: { org.exist.xquery.parser.XQueryAST tmp450_AST = null; tmp450_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp450_AST); match(LITERAL_ordered); if ( inputState.guessing==0 ) { name = "ordered"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_unordered: { org.exist.xquery.parser.XQueryAST tmp451_AST = null; tmp451_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp451_AST); match(LITERAL_unordered); if ( inputState.guessing==0 ) { name = "unordered"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_typeswitch: { org.exist.xquery.parser.XQueryAST tmp452_AST = null; tmp452_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp452_AST); match(LITERAL_typeswitch); if ( inputState.guessing==0 ) { name = "typeswitch"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_encoding: { org.exist.xquery.parser.XQueryAST tmp453_AST = null; tmp453_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp453_AST); match(LITERAL_encoding); if ( inputState.guessing==0 ) { name = "encoding"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 66: { org.exist.xquery.parser.XQueryAST tmp454_AST = null; tmp454_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp454_AST); match(66); if ( inputState.guessing==0 ) { name = "base-uri"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_update: { org.exist.xquery.parser.XQueryAST tmp455_AST = null; tmp455_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp455_AST); match(LITERAL_update); if ( inputState.guessing==0 ) { name = "update"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_replace: { org.exist.xquery.parser.XQueryAST tmp456_AST = null; tmp456_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp456_AST); match(LITERAL_replace); if ( inputState.guessing==0 ) { name = "replace"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_delete: { org.exist.xquery.parser.XQueryAST tmp457_AST = null; tmp457_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp457_AST); match(LITERAL_delete); if ( inputState.guessing==0 ) { name = "delete"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_value: { org.exist.xquery.parser.XQueryAST tmp458_AST = null; tmp458_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp458_AST); match(LITERAL_value); if ( inputState.guessing==0 ) { name = "value"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_insert: { org.exist.xquery.parser.XQueryAST tmp459_AST = null; tmp459_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp459_AST); match(LITERAL_insert); if ( inputState.guessing==0 ) { name = "insert"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_with: { org.exist.xquery.parser.XQueryAST tmp460_AST = null; tmp460_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp460_AST); match(LITERAL_with); if ( inputState.guessing==0 ) { name = "with"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_into: { org.exist.xquery.parser.XQueryAST tmp461_AST = null; tmp461_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp461_AST); match(LITERAL_into); if ( inputState.guessing==0 ) { name = "into"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_rename: { org.exist.xquery.parser.XQueryAST tmp462_AST = null; tmp462_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp462_AST); match(LITERAL_rename); if ( inputState.guessing==0 ) { name = "rename"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_option: { org.exist.xquery.parser.XQueryAST tmp463_AST = null; tmp463_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp463_AST); match(LITERAL_option); if ( inputState.guessing==0 ) { name = "option"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_case: { org.exist.xquery.parser.XQueryAST tmp464_AST = null; tmp464_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp464_AST); match(LITERAL_case); if ( inputState.guessing==0 ) { name = "case"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_validate: { org.exist.xquery.parser.XQueryAST tmp465_AST = null; tmp465_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp465_AST); match(LITERAL_validate); if ( inputState.guessing==0 ) { name = "validate"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_schema: { org.exist.xquery.parser.XQueryAST tmp466_AST = null; tmp466_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp466_AST); match(LITERAL_schema); if ( inputState.guessing==0 ) { name = "schema"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_treat: { org.exist.xquery.parser.XQueryAST tmp467_AST = null; tmp467_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp467_AST); match(LITERAL_treat); if ( inputState.guessing==0 ) { name = "treat"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 84: { org.exist.xquery.parser.XQueryAST tmp468_AST = null; tmp468_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp468_AST); match(84); if ( inputState.guessing==0 ) { name = "no-preserve"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_inherit: { org.exist.xquery.parser.XQueryAST tmp469_AST = null; tmp469_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp469_AST); match(LITERAL_inherit); if ( inputState.guessing==0 ) { name = "inherit"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 86: { org.exist.xquery.parser.XQueryAST tmp470_AST = null; tmp470_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp470_AST); match(86); if ( inputState.guessing==0 ) { name = "no-inherit"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_eq: { org.exist.xquery.parser.XQueryAST tmp471_AST = null; tmp471_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp471_AST); match(LITERAL_eq); if ( inputState.guessing==0 ) { name="eq"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_ne: { org.exist.xquery.parser.XQueryAST tmp472_AST = null; tmp472_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp472_AST); match(LITERAL_ne); if ( inputState.guessing==0 ) { name = "ne"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_lt: { org.exist.xquery.parser.XQueryAST tmp473_AST = null; tmp473_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp473_AST); match(LITERAL_lt); if ( inputState.guessing==0 ) { name = "lt"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_le: { org.exist.xquery.parser.XQueryAST tmp474_AST = null; tmp474_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp474_AST); match(LITERAL_le); if ( inputState.guessing==0 ) { name = "le"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_gt: { org.exist.xquery.parser.XQueryAST tmp475_AST = null; tmp475_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp475_AST); match(LITERAL_gt); if ( inputState.guessing==0 ) { name = "gt"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_ge: { org.exist.xquery.parser.XQueryAST tmp476_AST = null; tmp476_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp476_AST); match(LITERAL_ge); if ( inputState.guessing==0 ) { name = "ge"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = reservedKeywords_AST; return name; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/68bb69fc2bc91cbece43dcdf563e1be3ba003e1b/XQueryParser.java/buggy/src/org/exist/xquery/parser/XQueryParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 514, 225, 8735, 14149, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 202, 202, 780, 508, 31, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 514, 225, 8735, 14149, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 202, 202, 780, 508, 31, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394,...
StringBuffer buf = new StringBuffer(""); String source = labels.getTextBase().documentSpan(documentId).asString(); int currentPos = 0; for(int i=0; i<orderedMarkers.size(); i++) { String t = ((String)(((Vector)orderedMarkers.get(i)).get(0))); Span s = ((Span)(((Vector)orderedMarkers.get(i)).get(2))); int pos; if(t.startsWith("</")){ if (s.documentSpanStartIndex()+s.size() < s.documentSpan().size()){ pos = s.documentSpan().subSpan( s.documentSpanStartIndex()+s.size(), 1).getTextToken(0).getLo(); }else{ pos = s.documentSpan().getTextToken(s.documentSpan().size()-1).getHi(); } } else { if (s.documentSpanStartIndex() < s.documentSpan().size()){ pos = s.documentSpan().subSpan( s.documentSpanStartIndex(), 1).getTextToken(0).getLo(); }else{ pos = s.documentSpan().getTextToken(s.documentSpan().size()-1).getHi(); } } if(pos >= 0 && pos > currentPos) { buf.append( source.substring(currentPos, pos) ); currentPos = pos; } buf.append(t); } return buf.toString();
buffer.append(docString.substring(docPos, docString.length())); return buffer.toString();
public String createXMLmarkup(String documentId,TextLabels labels) { // create vector of labels with their start and end positions Vector types = new Vector(); for(Iterator i=labels.getTypes().iterator(); i.hasNext(); ){ String type = (String)i.next(); for(Span.Looper j=labels.instanceIterator(type, documentId); j.hasNext(); ) { Span s = j.nextSpan(); Vector l = new Vector(); l.add(type); int st = s.documentSpanStartIndex(); Integer start = new Integer(st); int e = st + s.size(); Integer end = new Integer(e); l.add(start); l.add(end); l.add(s); types.add(l); } } //Sort Labels so that there are no overlapping labels and longest spans are on outside Vector newTypes = new Vector(); newTypes.add((Vector)types.get(0)); boolean flag = true; for(int x=1; x<types.size(); x++) { int curStart = ((Integer)(((Vector)types.get(x)).get(1))).intValue(); int curEnd = ((Integer)(((Vector)types.get(x)).get(2))).intValue(); flag = true; for(int y=0; y<newTypes.size(); y++){ int prevStart = ((Integer)(((Vector)newTypes.get(y)).get(1))).intValue(); int prevEnd = ((Integer)(((Vector)newTypes.get(y)).get(2))).intValue(); if(curStart > prevStart && curStart < prevEnd && curEnd > prevEnd){ flag = false; break; } } //add type to array if no conflicts in order if(flag) { boolean flag2 = true; for(int i=0; i<newTypes.size(); i++){ int prevStart = ((Integer)(((Vector)newTypes.get(i)).get(1))).intValue(); int prevEnd = ((Integer)(((Vector)newTypes.get(i)).get(2))).intValue(); if(curStart < prevStart || (curStart == prevStart && curEnd > prevEnd)) { newTypes.insertElementAt((Vector)types.get(x),i); flag2 = false; break; } } if(flag2) newTypes.add((Vector)types.get(x)); } } Vector orderedMarkers = new Vector(); Vector previousEnd = new Vector(); int la = 0; Integer high = new Integer(la); previousEnd.add(high); orderedMarkers = createOrderedMarkers(newTypes, orderedMarkers, previousEnd); for(int a=0; a<orderedMarkers.size(); a++) { String t = ((String)(((Vector)orderedMarkers.get(a)).get(0))); int start = ((Integer)(((Vector)orderedMarkers.get(a)).get(1))).intValue(); //System.out.println(t + ": " + start); } //Embed Labels in TextBase StringBuffer buf = new StringBuffer(""); String source = labels.getTextBase().documentSpan(documentId).asString(); int currentPos = 0; for(int i=0; i<orderedMarkers.size(); i++) { String t = ((String)(((Vector)orderedMarkers.get(i)).get(0))); //int pos = ((Integer)(((Vector)orderedMarkers.get(i)).get(1))).intValue(); Span s = ((Span)(((Vector)orderedMarkers.get(i)).get(2))); int pos; if(t.startsWith("</")){ if (s.documentSpanStartIndex()+s.size() < s.documentSpan().size()){ pos = s.documentSpan().subSpan( s.documentSpanStartIndex()+s.size(), 1).getTextToken(0).getLo(); }else{ pos = s.documentSpan().getTextToken(s.documentSpan().size()-1).getHi(); } } else { if (s.documentSpanStartIndex() < s.documentSpan().size()){ pos = s.documentSpan().subSpan( s.documentSpanStartIndex(), 1).getTextToken(0).getLo(); }else{ pos = s.documentSpan().getTextToken(s.documentSpan().size()-1).getHi(); } } if(pos >= 0 && pos > currentPos) { buf.append( source.substring(currentPos, pos) ); currentPos = pos; } buf.append(t); } return buf.toString(); //return "Not Yet"; }
51753 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51753/e84e760a813bc60769cb01e6aa6fc34d1fc7fef8/TextLabelsLoader.java/buggy/src/edu/cmu/minorthird/text/TextLabelsLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 752, 4201, 15056, 12, 780, 28573, 16, 1528, 5888, 3249, 13, 288, 202, 759, 752, 3806, 434, 3249, 598, 3675, 787, 471, 679, 6865, 202, 5018, 1953, 273, 394, 5589, 5621, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 752, 4201, 15056, 12, 780, 28573, 16, 1528, 5888, 3249, 13, 288, 202, 759, 752, 3806, 434, 3249, 598, 3675, 787, 471, 679, 6865, 202, 5018, 1953, 273, 394, 5589, 5621, 202, 1...
try { Command command = new Command(Command.QUIT); sendCommand(command); }catch (IOException ioe) { log.warn("Error closing connection: " + getAddress().getHostName() + ":" + getAddress().getPort(),ioe); socketProvider = null; }
try { Command command = new Command(Command.QUIT); sendCommand(command).dumpReply(); socketProvider.close(); }catch (IOException ioe) { log.warn("Error closing connection: " + getAddress().getHostName() + ":" + getAddress().getPort(),ioe); } socketProvider = null;
public void disconnect() { try { Command command = new Command(Command.QUIT); sendCommand(command); }catch (IOException ioe) { log.warn("Error closing connection: " + getAddress().getHostName() + ":" + getAddress().getPort(),ioe); socketProvider = null; } }
11835 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11835/77d69818374f2ef93e728acb275c638e9d7da666/FTPConnection.java/clean/ftp4che14/src/java/org/ftp4che/FTPConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 9479, 1435, 288, 3639, 775, 3639, 288, 5411, 3498, 1296, 273, 394, 3498, 12, 2189, 18, 3500, 1285, 1769, 5411, 1366, 2189, 12, 3076, 1769, 3639, 289, 14683, 261, 14106, 10847, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9479, 1435, 288, 3639, 775, 3639, 288, 5411, 3498, 1296, 273, 394, 3498, 12, 2189, 18, 3500, 1285, 1769, 5411, 1366, 2189, 12, 3076, 1769, 3639, 289, 14683, 261, 14106, 10847, ...
public void displayURL(String url) { frm.removeAll(); try { url = url.replace('|', ':'); viewPane.setPage(url); viewPane.setEditable(false); } catch (IOException e) { System.out.println("Error loading URL "+url); } view.add(viewPane);// viewPane.setPreferredSize(defaultSize); view.setSize(defaultSize); view.doLayout(); frm.add(view, BorderLayout.CENTER); frm.pack(); frm.setVisible(true); System.out.println("++ Showing"); }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/701adb53ebc028dc703c1074d472d19dec2ab46e/JView.java/clean/java/plugins/examples/rtf/JView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 5417, 1785, 12, 780, 718, 15329, 202, 4840, 81, 18, 4479, 1595, 5621, 202, 698, 95, 202, 718, 33, 718, 18, 2079, 2668, 96, 17023, 2497, 1769, 202, 1945, 8485, 18, 542, 1964, 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, 1071, 6459, 5417, 1785, 12, 780, 718, 15329, 202, 4840, 81, 18, 4479, 1595, 5621, 202, 698, 95, 202, 718, 33, 718, 18, 2079, 2668, 96, 17023, 2497, 1769, 202, 1945, 8485, 18, 542, 1964, 12, ...
public void setEnclosingTypeName(IQualifiedTypeName typeName, boolean isNamespace) {
public void setEnclosingTypeName(IQualifiedTypeName typeName, boolean isNamespace, boolean update) {
public void setEnclosingTypeName(IQualifiedTypeName typeName, boolean isNamespace) { if (typeName != null) { fEnclosingTypeDialogField.setText(typeName.toString()); //$NON-NLS-1$ } else { fEnclosingTypeDialogField.setText(""); //$NON-NLS-1$ } fEnclosingTypeButtons.setSelection(isNamespace ? CLASS_INDEX : NAMESPACE_INDEX, false); fEnclosingTypeButtons.setSelection(isNamespace ? NAMESPACE_INDEX : CLASS_INDEX, true); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/973bfa0ac31780b09f901f5a1e13dab525560fa4/NewClassCreationWizardPage.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/classwizard/NewClassCreationWizardPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 21594, 7947, 12, 45, 8708, 7947, 8173, 16, 1250, 353, 3402, 13, 288, 202, 565, 309, 261, 723, 461, 480, 446, 13, 288, 1082, 202, 74, 21594, 559, 6353, 974, 18, 542...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 21594, 7947, 12, 45, 8708, 7947, 8173, 16, 1250, 353, 3402, 13, 288, 202, 565, 309, 261, 723, 461, 480, 446, 13, 288, 1082, 202, 74, 21594, 559, 6353, 974, 18, 542...
List lessons = shift.getAssociatedLessons(); List infoLessons = new ArrayList(); List<ISchoolClass> classesShifts = shift.getAssociatedClasses(); List infoClasses = new ArrayList();
InfoShift infoShift = InfoShiftWithInfoExecutionCourseAndCollections .newInfoFromDomain(shift);
private ISiteComponent getInfoSiteShifts(InfoSiteShifts component, ISite site) throws FenixServiceException { List shiftsWithAssociatedClassesAndLessons = new ArrayList(); try { ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport(); IExecutionCourse disciplinaExecucao = site.getExecutionCourse(); List shifts = sp.getITurnoPersistente().readByExecutionCourse( disciplinaExecucao.getIdInternal()); if (shifts == null || shifts.isEmpty()) { } else { for (int i = 0; i < shifts.size(); i++) { IShift shift = (IShift) shifts.get(i); InfoShiftWithAssociatedInfoClassesAndInfoLessons shiftWithAssociatedClassesAndLessons = new InfoShiftWithAssociatedInfoClassesAndInfoLessons( InfoShiftWithInfoExecutionCourseAndCollections.newInfoFromDomain(shift), null, null); List lessons = shift.getAssociatedLessons(); List infoLessons = new ArrayList(); List<ISchoolClass> classesShifts = shift.getAssociatedClasses(); List infoClasses = new ArrayList(); for (int j = 0; j < lessons.size(); j++) infoLessons.add(InfoLessonWithInfoRoomAndInfoExecutionCourse .newInfoFromDomain((ILesson) lessons.get(j))); shiftWithAssociatedClassesAndLessons.setInfoLessons(infoLessons); for (int j = 0; j < classesShifts.size(); j++) infoClasses.add(InfoClassWithInfoExecutionDegree .newInfoFromDomain((classesShifts.get(j)))); shiftWithAssociatedClassesAndLessons.setInfoClasses(infoClasses); shiftsWithAssociatedClassesAndLessons.add(shiftWithAssociatedClassesAndLessons); } } } catch (ExcepcaoPersistencia e) { throw new FenixServiceException(e); } component.setShifts(shiftsWithAssociatedClassesAndLessons); component.setInfoExecutionPeriodName(site.getExecutionCourse().getExecutionPeriod().getName()); component.setInfoExecutionYearName(site.getExecutionCourse().getExecutionPeriod() .getExecutionYear().getYear()); return component; }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/6d4e66bd896dc0746d4408208a022f74f3ebe222/ExecutionCourseSiteComponentBuilder.java/buggy/src/net/sourceforge/fenixedu/applicationTier/Factory/ExecutionCourseSiteComponentBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 4437, 1137, 1841, 17142, 4956, 10544, 87, 12, 966, 4956, 10544, 87, 1794, 16, 4437, 1137, 2834, 13, 5411, 1216, 478, 275, 697, 15133, 288, 3639, 987, 27552, 1190, 19233, 4818, 1876, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4437, 1137, 1841, 17142, 4956, 10544, 87, 12, 966, 4956, 10544, 87, 1794, 16, 4437, 1137, 2834, 13, 5411, 1216, 478, 275, 697, 15133, 288, 3639, 987, 27552, 1190, 19233, 4818, 1876, ...
this.use_tab = true;
this.tab_char = TAB;
public void setDefaultSettings() { this.alignment_for_arguments_in_allocation_expression = Alignment.M_COMPACT_SPLIT; this.alignment_for_arguments_in_enum_constant = Alignment.M_COMPACT_SPLIT; this.alignment_for_arguments_in_explicit_constructor_call = Alignment.M_COMPACT_SPLIT; this.alignment_for_arguments_in_method_invocation = Alignment.M_COMPACT_SPLIT; this.alignment_for_arguments_in_qualified_allocation_expression = Alignment.M_COMPACT_SPLIT; this.alignment_for_binary_expression = Alignment.M_COMPACT_SPLIT; this.alignment_for_compact_if = Alignment.M_ONE_PER_LINE_SPLIT | Alignment.M_INDENT_BY_ONE; this.alignment_for_conditional_expression = Alignment.M_ONE_PER_LINE_SPLIT; this.alignment_for_expressions_in_array_initializer = Alignment.M_COMPACT_SPLIT; this.alignment_for_multiple_fields = Alignment.M_COMPACT_SPLIT; this.alignment_for_parameters_in_constructor_declaration = Alignment.M_COMPACT_SPLIT; this.alignment_for_parameters_in_method_declaration = Alignment.M_COMPACT_SPLIT; this.alignment_for_selector_in_method_invocation = Alignment.M_COMPACT_SPLIT; this.alignment_for_superclass_in_type_declaration = Alignment.M_NEXT_SHIFTED_SPLIT; this.alignment_for_superinterfaces_in_enum_declaration = Alignment.M_NEXT_SHIFTED_SPLIT; this.alignment_for_superinterfaces_in_type_declaration = Alignment.M_NEXT_SHIFTED_SPLIT; this.alignment_for_throws_clause_in_constructor_declaration = Alignment.M_COMPACT_SPLIT; this.alignment_for_throws_clause_in_method_declaration = Alignment.M_COMPACT_SPLIT; this.align_type_members_on_columns = false; this.brace_position_for_annotation_type_declaration = DefaultCodeFormatterConstants.END_OF_LINE; this.brace_position_for_anonymous_type_declaration = DefaultCodeFormatterConstants.END_OF_LINE; this.brace_position_for_array_initializer = DefaultCodeFormatterConstants.END_OF_LINE; this.brace_position_for_block = DefaultCodeFormatterConstants.END_OF_LINE; this.brace_position_for_block_in_case = DefaultCodeFormatterConstants.END_OF_LINE; this.brace_position_for_constructor_declaration = DefaultCodeFormatterConstants.END_OF_LINE; this.brace_position_for_enum_constant = DefaultCodeFormatterConstants.END_OF_LINE; this.brace_position_for_enum_declaration = DefaultCodeFormatterConstants.END_OF_LINE; this.brace_position_for_method_declaration = DefaultCodeFormatterConstants.END_OF_LINE; this.brace_position_for_type_declaration = DefaultCodeFormatterConstants.END_OF_LINE; this.brace_position_for_switch = DefaultCodeFormatterConstants.END_OF_LINE; this.comment_clear_blank_lines = true; this.comment_format = true; this.comment_format_header = false; this.comment_format_html = true; this.comment_format_source = true; this.comment_indent_parameter_description = true; this.comment_indent_root_tags = true; this.comment_insert_empty_line_before_root_tags = true; this.comment_insert_new_line_for_parameter = true; this.comment_line_length = 80; this.continuation_indentation = 2; this.continuation_indentation_for_array_initializer = 2; this.blank_lines_after_imports = 0; this.blank_lines_after_package = 0; this.blank_lines_before_field = 0; this.blank_lines_before_first_class_body_declaration = 0; this.blank_lines_before_imports = 0; this.blank_lines_before_member_type = 0; this.blank_lines_before_method = 0; this.blank_lines_before_new_chunk = 0; this.blank_lines_before_package = 0; this.blank_lines_between_type_declarations = 0; this.blank_lines_at_beginning_of_method_body = 0; this.indent_statements_compare_to_block = true; this.indent_statements_compare_to_body = true; this.indent_body_declarations_compare_to_enum_constant_header = true; this.indent_body_declarations_compare_to_enum_declaration_header = true; this.indent_body_declarations_compare_to_type_header = true; this.indent_breaks_compare_to_cases = true; this.indent_switchstatements_compare_to_cases = true; this.indent_switchstatements_compare_to_switch = true; this.insert_new_line_after_annotation = true; this.insert_new_line_after_opening_brace_in_array_initializer = false; this.insert_new_line_at_end_of_file_if_missing = false; this.insert_new_line_before_catch_in_try_statement = false; this.insert_new_line_before_closing_brace_in_array_initializer = false; this.insert_new_line_before_else_in_if_statement = false; this.insert_new_line_before_finally_in_try_statement = false; this.insert_new_line_before_while_in_do_statement = false; this.insert_new_line_in_empty_anonymous_type_declaration = true; this.insert_new_line_in_empty_block = true; this.insert_new_line_in_empty_enum_constant = true; this.insert_new_line_in_empty_enum_declaration = true; this.insert_new_line_in_empty_method_body = true; this.insert_new_line_in_empty_type_declaration = true; this.insert_space_after_and_in_type_parameter = true; this.insert_space_after_assignment_operator = true; this.insert_space_after_at_in_annotation = false; this.insert_space_after_at_in_annotation_type_declaration = false; this.insert_space_after_binary_operator = true; this.insert_space_after_closing_angle_bracket_in_type_arguments = true; this.insert_space_after_closing_angle_bracket_in_type_parameters = true; this.insert_space_after_closing_paren_in_cast = true; this.insert_space_after_closing_brace_in_block = true; this.insert_space_after_colon_in_assert = true; this.insert_space_after_colon_in_case = true; this.insert_space_after_colon_in_conditional = true; this.insert_space_after_colon_in_for = true; this.insert_space_after_colon_in_labeled_statement = true; this.insert_space_after_comma_in_allocation_expression = true; this.insert_space_after_comma_in_annotation = true; this.insert_space_after_comma_in_array_initializer = true; this.insert_space_after_comma_in_constructor_declaration_parameters = true; this.insert_space_after_comma_in_constructor_declaration_throws = true; this.insert_space_after_comma_in_enum_constant_arguments = true; this.insert_space_after_comma_in_enum_declarations = true; this.insert_space_after_comma_in_explicit_constructor_call_arguments = true; this.insert_space_after_comma_in_for_increments = true; this.insert_space_after_comma_in_for_inits = true; this.insert_space_after_comma_in_method_invocation_arguments = true; this.insert_space_after_comma_in_method_declaration_parameters = true; this.insert_space_after_comma_in_method_declaration_throws = true; this.insert_space_after_comma_in_multiple_field_declarations = true; this.insert_space_after_comma_in_multiple_local_declarations = true; this.insert_space_after_comma_in_parameterized_type_reference = true; this.insert_space_after_comma_in_superinterfaces = true; this.insert_space_after_comma_in_type_arguments = true; this.insert_space_after_comma_in_type_parameters = true; this.insert_space_after_ellipsis = true; this.insert_space_after_opening_angle_bracket_in_parameterized_type_reference = false; this.insert_space_after_opening_angle_bracket_in_type_arguments = false; this.insert_space_after_opening_angle_bracket_in_type_parameters = false; this.insert_space_after_opening_bracket_in_array_allocation_expression = false; this.insert_space_after_opening_bracket_in_array_reference = false; this.insert_space_after_opening_brace_in_array_initializer = false; this.insert_space_after_opening_paren_in_annotation = false; this.insert_space_after_opening_paren_in_cast = false; this.insert_space_after_opening_paren_in_catch = false; this.insert_space_after_opening_paren_in_constructor_declaration = false; this.insert_space_after_opening_paren_in_enum_constant = false; this.insert_space_after_opening_paren_in_for = false; this.insert_space_after_opening_paren_in_if = false; this.insert_space_after_opening_paren_in_method_declaration = false; this.insert_space_after_opening_paren_in_method_invocation = false; this.insert_space_after_opening_paren_in_parenthesized_expression = false; this.insert_space_after_opening_paren_in_switch = false; this.insert_space_after_opening_paren_in_synchronized = false; this.insert_space_after_opening_paren_in_while = false; this.insert_space_after_postfix_operator = false; this.insert_space_after_prefix_operator = false; this.insert_space_after_question_in_conditional = true; this.insert_space_after_question_in_wilcard = false; this.insert_space_after_semicolon_in_for = true; this.insert_space_after_unary_operator = false; this.insert_space_before_and_in_type_parameter = true; this.insert_space_before_at_in_annotation_type_declaration = true; this.insert_space_before_assignment_operator = true; this.insert_space_before_binary_operator = true; this.insert_space_before_closing_angle_bracket_in_parameterized_type_reference = false; this.insert_space_before_closing_angle_bracket_in_type_arguments = false; this.insert_space_before_closing_angle_bracket_in_type_parameters = false; this.insert_space_before_closing_brace_in_array_initializer = false; this.insert_space_before_closing_bracket_in_array_allocation_expression = false; this.insert_space_before_closing_bracket_in_array_reference = false; this.insert_space_before_closing_paren_in_annotation = false; this.insert_space_before_closing_paren_in_cast = false; this.insert_space_before_closing_paren_in_catch = false; this.insert_space_before_closing_paren_in_constructor_declaration = false; this.insert_space_before_closing_paren_in_enum_constant = false; this.insert_space_before_closing_paren_in_for = false; this.insert_space_before_closing_paren_in_if = false; this.insert_space_before_closing_paren_in_method_declaration = false; this.insert_space_before_closing_paren_in_method_invocation = false; this.insert_space_before_closing_paren_in_parenthesized_expression = false; this.insert_space_before_closing_paren_in_switch = false; this.insert_space_before_closing_paren_in_synchronized = false; this.insert_space_before_closing_paren_in_while = false; this.insert_space_before_colon_in_assert = true; this.insert_space_before_colon_in_case = true; this.insert_space_before_colon_in_conditional = true; this.insert_space_before_colon_in_default = true; this.insert_space_before_colon_in_for = true; this.insert_space_before_colon_in_labeled_statement = true; this.insert_space_before_comma_in_allocation_expression = false; this.insert_space_before_comma_in_array_initializer = false; this.insert_space_before_comma_in_constructor_declaration_parameters = false; this.insert_space_before_comma_in_constructor_declaration_throws = false; this.insert_space_before_comma_in_enum_constant_arguments = false; this.insert_space_before_comma_in_enum_declarations = false; this.insert_space_before_comma_in_explicit_constructor_call_arguments = false; this.insert_space_before_comma_in_for_increments = false; this.insert_space_before_comma_in_for_inits = false; this.insert_space_before_comma_in_method_invocation_arguments = false; this.insert_space_before_comma_in_method_declaration_parameters = false; this.insert_space_before_comma_in_method_declaration_throws = false; this.insert_space_before_comma_in_multiple_field_declarations = false; this.insert_space_before_comma_in_multiple_local_declarations = false; this.insert_space_before_comma_in_parameterized_type_reference = false; this.insert_space_before_comma_in_superinterfaces = false; this.insert_space_before_comma_in_type_arguments = false; this.insert_space_before_comma_in_type_parameters = false; this.insert_space_before_ellipsis = false; this.insert_space_before_opening_angle_bracket_in_parameterized_type_reference = false; this.insert_space_before_opening_angle_bracket_in_type_arguments = false; this.insert_space_before_opening_angle_bracket_in_type_parameters = false; this.insert_space_before_opening_brace_in_annotation_type_declaration = true; this.insert_space_before_opening_brace_in_anonymous_type_declaration = true; this.insert_space_before_opening_brace_in_array_initializer = false; this.insert_space_before_opening_brace_in_block = true; this.insert_space_before_opening_brace_in_constructor_declaration = true; this.insert_space_before_opening_brace_in_enum_constant = true; this.insert_space_before_opening_brace_in_enum_declaration = true; this.insert_space_before_opening_brace_in_method_declaration = true; this.insert_space_before_opening_brace_in_switch = true; this.insert_space_before_opening_brace_in_type_declaration = true; this.insert_space_before_opening_bracket_in_array_allocation_expression = false; this.insert_space_before_opening_bracket_in_array_reference = false; this.insert_space_before_opening_bracket_in_array_type_reference = false; this.insert_space_before_opening_paren_in_annotation = false; this.insert_space_before_opening_paren_in_annotation_type_member_declaration = false; this.insert_space_before_opening_paren_in_catch = true; this.insert_space_before_opening_paren_in_constructor_declaration = false; this.insert_space_before_opening_paren_in_enum_constant = false; this.insert_space_before_opening_paren_in_for = true; this.insert_space_before_opening_paren_in_if = true; this.insert_space_before_opening_paren_in_method_invocation = false; this.insert_space_before_opening_paren_in_method_declaration = false; this.insert_space_before_opening_paren_in_switch = true; this.insert_space_before_opening_paren_in_synchronized = true; this.insert_space_before_opening_paren_in_parenthesized_expression = false; this.insert_space_before_opening_paren_in_while = true; this.insert_space_before_postfix_operator = false; this.insert_space_before_prefix_operator = false; this.insert_space_before_question_in_conditional = true; this.insert_space_before_question_in_wilcard = false; this.insert_space_before_semicolon = false; this.insert_space_before_semicolon_in_for = false; this.insert_space_before_unary_operator = false; this.insert_space_between_brackets_in_array_type_reference = false; this.insert_space_between_empty_braces_in_array_initializer = false; this.insert_space_between_empty_brackets_in_array_allocation_expression = false; this.insert_space_between_empty_parens_in_annotation_type_member_declaration = false; this.insert_space_between_empty_parens_in_constructor_declaration = false; this.insert_space_between_empty_parens_in_enum_constant = false; this.insert_space_between_empty_parens_in_method_declaration = false; this.insert_space_between_empty_parens_in_method_invocation = false; this.compact_else_if = true; this.keep_guardian_clause_on_one_line = false; this.keep_else_statement_on_same_line = false; this.keep_empty_array_initializer_on_one_line = false; this.keep_simple_if_on_one_line = false; this.keep_then_statement_on_same_line = false; this.number_of_empty_lines_to_preserve = 1; this.put_empty_statement_on_new_line = false; this.tab_size = 4; this.page_width = 80; this.use_tab = true; // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=49081 }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/c6f78f890c1ca00b0157b632da091fae2c781833/DefaultCodeFormatterOptions.java/clean/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatterOptions.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 9277, 2628, 1435, 288, 202, 202, 2211, 18, 14409, 67, 1884, 67, 7099, 67, 267, 67, 29299, 67, 8692, 273, 17804, 18, 49, 67, 4208, 4066, 1268, 67, 17482, 31, 202, 202, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 9277, 2628, 1435, 288, 202, 202, 2211, 18, 14409, 67, 1884, 67, 7099, 67, 267, 67, 29299, 67, 8692, 273, 17804, 18, 49, 67, 4208, 4066, 1268, 67, 17482, 31, 202, 202, 2...
public _Problem(_CompositeContext parent, int startOffset, int endOffset, IASTProblem problem) { super(parent, startOffset, endOffset); this.problem = problem; }
public _Problem(_CompositeContext parent, int startOffset, int endOffset, IASTProblem problem) { super(parent, startOffset, endOffset); this.problem = problem; }
public _Problem(_CompositeContext parent, int startOffset, int endOffset, IASTProblem problem) { super(parent, startOffset, endOffset); this.problem = problem; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/33390e2e03dc3a1dd0c3bedcc27e52231c6a907e/LocationMap.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/LocationMap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 389, 13719, 24899, 9400, 1042, 982, 16, 509, 18245, 16, 509, 25507, 16, 5411, 467, 9053, 13719, 6199, 13, 288, 540, 2240, 12, 2938, 16, 18245, 16, 25507, 1769, 540, 333, 18, 18968,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 389, 13719, 24899, 9400, 1042, 982, 16, 509, 18245, 16, 509, 25507, 16, 5411, 467, 9053, 13719, 6199, 13, 288, 540, 2240, 12, 2938, 16, 18245, 16, 25507, 1769, 540, 333, 18, 18968,...
parent.skipPanel();
parentFrame.skipPanel();
public void panelActivate () { if (spec == null) { // TODO: translate emitError("User input specification could not be found.", "The specification for the user input panel could not be found. Please contact the packager."); parent.skipPanel(); } Vector forPacks = spec.getChildrenNamed (PACKS); Vector forOs = spec.getChildrenNamed(OS); if (!itemRequiredFor (forPacks) || !itemRequiredForOs(forOs)) { parent.skipPanel (); return; } if (!haveSpec) { parent.skipPanel (); return; } // if (uiBuilt) //{ // return; //} buildUI (); uiBuilt = true; if (packsDefined) { parent.lockPrevButton (); } }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/UserInputPanel.java/buggy/src/lib/com/izforge/izpack/panels/UserInputPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 6594, 21370, 1832, 225, 288, 565, 309, 261, 2793, 422, 446, 13, 565, 288, 1377, 368, 2660, 30, 4204, 1377, 3626, 668, 2932, 1299, 810, 7490, 3377, 486, 506, 1392, 1199, 16, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 6594, 21370, 1832, 225, 288, 565, 309, 261, 2793, 422, 446, 13, 565, 288, 1377, 368, 2660, 30, 4204, 1377, 3626, 668, 2932, 1299, 810, 7490, 3377, 486, 506, 1392, 1199, 16, 6...
in = new RandomAccessFile(id, "r");
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); in = new RandomAccessFile(id, "r"); // Highly questionable decoding strategy: // // Note that all byte ordering is little endian, includeing 4-byte header // fields. Other examples: 16-bit data is LSB MSB, and 3-channel data is // BGR instead of RGB. // // 1) Find image header byte sequence: // A) Find 41 00 10. (ZVI_MAGIC_BLOCK_1) // B) Skip 19 bytes of stuff. // C) Read 41 00 80. (ZVI_MAGIC_BLOCK_2) // D) Read 11 bytes of 00 // E) Read potential header information: // - Z-slice (4 bytes) // - channel (4 bytes) // - timestep (4 bytes) // F) Read 108 bytes of 00. // // 2) If byte sequence is not as expected at any point (e.g., // stuff that is supposed to be 00 isn't), start over at 1A. // // 3) Find 20 00 10. (ZVI_MAGIC_BLOCK_3) // // 4) Read more header information: // - width (4 bytes) // - height (4 bytes) // - ? (4 bytes; always 1) // - bytesPerPixel (4 bytes) // - pixelType (this is what the AxioVision software calls it) // - 1=24-bit (3 color components, 8-bit each) // - 3=8-bit (1 color component, 8-bit) // - 4=16-bit (1 color component, 16-bit) // - bitDepth (4 bytes--usually, but not always, bytesPerPixel * 8) // // 5) Read image data (width * height * bytesPerPixel) // // 6) Repeat the entire process until no more headers are identified. long pos = 0; blockList = new Vector(); int numZ = 0, numC = 0, numT = 0; while (true) { // search for start of next image header long header = findBlock(in, ZVI_MAGIC_BLOCK_1, pos); if (header < 0) { // no more potential headers found; we're done break; } pos = header + ZVI_MAGIC_BLOCK_1.length; if (DEBUG) System.err.println("Found potential image block: " + header); // these byte don't matter in.skipBytes(19); pos += 19; // these bytes should match ZVI_MAGIC_BLOCK_2 byte[] b = new byte[ZVI_MAGIC_BLOCK_2.length]; in.readFully(b); boolean ok = true; for (int i=0; i<b.length; i++) { if (b[i] != ZVI_MAGIC_BLOCK_2[i]) { ok = false; break; } pos++; } if (!ok) continue; // these bytes should be 00 b = new byte[11]; in.readFully(b); for (int i=0; i<b.length; i++) { if (b[i] != 0) { ok = false; break; } pos++; } if (!ok) continue; // read potential header information int theZ = (int) DataTools.read4UnsignedBytes(in, true); int theC = (int) DataTools.read4UnsignedBytes(in, true); int theT = (int) DataTools.read4UnsignedBytes(in, true); pos += 12; // these byte should be 00 b = new byte[108]; in.readFully(b); for (int i=0; i<b.length; i++) { if (b[i] != 0) { ok = false; break; } pos++; } if (!ok) continue; // everything checks out; looks like an image header to me long magic3 = findBlock(in, ZVI_MAGIC_BLOCK_3, pos); if (magic3 < 0) { throw new FormatException("Error parsing image header. " + WHINING); } pos = magic3 + ZVI_MAGIC_BLOCK_3.length; // read more header information int width = (int) DataTools.read4UnsignedBytes(in, true); int height = (int) DataTools.read4UnsignedBytes(in, true); // don't know what this is for int alwaysOne = (int) DataTools.read4UnsignedBytes(in, true); int bytesPerPixel = (int) DataTools.read4UnsignedBytes(in, true); // not clear what this value signifies int pixelType = (int) DataTools.read4UnsignedBytes(in, true); // doesn't always equal bytesPerPixel * 8 int bitDepth = (int) DataTools.read4UnsignedBytes(in, true); pos += 24; String type = ""; switch (pixelType) { case 1: type = "8 bit rgb tuple, 24 bpp"; break; case 2: type = "8 bit rgb quad, 32 bpp"; break; case 3: type = "8 bit grayscale"; break; case 4: type = "16 bit signed int, 8 bpp"; break; case 5: type = "32 bit int, 32 bpp"; break; case 6: type = "32 bit float, 32 bpp"; break; case 7: type = "64 bit float, 64 bpp"; break; case 8: type = "16 bit unsigned short triple, 48 bpp"; break; case 9: type = "32 bit int triple, 96 bpp"; break; default: type = "undefined pixel type (" + pixelType + ")"; } metadata.put("Width", new Integer(width)); metadata.put("Height", new Integer(height)); metadata.put("PixelType", type); metadata.put("BPP", new Integer(bytesPerPixel)); ZVIBlock zviBlock = new ZVIBlock(theZ, theC, theT, width, height, alwaysOne, bytesPerPixel, pixelType, bitDepth, pos); if (DEBUG) System.out.println(zviBlock); // perform some checks on the header info if (theZ >= numZ) numZ = theZ + 1; if (theC >= numC) numC = theC + 1; if (theT >= numT) numT = theT + 1; // save this image block's position blockList.add(zviBlock); pos += width * height * bytesPerPixel; // initialize the OME-XML tree if (ome != null) { OMETools.setPixels(ome, new Integer(width), // SizeX new Integer(height), // SizeY new Integer(numZ), // SizeZ new Integer(numC), // SizeC new Integer(numT), // SizeT null, // PixelType Boolean.FALSE, // BigEndian null); // DimensionOrder } } if (blockList.isEmpty()) { throw new FormatException("No image data found." + WHINING); } if (numZ * numC * numT != blockList.size()) { System.err.println("Warning: image counts do not match. " + WHINING); } }
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/91859a26506b8a1d312b398da2c3ecd94e02fa60/LegacyZVIReader.java/buggy/loci/formats/LegacyZVIReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 2240, 18, 2738, 812, 12, 350, 1769, 4202, 368, 15207, 715, 5073, 429, 13547, 6252, 30, 565, 368, 565, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 2240, 18, 2738, 812, 12, 350, 1769, 4202, 368, 15207, 715, 5073, 429, 13547, 6252, 30, 565, 368, 565, 368, ...
boolean alreadyBitched = false;
boolean lastFailed = false;
public void run() { try { Thread.sleep(1000); } catch (InterruptedException ie) {} _log = _context.logManager().getLog(Timestamper.class); if (_log.shouldLog(Log.INFO)) _log.info("Starting timestamper"); if (_log.shouldLog(Log.INFO)) _log.info("Starting up timestamper"); boolean alreadyBitched = false; try { while (true) { updateConfig(); if (!_disabled) { String serverList[] = null; synchronized (_servers) { serverList = new String[_servers.size()]; for (int i = 0; i < serverList.length; i++) serverList[i] = (String)_servers.get(i); } if (_log.shouldLog(Log.DEBUG)) _log.debug("Querying servers " + _servers); try { queryTime(serverList); } catch (IllegalArgumentException iae) { if (!alreadyBitched) _log.log(Log.CRIT, "Unable to reach any of the NTP servers - network disconnected?"); alreadyBitched = true; } } long sleepTime = _context.random().nextInt(_queryFrequency) + _queryFrequency; try { Thread.sleep(sleepTime); } catch (InterruptedException ie) {} } } catch (Throwable t) { _log.log(Log.CRIT, "Timestamper died!", t); } }
3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/c17433cb9342d6d49730c0ed662f8cb0369629bb/Timestamper.java/buggy/core/java/src/net/i2p/time/Timestamper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 775, 288, 4884, 18, 19607, 12, 18088, 1769, 289, 1044, 261, 24485, 503, 9228, 13, 2618, 3639, 389, 1330, 273, 389, 2472, 18, 1330, 1318, 7675, 588, 1343,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 1435, 288, 3639, 775, 288, 4884, 18, 19607, 12, 18088, 1769, 289, 1044, 261, 24485, 503, 9228, 13, 2618, 3639, 389, 1330, 273, 389, 2472, 18, 1330, 1318, 7675, 588, 1343,...
jMenuFile.add(jMenuItemOpen);
/*jMenuFile.add(jMenuItemOpen);
private void jbInit() throws Exception {//{{{ setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); getContentPane().setLayout(new GridBagLayout()); jTopPanel.setLayout(new GridBagLayout()); jBottomPanel.setLayout(gridLayout1); gridLayout1.setHgap(5); jAlbumPanel.setLayout(new BorderLayout()); jLabel1.setText(GRI18n.getString(MODULE, "Gallery_URL")); jLoginButton.setText(GRI18n.getString(MODULE, "Log_in")); jLoginButton.setToolTipText(GRI18n.getString(MODULE, "loginButtonTip")); jLoginButton.setActionCommand("Fetch"); jLoginButton.setIcon(GalleryRemote.iLogin); jNewAlbumButton.setText(GRI18n.getString(MODULE, "newAlbmBtnTxt")); jNewAlbumButton.setToolTipText(GRI18n.getString(MODULE, "newAlbmBtnTip")); jNewAlbumButton.setActionCommand("NewAlbum"); jNewAlbumButton.setIcon(GalleryRemote.iNewAlbum); jUploadButton.setText(GRI18n.getString(MODULE, "upldBtnTxt")); jUploadButton.setActionCommand("Upload"); jUploadButton.setToolTipText(GRI18n.getString(MODULE, "upldBtnTip")); jInspectorDivider.setOrientation(JSplitPane.HORIZONTAL_SPLIT); jInspectorDivider.setBorder(new TitledBorder(BorderFactory.createEtchedBorder(Color.white, new Color(148, 145, 140)), GRI18n.getString(MODULE, "inspDvdr"))); jInspectorDivider.setOneTouchExpandable(true); jInspectorDivider.setResizeWeight(.66); jAlbumPictureDivider.setOneTouchExpandable(true); jAlbumPictureDivider.setResizeWeight(.5); jTopPanel.setBorder(new TitledBorder(BorderFactory.createEtchedBorder(Color.white, new Color(148, 145, 140)), GRI18n.getString(MODULE, "panel1"))); jBrowseButton.setText(GRI18n.getString(MODULE, "brwsBtnTxt")); jBrowseButton.setActionCommand("Browse"); jBrowseButton.setToolTipText(GRI18n.getString(MODULE, "brwsBtnTip")); jSortButton.setText(GRI18n.getString(MODULE, "sortBtnTxt")); jSortButton.setActionCommand("Sort"); jSortButton.setToolTipText(GRI18n.getString(MODULE, "sortBtnTip")); jGalleryCombo.setActionCommand("Url"); jGalleryCombo.setToolTipText(GRI18n.getString(MODULE, "gllryCombo")); jMenuFile.setText(GRI18n.getString(MODULE, "menuFile")); /*jMenuItemNew.setText(GRI18n.getString(MODULE, "menuNew")); jMenuItemNew.setActionCommand("File.New"); jMenuItemNew.setIcon(GalleryRemote.iNew); jMenuItemNew.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, GalleryRemote.ACCELERATOR_MASK));*/ jMenuItemOpen.setText(GRI18n.getString(MODULE, "menuOpen")); jMenuItemOpen.setActionCommand("File.Open"); jMenuItemOpen.setIcon(GalleryRemote.iOpen); jMenuItemOpen.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, GalleryRemote.ACCELERATOR_MASK)); jMenuItemSave.setText(GRI18n.getString(MODULE, "menuSave")); jMenuItemSave.setActionCommand("File.Save"); jMenuItemSave.setIcon(GalleryRemote.iSave); jMenuItemSave.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S, GalleryRemote.ACCELERATOR_MASK)); jMenuItemSaveAs.setText(GRI18n.getString(MODULE, "menuSaveAs")); jMenuItemSaveAs.setActionCommand("File.SaveAs"); // todo: saving disabled, since JSX doesn't work with new class structure jMenuItemOpen.setEnabled(false); jMenuItemSave.setEnabled(false); jMenuItemSaveAs.setEnabled(false); /*jMenuItemClose.setText(GRI18n.getString(MODULE, "menuClose")); jMenuItemClose.setActionCommand("File.Close"); if (GalleryRemote.IS_MAC_OS_X) { jMenuItemClose.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_W, GalleryRemote.ACCELERATOR_MASK)); } else { jMenuItemClose.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F4, GalleryRemote.ACCELERATOR_MASK)); }*/ jMenuItemQuit.setText(GRI18n.getString(MODULE, "menuQuit")); jMenuItemQuit.setActionCommand("File.Quit"); jMenuItemQuit.setIcon(GalleryRemote.iQuit); jMenuItemQuit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q, GalleryRemote.ACCELERATOR_MASK)); jMenuEdit.setText(GRI18n.getString(MODULE, "menuEdit")); jMenuItemCut.setText(GRI18n.getString(MODULE, "menuCut")); jMenuItemCut.setActionCommand("Edit.Cut"); jMenuItemCut.setIcon(GalleryRemote.iCut); jMenuItemCut.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, GalleryRemote.ACCELERATOR_MASK)); jMenuItemCopy.setText(GRI18n.getString(MODULE, "menuCopy")); jMenuItemCopy.setActionCommand("Edit.Copy"); jMenuItemCopy.setIcon(GalleryRemote.iCopy); jMenuItemCopy.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_C, GalleryRemote.ACCELERATOR_MASK)); jMenuItemPaste.setText(GRI18n.getString(MODULE, "menuPaste")); jMenuItemPaste.setActionCommand("Edit.Paste"); jMenuItemPaste.setIcon(GalleryRemote.iPaste); jMenuItemPaste.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_V, GalleryRemote.ACCELERATOR_MASK)); jMenuOptions.setText(GRI18n.getString(MODULE, "menuOptions")); jCheckBoxMenuThumbnails.setActionCommand("Options.Thumbnails"); jCheckBoxMenuThumbnails.setText(GRI18n.getString(MODULE, "cbmenuThumb")); jCheckBoxMenuPreview.setActionCommand("Options.Preview"); jCheckBoxMenuPreview.setText(GRI18n.getString(MODULE, "cbmenuPreview")); jCheckBoxMenuPath.setActionCommand("Options.Path"); jCheckBoxMenuPath.setText(GRI18n.getString(MODULE, "cbmenuPath")); jMenuItemPrefs.setText(GRI18n.getString(MODULE, "menuPref")); jMenuItemPrefs.setActionCommand("Options.Prefs"); jMenuItemPrefs.setIcon(GalleryRemote.iPreferences); jMenuItemClearCache.setText(GRI18n.getString(MODULE, "menuClearCache")); jMenuItemClearCache.setActionCommand("Options.ClearCache"); jMenuHelp.setText(GRI18n.getString(MODULE, "menuHelp")); jMenuItemAbout.setActionCommand("Help.About"); jMenuItemAbout.setText(GRI18n.getString(MODULE, "menuAbout")); jMenuItemAbout.setIcon(GalleryRemote.iAbout); //jScrollPane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); jNewGalleryButton.setText(GRI18n.getString(MODULE, "newGalleryBtn")); jNewGalleryButton.setActionCommand("NewGallery"); jNewGalleryButton.setIcon(GalleryRemote.iNewGallery); jInspectorPanel.setLayout(jInspectorCardLayout); jPictureScroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); jPictureScroll.setBorder(new TitledBorder(BorderFactory.createEmptyBorder(), GRI18n.getString(MODULE, "pictures"))); jAlbumScroll.setBorder(new TitledBorder(BorderFactory.createEmptyBorder(), GRI18n.getString(MODULE, "albums"))); jAlbumScroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); setupKeyboardHandling(jPictureScroll); setupKeyboardHandling(jAlbumScroll); if (! GalleryRemote._().isAppletMode()) { this.getContentPane().add(jTopPanel, new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0 , GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(2, 2, 2, 2), 0, 0)); } jTopPanel.add(jLabel1, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0 , GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 0, 0)); this.getContentPane().add(jInspectorDivider, new GridBagConstraints(0, 1, 1, 1, 1.0, 1.0 , GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 2, 2, 2), 0, 0)); jInspectorDivider.add(jInspectorPanel, JSplitPane.RIGHT); jInspectorDivider.add(jAlbumPictureDivider, JSplitPane.LEFT); jInspectorPanel.add(new JScrollPane(jPictureInspector), CARD_PICTURE); jInspectorPanel.add(new JScrollPane(jAlbumInspector), CARD_ALBUM); jAlbumPictureDivider.add(jPictureScroll, JSplitPane.RIGHT); jAlbumPictureDivider.add(jAlbumPanel, JSplitPane.LEFT); jAlbumPanel.add(jAlbumScroll, BorderLayout.CENTER); jAlbumPanel.add(jNewAlbumButton, BorderLayout.SOUTH); jAlbumScroll.getViewport().add(jAlbumTree, null); jPictureScroll.getViewport().add(jPicturesList, null); this.getContentPane().add(jBottomPanel, new GridBagConstraints(0, 2, 1, 1, 1.0, 0.0 , GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); jBottomPanel.add(jBrowseButton, null); jBottomPanel.add(jSortButton, null); jBottomPanel.add(jUploadButton, null); this.getContentPane().add(jStatusBar, new GridBagConstraints(0, 3, 1, 1, 1.0, 0.0 , GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); jTopPanel.add(jGalleryCombo, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0 , GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0)); jTopPanel.add(jNewGalleryButton, new GridBagConstraints(3, 0, 1, 1, 0.0, 0.0 , GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 5, 0, 5), 0, 0)); jTopPanel.add(jLoginButton, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0 , GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 5, 0, 0), 0, 0)); jMenuBar1.add(jMenuFile); jMenuBar1.add(jMenuEdit); jMenuBar1.add(jMenuOptions); if (!GalleryRemote.IS_MAC_OS_X) { jMenuBar1.add(jMenuHelp); } //jMenuFile.add(jMenuItemNew); jMenuFile.add(jMenuItemOpen); jMenuFile.add(jMenuItemSave); jMenuFile.add(jMenuItemSaveAs); //jMenuFile.add(jMenuItemClose); jMenuFile.addSeparator(); // Remember where we are so we can build the dynamic MRU list here. m_MRUMenuIndex = jMenuFile.getItemCount(); if (!GalleryRemote.IS_MAC_OS_X) { jMenuFile.addSeparator(); jMenuFile.add(jMenuItemQuit); jMenuHelp.add(jMenuItemAbout); } updateMRUItemList(); jMenuEdit.add(jMenuItemCut); jMenuEdit.add(jMenuItemCopy); jMenuEdit.add(jMenuItemPaste); jMenuOptions.add(jCheckBoxMenuThumbnails); jMenuOptions.add(jCheckBoxMenuPreview); jMenuOptions.add(jCheckBoxMenuPath); jMenuOptions.addSeparator(); jMenuOptions.add(jMenuItemClearCache); if (!GalleryRemote.IS_MAC_OS_X) { jMenuOptions.addSeparator(); jMenuOptions.add(jMenuItemPrefs); } setJMenuBar(jMenuBar1); }//}}}
9402 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9402/6ef4ff9772047f488fc626a39d1864e76a7514de/MainFrame.java/buggy/com/gallery/GalleryRemote/MainFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 20515, 2570, 1435, 1082, 202, 15069, 1185, 288, 759, 12187, 95, 202, 202, 542, 1868, 4605, 2988, 12, 3829, 2918, 18, 3191, 67, 4400, 44, 1360, 67, 673, 67, 13384, 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, 1152, 918, 20515, 2570, 1435, 1082, 202, 15069, 1185, 288, 759, 12187, 95, 202, 202, 542, 1868, 4605, 2988, 12, 3829, 2918, 18, 3191, 67, 4400, 44, 1360, 67, 673, 67, 13384, 1769, ...
} else
} else {
private void setProject(Project project) { currentProject = project; if (project != null) { synchProject(project); setView("EditProjectPanel"); } else setView("EmptyPanel"); }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/2ac50ec1b97e80f7e4343cf8a4f87879ac45ace6/FindBugsFrame.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 25323, 12, 4109, 1984, 13, 288, 3639, 783, 4109, 273, 1984, 31, 3639, 309, 261, 4406, 480, 446, 13, 288, 5411, 272, 2515, 4109, 12, 4406, 1769, 5411, 19923, 2932, 4666, 4109, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 25323, 12, 4109, 1984, 13, 288, 3639, 783, 4109, 273, 1984, 31, 3639, 309, 261, 4406, 480, 446, 13, 288, 5411, 272, 2515, 4109, 12, 4406, 1769, 5411, 19923, 2932, 4666, 4109, ...
protected void populateTreeItem(WebMarkupContainer<TreeNode> item, int level) { final TreeNode node = item.getModelObject(); int i = 0; // add side columns SideColumnsView sideColumns = new SideColumnsView(item, "sideColumns", node); for (IColumn column: columns) { if (column.getLocation().getAlignment() == Alignment.LEFT || column.getLocation().getAlignment() == Alignment.RIGHT) { Component component; // first try to create a renderable IRenderable renderable = column.createCell(node, level); if (renderable == null) { // if renderable failed, try to create a regular component component = column.createCell(sideColumns, "" + i++, node, level); } else { component = null; } sideColumns.addColumn(column, component, renderable); } } i = 0; // add middle columns MiddleColumnsView middleColumns = new MiddleColumnsView(item, "middleColumns", node); for (IColumn column: columns) { if (column.getLocation().getAlignment() == Alignment.MIDDLE) { Component component; // first try to create a renderable IRenderable renderable = column.createCell(node, level); if (renderable == null) { // if renderable failed, try to create a regular component component = column.createCell(middleColumns, "" + i++, node, level); } else { component = null; } middleColumns.addColumn(column, component, renderable); } } // do distinguish between selected and unselected rows we add an behavior // that modifies row css class. item.add(new AbstractBehavior() { /** * */ private static final long serialVersionUID = 1L; @Override public void onComponentTag(Component component, ComponentTag tag) { super.onComponentTag(component, tag); if (getTreeState().isNodeSelected(node)) tag.put("class", "row-selected"); else tag.put("class", "row"); } }); }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/234acdada6bb523025df2bf64c707be9ba3f57d5/TreeTable.java/buggy/wicket/src/java/wicket/markup/html/tree/table/TreeTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 6490, 2471, 1180, 12, 4079, 13111, 2170, 32, 12513, 34, 761, 16, 509, 1801, 13, 225, 202, 95, 1082, 202, 6385, 20270, 756, 273, 761, 18, 588, 1488, 921, 5621, 202, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 6490, 2471, 1180, 12, 4079, 13111, 2170, 32, 12513, 34, 761, 16, 509, 1801, 13, 225, 202, 95, 1082, 202, 6385, 20270, 756, 273, 761, 18, 588, 1488, 921, 5621, 202, 202, ...
if (++currarg >= arglist.length || arglist[currarg] == null)
if (++currarg >= arglist.length || arglist[currarg] == null){
private char[] handleFunctionStyleMacro(FunctionStyleMacro macro, boolean pushContext) { char[] buffer = bufferStack[bufferStackPos]; int limit = bufferLimit[bufferStackPos]; skipOverWhiteSpace(); while( buffer[bufferPos[bufferStackPos]] == '\\' && bufferPos[bufferStackPos] + 1 < buffer.length && buffer[bufferPos[bufferStackPos]+1] == '\n' ) { bufferPos[bufferStackPos] += 2; skipOverWhiteSpace(); } if (++bufferPos[bufferStackPos] >= limit || buffer[bufferPos[bufferStackPos]] != '(' ) return emptyCharArray; char[][] arglist = macro.arglist; int currarg = -1; CharArrayObjectMap argmap = new CharArrayObjectMap(arglist.length); while (bufferPos[bufferStackPos] < limit) { if (++currarg >= arglist.length || arglist[currarg] == null) // too many args break; skipOverWhiteSpace(); int pos = ++bufferPos[bufferStackPos]; char c = buffer[pos]; if (c == ')') { // end of macro break; } else if (c == ',') { // empty arg argmap.put(arglist[currarg], emptyCharArray); continue; } // peel off the arg --bufferPos[bufferStackPos]; int argend = bufferPos[bufferStackPos]; int argstart = argend + 1; // Loop looking for end of argument int argparens = 0;// int startOffset = -1; while (bufferPos[bufferStackPos] < limit) {// if( bufferPos[bufferStackPos] == startOffset )// ++bufferPos[bufferStackPos];// startOffset = bufferPos[bufferStackPos]; skipOverMacroArg(); argend = bufferPos[bufferStackPos]; skipOverWhiteSpace(); if (++bufferPos[bufferStackPos] >= limit) break; c = buffer[bufferPos[bufferStackPos]]; if (c == '(' || c == '<') ++argparens; else if (c == '>') --argparens; else if (c == ')') { if (argparens == 0) break; --argparens; } else if (c == ',') { if (argparens == 0) { break; } } else if (c == '\n') { // eat it and continue continue; } else { // start of next macro arg --bufferPos[bufferStackPos]; continue; } skipOverWhiteSpace(); while (++bufferPos[bufferStackPos] < limit) { if (buffer[bufferPos[bufferStackPos]] != '\n') break; skipOverWhiteSpace(); } --bufferPos[bufferStackPos]; } char[] arg = emptyCharArray; int arglen = argend - argstart + 1; if (arglen > 0) { arg = new char[arglen]; System.arraycopy(buffer, argstart, arg, 0, arglen); } //TODO 16.3.1 We are supposed to completely macro replace the arguments before //substituting them in, this is only a partial replacement of object macros, //we may need a full solution later. arg = replaceArgumentMacros( arg ); argmap.put(arglist[currarg], arg); if (c == ')') break; } int size = expandFunctionStyleMacro(macro.expansion, argmap, null); char[] result = new char[size]; expandFunctionStyleMacro(macro.expansion, argmap, result); if( pushContext ) pushContext(result, macro); return result; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/d38225d5811df8449a2e564434b791ee26328d60/Scanner2.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/Scanner2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1149, 8526, 1640, 2083, 2885, 17392, 12, 2083, 2885, 17392, 11522, 16, 1250, 1817, 1042, 13, 288, 202, 202, 3001, 8526, 1613, 273, 1613, 2624, 63, 4106, 2624, 1616, 15533, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1149, 8526, 1640, 2083, 2885, 17392, 12, 2083, 2885, 17392, 11522, 16, 1250, 1817, 1042, 13, 288, 202, 202, 3001, 8526, 1613, 273, 1613, 2624, 63, 4106, 2624, 1616, 15533, 202, ...
public void testGetPlaneOffset1()
public void testGetPlaneOffset1() throws DimensionsOutOfBoundsException
public void testGetPlaneOffset1() { long offset = ((long)timepointSize * 25) + ((long)planeSize * 25); assertEquals(pixelBuffer.getPlaneOffset(25, 0, 25).longValue(), offset); }
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/99dab4d872ad9799aad9dfdb29d0cf3d259a49a2/HugePixelBufferUnitTest.java/clean/components/omeio-nio/test/ome/io/nio/utests/HugePixelBufferUnitTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 967, 19505, 2335, 21, 1435, 1216, 463, 23124, 14347, 565, 288, 3639, 1525, 1384, 273, 14015, 5748, 13, 957, 1153, 1225, 380, 6969, 13, 397, 14015, 5748, 13, 21314, 1225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 967, 19505, 2335, 21, 1435, 1216, 463, 23124, 14347, 565, 288, 3639, 1525, 1384, 273, 14015, 5748, 13, 957, 1153, 1225, 380, 6969, 13, 397, 14015, 5748, 13, 21314, 1225, ...
new NoViableAltException("670:1: primaryExpression : ( identPrimary ( options {greedy=true; } : DOT \'class\' )? | constant | \'true\' | \'false\' | \'null\' | newExpression | \'this\' | \'super\' | LPAREN assignmentExpression RPAREN | builtInType ( LBRACK RBRACK )* DOT \'class\' );", 73, 0, input);
new NoViableAltException("770:1: primaryExpression : ( identPrimary ( options {greedy=true; } : DOT \'class\' )? | constant | \'true\' | \'false\' | \'null\' | newExpression | \'this\' | \'super\' | LPAREN assignmentExpression RPAREN | builtInType ( LBRACK RBRACK )* DOT \'class\' );", 73, 0, input);
public void primaryExpression() throws RecognitionException { try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:671:17: ( identPrimary ( options {greedy=true; } : DOT 'class' )? | constant | 'true' | 'false' | 'null' | newExpression | 'this' | 'super' | LPAREN assignmentExpression RPAREN | builtInType ( LBRACK RBRACK )* DOT 'class' ) int alt73=10; switch ( input.LA(1) ) { case IDENT: alt73=1; break; case NUM_INT: case CHAR_LITERAL: case STRING_LITERAL: case NUM_FLOAT: alt73=2; break; case 112: alt73=3; break; case 113: alt73=4; break; case 114: alt73=5; break; case 115: alt73=6; break; case 93: alt73=7; break; case 94: alt73=8; break; case LPAREN: alt73=9; break; case 68: case 69: case 70: case 71: case 72: case 73: case 74: case 75: case 76: alt73=10; break; default: NoViableAltException nvae = new NoViableAltException("670:1: primaryExpression : ( identPrimary ( options {greedy=true; } : DOT \'class\' )? | constant | \'true\' | \'false\' | \'null\' | newExpression | \'this\' | \'super\' | LPAREN assignmentExpression RPAREN | builtInType ( LBRACK RBRACK )* DOT \'class\' );", 73, 0, input); throw nvae; } switch (alt73) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:671:17: identPrimary ( options {greedy=true; } : DOT 'class' )? { following.push(FOLLOW_identPrimary_in_primaryExpression2881); identPrimary(); following.pop(); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:671:30: ( options {greedy=true; } : DOT 'class' )? int alt71=2; int LA71_0 = input.LA(1); if ( LA71_0==DOT ) { int LA71_1 = input.LA(2); if ( LA71_1==IDENT||(LA71_1>=93 && LA71_1<=94)||LA71_1==115 ) { alt71=2; } else if ( LA71_1==89 ) { alt71=1; } else { NoViableAltException nvae = new NoViableAltException("671:30: ( options {greedy=true; } : DOT \'class\' )?", 71, 1, input); throw nvae; } } else if ( (LA71_0>=LBRACK && LA71_0<=RBRACK)||LA71_0==STAR||(LA71_0>=SEMI && LA71_0<=COMMA)||(LA71_0>=RPAREN && LA71_0<=DEC)||LA71_0==111 ) { alt71=2; } else { NoViableAltException nvae = new NoViableAltException("671:30: ( options {greedy=true; } : DOT \'class\' )?", 71, 0, input); throw nvae; } switch (alt71) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:671:56: DOT 'class' { match(input,DOT,FOLLOW_DOT_in_primaryExpression2893); match(input,89,FOLLOW_89_in_primaryExpression2895); } break; } } break; case 2 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:672:9: constant { following.push(FOLLOW_constant_in_primaryExpression2908); constant(); following.pop(); } break; case 3 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:673:17: 'true' { match(input,112,FOLLOW_112_in_primaryExpression2913); } break; case 4 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:674:17: 'false' { match(input,113,FOLLOW_113_in_primaryExpression2918); } break; case 5 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:675:17: 'null' { match(input,114,FOLLOW_114_in_primaryExpression2923); } break; case 6 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:676:9: newExpression { following.push(FOLLOW_newExpression_in_primaryExpression2933); newExpression(); following.pop(); } break; case 7 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:677:17: 'this' { match(input,93,FOLLOW_93_in_primaryExpression2938); } break; case 8 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:678:17: 'super' { match(input,94,FOLLOW_94_in_primaryExpression2943); } break; case 9 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:679:17: LPAREN assignmentExpression RPAREN { match(input,LPAREN,FOLLOW_LPAREN_in_primaryExpression2948); following.push(FOLLOW_assignmentExpression_in_primaryExpression2950); assignmentExpression(); following.pop(); match(input,RPAREN,FOLLOW_RPAREN_in_primaryExpression2952); } break; case 10 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:681:17: builtInType ( LBRACK RBRACK )* DOT 'class' { following.push(FOLLOW_builtInType_in_primaryExpression2960); builtInType(); following.pop(); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:682:17: ( LBRACK RBRACK )* loop72: do { int alt72=2; int LA72_0 = input.LA(1); if ( LA72_0==LBRACK ) { alt72=1; } switch (alt72) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:682:19: LBRACK RBRACK { match(input,LBRACK,FOLLOW_LBRACK_in_primaryExpression2966); match(input,RBRACK,FOLLOW_RBRACK_in_primaryExpression2969); } break; default : break loop72; } } while (true); match(input,DOT,FOLLOW_DOT_in_primaryExpression2976); match(input,89,FOLLOW_89_in_primaryExpression2978); } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/7e425814ce563fcc662b266adb2a4dc8e1a95d19/JavaParser.java/clean/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3354, 2300, 1435, 1216, 9539, 288, 6647, 775, 288, 5411, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 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, 3354, 2300, 1435, 1216, 9539, 288, 6647, 775, 288, 5411, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19...
final ObjectMatches objectMatches = memory.remove( workingMemory, handle ); for ( CompositeTupleMatch compositeTupleMatch = objectMatches.getFirstTupleMatch(); compositeTupleMatch != null; compositeTupleMatch = (CompositeTupleMatch) compositeTupleMatch.getNext() ) { final ReteTuple leftTuple = compositeTupleMatch.getTuple(); leftTuple.removeMatch( handle ); this.modifyTuple( leftTuple, context, workingMemory ); }
public void retractObject(final InternalFactHandle handle, final PropagationContext context, final InternalWorkingMemory workingMemory) { final BetaMemory memory = (BetaMemory) workingMemory.getNodeMemory( this ); // Remove the FactHandle from memory final ObjectMatches objectMatches = memory.remove( workingMemory, handle ); for ( CompositeTupleMatch compositeTupleMatch = objectMatches.getFirstTupleMatch(); compositeTupleMatch != null; compositeTupleMatch = (CompositeTupleMatch) compositeTupleMatch.getNext() ) { final ReteTuple leftTuple = compositeTupleMatch.getTuple(); leftTuple.removeMatch( handle ); this.modifyTuple( leftTuple, context, workingMemory ); } }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/f426078952a4cf8c378efc34a4ff78ae54f0d993/CollectNode.java/clean/drools-core/src/main/java/org/drools/reteoo/CollectNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 283, 1575, 921, 12, 6385, 3186, 9766, 3259, 1640, 16, 17311, 727, 1186, 9095, 367, 1042, 819, 16, 17311, 727, 3186, 14836, 6031, 5960, 6031, 13, 288, 3639, 727, 16393, 6031, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 283, 1575, 921, 12, 6385, 3186, 9766, 3259, 1640, 16, 17311, 727, 1186, 9095, 367, 1042, 819, 16, 17311, 727, 3186, 14836, 6031, 5960, 6031, 13, 288, 3639, 727, 16393, 6031, 37...
public static WeaponType createISMRM40() { WeaponType weapon = new WeaponType(); weapon.name = "MRM 40"; weapon.internalName = weapon.name; weapon.mepName = "MRM-40"; // NA in MEP weapon.mtfName = "ISMRM40"; weapon.heat = 12; weapon.damage = DAMAGE_MISSILE; weapon.toHitModifier = 1; weapon.rackSize = 40; weapon.ammoType = AmmoType.T_MRM; weapon.minimumRange = 0; weapon.shortRange = 3; weapon.mediumRange = 8; weapon.longRange = 15; weapon.tonnage = 12.0f; weapon.criticals = 7; weapon.bv = 224; return weapon; }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/d05f2130c25015ca88066511083759513d50b746/WeaponType.java/clean/megamek/src/megamek/common/WeaponType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1660, 28629, 559, 752, 5127, 49, 8717, 7132, 1435, 288, 3639, 1660, 28629, 559, 732, 28629, 273, 394, 1660, 28629, 559, 5621, 7734, 732, 28629, 18, 529, 273, 315, 49, 8717, 806...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1660, 28629, 559, 752, 5127, 49, 8717, 7132, 1435, 288, 3639, 1660, 28629, 559, 732, 28629, 273, 394, 1660, 28629, 559, 5621, 7734, 732, 28629, 18, 529, 273, 315, 49, 8717, 806...
assertTrue(countDown.tryLock(5000, TimeUnit.MILLISECONDS));
assertTrue(countDown.await(5000, TimeUnit.MILLISECONDS));
public void testMuleClientReceiveAndDispatchJob() throws Exception { countDown = new CountDownLatch(3); ConfigurationBuilder configBuilder = new MuleXmlConfigurationBuilder(); configBuilder.configure("org/mule/test/integration/providers/quartz/quartz-receive-dispatch.xml"); new MuleClient().send("vm://event.queue", "quartz test", null); new MuleClient().send("vm://event.queue", "quartz test", null); new MuleClient().send("vm://event.queue", "quartz test", null); new MuleClient().send("vm://quartz.scheduler", "test", null); assertTrue(countDown.tryLock(5000, TimeUnit.MILLISECONDS)); }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/a30ba41fafc6ad4c9e16f12c69591c871e6fbf67/QuartzFunctionalTestCase.java/buggy/tests/integration/src/test/java/org/mule/test/integration/providers/quartz/QuartzFunctionalTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 49, 725, 1227, 11323, 1876, 5325, 2278, 1435, 1216, 1185, 565, 288, 3639, 1056, 4164, 273, 394, 6974, 4164, 23463, 12, 23, 1769, 3639, 4659, 1263, 642, 1263, 273, 394, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 49, 725, 1227, 11323, 1876, 5325, 2278, 1435, 1216, 1185, 565, 288, 3639, 1056, 4164, 273, 394, 6974, 4164, 23463, 12, 23, 1769, 3639, 4659, 1263, 642, 1263, 273, 394, 49...
System.out.println("Copyright 2002 Free Software Foundation, Inc.");
System.out.println("Copyright 2005 Free Software Foundation, Inc.");
public static void version() { System.out.println("rmiregistry (" + System.getProperty("java.vm.name") + ") " + System.getProperty("java.vm.version")); System.out.println("Copyright 2002 Free Software Foundation, Inc."); System.out.println("This is free software; see the source for copying conditions. There is NO"); System.out.println("warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."); System.exit(0);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/RegistryImpl.java/buggy/core/src/classpath/gnu/gnu/java/rmi/registry/RegistryImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 760, 918, 1177, 1435, 288, 202, 3163, 18, 659, 18, 8222, 2932, 8864, 577, 75, 2128, 7566, 9506, 282, 397, 2332, 18, 588, 1396, 2932, 6290, 18, 3489, 18, 529, 7923, 9506, 282, 397, 9369...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 760, 918, 1177, 1435, 288, 202, 3163, 18, 659, 18, 8222, 2932, 8864, 577, 75, 2128, 7566, 9506, 282, 397, 2332, 18, 588, 1396, 2932, 6290, 18, 3489, 18, 529, 7923, 9506, 282, 397, 9369...
if(args.length!=1) { return; } final PsiMethod calledMethod = psiMethodCallExpression.resolveMethod(); if(calledMethod == null) { return; } final PsiClass receiverClass = calledMethod.getContainingClass(); if(receiverClass== null) { return; } if(!"java.io.ObjectOutputStream".equals(receiverClass.getQualifiedName())) {
if(args.length!=1) {
public void visitMethodCallExpression(PsiMethodCallExpression psiMethodCallExpression) { super.visitMethodCallExpression(psiMethodCallExpression); final PsiReferenceExpression methodExpression = psiMethodCallExpression.getMethodExpression(); final String methodName = methodExpression.getReferenceName(); if(!"writeObject".equals(methodName)) { return; } final PsiExpressionList argList = psiMethodCallExpression.getArgumentList(); final PsiExpression[] args = argList.getExpressions(); if(args.length!=1) { return; } final PsiMethod calledMethod = psiMethodCallExpression.resolveMethod(); if(calledMethod == null) { return; } final PsiClass receiverClass = calledMethod.getContainingClass(); if(receiverClass== null) { return; } if(!"java.io.ObjectOutputStream".equals(receiverClass.getQualifiedName())) { return; } final PsiType argType = args[0].getType(); if(argType == null) { return; } if (SerializationUtils.isProbablySerializable(argType)) { return; } registerError(args[0]); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/4e01d68983912039e2e5a6042256db04cd656a98/NonSerializableObjectPassedToObjectStreamInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/serialization/NonSerializableObjectPassedToObjectStreamInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3757, 12592, 2300, 12, 52, 7722, 12592, 2300, 23921, 12592, 2300, 13, 288, 5411, 2240, 18, 11658, 12592, 2300, 12, 24275, 12592, 2300, 1769, 5411, 727, 453, 7722, 2404, 2300, 707...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3757, 12592, 2300, 12, 52, 7722, 12592, 2300, 23921, 12592, 2300, 13, 288, 5411, 2240, 18, 11658, 12592, 2300, 12, 24275, 12592, 2300, 1769, 5411, 727, 453, 7722, 2404, 2300, 707...
public HeaderSectionPage_1(final PageParameters parameters)
public HeaderSectionPage_1()
public HeaderSectionPage_1(final PageParameters parameters) { }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/0fdf3c0295a9652408915ea02c10f339dc24347f/HeaderSectionPage_1.java/clean/wicket/src/test/wicket/markup/parser/filter/HeaderSectionPage_1.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4304, 5285, 1964, 67, 21, 1435, 225, 202, 95, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 202, 482, 4304, 5285, 1964, 67, 21, 1435, 225, 202, 95, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
throw new PluginConfigurationException( "Unable to parse the created DOM for plugin configuration", e );
throw new PluginConfigurationException( mojoDescriptor.getPluginDescriptor(), "Unable to parse the created DOM for plugin configuration", e );
private void populatePluginFields( Mojo plugin, MojoDescriptor mojoDescriptor, PlexusConfiguration configuration, PlexusContainer pluginContainer, ExpressionEvaluator expressionEvaluator ) throws PluginConfigurationException { ComponentConfigurator configurator = null; try { String configuratorId = mojoDescriptor.getComponentConfigurator(); // TODO: could the configuration be passed to lookup and the configurator known to plexus via the descriptor // so that this meethod could entirely be handled by a plexus lookup? if ( StringUtils.isNotEmpty( configuratorId ) ) { configurator = (ComponentConfigurator) pluginContainer.lookup( ComponentConfigurator.ROLE, configuratorId ); } else { configurator = (ComponentConfigurator) pluginContainer.lookup( ComponentConfigurator.ROLE ); } configurator.configureComponent( plugin, configuration, expressionEvaluator, pluginContainer.getContainerRealm() ); } catch ( ComponentConfigurationException e ) { throw new PluginConfigurationException( "Unable to parse the created DOM for plugin configuration", e ); } catch ( ComponentLookupException e ) { throw new PluginConfigurationException( "Unable to retrieve component configurator for plugin configuration", e ); } finally { if ( configurator != null ) { try { pluginContainer.release( configurator ); } catch ( ComponentLifecycleException e ) { getLogger().debug( "Failed to release plugin container - ignoring." ); } } } }
47050 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47050/63b3f71f6d4ab4ca0093d626eb5551c5c567120a/DefaultPluginManager.java/buggy/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 6490, 3773, 2314, 12, 15931, 1909, 16, 15931, 3187, 312, 10007, 3187, 16, 453, 4149, 407, 1750, 1664, 16, 4766, 4202, 453, 4149, 407, 2170, 1909, 2170, 16, 5371, 15876, 2652, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6490, 3773, 2314, 12, 15931, 1909, 16, 15931, 3187, 312, 10007, 3187, 16, 453, 4149, 407, 1750, 1664, 16, 4766, 4202, 453, 4149, 407, 2170, 1909, 2170, 16, 5371, 15876, 2652, 1...
public void setToken(Token tok) {
public void setToken(Token tok) throws WSSPolicyException {
public void setToken(Token tok) { this.setSignatureToken(tok); }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/0c09c3eb13c82665a89f3aa9bd727527719219e4/SignatureToken.java/clean/modules/security/src/org/apache/ws/security/policy/model/SignatureToken.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 22629, 12, 1345, 946, 13, 1216, 678, 1260, 2582, 503, 288, 3639, 333, 18, 542, 5374, 1345, 12, 17692, 1769, 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, 22629, 12, 1345, 946, 13, 1216, 678, 1260, 2582, 503, 288, 3639, 333, 18, 542, 5374, 1345, 12, 17692, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
AllocationResult ar = pe.getReportedResult(); if(ar == null) { resultType = AR_ESTIMATED_STR; ar = pe.getEstimatedResult(); } if(ar != null) { String taskStr = buildTaskPrefixString(aTask); taskStr = taskStr + resultType + ","; if(ar.isSuccess()) { taskStr = taskStr + AR_SUCCESS_STR + ","; } else { taskStr = taskStr + AR_FAILURE_STR + ","; } if(!ar.isPhased()) { long startTime = (long) TaskUtils.getStartTime(ar); long endTime = (long) TaskUtils.getEndTime(ar); if(isCountedAR && (TaskUtils.isProjection(aTask))) { startTime = logInvPG.getEffectiveProjectionStart(aTask,startTime); if(startTime >= endTime) { return; } } String outputStr = taskStr + getDateString(startTime,expandTimestamp) + ","; outputStr = outputStr + getDateString(endTime,expandTimestamp) + ","; outputStr = outputStr + taskUtils.getQuantity(aTask,ar); writeln(outputStr); } else { int[] ats = ar.getAspectTypes(); int qtyInd = -1; if(taskUtils.isProjection(aTask)) { qtyInd = getIndexForType(ats,AlpineAspectType.DEMANDRATE); } else { qtyInd = getIndexForType(ats,AspectType.QUANTITY); } int startInd = getIndexForType(ats,AspectType.START_TIME); int endInd = getIndexForType(ats,AspectType.END_TIME); Enumeration phasedResults = ar.getPhasedResults(); while(phasedResults.hasMoreElements()) { double[] results = (double[])phasedResults.nextElement(); String outputStr = taskStr; long startTime=0; long endTime; if(startInd == -1) { outputStr += ","; } else { startTime = (long) results[startInd]; if(isCountedAR && (TaskUtils.isProjection(aTask))) { startTime = logInvPG.getEffectiveProjectionStart(aTask,startTime); } outputStr += getDateString(startTime,expandTimestamp) + ","; } if(endInd == -1) { /** MWD The following line of code which replaces the * allocation result end time with the task end time * is only due to a current error in the * UniversalAllocator. The UA is only setting * the start time in the allocation result. There * is a bug in and when the UA is fixed this line * of code should be removed. If there is no end time * in the allocation result, none should be appended. * GUI needs the end * times for the rates. */ endTime = TaskUtils.getEndTime(aTask); outputStr += getDateString(endTime,expandTimestamp); outputStr += ","; } else { endTime = (long) results[endInd]; outputStr += getDateString(endTime,expandTimestamp) + ","; } if((qtyInd >= results.length) || (qtyInd < 0)){ logger.error("qtyInd is " + qtyInd + " - No Qty in this phase of allocation results: " + outputStr); } else { outputStr += taskUtils.convertResultsToDailyRate(aTask,results[qtyInd]); if(startTime<=endTime){ writeln(outputStr); } else if(!isCountedAR) { logger.warn("logAllocationResult: not going to log an allocation result where endTime is less than start time. CSV line is is:" + outputStr); } } } } } }
AllocationResult ar = pe.getReportedResult(); if(ar == null) { resultType = AR_ESTIMATED_STR; ar = pe.getEstimatedResult(); } if(ar != null) { String taskStr = buildTaskPrefixString(aTask); taskStr = taskStr + resultType + ","; if(ar.isSuccess()) { taskStr = taskStr + AR_SUCCESS_STR + ","; } else { taskStr = taskStr + AR_FAILURE_STR + ","; } if(!ar.isPhased()) { long startTime = (long) TaskUtils.getStartTime(ar); long endTime = (long) TaskUtils.getEndTime(ar); if(isCountedAR && (TaskUtils.isProjection(aTask))) { startTime = logInvPG.getEffectiveProjectionStart(aTask,startTime); if(startTime >= endTime) { return; } } String outputStr = taskStr + getDateString(startTime,expandTimestamp) + ","; outputStr = outputStr + getDateString(endTime,expandTimestamp) + ","; outputStr = outputStr + taskUtils.getQuantity(aTask,ar); writeln(outputStr); } else { int[] ats = ar.getAspectTypes(); int qtyInd = -1; if(taskUtils.isProjection(aTask)) { qtyInd = getIndexForType(ats,AlpineAspectType.DEMANDRATE); } else { qtyInd = getIndexForType(ats,AspectType.QUANTITY); } int startInd = getIndexForType(ats,AspectType.START_TIME); int endInd = getIndexForType(ats,AspectType.END_TIME); Enumeration phasedResults = ar.getPhasedResults(); while(phasedResults.hasMoreElements()) { double[] results = (double[])phasedResults.nextElement(); String outputStr = taskStr; long startTime=0; long endTime; if(startInd == -1) { outputStr += ","; } else { startTime = (long) results[startInd]; if(isCountedAR && (TaskUtils.isProjection(aTask))) { startTime = logInvPG.getEffectiveProjectionStart(aTask,startTime); } outputStr += getDateString(startTime,expandTimestamp) + ","; } if(endInd == -1) { /** MWD The following line of code which replaces the * allocation result end time with the task end time * is only due to a current error in the * UniversalAllocator. The UA is only setting * the start time in the allocation result. There * is a bug in and when the UA is fixed this line * of code should be removed. If there is no end time * in the allocation result, none should be appended. * GUI needs the end * times for the rates. */ endTime = TaskUtils.getEndTime(aTask); outputStr += getDateString(endTime,expandTimestamp); outputStr += ","; } else { endTime = (long) results[endInd]; outputStr += getDateString(endTime,expandTimestamp) + ","; } if((qtyInd >= results.length) || (qtyInd < 0)){ logger.error("qtyInd is " + qtyInd + " - No Qty in this phase of allocation results: " + outputStr); } else { outputStr += taskUtils.convertResultsToDailyRate(aTask,results[qtyInd]); if(startTime<=endTime){ writeln(outputStr); } else if(!isCountedAR) { logger.warn("logAllocationResult: not going to log an allocation result where endTime is less than start time. CSV line is is:" + outputStr); } } } } } }
protected void logAllocationResult(Task aTask, boolean expandTimestamp, boolean isCountedAR) { if(aTask == null) {return;} PlanElement pe = aTask.getPlanElement(); if(pe == null) { return; } String resultType=AR_REPORTED_STR; AllocationResult ar = pe.getReportedResult(); if(ar == null) { resultType = AR_ESTIMATED_STR; ar = pe.getEstimatedResult(); } if(ar != null) { String taskStr = buildTaskPrefixString(aTask); taskStr = taskStr + resultType + ","; if(ar.isSuccess()) { taskStr = taskStr + AR_SUCCESS_STR + ","; } else { taskStr = taskStr + AR_FAILURE_STR + ","; } if(!ar.isPhased()) { long startTime = (long) TaskUtils.getStartTime(ar); long endTime = (long) TaskUtils.getEndTime(ar); if(isCountedAR && (TaskUtils.isProjection(aTask))) { startTime = logInvPG.getEffectiveProjectionStart(aTask,startTime); if(startTime >= endTime) { return; } } String outputStr = taskStr + getDateString(startTime,expandTimestamp) + ","; outputStr = outputStr + getDateString(endTime,expandTimestamp) + ","; outputStr = outputStr + taskUtils.getQuantity(aTask,ar); writeln(outputStr); } else { int[] ats = ar.getAspectTypes(); int qtyInd = -1; if(taskUtils.isProjection(aTask)) { qtyInd = getIndexForType(ats,AlpineAspectType.DEMANDRATE); } else { qtyInd = getIndexForType(ats,AspectType.QUANTITY); } int startInd = getIndexForType(ats,AspectType.START_TIME); int endInd = getIndexForType(ats,AspectType.END_TIME); Enumeration phasedResults = ar.getPhasedResults(); while(phasedResults.hasMoreElements()) { double[] results = (double[])phasedResults.nextElement(); String outputStr = taskStr; long startTime=0; long endTime; if(startInd == -1) { outputStr += ","; } else { startTime = (long) results[startInd]; if(isCountedAR && (TaskUtils.isProjection(aTask))) { startTime = logInvPG.getEffectiveProjectionStart(aTask,startTime); } outputStr += getDateString(startTime,expandTimestamp) + ","; } if(endInd == -1) { /** MWD The following line of code which replaces the * allocation result end time with the task end time * is only due to a current error in the * UniversalAllocator. The UA is only setting * the start time in the allocation result. There * is a bug in and when the UA is fixed this line * of code should be removed. If there is no end time * in the allocation result, none should be appended. * GUI needs the end * times for the rates. */ endTime = TaskUtils.getEndTime(aTask); outputStr += getDateString(endTime,expandTimestamp); outputStr += ","; } else { endTime = (long) results[endInd]; outputStr += getDateString(endTime,expandTimestamp) + ","; } if((qtyInd >= results.length) || (qtyInd < 0)){ logger.error("qtyInd is " + qtyInd + " - No Qty in this phase of allocation results: " + outputStr); } else { outputStr += taskUtils.convertResultsToDailyRate(aTask,results[qtyInd]); if(startTime<=endTime){ writeln(outputStr); } else if(!isCountedAR) { logger.warn("logAllocationResult: not going to log an allocation result where endTime is less than start time. CSV line is is:" + outputStr); } } } } } }
11319 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11319/3c5da4a17db473b8f1094089e88e37b446b21e3b/LogisticsInventoryFormatter.java/buggy/bbn/src/org/cougaar/logistics/plugin/inventory/LogisticsInventoryFormatter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 613, 17353, 1253, 12, 2174, 279, 2174, 16, 1250, 4542, 4921, 16, 1250, 353, 1380, 329, 985, 13, 288, 202, 430, 12, 69, 2174, 422, 446, 13, 288, 2463, 31, 97, 202, 5365, 104...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 613, 17353, 1253, 12, 2174, 279, 2174, 16, 1250, 4542, 4921, 16, 1250, 353, 1380, 329, 985, 13, 288, 202, 430, 12, 69, 2174, 422, 446, 13, 288, 2463, 31, 97, 202, 5365, 104...
Class cl = super.loadClass(fixed_name); Main.debug(dbgID + " returns class " + cl.getName());
Object o = loadedClasses.get(fixed_name); if (o != null) { Main.debug("already loaded: " + o); return (Class)o; } Class cl = findClass(fixed_name); Main.debug(dbgID + " returns class " + cl.getName() + " Classloader=" + cl.getClassLoader());
public synchronized Class loadClass( String name ) throws ClassNotFoundException { Main.debug( dbgID + "loadClass, class name = " + name ); //We need to be able to handle foo.class, so strip off the suffix String fixed_name = name; if( name.endsWith( ".class" ) ) { fixed_name = name.substring( 0, name.lastIndexOf( ".class" ) ); } else if( name.endsWith( ".java" ) ) { // be smart, some applets specify code=XyzClass.java fixed_name = name.substring( 0, name.lastIndexOf( ".java" ) ); } Class cl = super.loadClass(fixed_name); Main.debug(dbgID + " returns class " + cl.getName()); return cl; }
45545 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45545/aeb9e83fde5ffc94e7f0af6a135b96f936ca40c7/KJASAppletClassLoader.java/buggy/khtml/java/org/kde/kjas/server/KJASAppletClassLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 1659, 16038, 12, 514, 508, 262, 1216, 10403, 565, 288, 3639, 12740, 18, 4148, 12, 28966, 734, 397, 315, 945, 797, 16, 667, 508, 273, 315, 397, 508, 11272, 3639, 368, 3218, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 1659, 16038, 12, 514, 508, 262, 1216, 10403, 565, 288, 3639, 12740, 18, 4148, 12, 28966, 734, 397, 315, 945, 797, 16, 667, 508, 273, 315, 397, 508, 11272, 3639, 368, 3218, 1...
closestPoint2.sub(new Vector2d(atom.getPoint2D()));
closestPoint2.sub(new Vector2d(atom.getPoint2D()));
public void distributePartners(Atom atom, AtomContainer sharedAtoms, Point2d sharedAtomsCenter, AtomContainer partners, double bondLength) { double occupiedAngle = 0; double smallestDistance = Double.MAX_VALUE; Atom[] nearestAtoms = new Atom[2]; Atom[] sortedAtoms = null; /* calculate the direction away from the already placed partners of atom */ //Point2d sharedAtomsCenter = sharedAtoms.get2DCenter(); Vector2d sharedAtomsCenterVector = new Vector2d(sharedAtomsCenter); Vector2d newDirection = new Vector2d(atom.getPoint2D()); Vector2d occupiedDirection = new Vector2d(sharedAtomsCenter); occupiedDirection.sub(newDirection); Vector atomsToDraw = new Vector(); /* if the least hindered side of the atom is clearly defined (bondLength / 10 is an arbitrary value that seemed reasonable) */ //newDirection.sub(sharedAtomsCenterVector); sharedAtomsCenterVector.sub(newDirection); newDirection = sharedAtomsCenterVector; newDirection.normalize(); newDirection.scale(bondLength); newDirection.negate(); Point2d distanceMeasure = new Point2d(atom.getPoint2D()); distanceMeasure.add(newDirection); /* get the two sharedAtom partners with the smallest distance to the new center */ sortedAtoms = sharedAtoms.getAtoms(); GeometryTools.sortBy2DDistance(sortedAtoms, distanceMeasure); Vector2d closestPoint1 = new Vector2d(sortedAtoms[0].getPoint2D()); Vector2d closestPoint2 = new Vector2d(sortedAtoms[1].getPoint2D()); closestPoint1.sub(new Vector2d(atom.getPoint2D())); closestPoint2.sub(new Vector2d(atom.getPoint2D())); occupiedAngle = closestPoint1.angle(occupiedDirection); occupiedAngle += closestPoint2.angle(occupiedDirection); double angle1 = GeometryTools.getAngle(sortedAtoms[0].getX2D() - atom.getX2D(), sortedAtoms[0].getY2D() - atom.getY2D()); double angle2 = GeometryTools.getAngle(sortedAtoms[1].getX2D() - atom.getX2D(), sortedAtoms[1].getY2D() - atom.getY2D()); double angle3 = GeometryTools.getAngle(distanceMeasure.x - atom.getX2D(), distanceMeasure.y - atom.getY2D()); if (debug) { try { System.out.println("distributePartners->sortedAtoms[0]: " + (molecule.getAtomNumber(sortedAtoms[0]) + 1)); System.out.println("distributePartners->sortedAtoms[1]: " + (molecule.getAtomNumber(sortedAtoms[1]) + 1)); System.out.println("distributePartners->angle1: " + Math.toDegrees(angle1)); System.out.println("distributePartners->angle2: " + Math.toDegrees(angle2)); } catch(Exception exc) { exc.printStackTrace(); } } Atom startAtom = null; if (angle1 > angle3) { if (angle1 - angle3 < Math.PI) { startAtom = sortedAtoms[1]; } else { // 12 o'clock is between the two vectors startAtom = sortedAtoms[0]; } } else { if (angle3 - angle1 < Math.PI) { startAtom = sortedAtoms[0]; } else { // 12 o'clock is between the two vectors startAtom = sortedAtoms[1]; } } double remainingAngle = (2 * Math.PI) - occupiedAngle; double addAngle = remainingAngle / (partners.getAtomCount() + 1); if (debug) { try { System.out.println("distributePartners->startAtom: " + (molecule.getAtomNumber(startAtom) + 1)); System.out.println("distributePartners->remainingAngle: " + Math.toDegrees(remainingAngle)); System.out.println("distributePartners->addAngle: " + Math.toDegrees(addAngle)); System.out.println("distributePartners-> partners.getAtomCount(): " + partners.getAtomCount()); } catch(Exception exc) { exc.printStackTrace(); } } for (int f = 0; f < partners.getAtomCount(); f++) { atomsToDraw.addElement(partners.getAtomAt(f)); } double radius = bondLength; double startAngle = GeometryTools.getAngle(startAtom.getX2D() - atom.getX2D(), startAtom.getY2D() - atom.getY2D()); populatePolygonCorners(atomsToDraw, new Point2d(atom.getPoint2D()), startAngle, addAngle, radius); }
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/9f992723c3f44cadad1a2525a16a572d7af62f39/AtomPlacer.java/buggy/src/org/openscience/cdk/layout/AtomPlacer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 25722, 1988, 9646, 12, 3641, 3179, 16, 7149, 2170, 5116, 14280, 16, 4686, 22, 72, 5116, 14280, 8449, 16, 7149, 2170, 1087, 9646, 16, 1645, 8427, 1782, 13, 202, 95, 202, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 25722, 1988, 9646, 12, 3641, 3179, 16, 7149, 2170, 5116, 14280, 16, 4686, 22, 72, 5116, 14280, 8449, 16, 7149, 2170, 1087, 9646, 16, 1645, 8427, 1782, 13, 202, 95, 202, 2...
if (rhs == DBL_MRK) {
if (rhs == UniqueTag.DOUBLE_MARK) {
private static void do_cmp(CallFrame frame, int i, int op) { Object rhs = frame.stack[i + 1]; Object lhs = frame.stack[i]; boolean result; object_compare: { number_compare: { double rDbl, lDbl; if (rhs == DBL_MRK) { rDbl = frame.sDbl[i + 1]; lDbl = stack_double(frame, i); } else if (lhs == DBL_MRK) { rDbl = ScriptRuntime.toNumber(rhs); lDbl = frame.sDbl[i]; } else { break number_compare; } switch (op) { case Token.GE: result = (lDbl >= rDbl); break object_compare; case Token.LE: result = (lDbl <= rDbl); break object_compare; case Token.GT: result = (lDbl > rDbl); break object_compare; case Token.LT: result = (lDbl < rDbl); break object_compare; default: throw Kit.codeBug(); } } switch (op) { case Token.GE: result = ScriptRuntime.cmp_LE(rhs, lhs); break; case Token.LE: result = ScriptRuntime.cmp_LE(lhs, rhs); break; case Token.GT: result = ScriptRuntime.cmp_LT(rhs, lhs); break; case Token.LT: result = ScriptRuntime.cmp_LT(lhs, rhs); break; default: throw Kit.codeBug(); } } frame.stack[i] = ScriptRuntime.wrapBoolean(result); }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/00c3a706bf401545154202d57d1edaa0e2f9b8b8/Interpreter.java/buggy/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 741, 67, 9625, 12, 1477, 3219, 2623, 16, 509, 277, 16, 509, 1061, 13, 565, 288, 3639, 1033, 7711, 273, 2623, 18, 3772, 63, 77, 397, 404, 15533, 3639, 1033, 8499, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 741, 67, 9625, 12, 1477, 3219, 2623, 16, 509, 277, 16, 509, 1061, 13, 565, 288, 3639, 1033, 7711, 273, 2623, 18, 3772, 63, 77, 397, 404, 15533, 3639, 1033, 8499, 273, ...
if (globalContext.isSuppressed(refEntity, getShortName())) return; CommonProblemDescriptor[] descriptors = checkElement(refEntity, scope, manager, globalContext);
if (!globalContext.shouldCheck(refEntity, GlobalInspectionTool.this)) return; CommonProblemDescriptor[] descriptors = checkElement(refEntity, scope, manager, globalContext, problemDescriptionsProcessor);
public void runInspection(final AnalysisScope scope, final InspectionManager manager, final GlobalInspectionContext globalContext, final ProblemDescriptionsProcessor problemDescriptionsProcessor) { globalContext.getRefManager().iterate(new RefVisitor() { public void visitElement(RefEntity refEntity) { if (globalContext.isSuppressed(refEntity, getShortName())) return; CommonProblemDescriptor[] descriptors = checkElement(refEntity, scope, manager, globalContext); if (descriptors != null) { problemDescriptionsProcessor.addProblemElement(refEntity, descriptors); } } }); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/5f5b1ed48708e53ec126bb2ca0956457df48f6e7/GlobalInspectionTool.java/buggy/inspections/openapi/com/intellij/codeInspection/GlobalInspectionTool.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1086, 14985, 12, 6385, 16318, 3876, 2146, 16, 18701, 727, 22085, 7017, 1318, 3301, 16, 18701, 727, 8510, 14985, 1042, 2552, 1042, 16, 18701, 727, 21685, 16844, 5164, 6199, 16844, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 14985, 12, 6385, 16318, 3876, 2146, 16, 18701, 727, 22085, 7017, 1318, 3301, 16, 18701, 727, 8510, 14985, 1042, 2552, 1042, 16, 18701, 727, 21685, 16844, 5164, 6199, 16844, ...
for (int i = 0; i < loadedClasses.length; i++) { b.setVariable(loadedClasses[i].getName(), loadedClasses[i]); }
b.setVariable(GrailsApplication.APPLICATION_ID, app); b.setVariable("ctx", ctx);
public static void main(String[] args) throws Exception { ApplicationContext ctx = GrailsUtil.bootstrapGrailsFromClassPath(); GrailsApplication app = (GrailsApplication)ctx.getBean(GrailsApplication.APPLICATION_ID); Class[] loadedClasses = app.getAllClasses(); Binding b = new Binding(); for (int i = 0; i < loadedClasses.length; i++) { b.setVariable(loadedClasses[i].getName(), loadedClasses[i]); } final groovy.ui.InteractiveShell shell = new groovy.ui.InteractiveShell(app.getClassLoader(),b, System.in,System.out,System.err); shell.run(args); }
52953 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52953/04f84d40684d8785499ed04d6996fd9f05dec7c0/InteractiveShell.java/buggy/src/commons/grails/ui/InteractiveShell.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2774, 12, 780, 8526, 833, 13, 1216, 1185, 288, 9506, 202, 28278, 1103, 273, 10812, 14573, 1304, 18, 12722, 14571, 14573, 1265, 22158, 5621, 202, 202, 14571, 14573, 3208,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2774, 12, 780, 8526, 833, 13, 1216, 1185, 288, 9506, 202, 28278, 1103, 273, 10812, 14573, 1304, 18, 12722, 14571, 14573, 1265, 22158, 5621, 202, 202, 14571, 14573, 3208,...
if (oldwidth != width || oldheight != height)
if (isShowing () && (oldwidth != width || oldheight != height))
public void reshape(int x, int y, int width, int height) { int oldx = this.x; int oldy = this.y; int oldwidth = this.width; int oldheight = this.height; if (this.x == x && this.y == y && this.width == width && this.height == height) return; invalidate (); this.x = x; this.y = y; this.width = width; this.height = height; if (peer != null) peer.setBounds (x, y, width, height); // Erase old bounds and repaint new bounds for lightweights. if (isLightweight()) { boolean shouldRepaintParent = false; boolean shouldRepaintSelf = false; if (parent != null) { Rectangle parentBounds = parent.getBounds(); Rectangle oldBounds = new Rectangle(parent.getX() + oldx, parent.getY() + oldy, oldwidth, oldheight); Rectangle newBounds = new Rectangle(parent.getX() + x, parent.getY() + y, width, height); shouldRepaintParent = parentBounds.intersects(oldBounds); shouldRepaintSelf = parentBounds.intersects(newBounds); } if (shouldRepaintParent) parent.repaint(oldx, oldy, oldwidth, oldheight); if (shouldRepaintSelf) repaint(); } if (oldx != x || oldy != y) { ComponentEvent ce = new ComponentEvent(this, ComponentEvent.COMPONENT_MOVED); getToolkit().getSystemEventQueue().postEvent(ce); } if (oldwidth != width || oldheight != height) { ComponentEvent ce = new ComponentEvent(this, ComponentEvent.COMPONENT_RESIZED); getToolkit().getSystemEventQueue().postEvent(ce); } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/cdb624bf4a3742cc4374523f5c6856a06dcd8f92/Component.java/buggy/core/src/classpath/java/java/awt/Component.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 6985, 12, 474, 619, 16, 509, 677, 16, 509, 1835, 16, 509, 2072, 13, 225, 288, 565, 509, 1592, 92, 273, 333, 18, 92, 31, 565, 509, 1592, 93, 273, 333, 18, 93, 31, 565, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 6985, 12, 474, 619, 16, 509, 677, 16, 509, 1835, 16, 509, 2072, 13, 225, 288, 565, 509, 1592, 92, 273, 333, 18, 92, 31, 565, 509, 1592, 93, 273, 333, 18, 93, 31, 565, 5...
if (f == null) continue; if (f.isDirectory ())
if (f == null) continue; if (f.isDirectory())
private ArrayList scanDirectory (File path) { Debug.trace ("scanning directory " + path.getAbsolutePath()); ArrayList result = new ArrayList (); if (! path.isDirectory ()) return result; File[] entries = path.listFiles (); for (int i = 0; i < entries.length; i++) { File f = entries[i]; if (f == null) continue; if (f.isDirectory ()) { result.addAll (scanDirectory (f)); } else if ((f.isFile()) && (f.getName().toLowerCase().endsWith (".java"))) { result.add (f); } } return result; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 2407, 4135, 2853, 261, 812, 589, 13, 225, 288, 565, 4015, 18, 5129, 7566, 1017, 10903, 1867, 315, 397, 589, 18, 588, 10368, 743, 10663, 565, 2407, 563, 273, 394, 2407, 261, 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, 282, 3238, 2407, 4135, 2853, 261, 812, 589, 13, 225, 288, 565, 4015, 18, 5129, 7566, 1017, 10903, 1867, 315, 397, 589, 18, 588, 10368, 743, 10663, 565, 2407, 563, 273, 394, 2407, 261, 1769, ...
return new int[] {((Integer)indexes).intValue()};
final int index = ((Integer)indexes).intValue(); return index < 0 ? new int[0] : new int[] {index};
public int[] getSelectedIndexes(final Object indexes) { if (indexes == null) { return new int[0]; } if (!indexField.isMultiple()) { return new int[] {((Integer)indexes).intValue()}; } if (indexField.isPrimitiveArray()) { final int[] intIndexes = (int[]) indexes; Arrays.sort(intIndexes); return intIndexes; } if (indexField.isArray()) { final Integer[] integerIndexes = (Integer[])indexes; final int[] intIndexes = new int[integerIndexes.length]; for (int i = 0; i < intIndexes.length; i++) { intIndexes[i] = integerIndexes[i].intValue(); } Arrays.sort(intIndexes); return intIndexes; } final Collection colIndexes = (Collection)indexes; final int[] intIndexes = new int[colIndexes.size()]; int i = 0; for (Iterator iter = colIndexes.iterator(); iter.hasNext(); i++) { intIndexes[i] = ((Integer)iter.next()).intValue(); } Arrays.sort(intIndexes); return intIndexes; }
4173 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4173/4cd5ba961bfde4f82d216e3776542aaba5d36a57/DataProviderMetadata.java/buggy/genesis/modules/client/src/net/java/dev/genesis/ui/metadata/DataProviderMetadata.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 509, 8526, 16625, 8639, 12, 6385, 1033, 5596, 13, 288, 1377, 309, 261, 11265, 422, 446, 13, 288, 540, 327, 394, 509, 63, 20, 15533, 1377, 289, 1377, 309, 16051, 1615, 974, 18, 291...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 509, 8526, 16625, 8639, 12, 6385, 1033, 5596, 13, 288, 1377, 309, 261, 11265, 422, 446, 13, 288, 540, 327, 394, 509, 63, 20, 15533, 1377, 289, 1377, 309, 16051, 1615, 974, 18, 291...
asm.emitCMPI (T3, VM_Constants.STACKFRAME_SENTINAL_FP.toInt());
asm.emitCMPI (T3, VM_Constants.STACKFRAME_SENTINEL_FP.toInt());
static void generateGlueCodeForJNIMethod(VM_Assembler asm, VM_Method mth) { int offset; asm.emitSTWU(FP,-JNI_GLUE_FRAME_SIZE,FP); // buy the glue frame // we may need to save CR in the previous frame also if CR will be used // CR is to be saved at FP+4 in the previous frame // Here we check if this is a JNI function that takes the vararg in the ... style // This includes CallStatic<type>Method, Call<type>Method, CallNonVirtual<type>Method // For these calls, the vararg starts at the 4th or 5th argument (GPR 6 or 7) // So, we save the GPR 6-10 and FPR 1-3 in a volatile register save area // in the glue stack frame so that the JNI function can later repackage the arguments // based on the parameter types of target method to be invoked. // (For long argument lists, the additional arguments, have been saved in // the spill area of the AIX caller, and will be retrieved from there.) // // If we are compiling such a JNI Function, then emit the code to store // GPR 4-10 and FPR 1-6 into the volatile save area. String mthName = mth.getName().toString(); if ((mthName.startsWith("Call") && mthName.endsWith("Method")) || mthName.equals("NewObject")) { //-#if RVM_FOR_AIX offset = STACKFRAME_HEADER_SIZE + 12; // skip over slots for GPR 3-5 for (int i = 6; i <= 10; i++ ) { asm.emitSTW(i, offset, FP); offset+=4; } // store FPRs 1-3 in first 3 slots of volatile FPR save area for (int i = 1; i <= 3; i++) { asm.emitSTFD (i, offset, FP); offset+=8; } //-#endif //-#if RVM_FOR_LINUX // save all parameter registers offset = STACKFRAME_HEADER_SIZE + 0; for (int i=FIRST_OS_PARAMETER_GPR; i<=LAST_OS_PARAMETER_GPR; i++) { asm.emitSTW(i, offset, FP); offset += 4; } for (int i =FIRST_OS_PARAMETER_FPR; i<=LAST_OS_PARAMETER_FPR; i++) { asm.emitSTFD(i, offset, FP); offset += 8; } //-#endif } else { //-#if RVM_FOR_LINUX // adjust register contents (following SVR4 ABI) for normal JNI functions // especially dealing with long, spills // number of parameters of normal JNI functions should fix in // r3 - r12, f1 - f15, + 24 words, convertParameterFromSVR4ToJava(asm, mth); //-#endif } //-#if RVM_FOR_LINUX // dereference first asm.emitLWZ(JTOC, 0, FIRST_VOLATILE_GPR); // the JTOC is saved at the end of environment object asm.emitLWZ(JTOC, VM_JNIAIXConstants.JNIFUNCTIONS_JTOC_OFFSET, JTOC); //-#endif // Save AIX non-volatile GRPs and FPRs that will not be saved and restored // by RVM. These are GPR 13-16 & FPR 14-15. // offset = STACKFRAME_HEADER_SIZE + JNI_GLUE_SAVED_VOL_SIZE; // skip 20 word volatile reg save area for (int i = FIRST_OS_NONVOLATILE_GPR; i < FIRST_NONVOLATILE_GPR; i++) { asm.emitSTW(i, offset, FP); offset += 4; } for (int i = FIRST_OS_NONVOLATILE_FPR; i < FIRST_NONVOLATILE_FPR; i++) { asm.emitSTFD (i, offset, FP); offset +=8; } // set the method ID for the glue frame // and save the return address in the previous frame // asm.emitLVAL(S0, INVISIBLE_METHOD_ID); asm.emitMFLR(0); asm.emitSTW (S0, STACKFRAME_METHOD_ID_OFFSET, FP); asm.emitSTW (0, JNI_GLUE_FRAME_SIZE + STACKFRAME_NEXT_INSTRUCTION_OFFSET, FP); // change the vpStatus of the current Processor to "in Java", if GC has started // and we are "blocked_in_native" then loop doing sysYields until GC done and the // processor is unblocked. With default jni, we can also be "blocked_in_native" // if the running thread has been detected as "stuck" and is being moved to a // native processor. // // on entry T0 = JNI Function Ptr (Handle) which should point into the array of function ptrs // the next word in that array contains the address of the current processors vpStatus word // // AIX non volatile gprs 13-16 have been saved & are available (also gprs 11-13 can be used). // S0=13, SP=14, TI=15, PROCESSOR_REGISTER=16 are available (&have labels) for changing state. // ...it would be nice to leave the passed arguments untouched, unless we are blocked // and have to call sysVirtualProcessorYield int label0 = asm.getMachineCodeIndex(); // inst index of the following instr asm.emitLWZ (TI, 4, T0); // TI <- addr of processors vpStatus, from JNI function Ptr array asm.emitLWARX (S0, 0, TI); // get status for processor asm.emitCMPI (S0, VM_Processor.BLOCKED_IN_NATIVE); // check if GC in progress, blocked in native mode VM_ForwardReference frBlocked = asm.emitForwardBC(EQ); asm.emitADDI (S0, VM_Processor.IN_JAVA, 0 ); // S0 <- new state value asm.emitSTWCXr(S0, 0, TI); // attempt to change state to native asm.emitBC (NE, label0); // br if failure -retry lwarx by jumping to label0 VM_ForwardReference frInJava = asm.emitForwardB(); // branch around code to call sysYield // branch to here if blocked in native, call sysVirtulaProcessorYield (AIX pthread yield) // must save AIX volatile gprs & fprs before the call and restore after // frBlocked.resolve(asm); offset = STACKFRAME_HEADER_SIZE; // save volatile GPRS 3-10 for (int i = FIRST_OS_PARAMETER_GPR; i <= LAST_OS_PARAMETER_GPR; i++) { asm.emitSTW(i, offset, FP); offset+=4; } // save volatile FPRS 1-6 for (int i = FIRST_OS_PARAMETER_FPR; i <= LAST_OS_VARARG_PARAMETER_FPR; i++) { asm.emitSTFD (i, offset, FP); offset+=8; } // note JTOC is the RVM JTOC, set by native code when it branched thru the // JNI function pointer to this code asm.emitLWZ (SP, VM_Entrypoints.the_boot_recordField.getOffset(), JTOC); // get boot record address asm.emitADDI (PROCESSOR_REGISTER, 0, JTOC); // save JTOC for later asm.emitLWZ (JTOC, VM_Entrypoints.sysTOCField.getOffset(), SP); // load TOC for syscalls from bootrecord asm.emitLWZ (TI, VM_Entrypoints.sysVirtualProcessorYieldIPField.getOffset(), SP); // load addr of function asm.emitMTLR (TI); asm.emitBCLRL(); // call sysVirtualProcessorYield in sys.C asm.emitADDI (JTOC, 0,PROCESSOR_REGISTER); // restore RVM JTOC // restore the saved volatile GPRs 3-10 and FPRs 1-6 offset = STACKFRAME_HEADER_SIZE; // restore volatile GPRS 3-10 for (int i = FIRST_OS_PARAMETER_GPR; i <= LAST_OS_PARAMETER_GPR; i++) { asm.emitLWZ (i, offset, FP); offset+=4; } // restore volatile FPRS 1-6 for (int i = FIRST_OS_PARAMETER_FPR; i <= LAST_OS_VARARG_PARAMETER_FPR; i++) { asm.emitLFD (i, offset, FP); offset+=8; } asm.emitB (label0); // br back to label0 to try lwarx again // NOW_IN_JAVA: // branch to here, after setting status to IN_JAVA // // GC is not in progress - so we can now reference moveable objects in the heap, // such as JNIEnvironment, VM_Thread, VM_Processor. // // T0 = the address of running threads entry in the jnifunctionpointers array // (as of 11/16/00 each thread gets 2 words in this array) // compute offset into this array, use this divieded by 2 as offset in threads array, // load VM_Thread, and from it load the jniEnv pointer. // ...use TI and PROCESSOR_REGISTER as temps for a while // ...JTOC is now the RVM JTOC // frInJava.resolve(asm); asm.emitLWZ (TI, VM_Entrypoints.JNIFunctionPointersField.getOffset(), JTOC); asm.emitSUBFC (TI, TI, T0); // TI <- byte offset into funcPtrs array asm.emitSRAWI (TI, TI, 1); // divide by 2 asm.emitLWZ (PROCESSOR_REGISTER, VM_Entrypoints.threadsField.getOffset(), JTOC); asm.emitADD (TI, PROCESSOR_REGISTER, TI); asm.emitLWZ (TI, 0, TI); // TI <- address of VM_Thread asm.emitLWZ (T0, VM_Entrypoints.jniEnvField.getOffset(), TI); // T0 <- JNIEnv ref (a REAL ref) // get pointer to top java frame from JNIEnv, compute offset from current // frame pointer (offset to avoid more interior pointers) and save offset // in this glue frame // asm.emitLWZ (TI, VM_Entrypoints.JNITopJavaFPField.getOffset(), T0); // get addr of top java frame from JNIEnv asm.emitSUBFC (TI, FP, TI); // TI <- offset from current FP // AIX -4, LINUX - 8 asm.emitSTW(TI, JNI_GLUE_FRAME_SIZE + JNI_GLUE_OFFSET_TO_PREV_JFRAME, FP); // store offset at end of glue frame // load TI & PR registers from JNIEnv before calling Java JNI Function asm.emitLWZ (TI, VM_Entrypoints.JNIEnvSavedTIField.getOffset(), T0); asm.emitLWZ (PROCESSOR_REGISTER, VM_Entrypoints.JNIEnvSavedPRField.getOffset(), T0); // check if now running on a native processor, if so we have to // transfer back to a blue/RVM processor (via call to becomeRVM) // asm.emitLWZ (S0, VM_Entrypoints.processorModeField.getOffset(), PROCESSOR_REGISTER); // get processorMode asm.emitCMPI (S0, VM_Processor.RVM); // are we still on blue processor VM_ForwardReference frBlue2 = asm.emitForwardBC(EQ); // skip transfer to blue if on blue // save volatile GPRs 3-10 and FPRs 1-6 before calling becomeRVMThread offset = STACKFRAME_HEADER_SIZE; // save volatile GPRS 3-10 for (int i = FIRST_OS_PARAMETER_GPR; i <= LAST_OS_PARAMETER_GPR; i++) { asm.emitSTW(i, offset, FP); offset+=4; } // save volatile FPRS 1-6 for (int i = FIRST_OS_PARAMETER_FPR; i <= LAST_OS_VARARG_PARAMETER_FPR; i++) { asm.emitSTFD (i, offset, FP); offset+=8; } // Branch to becomeRVMThread: we will yield and get rescheduled to execute // on a regular VM_Processor for Java code. At this point PR, TI & JTOC // are valid for executing Java // asm.emitLWZtoc (S0, VM_Entrypoints.becomeRVMThreadMethod.getOffset()); // always 2 instructions asm.emitMTLR (S0); asm.emitBCLRL (); // At this point, we have resumed execution in a RVM VM_Processor // The PR register now points to this VM_Processor. TI & JTOC are still valid. // restore the saved volatile GPRs 3-10 and FPRs 1-6 offset = STACKFRAME_HEADER_SIZE; // restore volatile GPRS 3-10 for (int i = FIRST_OS_PARAMETER_GPR; i <= LAST_OS_PARAMETER_GPR; i++) { asm.emitLWZ (i, offset, FP); offset+=4; } // restore volatile FPRS 1-6 for (int i = FIRST_OS_PARAMETER_FPR; i <= LAST_OS_VARARG_PARAMETER_FPR; i++) { asm.emitLFD (i, offset, FP); offset+=8; } // branch to here if making jni call on RVM/blue processor frBlue2.resolve(asm); // BRANCH TO THE PROLOG FOR THE JNI FUNCTION VM_ForwardReference frNormalPrologue = asm.emitForwardBL(); // relative branch and link past the following epilog, to the normal prolog of the method // the normal epilog of the method will return to the epilog here to pop the glue stack frame // RETURN TO HERE FROM EPILOG OF JNI FUNCTION // CAUTION: START OF EPILOG OF GLUE CODE // The section of code from here to "END OF EPILOG OF GLUE CODE" is nestled between // the glue code prolog and the real JNI code. // T0 & T1 (R3 & R4) or F1 contain the return value from the function - DO NOT USE // assume: JTOC, TI, and PROCESSOR_REG are valid, and all RVM non-volatile // GPRs and FPRs have been restored. Our processor state should be ...IN_JAVA so // it is OK to use saved refs to moveable objects (ie. PROCESSOR_REG) // establish T2 -> current threads JNIEnv structure, from activeThread field // of current processor asm.emitLWZ(T2, VM_Entrypoints.activeThreadField.getOffset(), PROCESSOR_REGISTER); // T2 <- activeThread of PR asm.emitLWZ(T2, VM_Entrypoints.jniEnvField.getOffset(), T2); // T2 <- JNIEnvironment // before returning to C, set pointer to top java frame in JNIEnv, using offset // saved in this glue frame during transition from C to Java. GC will use this saved // frame pointer if it is necessary to do GC with a processors active thread // stuck (and blocked) in native C, ie. GC starts scanning the threads stack at that frame. // AIX -4, LINUX -8 asm.emitLWZ (T3, JNI_GLUE_FRAME_SIZE + JNI_GLUE_OFFSET_TO_PREV_JFRAME, FP); // load offset from FP to top java frame asm.emitADD (T3, FP, T3); // T3 <- address of top java frame asm.emitSTW(T3, VM_Entrypoints.JNITopJavaFPField.getOffset(), T2); // store TopJavaFP back into JNIEnv // Check if nativeAffinity is set: // -if yes, the caller is via CreateJavaVM or AttachCurrentThread // from an external pthread and control must be returned to the C program there // -If no, return to C can be done on the current processor asm.emitLWZ(S0, VM_Entrypoints.activeThreadField.getOffset(), PROCESSOR_REGISTER); // T2 <- activeThread of PR asm.emitLWZ(S0, VM_Entrypoints.nativeAffinityField.getOffset(), S0); // T2 <- nativeAffinity asm.emitCMPI (S0, 0); VM_ForwardReference fr6 = asm.emitForwardBC(EQ); // check to see if this frame address is the sentinal since there may be no further Java frame below asm.emitCMPI (T3, VM_Constants.STACKFRAME_SENTINAL_FP.toInt()); VM_ForwardReference fr5 = asm.emitForwardBC(NE); // save result GPRS 3-4 and FPRS 1 offset = STACKFRAME_HEADER_SIZE; asm.emitSTW(T0, offset, FP); asm.emitSTW(T1, offset+4, FP); asm.emitSTW(T2, offset+8, FP); asm.emitSTW(T3, offset+12, FP); asm.emitSTFD (FIRST_OS_PARAMETER_FPR, offset+16, FP); // Branch to becomeNativeThread: we will yield and get rescheduled to execute // on a VM_Processor for the external pthread code. // asm.emitLWZtoc (S0, VM_Entrypoints.becomeNativeThreadMethod.getOffset()); // always 2 instructions asm.emitMTLR (S0); asm.emitBCLRL (); // restore result GPRS 3-4 and FPRS 1 offset = STACKFRAME_HEADER_SIZE; asm.emitLWZ(T0, offset, FP); asm.emitLWZ(T1, offset+4, FP); asm.emitLWZ(T2, offset+8, FP); asm.emitLWZ(T3, offset+12, FP); asm.emitLFD (FIRST_OS_PARAMETER_FPR, offset+16, FP); // While in Java (JNI Function), on a RVM Processor, we allow the thread to be migrated // to a different Processor. Thus the current processor when returning from Java back // may be different from the processor when calling the Java JNI Function. We therefore // must update the saved processor registers, in the threads JNIEnvironment and in the // preceeding "Java to C" transition frame. // Note: must be done after the possible call to becomeNativeThread to pick up the right PR value // // update the saved PR of the frame if TopJavaFP is valid (branch here from check above) fr6.resolve(asm); fr5.resolve(asm); // check to see if this frame address is the sentinal since there may be no further Java frame below asm.emitCMPI (T3, VM_Constants.STACKFRAME_SENTINAL_FP.toInt()); VM_ForwardReference fr4 = asm.emitForwardBC(EQ); asm.emitLWZ (S0, 0, T3); // get fp for caller of prev J to C transition frame asm.emitSTW(PROCESSOR_REGISTER, -JNI_PR_OFFSET, S0); // store PR back into transition frame fr4.resolve(asm); asm.emitSTW(PROCESSOR_REGISTER, VM_Entrypoints.JNIEnvSavedPRField.getOffset(), T2); // store PR back into JNIEnv // change the state of the VP to "in Native". With default jni transitions to // native C from Java ALWAYS start on a blue/RVM Processor (status = IN_JAVA) // and are never "BLOCKED_IN_JAVA" // asm.emitLWZ (T3, VM_Entrypoints.vpStatusAddressField.getOffset(), PROCESSOR_REGISTER); // T3 gets addr vpStatus word asm.emitADDI (S0, VM_Processor.IN_NATIVE, 0 ); // S0 <- new status value asm.emitSTW (S0, 0, T3); // change state to native // Restore those AIX nonvolatile registers saved in the prolog above // Here we only save & restore ONLY those registers not restored by RVM // offset = STACKFRAME_HEADER_SIZE + JNI_GLUE_SAVED_VOL_SIZE; // skip 20 word volatile reg save area for (int i = FIRST_OS_NONVOLATILE_GPR; i < FIRST_NONVOLATILE_GPR; i++) { asm.emitLWZ (i, offset, FP); // 4 instructions offset += 4; } for (int i = FIRST_OS_NONVOLATILE_FPR; i < FIRST_NONVOLATILE_FPR; i++) { asm.emitLFD (i, offset, FP); // 2 instructions offset +=8; } // pop frame asm.emitADDI(FP, JNI_GLUE_FRAME_SIZE, FP); // load return address & return to caller // T0 & T1 (or F1) should still contain the return value // asm.emitLWZ(T2, STACKFRAME_NEXT_INSTRUCTION_OFFSET, FP); asm.emitMTLR(T2); asm.emitBCLR (); // branch always, through link register //END OF EPILOG OF GLUE CODE frNormalPrologue.resolve(asm); }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/56e6af52d64dea2f4859f51de1f23393ff707147/VM_JNICompiler.java/clean/rvm/src/vm/arch/powerPC/jni/VM_JNICompiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 918, 2103, 21308, 344, 1085, 1290, 46, 50, 45, 1305, 12, 7397, 67, 1463, 5747, 749, 20415, 16, 8251, 67, 1305, 312, 451, 13, 288, 565, 509, 1384, 31, 565, 20415, 18, 18356, 882, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 918, 2103, 21308, 344, 1085, 1290, 46, 50, 45, 1305, 12, 7397, 67, 1463, 5747, 749, 20415, 16, 8251, 67, 1305, 312, 451, 13, 288, 565, 509, 1384, 31, 565, 20415, 18, 18356, 882, ...
_t = __t1499;
_t = __t1503;
public final void getkeyvaluestate(AST _t) throws RecognitionException { AST getkeyvaluestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1499 = _t; AST tmp1111_AST_in = (AST)_t; match(_t,GETKEYVALUE); _t = _t.getFirstChild(); AST tmp1112_AST_in = (AST)_t; match(_t,SECTION); _t = _t.getNextSibling(); expression(_t); _t = _retTree; AST tmp1113_AST_in = (AST)_t; match(_t,KEY); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; if ((_t.getType()==DEFAULT)) { AST tmp1114_AST_in = (AST)_t; match(_t,DEFAULT); _t = _t.getNextSibling(); } else if ((_tokenSet_3.member(_t.getType()))) { expression(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } AST tmp1115_AST_in = (AST)_t; match(_t,VALUE); _t = _t.getNextSibling(); field(_t); _t = _retTree; state_end(_t); _t = _retTree; _t = __t1499; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser03.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 336, 856, 4531, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 336, 856, 4531, 395, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 336, 856, 4531, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 336, 856, 4531, 395, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, ...
Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.SUB, ConstMultiplicativeExpression)); break; }
setResult(ConstAdditiveExpression); break; }
public void ruleAction(int ruleNumber) { switch (ruleNumber) { // // Rule 1: TypeName ::= TypeName . ErrorId // case 1: { //#line 6 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name TypeName = (Name) getRhsSym(1); //#line 8 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, "*")); break; } // // Rule 2: PackageName ::= PackageName . ErrorId // case 2: { //#line 16 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name PackageName = (Name) getRhsSym(1); //#line 18 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, "*")); break; } // // Rule 3: ExpressionName ::= AmbiguousName . ErrorId // case 3: { //#line 26 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 28 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 4: MethodName ::= AmbiguousName . ErrorId // case 4: { //#line 36 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 38 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 5: PackageOrTypeName ::= PackageOrTypeName . ErrorId // case 5: { //#line 46 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 48 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, "*")); break; } // // Rule 6: AmbiguousName ::= AmbiguousName . ErrorId // case 6: { //#line 56 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 58 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, "*")); break; } // // Rule 7: FieldAccess ::= Primary . ErrorId // case 7: { //#line 66 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 68 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(), Primary, "*")); break; } // // Rule 8: FieldAccess ::= super . ErrorId // case 8: { //#line 73 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), "*")); break; } // // Rule 9: FieldAccess ::= ClassName . super$sup . ErrorId // case 9: { //#line 76 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 76 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 78 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), "*")); break; } // // Rule 10: MethodInvocation ::= MethodPrimaryPrefix ( ArgumentListopt ) // case 10: { //#line 82 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object MethodPrimaryPrefix = (Object) getRhsSym(1); //#line 82 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 84 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) ((Object[]) MethodPrimaryPrefix)[0]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodPrimaryPrefix)[1]; setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 11: MethodInvocation ::= MethodSuperPrefix ( ArgumentListopt ) // case 11: { //#line 89 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier MethodSuperPrefix = (polyglot.lex.Identifier) getRhsSym(1); //#line 89 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 91 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" polyglot.lex.Identifier identifier = MethodSuperPrefix; setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 12: MethodInvocation ::= MethodClassNameSuperPrefix ( ArgumentListopt ) // case 12: { //#line 95 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object MethodClassNameSuperPrefix = (Object) getRhsSym(1); //#line 95 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 97 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) ((Object[]) MethodClassNameSuperPrefix)[0]; JPGPosition super_pos = (JPGPosition) ((Object[]) MethodClassNameSuperPrefix)[1]; polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) ((Object[]) MethodClassNameSuperPrefix)[2]; setResult(nf.Call(pos(), nf.Super(super_pos, ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 13: MethodPrimaryPrefix ::= Primary . ErrorId$ErrorId // case 13: { //#line 104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Expr Primary = (Expr) getRhsSym(1); //#line 104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 106 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[2]; a[0] = Primary; a[1] = id(getRhsFirstTokenIndex(3)); setResult(a); break; } // // Rule 14: MethodSuperPrefix ::= super . ErrorId$ErrorId // case 14: { //#line 112 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(3); //#line 114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" setResult(id(getRhsFirstTokenIndex(3))); break; } // // Rule 15: MethodClassNameSuperPrefix ::= ClassName . super$sup . ErrorId$ErrorId // case 15: { //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Name ClassName = (Name) getRhsSym(1); //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken sup = (IToken) getRhsIToken(3); //#line 117 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" IToken ErrorId = (IToken) getRhsIToken(5); //#line 119 "C:/eclipse/ws6/x10.compiler/src/x10/parser/MissingId.gi" Object[] a = new Object[3]; a[0] = ClassName; a[1] = pos(getRhsFirstTokenIndex(3)); a[2] = id(getRhsFirstTokenIndex(5)); setResult(a); break; } // // Rule 16: identifier ::= IDENTIFIER$ident // case 16: { //#line 94 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken ident = (IToken) getRhsIToken(1); //#line 96 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ident.setKind(X10Parsersym.TK_IDENTIFIER); setResult(id(getRhsFirstTokenIndex(1))); break; } // // Rule 19: IntegralType ::= byte // case 19: { //#line 121 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 20: IntegralType ::= char // case 20: { //#line 126 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 21: IntegralType ::= short // case 21: { //#line 131 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 22: IntegralType ::= int // case 22: { //#line 136 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 23: IntegralType ::= long // case 23: { //#line 141 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 24: FloatingPointType ::= float // case 24: { //#line 147 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 25: FloatingPointType ::= double // case 25: { //#line 152 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 28: TypeName ::= identifier // case 28: { //#line 175 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 177 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 29: TypeName ::= TypeName . identifier // case 29: { //#line 180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(1); //#line 180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 182 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), TypeName, identifier.getIdentifier())); break; } // // Rule 31: ArrayType ::= Type [ ] // case 31: { //#line 194 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 196 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.array(Type, pos(), 1)); break; } // // Rule 32: PackageName ::= identifier // case 32: { //#line 241 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 243 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 33: PackageName ::= PackageName . identifier // case 33: { //#line 246 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageName = (Name) getRhsSym(1); //#line 246 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 248 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageName, identifier.getIdentifier())); break; } // // Rule 34: ExpressionName ::= identifier // case 34: { //#line 262 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 264 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 35: ExpressionName ::= AmbiguousName . identifier // case 35: { //#line 267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 269 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 36: MethodName ::= identifier // case 36: { //#line 277 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 279 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 37: MethodName ::= AmbiguousName . identifier // case 37: { //#line 282 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 282 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 284 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 38: PackageOrTypeName ::= identifier // case 38: { //#line 292 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 294 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 39: PackageOrTypeName ::= PackageOrTypeName . identifier // case 39: { //#line 297 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(1); //#line 297 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 299 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), PackageOrTypeName, identifier.getIdentifier())); break; } // // Rule 40: AmbiguousName ::= identifier // case 40: { //#line 307 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 309 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 41: AmbiguousName ::= AmbiguousName . identifier // case 41: { //#line 312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name AmbiguousName = (Name) getRhsSym(1); //#line 312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 314 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(getLeftSpan(), getRightSpan()), AmbiguousName, identifier.getIdentifier())); break; } // // Rule 42: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 42: { //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" PackageNode PackageDeclarationopt = (PackageNode) getRhsSym(1); //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarationsopt = (List) getRhsSym(2); //#line 324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarationsopt = (List) getRhsSym(3); //#line 326 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // Add import x10.lang.* by default. Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); int token_pos = (ImportDeclarationsopt.size() == 0 ? TypeDeclarationsopt.size() == 0 ? super.getSize() - 1 : getPrevious(getRhsFirstTokenIndex(3)) : getRhsLastTokenIndex(2) ); Import x10LangImport = nf.Import(pos(token_pos), Import.PACKAGE, x10Lang.toString()); ImportDeclarationsopt.add(x10LangImport); setResult(nf.SourceFile(pos(getLeftSpan(), getRightSpan()), PackageDeclarationopt, ImportDeclarationsopt, TypeDeclarationsopt)); break; } // // Rule 43: ImportDeclarations ::= ImportDeclaration // case 43: { //#line 342 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(1); //#line 344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Import.class, false); l.add(ImportDeclaration); setResult(l); break; } // // Rule 44: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 44: { //#line 349 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ImportDeclarations = (List) getRhsSym(1); //#line 349 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Import ImportDeclaration = (Import) getRhsSym(2); //#line 351 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (ImportDeclaration != null) ImportDeclarations.add(ImportDeclaration); //setResult(l); break; } // // Rule 45: TypeDeclarations ::= TypeDeclaration // case 45: { //#line 357 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(1); //#line 359 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); if (TypeDeclaration != null) l.add(TypeDeclaration); setResult(l); break; } // // Rule 46: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 46: { //#line 365 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List TypeDeclarations = (List) getRhsSym(1); //#line 365 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl TypeDeclaration = (ClassDecl) getRhsSym(2); //#line 367 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (TypeDeclaration != null) TypeDeclarations.add(TypeDeclaration); //setResult(l); break; } // // Rule 49: SingleTypeImportDeclaration ::= import TypeName ; // case 49: { //#line 380 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name TypeName = (Name) getRhsSym(2); //#line 382 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.CLASS, TypeName.toString())); break; } // // Rule 50: TypeImportOnDemandDeclaration ::= import PackageOrTypeName . * ; // case 50: { //#line 386 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name PackageOrTypeName = (Name) getRhsSym(2); //#line 388 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Import(pos(getLeftSpan(), getRightSpan()), Import.PACKAGE, PackageOrTypeName.toString())); break; } // // Rule 53: TypeDeclaration ::= ; // case 53: { //#line 402 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(null); break; } // // Rule 56: ClassModifiers ::= ClassModifiers ClassModifier // case 56: { //#line 414 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifiers = (Flags) getRhsSym(1); //#line 414 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ClassModifier = (Flags) getRhsSym(2); //#line 416 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassModifiers.set(ClassModifier)); break; } // // Rule 57: ClassModifier ::= public // case 57: { //#line 424 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 58: ClassModifier ::= protected // case 58: { //#line 429 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 59: ClassModifier ::= private // case 59: { //#line 434 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 60: ClassModifier ::= abstract // case 60: { //#line 439 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 61: ClassModifier ::= static // case 61: { //#line 444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 62: ClassModifier ::= final // case 62: { //#line 449 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 63: ClassModifier ::= strictfp // case 63: { //#line 454 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 64: Super ::= extends ClassType // case 64: { //#line 466 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ClassType = (TypeNode) getRhsSym(2); //#line 468 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ClassType); break; } // // Rule 65: Interfaces ::= implements InterfaceTypeList // case 65: { //#line 477 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(2); //#line 479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceTypeList); break; } // // Rule 66: InterfaceTypeList ::= InterfaceType // case 66: { //#line 483 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(1); //#line 485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 67: InterfaceTypeList ::= InterfaceTypeList , InterfaceType // case 67: { //#line 490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceTypeList = (List) getRhsSym(1); //#line 490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 492 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceTypeList.add(InterfaceType); setResult(InterfaceTypeList); break; } // // Rule 68: ClassBody ::= { ClassBodyDeclarationsopt } // case 68: { //#line 502 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarationsopt = (List) getRhsSym(2); //#line 504 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(getLeftSpan(), getRightSpan()), ClassBodyDeclarationsopt)); break; } // // Rule 70: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 70: { //#line 509 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclarations = (List) getRhsSym(1); //#line 509 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ClassBodyDeclaration = (List) getRhsSym(2); //#line 511 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassBodyDeclarations.addAll(ClassBodyDeclaration); // setResult(a); break; } // // Rule 72: ClassBodyDeclaration ::= InstanceInitializer // case 72: { //#line 517 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block InstanceInitializer = (Block) getRhsSym(1); //#line 519 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.NONE, InstanceInitializer)); setResult(l); break; } // // Rule 73: ClassBodyDeclaration ::= StaticInitializer // case 73: { //#line 524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block StaticInitializer = (Block) getRhsSym(1); //#line 526 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(nf.Initializer(pos(), Flags.STATIC, StaticInitializer)); setResult(l); break; } // // Rule 74: ClassBodyDeclaration ::= ConstructorDeclaration // case 74: { //#line 531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ConstructorDecl ConstructorDeclaration = (ConstructorDecl) getRhsSym(1); //#line 533 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ConstructorDeclaration); setResult(l); break; } // // Rule 76: ClassMemberDeclaration ::= MethodDeclaration // case 76: { //#line 540 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodDeclaration = (MethodDecl) getRhsSym(1); //#line 542 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(MethodDeclaration); setResult(l); break; } // // Rule 77: ClassMemberDeclaration ::= ClassDeclaration // case 77: { //#line 547 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 549 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 78: ClassMemberDeclaration ::= InterfaceDeclaration // case 78: { //#line 554 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 556 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 79: ClassMemberDeclaration ::= ; // case 79: { //#line 563 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); setResult(l); break; } // // Rule 80: VariableDeclarators ::= VariableDeclarator // case 80: { //#line 571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(1); //#line 573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), X10VarDeclarator.class, false); l.add(VariableDeclarator); setResult(l); break; } // // Rule 81: VariableDeclarators ::= VariableDeclarators , VariableDeclarator // case 81: { //#line 578 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(1); //#line 578 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VarDeclarator VariableDeclarator = (VarDeclarator) getRhsSym(3); //#line 580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclarators.add(VariableDeclarator); // setResult(VariableDeclarators); break; } // // Rule 83: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 83: { //#line 586 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 586 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 588 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableDeclaratorId.init = VariableInitializer; VariableDeclaratorId.position(pos()); // setResult(VariableDeclaratorId); break; } // // Rule 84: TraditionalVariableDeclaratorId ::= identifier // case 84: { //#line 594 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 596 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier())); break; } // // Rule 85: TraditionalVariableDeclaratorId ::= TraditionalVariableDeclaratorId [ ] // case 85: { //#line 599 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator TraditionalVariableDeclaratorId = (X10VarDeclarator) getRhsSym(1); //#line 601 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TraditionalVariableDeclaratorId.dims++; TraditionalVariableDeclaratorId.position(pos()); // setResult(a); break; } // // Rule 87: VariableDeclaratorId ::= identifier [ IdentifierList ] // case 87: { //#line 608 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 608 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(3); //#line 610 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), identifier.getIdentifier(), IdentifierList)); break; } // // Rule 88: VariableDeclaratorId ::= [ IdentifierList ] // case 88: { //#line 613 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List IdentifierList = (List) getRhsSym(2); //#line 615 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new X10VarDeclarator(pos(), IdentifierList)); break; } // // Rule 92: FieldModifiers ::= FieldModifiers FieldModifier // case 92: { //#line 623 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifiers = (Flags) getRhsSym(1); //#line 623 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags FieldModifier = (Flags) getRhsSym(2); //#line 625 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(FieldModifiers.set(FieldModifier)); break; } // // Rule 93: FieldModifier ::= public // case 93: { //#line 633 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 94: FieldModifier ::= protected // case 94: { //#line 638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 95: FieldModifier ::= private // case 95: { //#line 643 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 96: FieldModifier ::= static // case 96: { //#line 648 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 97: FieldModifier ::= final // case 97: { //#line 653 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 98: FieldModifier ::= transient // case 98: { //#line 658 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.TRANSIENT); break; } // // Rule 99: MethodDeclaration ::= MethodHeader MethodBody // case 99: { //#line 667 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl MethodHeader = (MethodDecl) getRhsSym(1); //#line 667 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block MethodBody = (Block) getRhsSym(2); //#line 669 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" JPGPosition old_pos = (JPGPosition) MethodHeader.position(); setResult(MethodHeader.body(MethodBody) .position(pos(old_pos.getLeftIToken().getTokenIndex(), getRightSpan()))); break; } // // Rule 101: ResultType ::= void // case 101: { //#line 680 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 102: FormalParameterList ::= LastFormalParameter // case 102: { //#line 700 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(1); //#line 702 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(LastFormalParameter); setResult(l); break; } // // Rule 103: FormalParameterList ::= FormalParameters , LastFormalParameter // case 103: { //#line 707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Formal LastFormalParameter = (Formal) getRhsSym(3); //#line 709 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(LastFormalParameter); // setResult(FormalParameters); break; } // // Rule 104: FormalParameters ::= FormalParameter // case 104: { //#line 714 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(1); //#line 716 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Formal.class, false); l.add(FormalParameter); setResult(l); break; } // // Rule 105: FormalParameters ::= FormalParameters , FormalParameter // case 105: { //#line 721 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List FormalParameters = (List) getRhsSym(1); //#line 721 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 723 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" FormalParameters.add(FormalParameter); // setResult(FormalParameters); break; } // // Rule 106: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 106: { //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(3); //#line 730 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableDeclaratorId != null) setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); else setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), 1), "", new AmbExpr[0])); break; } // // Rule 108: VariableModifiers ::= VariableModifiers VariableModifier // case 108: { //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiers = (Flags) getRhsSym(1); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifier = (Flags) getRhsSym(2); //#line 740 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(VariableModifiers.set(VariableModifier)); break; } // // Rule 109: VariableModifier ::= final // case 109: { //#line 746 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 110: LastFormalParameter ::= VariableModifiersopt Type ...opt$opt VariableDeclaratorId // case 110: { //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 752 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10VarDeclarator VariableDeclaratorId = (X10VarDeclarator) getRhsSym(4); //#line 754 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" assert(opt == null); setResult(nf.Formal(pos(), VariableModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), VariableDeclaratorId.dims), VariableDeclaratorId.name, VariableDeclaratorId.names())); break; } // // Rule 112: MethodModifiers ::= MethodModifiers MethodModifier // case 112: { //#line 766 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifiers = (Flags) getRhsSym(1); //#line 766 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags MethodModifier = (Flags) getRhsSym(2); //#line 768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(MethodModifiers.set(MethodModifier)); break; } // // Rule 113: MethodModifier ::= public // case 113: { //#line 776 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 114: MethodModifier ::= protected // case 114: { //#line 781 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 115: MethodModifier ::= private // case 115: { //#line 786 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 116: MethodModifier ::= abstract // case 116: { //#line 791 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 117: MethodModifier ::= static // case 117: { //#line 796 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 118: MethodModifier ::= final // case 118: { //#line 801 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 119: MethodModifier ::= native // case 119: { //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NATIVE); break; } // // Rule 120: MethodModifier ::= strictfp // case 120: { //#line 816 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 121: Throws ::= throws ExceptionTypeList // case 121: { //#line 820 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(2); //#line 822 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExceptionTypeList); break; } // // Rule 122: ExceptionTypeList ::= ExceptionType // case 122: { //#line 826 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(1); //#line 828 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(ExceptionType); setResult(l); break; } // // Rule 123: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 123: { //#line 833 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExceptionTypeList = (List) getRhsSym(1); //#line 833 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode ExceptionType = (TypeNode) getRhsSym(3); //#line 835 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExceptionTypeList.add(ExceptionType); // setResult(ExceptionTypeList); break; } // // Rule 126: MethodBody ::= ; // case 126: setResult(null); break; // // Rule 128: StaticInitializer ::= static Block // case 128: { //#line 855 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 857 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 129: SimpleTypeName ::= identifier // case 129: { //#line 872 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 874 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 131: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 131: { //#line 879 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifiers = (Flags) getRhsSym(1); //#line 879 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstructorModifier = (Flags) getRhsSym(2); //#line 881 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstructorModifiers.set(ConstructorModifier)); break; } // // Rule 132: ConstructorModifier ::= public // case 132: { //#line 889 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 133: ConstructorModifier ::= protected // case 133: { //#line 894 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 134: ConstructorModifier ::= private // case 134: { //#line 899 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 135: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 135: { //#line 903 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt ExplicitConstructorInvocationopt = (Stmt) getRhsSym(2); //#line 903 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(3); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l; if (ExplicitConstructorInvocationopt == null) l = BlockStatementsopt; else { l = new TypedList(new LinkedList(), Stmt.class, false); l.add(ExplicitConstructorInvocationopt); l.addAll(BlockStatementsopt); } setResult(nf.Block(pos(), l)); break; } // // Rule 136: Arguments ::= ( ArgumentListopt ) // case 136: { //#line 936 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(2); //#line 938 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ArgumentListopt); break; } // // Rule 139: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 139: { //#line 954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifiers = (Flags) getRhsSym(1); //#line 954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags InterfaceModifier = (Flags) getRhsSym(2); //#line 956 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(InterfaceModifiers.set(InterfaceModifier)); break; } // // Rule 140: InterfaceModifier ::= public // case 140: { //#line 964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 141: InterfaceModifier ::= protected // case 141: { //#line 969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PROTECTED); break; } // // Rule 142: InterfaceModifier ::= private // case 142: { //#line 974 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PRIVATE); break; } // // Rule 143: InterfaceModifier ::= abstract // case 143: { //#line 979 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 144: InterfaceModifier ::= static // case 144: { //#line 984 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 145: InterfaceModifier ::= strictfp // case 145: { //#line 989 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STRICTFP); break; } // // Rule 146: ExtendsInterfaces ::= extends InterfaceType // case 146: { //#line 993 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(2); //#line 995 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(InterfaceType); setResult(l); break; } // // Rule 147: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 147: { //#line 1000 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ExtendsInterfaces = (List) getRhsSym(1); //#line 1000 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode InterfaceType = (TypeNode) getRhsSym(3); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ExtendsInterfaces.add(InterfaceType); // setResult(ExtendsInterfaces); break; } // // Rule 148: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 148: { //#line 1012 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarationsopt = (List) getRhsSym(2); //#line 1014 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassBody(pos(), InterfaceMemberDeclarationsopt)); break; } // // Rule 150: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 150: { //#line 1019 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclarations = (List) getRhsSym(1); //#line 1019 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List InterfaceMemberDeclaration = (List) getRhsSym(2); //#line 1021 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" InterfaceMemberDeclarations.addAll(InterfaceMemberDeclaration); // setResult(l); break; } // // Rule 152: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 152: { //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" MethodDecl AbstractMethodDeclaration = (MethodDecl) getRhsSym(1); //#line 1029 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(AbstractMethodDeclaration); setResult(l); break; } // // Rule 153: InterfaceMemberDeclaration ::= ClassDeclaration // case 153: { //#line 1034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1036 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(ClassDeclaration); setResult(l); break; } // // Rule 154: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 154: { //#line 1041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl InterfaceDeclaration = (ClassDecl) getRhsSym(1); //#line 1043 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(InterfaceDeclaration); setResult(l); break; } // // Rule 155: InterfaceMemberDeclaration ::= ; // case 155: { //#line 1050 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Collections.EMPTY_LIST); break; } // // Rule 156: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 156: { //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiersopt = (Flags) getRhsSym(1); //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1054 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1056 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ClassMember.class, false); for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); l.add(nf.FieldDecl(pos(getRhsFirstTokenIndex(2), getRightSpan()), ConstantModifiersopt, nf.array(Type, pos(getRhsFirstTokenIndex(2), getRhsLastTokenIndex(2)), d.dims), d.name, d.init)); } setResult(l); break; } // // Rule 158: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 158: { //#line 1074 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifiers = (Flags) getRhsSym(1); //#line 1074 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags ConstantModifier = (Flags) getRhsSym(2); //#line 1076 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ConstantModifiers.set(ConstantModifier)); break; } // // Rule 159: ConstantModifier ::= public // case 159: { //#line 1084 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 160: ConstantModifier ::= static // case 160: { //#line 1089 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.STATIC); break; } // // Rule 161: ConstantModifier ::= final // case 161: { //#line 1094 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.FINAL); break; } // // Rule 163: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 163: { //#line 1101 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifiers = (Flags) getRhsSym(1); //#line 1101 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags AbstractMethodModifier = (Flags) getRhsSym(2); //#line 1103 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(AbstractMethodModifiers.set(AbstractMethodModifier)); break; } // // Rule 164: AbstractMethodModifier ::= public // case 164: { //#line 1111 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.PUBLIC); break; } // // Rule 165: AbstractMethodModifier ::= abstract // case 165: { //#line 1116 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.ABSTRACT); break; } // // Rule 166: SimpleName ::= identifier // case 166: { //#line 1172 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1174 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 167: ArrayInitializer ::= { VariableInitializersopt ,opt$opt } // case 167: { //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializersopt = (List) getRhsSym(2); //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Object opt = (Object) getRhsSym(3); //#line 1203 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (VariableInitializersopt == null) setResult(nf.ArrayInit(pos())); else setResult(nf.ArrayInit(pos(), VariableInitializersopt)); break; } // // Rule 168: VariableInitializers ::= VariableInitializer // case 168: { //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(1); //#line 1211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(VariableInitializer); setResult(l); break; } // // Rule 169: VariableInitializers ::= VariableInitializers , VariableInitializer // case 169: { //#line 1216 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableInitializers = (List) getRhsSym(1); //#line 1216 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr VariableInitializer = (Expr) getRhsSym(3); //#line 1218 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" VariableInitializers.add(VariableInitializer); //setResult(VariableInitializers); break; } // // Rule 170: Block ::= { BlockStatementsopt } // case 170: { //#line 1237 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatementsopt = (List) getRhsSym(2); //#line 1239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Block(pos(), BlockStatementsopt)); break; } // // Rule 171: BlockStatements ::= BlockStatement // case 171: { //#line 1243 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(1); //#line 1245 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.addAll(BlockStatement); setResult(l); break; } // // Rule 172: BlockStatements ::= BlockStatements BlockStatement // case 172: { //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(1); //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatement = (List) getRhsSym(2); //#line 1252 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" BlockStatements.addAll(BlockStatement); //setResult(l); break; } // // Rule 174: BlockStatement ::= ClassDeclaration // case 174: { //#line 1258 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ClassDecl ClassDeclaration = (ClassDecl) getRhsSym(1); //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), ClassDeclaration)); setResult(l); break; } // // Rule 175: BlockStatement ::= Statement // case 175: { //#line 1265 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(1); //#line 1267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(Statement); setResult(l); break; } // // Rule 177: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 177: { //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Flags VariableModifiersopt = (Flags) getRhsSym(1); //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1275 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List VariableDeclarators = (List) getRhsSym(3); //#line 1277 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), LocalDecl.class, false); List s = new TypedList(new LinkedList(), Stmt.class, false); if (VariableDeclarators != null) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext(); ) { X10VarDeclarator d = (X10VarDeclarator) i.next(); d.setFlag(VariableModifiersopt); // use d.flags below and not flags, setFlag may change it. l.add(nf.LocalDecl(d.pos, d.flags, nf.array(Type, pos(d), d.dims), d.name, d.init)); // [IP] TODO: Add X10Local with exploded variables if (d.hasExplodedVars()) s.addAll(X10Formal_c.explode(nf, ts, d.name, pos(d), d.flags, d.names())); } } l.addAll(s); setResult(l); break; } // // Rule 201: IfThenStatement ::= if ( Expression ) Statement // case 201: { //#line 1338 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1338 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1340 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, Statement)); break; } // // Rule 202: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 202: { //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(7); //#line 1346 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, StatementNoShortIf, Statement)); break; } // // Rule 203: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf$true_stmt else StatementNoShortIf$false_stmt // case 203: { //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt true_stmt = (Stmt) getRhsSym(5); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt false_stmt = (Stmt) getRhsSym(7); //#line 1352 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.If(pos(), Expression, true_stmt, false_stmt)); break; } // // Rule 204: EmptyStatement ::= ; // case 204: { //#line 1358 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Empty(pos())); break; } // // Rule 205: LabeledStatement ::= identifier : Statement // case 205: { //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(3); //#line 1364 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), Statement)); break; } // // Rule 206: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 206: { //#line 1368 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1368 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(3); //#line 1370 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Labeled(pos(), identifier.getIdentifier(), StatementNoShortIf)); break; } // // Rule 207: ExpressionStatement ::= StatementExpression ; // case 207: { //#line 1373 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1375 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Eval(pos(), StatementExpression)); break; } // // Rule 215: AssertStatement ::= assert Expression ; // case 215: { //#line 1396 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1398 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), Expression)); break; } // // Rule 216: AssertStatement ::= assert Expression$expr1 : Expression$expr2 ; // case 216: { //#line 1401 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr1 = (Expr) getRhsSym(2); //#line 1401 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr expr2 = (Expr) getRhsSym(4); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assert(pos(), expr1, expr2)); break; } // // Rule 217: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 217: { //#line 1407 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1407 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlock = (List) getRhsSym(5); //#line 1409 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Switch(pos(), Expression, SwitchBlock)); break; } // // Rule 218: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 218: { //#line 1413 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroupsopt = (List) getRhsSym(2); //#line 1413 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabelsopt = (List) getRhsSym(3); //#line 1415 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroupsopt.addAll(SwitchLabelsopt); setResult(SwitchBlockStatementGroupsopt); break; } // // Rule 220: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 220: { //#line 1421 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroups = (List) getRhsSym(1); //#line 1421 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchBlockStatementGroup = (List) getRhsSym(2); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchBlockStatementGroups.addAll(SwitchBlockStatementGroup); // setResult(SwitchBlockStatementGroups); break; } // // Rule 221: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 221: { //#line 1428 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1428 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List BlockStatements = (List) getRhsSym(2); //#line 1430 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), SwitchElement.class, false); l.addAll(SwitchLabels); l.add(nf.SwitchBlock(pos(), BlockStatements)); setResult(l); break; } // // Rule 222: SwitchLabels ::= SwitchLabel // case 222: { //#line 1437 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(1); //#line 1439 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Case.class, false); l.add(SwitchLabel); setResult(l); break; } // // Rule 223: SwitchLabels ::= SwitchLabels SwitchLabel // case 223: { //#line 1444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List SwitchLabels = (List) getRhsSym(1); //#line 1444 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Case SwitchLabel = (Case) getRhsSym(2); //#line 1446 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" SwitchLabels.add(SwitchLabel); //setResult(SwitchLabels); break; } // // Rule 224: SwitchLabel ::= case ConstantExpression : // case 224: { //#line 1451 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConstantExpression = (Expr) getRhsSym(2); //#line 1453 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Case(pos(), ConstantExpression)); break; } // // Rule 225: SwitchLabel ::= default : // case 225: { //#line 1460 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Default(pos())); break; } // // Rule 226: WhileStatement ::= while ( Expression ) Statement // case 226: { //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(5); //#line 1469 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, Statement)); break; } // // Rule 227: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 227: { //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1475 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.While(pos(), Expression, StatementNoShortIf)); break; } // // Rule 228: DoStatement ::= do Statement while ( Expression ) ; // case 228: { //#line 1479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(2); //#line 1479 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(5); //#line 1481 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Do(pos(), Statement, Expression)); break; } // // Rule 231: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 231: { //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1488 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt Statement = (Stmt) getRhsSym(9); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, Statement)); break; } // // Rule 232: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 232: { //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForInitopt = (List) getRhsSym(3); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(5); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ForUpdateopt = (List) getRhsSym(7); //#line 1494 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Stmt StatementNoShortIf = (Stmt) getRhsSym(9); //#line 1496 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.For(pos(), ForInitopt, Expressionopt, ForUpdateopt, StatementNoShortIf)); break; } // // Rule 234: ForInit ::= LocalVariableDeclaration // case 234: { //#line 1501 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List LocalVariableDeclaration = (List) getRhsSym(1); //#line 1503 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), ForInit.class, false); l.addAll(LocalVariableDeclaration); //setResult(l); break; } // // Rule 236: StatementExpressionList ::= StatementExpression // case 236: { //#line 1511 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(1); //#line 1513 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Eval.class, false); l.add(nf.Eval(pos(), StatementExpression)); setResult(l); break; } // // Rule 237: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 237: { //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List StatementExpressionList = (List) getRhsSym(1); //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr StatementExpression = (Expr) getRhsSym(3); //#line 1520 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" StatementExpressionList.add(nf.Eval(pos(), StatementExpression)); //setResult(StatementExpressionList); break; } // // Rule 238: BreakStatement ::= break identifieropt ; // case 238: { //#line 1528 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1530 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Break(pos())); else setResult(nf.Break(pos(), identifieropt.toString())); break; } // // Rule 239: ContinueStatement ::= continue identifieropt ; // case 239: { //#line 1536 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name identifieropt = (Name) getRhsSym(2); //#line 1538 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (identifieropt == null) setResult(nf.Continue(pos())); else setResult(nf.Continue(pos(), identifieropt.toString())); break; } // // Rule 240: ReturnStatement ::= return Expressionopt ; // case 240: { //#line 1544 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expressionopt = (Expr) getRhsSym(2); //#line 1546 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Return(pos(), Expressionopt)); break; } // // Rule 241: ThrowStatement ::= throw Expression ; // case 241: { //#line 1550 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1552 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Throw(pos(), Expression)); break; } // // Rule 242: TryStatement ::= try Block Catches // case 242: { //#line 1562 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1562 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(3); //#line 1564 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catches)); break; } // // Rule 243: TryStatement ::= try Block Catchesopt Finally // case 243: { //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catchesopt = (List) getRhsSym(3); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Finally = (Block) getRhsSym(4); //#line 1569 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Try(pos(), Block, Catchesopt, Finally)); break; } // // Rule 244: Catches ::= CatchClause // case 244: { //#line 1573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(1); //#line 1575 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Catch.class, false); l.add(CatchClause); setResult(l); break; } // // Rule 245: Catches ::= Catches CatchClause // case 245: { //#line 1580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List Catches = (List) getRhsSym(1); //#line 1580 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catch CatchClause = (Catch) getRhsSym(2); //#line 1582 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Catches.add(CatchClause); //setResult(Catches); break; } // // Rule 246: CatchClause ::= catch ( FormalParameter ) Block // case 246: { //#line 1587 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1587 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(5); //#line 1589 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Catch(pos(), FormalParameter, Block)); break; } // // Rule 247: Finally ::= finally Block // case 247: { //#line 1593 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Block Block = (Block) getRhsSym(2); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Block); break; } // // Rule 251: PrimaryNoNewArray ::= Type . class // case 251: { //#line 1613 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1615 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 252: PrimaryNoNewArray ::= void . class // case 252: { //#line 1634 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 253: PrimaryNoNewArray ::= this // case 253: { //#line 1640 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos())); break; } // // Rule 254: PrimaryNoNewArray ::= ClassName . this // case 254: { //#line 1643 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1645 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 255: PrimaryNoNewArray ::= ( Expression ) // case 255: { //#line 1648 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1650 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.ParExpr(pos(), Expression)); break; } // // Rule 260: Literal ::= IntegerLiteral$IntegerLiteral // case 260: { //#line 1658 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken IntegerLiteral = (IToken) getRhsIToken(1); //#line 1660 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.IntegerLiteral a = int_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 261: Literal ::= LongLiteral$LongLiteral // case 261: { //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken LongLiteral = (IToken) getRhsIToken(1); //#line 1666 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.LongLiteral a = long_lit(getRhsFirstTokenIndex(1)); setResult(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 262: Literal ::= FloatingPointLiteral$FloatLiteral // case 262: { //#line 1670 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken FloatLiteral = (IToken) getRhsIToken(1); //#line 1672 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.FloatLiteral a = float_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 263: Literal ::= DoubleLiteral$DoubleLiteral // case 263: { //#line 1676 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken DoubleLiteral = (IToken) getRhsIToken(1); //#line 1678 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.DoubleLiteral a = double_lit(getRhsFirstTokenIndex(1)); setResult(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 264: Literal ::= BooleanLiteral // case 264: { //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.BooleanLiteral BooleanLiteral = (polyglot.lex.BooleanLiteral) getRhsSym(1); //#line 1684 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.BooleanLit(pos(), BooleanLiteral.getValue().booleanValue())); break; } // // Rule 265: Literal ::= CharacterLiteral$CharacterLiteral // case 265: { //#line 1687 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken CharacterLiteral = (IToken) getRhsIToken(1); //#line 1689 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.CharacterLiteral a = char_lit(getRhsFirstTokenIndex(1)); setResult(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 266: Literal ::= StringLiteral$str // case 266: { //#line 1693 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken str = (IToken) getRhsIToken(1); //#line 1695 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.StringLiteral a = string_lit(getRhsFirstTokenIndex(1)); setResult(nf.StringLit(pos(), a.getValue())); break; } // // Rule 267: Literal ::= null // case 267: { //#line 1701 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.NullLit(pos())); break; } // // Rule 268: BooleanLiteral ::= true$trueLiteral // case 268: { //#line 1705 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken trueLiteral = (IToken) getRhsIToken(1); //#line 1707 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 269: BooleanLiteral ::= false$falseLiteral // case 269: { //#line 1710 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken falseLiteral = (IToken) getRhsIToken(1); //#line 1712 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(boolean_lit(getRhsFirstTokenIndex(1))); break; } // // Rule 270: ArgumentList ::= Expression // case 270: { //#line 1725 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(1); //#line 1727 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Expression); setResult(l); break; } // // Rule 271: ArgumentList ::= ArgumentList , Expression // case 271: { //#line 1732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentList = (List) getRhsSym(1); //#line 1732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 1734 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" ArgumentList.add(Expression); //setResult(ArgumentList); break; } // // Rule 272: DimExprs ::= DimExpr // case 272: { //#line 1768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(1); //#line 1770 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); setResult(l); break; } // // Rule 273: DimExprs ::= DimExprs DimExpr // case 273: { //#line 1775 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List DimExprs = (List) getRhsSym(1); //#line 1775 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr DimExpr = (Expr) getRhsSym(2); //#line 1777 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" DimExprs.add(DimExpr); //setResult(DimExprs); break; } // // Rule 274: DimExpr ::= [ Expression ] // case 274: { //#line 1782 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(2); //#line 1784 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Expression.position(pos())); break; } // // Rule 275: Dims ::= [ ] // case 275: { //#line 1790 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(1)); break; } // // Rule 276: Dims ::= Dims [ ] // case 276: { //#line 1793 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Integer Dims = (Integer) getRhsSym(1); //#line 1795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(Dims.intValue() + 1)); break; } // // Rule 277: FieldAccess ::= Primary . identifier // case 277: { //#line 1799 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Primary = (Expr) getRhsSym(1); //#line 1799 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1801 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(), Primary, identifier.getIdentifier())); break; } // // Rule 278: FieldAccess ::= super . identifier // case 278: { //#line 1804 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1806 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 279: FieldAccess ::= ClassName . super$sup . identifier // case 279: { //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ClassName = (Name) getRhsSym(1); //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" IToken sup = (IToken) getRhsIToken(3); //#line 1809 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 280: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 280: { //#line 1815 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name MethodName = (Name) getRhsSym(1); //#line 1815 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" List ArgumentListopt = (List) getRhsSym(3); //#line 1817 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Call(pos(), MethodName.prefix == null ? null : MethodName.prefix.toReceiver(), MethodName.name, ArgumentListopt)); break; } // // Rule 282: PostfixExpression ::= ExpressionName // case 282: { //#line 1840 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 1842 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 285: PostIncrementExpression ::= PostfixExpression ++ // case 285: { //#line 1848 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_INC)); break; } // // Rule 286: PostDecrementExpression ::= PostfixExpression -- // case 286: { //#line 1854 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr PostfixExpression = (Expr) getRhsSym(1); //#line 1856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), PostfixExpression, Unary.POST_DEC)); break; } // // Rule 289: UnaryExpression ::= + UnaryExpression // case 289: { //#line 1862 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1864 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.POS, UnaryExpression)); break; } // // Rule 290: UnaryExpression ::= - UnaryExpression // case 290: { //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1869 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NEG, UnaryExpression)); break; } // // Rule 292: PreIncrementExpression ::= ++ UnaryExpression // case 292: { //#line 1874 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1876 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_INC, UnaryExpression)); break; } // // Rule 293: PreDecrementExpression ::= -- UnaryExpression // case 293: { //#line 1880 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1882 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.PRE_DEC, UnaryExpression)); break; } // // Rule 295: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 295: { //#line 1887 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1889 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.BIT_NOT, UnaryExpression)); break; } // // Rule 296: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 296: { //#line 1892 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(2); //#line 1894 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Unary(pos(), Unary.NOT, UnaryExpression)); break; } // // Rule 299: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 299: { //#line 1906 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1906 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1908 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MUL, UnaryExpression)); break; } // // Rule 300: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 300: { //#line 1911 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1911 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.DIV, UnaryExpression)); break; } // // Rule 301: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 301: { //#line 1916 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(1); //#line 1916 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr UnaryExpression = (Expr) getRhsSym(3); //#line 1918 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), MultiplicativeExpression, Binary.MOD, UnaryExpression)); break; } // // Rule 303: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 303: { //#line 1923 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1923 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1925 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.ADD, MultiplicativeExpression)); break; } // // Rule 304: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 304: { //#line 1928 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(1); //#line 1928 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr MultiplicativeExpression = (Expr) getRhsSym(3); //#line 1930 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AdditiveExpression, Binary.SUB, MultiplicativeExpression)); break; } // // Rule 306: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 306: { //#line 1935 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1935 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(3); //#line 1937 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ShiftExpression, Binary.SHL, AdditiveExpression)); break; } // // Rule 307: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 307: { //#line 1940 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1940 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(4); //#line 1942 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.SHR, AdditiveExpression)); break; } // // Rule 308: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 308: { //#line 1946 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(1); //#line 1946 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AdditiveExpression = (Expr) getRhsSym(5); //#line 1948 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), ShiftExpression, Binary.USHR, AdditiveExpression)); break; } // // Rule 310: RelationalExpression ::= RelationalExpression < ShiftExpression // case 310: { //#line 1954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1954 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1956 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LT, ShiftExpression)); break; } // // Rule 311: RelationalExpression ::= RelationalExpression > ShiftExpression // case 311: { //#line 1959 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1959 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1961 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.GT, ShiftExpression)); break; } // // Rule 312: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 312: { //#line 1964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1964 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(3); //#line 1966 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), RelationalExpression, Binary.LE, ShiftExpression)); break; } // // Rule 313: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 313: { //#line 1969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1969 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ShiftExpression = (Expr) getRhsSym(4); //#line 1971 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(nf.Binary(pos(), RelationalExpression, Binary.GE, ShiftExpression)); break; } // // Rule 315: EqualityExpression ::= EqualityExpression == RelationalExpression // case 315: { //#line 1985 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1985 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1987 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.EQ, RelationalExpression)); break; } // // Rule 316: EqualityExpression ::= EqualityExpression != RelationalExpression // case 316: { //#line 1990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(1); //#line 1990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr RelationalExpression = (Expr) getRhsSym(3); //#line 1992 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), EqualityExpression, Binary.NE, RelationalExpression)); break; } // // Rule 318: AndExpression ::= AndExpression & EqualityExpression // case 318: { //#line 1997 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(1); //#line 1997 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr EqualityExpression = (Expr) getRhsSym(3); //#line 1999 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), AndExpression, Binary.BIT_AND, EqualityExpression)); break; } // // Rule 320: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 320: { //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(1); //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AndExpression = (Expr) getRhsSym(3); //#line 2006 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ExclusiveOrExpression, Binary.BIT_XOR, AndExpression)); break; } // // Rule 322: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 322: { //#line 2011 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(1); //#line 2011 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ExclusiveOrExpression = (Expr) getRhsSym(3); //#line 2013 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), InclusiveOrExpression, Binary.BIT_OR, ExclusiveOrExpression)); break; } // // Rule 324: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 324: { //#line 2018 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(1); //#line 2018 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr InclusiveOrExpression = (Expr) getRhsSym(3); //#line 2020 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalAndExpression, Binary.COND_AND, InclusiveOrExpression)); break; } // // Rule 326: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 326: { //#line 2025 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2025 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalAndExpression = (Expr) getRhsSym(3); //#line 2027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Binary(pos(), ConditionalOrExpression, Binary.COND_OR, ConditionalAndExpression)); break; } // // Rule 328: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 328: { //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalOrExpression = (Expr) getRhsSym(1); //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr Expression = (Expr) getRhsSym(3); //#line 2032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr ConditionalExpression = (Expr) getRhsSym(5); //#line 2034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Conditional(pos(), ConditionalOrExpression, Expression, ConditionalExpression)); break; } // // Rule 331: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 331: { //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr LeftHandSide = (Expr) getRhsSym(1); //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Assign.Operator AssignmentOperator = (Assign.Operator) getRhsSym(2); //#line 2041 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Expr AssignmentExpression = (Expr) getRhsSym(3); //#line 2043 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(nf.Assign(pos(), LeftHandSide, AssignmentOperator, AssignmentExpression)); break; } // // Rule 332: LeftHandSide ::= ExpressionName // case 332: { //#line 2047 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" Name ExpressionName = (Name) getRhsSym(1); //#line 2049 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(ExpressionName.toExpr()); break; } // // Rule 335: AssignmentOperator ::= = // case 335: { //#line 2057 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ASSIGN); break; } // // Rule 336: AssignmentOperator ::= *= // case 336: { //#line 2062 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MUL_ASSIGN); break; } // // Rule 337: AssignmentOperator ::= /= // case 337: { //#line 2067 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.DIV_ASSIGN); break; } // // Rule 338: AssignmentOperator ::= %= // case 338: { //#line 2072 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.MOD_ASSIGN); break; } // // Rule 339: AssignmentOperator ::= += // case 339: { //#line 2077 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.ADD_ASSIGN); break; } // // Rule 340: AssignmentOperator ::= -= // case 340: { //#line 2082 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SUB_ASSIGN); break; } // // Rule 341: AssignmentOperator ::= <<= // case 341: { //#line 2087 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.SHL_ASSIGN); break; } // // Rule 342: AssignmentOperator ::= > > = // case 342: { //#line 2092 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.SHR_ASSIGN); break; } // // Rule 343: AssignmentOperator ::= > > > = // case 343: { //#line 2098 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" // TODO: make sure that there is no space after the ">" signs setResult(Assign.USHR_ASSIGN); break; } // // Rule 344: AssignmentOperator ::= &= // case 344: { //#line 2104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_AND_ASSIGN); break; } // // Rule 345: AssignmentOperator ::= ^= // case 345: { //#line 2109 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_XOR_ASSIGN); break; } // // Rule 346: AssignmentOperator ::= |= // case 346: { //#line 2114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Assign.BIT_OR_ASSIGN); break; } // // Rule 349: Dimsopt ::= $Empty // case 349: { //#line 2127 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Integer(0)); break; } // // Rule 351: Catchesopt ::= $Empty // case 351: { //#line 2134 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 353: identifieropt ::= $Empty // case 353: setResult(null); break; // // Rule 354: identifieropt ::= identifier // case 354: { //#line 2141 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 2143 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 355: ForUpdateopt ::= $Empty // case 355: { //#line 2149 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 357: Expressionopt ::= $Empty // case 357: setResult(null); break; // // Rule 359: ForInitopt ::= $Empty // case 359: { //#line 2160 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 361: SwitchLabelsopt ::= $Empty // case 361: { //#line 2167 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 363: SwitchBlockStatementGroupsopt ::= $Empty // case 363: { //#line 2174 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 365: VariableModifiersopt ::= $Empty // case 365: { //#line 2181 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 367: VariableInitializersopt ::= $Empty // case 367: setResult(null); break; // // Rule 369: AbstractMethodModifiersopt ::= $Empty // case 369: { //#line 2211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 371: ConstantModifiersopt ::= $Empty // case 371: { //#line 2218 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 373: InterfaceMemberDeclarationsopt ::= $Empty // case 373: { //#line 2225 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 375: ExtendsInterfacesopt ::= $Empty // case 375: { //#line 2232 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 377: InterfaceModifiersopt ::= $Empty // case 377: { //#line 2239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 379: ClassBodyopt ::= $Empty // case 379: setResult(null); break; // // Rule 381: Argumentsopt ::= $Empty // case 381: setResult(null); break; // // Rule 382: Argumentsopt ::= Arguments // case 382: throw new Error("No action specified for rule " + 382); // // Rule 383: ,opt ::= $Empty // case 383: setResult(null); break; // // Rule 385: ArgumentListopt ::= $Empty // case 385: { //#line 2269 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 387: BlockStatementsopt ::= $Empty // case 387: { //#line 2276 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 389: ExplicitConstructorInvocationopt ::= $Empty // case 389: setResult(null); break; // // Rule 391: ConstructorModifiersopt ::= $Empty // case 391: { //#line 2287 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 393: ...opt ::= $Empty // case 393: setResult(null); break; // // Rule 395: FormalParameterListopt ::= $Empty // case 395: { //#line 2298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 397: Throwsopt ::= $Empty // case 397: { //#line 2305 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 399: MethodModifiersopt ::= $Empty // case 399: { //#line 2312 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 401: FieldModifiersopt ::= $Empty // case 401: { //#line 2319 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 403: ClassBodyDeclarationsopt ::= $Empty // case 403: { //#line 2326 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 405: Interfacesopt ::= $Empty // case 405: { //#line 2333 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 407: Superopt ::= $Empty // case 407: { //#line 2340 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new Name(nf, ts, pos(), "x10.lang.Object").toType()); break; } // // Rule 409: ClassModifiersopt ::= $Empty // case 409: { //#line 2351 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(Flags.NONE); break; } // // Rule 411: TypeDeclarationsopt ::= $Empty // case 411: { //#line 2363 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 413: ImportDeclarationsopt ::= $Empty // case 413: { //#line 2370 "C:/eclipse/ws6/x10.compiler/src/x10/parser/GJavaParserForX10.gi" setResult(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 415: PackageDeclarationopt ::= $Empty // case 415: setResult(null); break; // // Rule 417: ClassType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 417: { //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 715 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 717 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 418: InterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 418: { //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 726 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParametersopt == null ? TypeName.toType() : ((X10TypeNode) TypeName.toType()).dep(null, DepParametersopt)); break; } // // Rule 419: PackageDeclaration ::= package PackageName ; // case 419: { //#line 732 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name PackageName = (Name) getRhsSym(2); //#line 734 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(PackageName.toPackage()); break; } // // Rule 420: NormalClassDeclaration ::= X10ClassModifiersopt class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 420: { //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 738 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 740 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(X10Flags.isValue(X10ClassModifiersopt) ? nf.ValueClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody) : nf.ClassDecl(pos(), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 422: X10ClassModifiers ::= X10ClassModifiers X10ClassModifier // case 422: { //#line 753 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiers = (X10Flags) getRhsSym(1); //#line 753 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifier = (X10Flags) getRhsSym(2); //#line 755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags result = X10ClassModifiers.setX(X10ClassModifier); setResult(result); break; } // // Rule 423: X10ClassModifier ::= ClassModifier // case 423: { //#line 761 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags ClassModifier = (Flags) getRhsSym(1); //#line 763 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(ClassModifier)); break; } // // Rule 424: X10ClassModifier ::= safe // case 424: { //#line 768 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 425: PropertyList ::= ( Properties WhereClauseopt ) // case 425: { //#line 772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(2); //#line 772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(3); //#line 774 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = Properties; result[1] = WhereClauseopt; setResult(result); break; } // // Rule 426: PropertyList ::= ( WhereClause ) // case 426: { //#line 779 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(2); //#line 781 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] result = new Object[2]; result[0] = null; result[1] = WhereClause; setResult(result); break; } // // Rule 427: Properties ::= Property // case 427: { //#line 788 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(1); //#line 790 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), PropertyDecl.class, false); l.add(Property); setResult(l); break; } // // Rule 428: Properties ::= Properties , Property // case 428: { //#line 795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Properties = (List) getRhsSym(1); //#line 795 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" PropertyDecl Property = (PropertyDecl) getRhsSym(3); //#line 797 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Properties.add(Property); // setResult(FormalParameters); break; } // // Rule 429: Property ::= Type identifier // case 429: { //#line 803 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 803 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(2); //#line 805 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.PropertyDecl(pos(), Flags.PUBLIC.Final(), Type, identifier.getIdentifier())); break; } // // Rule 430: MethodHeader ::= ThisClauseopt MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 430: { //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags MethodModifiersopt = (Flags) getRhsSym(2); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 811 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 813 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name c = (MethodDeclarator != null) ? (Name) MethodDeclarator[0] : null; List d = (MethodDeclarator != null) ? (List) MethodDeclarator[1] : null; Integer e = (MethodDeclarator != null) ? (Integer) MethodDeclarator[2] : null; Expr where = (MethodDeclarator != null) ? (Expr) MethodDeclarator[3] : null; if (ResultType.type() == ts.Void() && e != null && e.intValue() > 0) { // TODO: error!!! System.err.println("Fix me - encountered method returning void but with non-zero rank?"); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, MethodModifiersopt, nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e != null ? e.intValue() : 1), c != null ? c.toString() : "", d, where, Throwsopt, null)); break; } // // Rule 431: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 431: { //#line 835 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), ArgumentListopt)); break; } // // Rule 432: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 432: { //#line 840 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(3); //#line 842 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), ArgumentListopt)); break; } // // Rule 433: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 433: { //#line 845 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 845 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 847 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ThisCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 434: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 434: { //#line 850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 850 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 852 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.SuperCall(pos(), Primary, ArgumentListopt)); break; } // // Rule 435: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier PropertyListopt ExtendsInterfacesopt InterfaceBody // case 435: { //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags InterfaceModifiersopt = (Flags) getRhsSym(1); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ExtendsInterfacesopt = (List) getRhsSym(5); //#line 856 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody InterfaceBody = (ClassBody) getRhsSym(6); //#line 858 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt == null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt == null ? null : (Expr) PropertyListopt[1]; setResult(nf.ClassDecl(pos(), InterfaceModifiersopt.Interface(), identifier.getIdentifier(), props, ci, null, ExtendsInterfacesopt, InterfaceBody)); break; } // // Rule 436: AbstractMethodDeclaration ::= ThisClauseopt AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 436: { //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags AbstractMethodModifiersopt = (Flags) getRhsSym(2); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ResultType = (TypeNode) getRhsSym(3); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(4); //#line 873 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(5); //#line 875 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name c = (Name) MethodDeclarator[0]; List d = (List) MethodDeclarator[1]; Integer e = (Integer) MethodDeclarator[2]; Expr where = (Expr) MethodDeclarator[3]; if (ResultType.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } setResult(nf.MethodDecl(pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(4)), ThisClauseopt, AbstractMethodModifiersopt , nf.array((TypeNode) ResultType, pos(getRhsFirstTokenIndex(3), getRhsLastTokenIndex(3)), e.intValue()), c.toString(), d, where, Throwsopt, null)); break; } // // Rule 437: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 437: { //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ClassOrInterfaceType = (TypeNode) getRhsSym(2); //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(4); //#line 898 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(6); //#line 900 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ClassBodyopt == null) setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt)); else setResult(nf.New(pos(), ClassOrInterfaceType, ArgumentListopt, ClassBodyopt)); break; } // // Rule 438: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 438: { //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 905 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 907 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), Primary, b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 439: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 439: { //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name AmbiguousName = (Name) getRhsSym(1); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(6); //#line 913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBodyopt = (ClassBody) getRhsSym(8); //#line 915 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name b = new Name(nf, ts, pos(), identifier.getIdentifier()); if (ClassBodyopt == null) setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt)); else setResult(nf.New(pos(), AmbiguousName.toExpr(), b.toType(), ArgumentListopt, ClassBodyopt)); break; } // // Rule 440: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 440: { //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Primary = (Expr) getRhsSym(1); //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 924 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), Primary, identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 441: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 441: { //#line 927 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 927 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(5); //#line 929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getLeftSpan())), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 442: MethodInvocation ::= ClassName . super$sup . identifier ( ArgumentListopt ) // case 442: { //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 932 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentListopt = (List) getRhsSym(7); //#line 934 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Call(pos(), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier(), ArgumentListopt)); break; } // // Rule 444: AssignPropertyCall ::= property ( ArgumentList ) // case 444: { //#line 939 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 941 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AssignPropertyCall(pos(), ArgumentList)); break; } // // Rule 445: Type ::= DataType // case 445: { //#line 950 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(1); //#line 952 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 446: Type ::= nullable < Type > DepParametersopt // case 446: { //#line 955 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 955 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(5); //#line 957 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode t = nf.Nullable(pos(), Type); setResult(DepParametersopt == null ? t : t.dep(null, DepParametersopt)); break; } // // Rule 447: Type ::= future < Type > // case 447: { //#line 963 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 965 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 451: PrimitiveType ::= NumericType DepParametersopt // case 451: { //#line 980 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode NumericType = (TypeNode) getRhsSym(1); //#line 980 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 982 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parser: parsed PrimitiveType |" + NumericType + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? NumericType : ((X10TypeNode) NumericType).dep(null, DepParametersopt)); break; } // // Rule 452: PrimitiveType ::= boolean DepParametersopt // case 452: { //#line 988 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 990 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode res = (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.Boolean()); setResult(DepParametersopt==null ? res : res.dep(null, DepParametersopt)); break; } // // Rule 457: ClassOrInterfaceType ::= TypeName DepParametersopt PlaceTypeSpecifieropt // case 457: { //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name TypeName = (Name) getRhsSym(1); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1002 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object PlaceTypeSpecifieropt = (Object) getRhsSym(3); //#line 1004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10TypeNode type; if (ts.isPrimitiveTypeName(TypeName.name)) { try { type= (X10TypeNode) nf.CanonicalTypeNode(pos(), ts.primitiveForName(TypeName.name)); } catch (SemanticException e) { throw new InternalCompilerError("Unable to create primitive type for '" + TypeName.name + "'!"); } } else type= (X10TypeNode) TypeName.toType(); // System.out.println("Parser: parsed ClassOrInterfaceType |" + TypeName + "| |" + DepParametersopt +"|"); setResult(DepParametersopt == null ? type : type.dep(null, DepParametersopt)); break; } // // Rule 458: DepParameters ::= ( DepParameterExpr ) // case 458: { //#line 1021 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(2); //#line 1023 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParameterExpr); break; } // // Rule 459: DepParameterExpr ::= ArgumentList WhereClauseopt // case 459: { //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(1); //#line 1027 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(2); //#line 1029 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), ArgumentList, WhereClauseopt)); break; } // // Rule 460: DepParameterExpr ::= WhereClause // case 460: { //#line 1032 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClause = (Expr) getRhsSym(1); //#line 1034 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.DepParameterExpr(pos(), Collections.EMPTY_LIST, WhereClause)); break; } // // Rule 461: WhereClause ::= : ConstExpression // case 461: { //#line 1038 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1040 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 462: ConstPrimary ::= Literal // case 462: { //#line 1045 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.ast.Lit Literal = (polyglot.ast.Lit) getRhsSym(1); //#line 1047 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Literal); break; } // // Rule 463: ConstPrimary ::= Type . class // case 463: { //#line 1050 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1052 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (Type instanceof Name) { Name a = (Name) Type; setResult(nf.ClassLit(pos(), a.toType())); } else if (Type instanceof TypeNode) { setResult(nf.ClassLit(pos(), Type)); } else if (Type instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) Type; setResult(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 464: ConstPrimary ::= void . class // case 464: { //#line 1071 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(getLeftSpan()), ts.Void()))); break; } // // Rule 465: ConstPrimary ::= this // case 465: { //#line 1077 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos())); break; } // // Rule 466: ConstPrimary ::= here // case 466: { //#line 1082 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Here(pos())); break; } // // Rule 467: ConstPrimary ::= ClassName . this // case 467: { //#line 1085 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1087 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.This(pos(), ClassName.toType())); break; } // // Rule 468: ConstPrimary ::= ( ConstExpression ) // case 468: { //#line 1090 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(2); //#line 1092 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExpression); break; } // // Rule 470: ConstPrimary ::= self // case 470: { //#line 1098 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Self(pos())); break; } // // Rule 471: ConstPostfixExpression ::= ConstPrimary // case 471: { //#line 1104 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1106 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstPrimary); break; } // // Rule 472: ConstPostfixExpression ::= ExpressionName // case 472: { //#line 1109 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1111 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ExpressionName.toExpr()); break; } // // Rule 473: ConstUnaryExpression ::= ConstPostfixExpression // case 473: { //#line 1114 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPostfixExpression = (Expr) getRhsSym(1); //#line 1116 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstPostfixExpression); break; } // // Rule 474: ConstUnaryExpression ::= + ConstUnaryExpression // case 474: { //#line 1119 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1121 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.POS, ConstUnaryExpression)); break; } // // Rule 475: ConstUnaryExpression ::= - ConstUnaryExpression // case 475: { //#line 1124 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1126 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NEG, ConstUnaryExpression)); break; } // // Rule 476: ConstUnaryExpression ::= ! ConstUnaryExpression // case 476: { //#line 1129 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(2); //#line 1131 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Unary(pos(), Unary.NOT, ConstUnaryExpression)); break; } // // Rule 477: ConstMultiplicativeExpression ::= ConstUnaryExpression // case 477: { //#line 1135 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(1); //#line 1137 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstUnaryExpression); break; } // // Rule 478: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression * ConstUnaryExpression // case 478: { //#line 1140 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1140 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1142 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MUL, ConstUnaryExpression)); break; } // // Rule 479: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression / ConstUnaryExpression // case 479: { //#line 1145 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1145 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1147 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.DIV, ConstUnaryExpression)); break; } // // Rule 480: ConstMultiplicativeExpression ::= ConstMultiplicativeExpression % ConstUnaryExpression // case 480: { //#line 1150 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1150 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstUnaryExpression = (Expr) getRhsSym(3); //#line 1152 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstMultiplicativeExpression, Binary.MOD, ConstUnaryExpression)); break; } // // Rule 481: ConstAdditiveExpression ::= ConstMultiplicativeExpression // case 481: { //#line 1156 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(1); //#line 1158 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstMultiplicativeExpression); break; } // // Rule 482: ConstAdditiveExpression ::= ConstAdditiveExpression + ConstMultiplicativeExpression // case 482: { //#line 1161 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1161 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1163 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.ADD, ConstMultiplicativeExpression)); break; } // // Rule 483: ConstAdditiveExpression ::= ConstAdditiveExpression - ConstMultiplicativeExpression // case 483: { //#line 1166 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1166 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstMultiplicativeExpression = (Expr) getRhsSym(3); //#line 1168 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAdditiveExpression, Binary.SUB, ConstMultiplicativeExpression)); break; } // // Rule 484: ConstRelationalExpression ::= ConstAdditiveExpression // case 484: { //#line 1173 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(1); //#line 1175 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstAdditiveExpression); break; } // // Rule 485: ConstRelationalExpression ::= ConstRelationalExpression < ConstAdditiveExpression // case 485: { //#line 1178 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1178 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1180 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LT, ConstAdditiveExpression)); break; } // // Rule 486: ConstRelationalExpression ::= ConstRelationalExpression > ConstAdditiveExpression // case 486: { //#line 1183 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1183 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1185 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GT, ConstAdditiveExpression)); break; } // // Rule 487: ConstRelationalExpression ::= ConstRelationalExpression <= ConstAdditiveExpression // case 487: { //#line 1188 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1188 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(3); //#line 1190 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.LE, ConstAdditiveExpression)); break; } // // Rule 488: ConstRelationalExpression ::= ConstRelationalExpression > = ConstAdditiveExpression // case 488: { //#line 1193 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1193 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAdditiveExpression = (Expr) getRhsSym(4); //#line 1195 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstRelationalExpression, Binary.GE, ConstAdditiveExpression)); break; } // // Rule 489: ConstEqualityExpression ::= ConstRelationalExpression // case 489: { //#line 1199 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(1); //#line 1201 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstRelationalExpression); break; } // // Rule 490: ConstEqualityExpression ::= ConstEqualityExpression == ConstRelationalExpression // case 490: { //#line 1204 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1204 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1206 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.EQ, ConstRelationalExpression)); break; } // // Rule 491: ConstEqualityExpression ::= ConstEqualityExpression != ConstRelationalExpression // case 491: { //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1209 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstRelationalExpression = (Expr) getRhsSym(3); //#line 1211 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstEqualityExpression, Binary.NE, ConstRelationalExpression)); break; } // // Rule 492: ConstAndExpression ::= ConstEqualityExpression // case 492: { //#line 1215 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(1); //#line 1217 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstEqualityExpression); break; } // // Rule 493: ConstAndExpression ::= ConstAndExpression && ConstEqualityExpression // case 493: { //#line 1220 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1220 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstEqualityExpression = (Expr) getRhsSym(3); //#line 1222 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstAndExpression, Binary.COND_AND, ConstEqualityExpression)); break; } // // Rule 494: ConstExclusiveOrExpression ::= ConstAndExpression // case 494: { //#line 1226 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(1); //#line 1228 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstAndExpression); break; } // // Rule 495: ConstExclusiveOrExpression ::= ConstExclusiveOrExpression ^ ConstAndExpression // case 495: { //#line 1231 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1231 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstAndExpression = (Expr) getRhsSym(3); //#line 1233 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstExclusiveOrExpression, Binary.BIT_XOR, ConstAndExpression)); break; } // // Rule 496: ConstInclusiveOrExpression ::= ConstExclusiveOrExpression // case 496: { //#line 1237 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(1); //#line 1239 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstExclusiveOrExpression); break; } // // Rule 497: ConstInclusiveOrExpression ::= ConstInclusiveOrExpression || ConstExclusiveOrExpression // case 497: { //#line 1242 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1242 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExclusiveOrExpression = (Expr) getRhsSym(3); //#line 1244 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Binary(pos(), ConstInclusiveOrExpression, Binary.COND_OR, ConstExclusiveOrExpression)); break; } // // Rule 498: ConstExpression ::= ConstInclusiveOrExpression // case 498: { //#line 1248 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1250 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ConstInclusiveOrExpression); break; } // // Rule 499: ConstExpression ::= ConstInclusiveOrExpression ? ConstExpression$first : ConstExpression // case 499: { //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstInclusiveOrExpression = (Expr) getRhsSym(1); //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr first = (Expr) getRhsSym(3); //#line 1253 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstExpression = (Expr) getRhsSym(5); //#line 1255 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Conditional(pos(), ConstInclusiveOrExpression, first, ConstExpression)); break; } // // Rule 500: ConstFieldAccess ::= ConstPrimary . identifier // case 500: { //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr ConstPrimary = (Expr) getRhsSym(1); //#line 1260 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1262 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(), ConstPrimary, identifier.getIdentifier())); break; } // // Rule 501: ConstFieldAccess ::= super . identifier // case 501: { //#line 1265 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1267 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getLeftSpan())), identifier.getIdentifier())); break; } // // Rule 502: ConstFieldAccess ::= ClassName . super$sup . identifier // case 502: { //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ClassName = (Name) getRhsSym(1); //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken sup = (IToken) getRhsIToken(3); //#line 1270 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(5); //#line 1272 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Field(pos(getRightSpan()), nf.Super(pos(getRhsFirstTokenIndex(3)), ClassName.toType()), identifier.getIdentifier())); break; } // // Rule 504: X10ArrayType ::= Type [ . ] // case 504: { //#line 1288 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1290 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, null)); break; } // // Rule 505: X10ArrayType ::= Type value [ . ] // case 505: { //#line 1293 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1295 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, null)); break; } // // Rule 506: X10ArrayType ::= Type [ DepParameterExpr ] // case 506: { //#line 1298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1298 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(3); //#line 1300 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, false, DepParameterExpr)); break; } // // Rule 507: X10ArrayType ::= Type value [ DepParameterExpr ] // case 507: { //#line 1303 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(1); //#line 1303 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameterExpr = (DepParameterExpr) getRhsSym(4); //#line 1305 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.X10ArrayTypeNode(pos(), Type, true, DepParameterExpr)); break; } // // Rule 508: ObjectKind ::= value // case 508: throw new Error("No action specified for rule " + 508); // // Rule 509: ObjectKind ::= reference // case 509: throw new Error("No action specified for rule " + 509); // // Rule 510: MethodModifier ::= atomic // case 510: { //#line 1319 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.ATOMIC); break; } // // Rule 511: MethodModifier ::= extern // case 511: { //#line 1324 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Flags.NATIVE); break; } // // Rule 512: MethodModifier ::= safe // case 512: { //#line 1329 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SAFE); break; } // // Rule 513: MethodModifier ::= sequential // case 513: { //#line 1334 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.SEQUENTIAL); break; } // // Rule 514: MethodModifier ::= local // case 514: { //#line 1339 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.LOCAL); break; } // // Rule 515: MethodModifier ::= nonblocking // case 515: { //#line 1344 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.NON_BLOCKING); break; } // // Rule 517: ValueClassDeclaration ::= X10ClassModifiersopt value identifier PropertyListopt Superopt Interfacesopt ClassBody // case 517: { //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(4); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(5); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(6); //#line 1350 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(7); //#line 1352 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 518: ValueClassDeclaration ::= X10ClassModifiersopt value class identifier PropertyListopt Superopt Interfacesopt ClassBody // case 518: { //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Flags X10ClassModifiersopt = (X10Flags) getRhsSym(1); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(4); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] PropertyListopt = (Object[]) getRhsSym(5); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Superopt = (TypeNode) getRhsSym(6); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Interfacesopt = (List) getRhsSym(7); //#line 1360 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClassBody ClassBody = (ClassBody) getRhsSym(8); //#line 1362 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" checkTypeName(identifier); List/*<PropertyDecl>*/ props = PropertyListopt==null ? null : (List) PropertyListopt[0]; Expr ci = PropertyListopt==null ? null : (Expr) PropertyListopt[1]; setResult(nf.ValueClassDecl(pos(getLeftSpan(), getRightSpan()), X10ClassModifiersopt, identifier.getIdentifier(), props, ci, Superopt, Interfacesopt, ClassBody)); break; } // // Rule 519: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 519: { //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags ConstructorModifiersopt = (Flags) getRhsSym(1); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] ConstructorDeclarator = (Object[]) getRhsSym(2); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List Throwsopt = (List) getRhsSym(3); //#line 1371 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block ConstructorBody = (Block) getRhsSym(4); //#line 1373 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name a = (Name) ConstructorDeclarator[1]; DepParameterExpr c = (DepParameterExpr) ConstructorDeclarator[2]; List b = (List) ConstructorDeclarator[3]; Expr e = (Expr) ConstructorDeclarator[4]; setResult(nf.ConstructorDecl(pos(), ConstructorModifiersopt, a.toString(), c, b, e, Throwsopt, ConstructorBody)); break; } // // Rule 520: ConstructorDeclarator ::= SimpleTypeName DepParametersopt ( FormalParameterListopt WhereClauseopt ) // case 520: { //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name SimpleTypeName = (Name) getRhsSym(1); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParametersopt = (DepParameterExpr) getRhsSym(2); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(4); //#line 1381 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(5); //#line 1383 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] a = new Object[5]; a[1] = SimpleTypeName; a[2] = DepParametersopt; a[3] = FormalParameterListopt; a[4] = WhereClauseopt; setResult(a); break; } // // Rule 521: ThisClause ::= this DepParameters // case 521: { //#line 1391 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr DepParameters = (DepParameterExpr) getRhsSym(2); //#line 1393 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DepParameters); break; } // // Rule 522: Super ::= extends DataType // case 522: { //#line 1397 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode DataType = (TypeNode) getRhsSym(2); //#line 1399 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(DataType); break; } // // Rule 523: MethodDeclarator ::= identifier ( FormalParameterListopt WhereClauseopt ) // case 523: { //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List FormalParameterListopt = (List) getRhsSym(3); //#line 1403 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr WhereClauseopt = (Expr) getRhsSym(4); //#line 1405 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // System.out.println("Parsing methoddeclarator..."); Object[] a = new Object[5]; a[0] = new Name(nf, ts, pos(), identifier.getIdentifier()); a[1] = FormalParameterListopt; a[2] = new Integer(0); a[3] = WhereClauseopt; setResult(a); break; } // // Rule 524: MethodDeclarator ::= MethodDeclarator [ ] // case 524: { //#line 1415 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object[] MethodDeclarator = (Object[]) getRhsSym(1); //#line 1417 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" MethodDeclarator[2] = new Integer(((Integer) MethodDeclarator[2]).intValue() + 1); // setResult(MethodDeclarator); break; } // // Rule 525: FieldDeclaration ::= ThisClauseopt FieldModifiersopt Type VariableDeclarators ; // case 525: { //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" DepParameterExpr ThisClauseopt = (DepParameterExpr) getRhsSym(1); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Flags FieldModifiersopt = (Flags) getRhsSym(2); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1423 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List VariableDeclarators = (List) getRhsSym(4); //#line 1425 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), ClassMember.class, false); if (VariableDeclarators != null && VariableDeclarators.size() > 0) { for (Iterator i = VariableDeclarators.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); d.setFlag(FieldModifiersopt); l.add(nf.FieldDecl(d.position(), ThisClauseopt, d.flags, nf.array(Type, Type.position(), d.dims), d.name, d.init)); } } setResult(l); break; } // // Rule 526: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt Dims ArrayInitializer // case 526: { //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(4); //#line 1459 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ArrayInit ArrayInitializer = (ArrayInit) getRhsSym(5); //#line 1461 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Dims.intValue(), ArrayInitializer)); break; } // // Rule 527: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr Dims // case 527: { //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1465 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dims = (Integer) getRhsSym(5); //#line 1467 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); setResult(nf.NewArray(pos(), ArrayBaseType, Collections.singletonList(DimExpr), Dims.intValue())); break; } // // Rule 528: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt DimExpr DimExprs Dimsopt // case 528: { //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(3); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr DimExpr = (Expr) getRhsSym(4); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List DimExprs = (List) getRhsSym(5); //#line 1471 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Integer Dimsopt = (Integer) getRhsSym(6); //#line 1473 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // setResult(nf.ArrayConstructor(pos(), a, false, null, d)); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(DimExpr); l.addAll(DimExprs); setResult(nf.NewArray(pos(), ArrayBaseType, l, Dimsopt.intValue())); break; } // // Rule 529: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] // case 529: { //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1480 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1482 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, null)); break; } // // Rule 530: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression$distr ] Expression$initializer // case 530: { //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr distr = (Expr) getRhsSym(6); //#line 1485 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr initializer = (Expr) getRhsSym(8); //#line 1487 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, distr, initializer)); break; } // // Rule 531: ArrayCreationExpression ::= new ArrayBaseType Valueopt Unsafeopt [ Expression ] ($lparen FormalParameter ) MethodBody // case 531: { //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode ArrayBaseType = (TypeNode) getRhsSym(2); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Valueopt = (Object) getRhsSym(3); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Object Unsafeopt = (Object) getRhsSym(4); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(6); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken lparen = (IToken) getRhsIToken(8); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(9); //#line 1490 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block MethodBody = (Block) getRhsSym(11); //#line 1492 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr initializer = makeInitializer( pos(getRhsFirstTokenIndex(8), getRightSpan()), ArrayBaseType, FormalParameter, MethodBody ); setResult(nf.ArrayConstructor(pos(), ArrayBaseType, Unsafeopt != null, Valueopt != null, Expression, initializer)); break; } // // Rule 532: Valueopt ::= $Empty // case 532: setResult(null); break; // // Rule 533: Valueopt ::= value // case 533: { //#line 1501 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 536: ArrayBaseType ::= nullable < Type > // case 536: { //#line 1508 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1510 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Nullable(pos(), Type)); break; } // // Rule 537: ArrayBaseType ::= future < Type > // case 537: { //#line 1513 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1515 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), Type)); break; } // // Rule 538: ArrayBaseType ::= ( Type ) // case 538: { //#line 1518 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1520 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Type); break; } // // Rule 539: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 539: { //#line 1524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name ExpressionName = (Name) getRhsSym(1); //#line 1524 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1526 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), ExpressionName.toExpr(), (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), ExpressionName.toExpr(), ArgumentList)); break; } // // Rule 540: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 540: { //#line 1531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PrimaryNoNewArray = (Expr) getRhsSym(1); //#line 1531 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ArgumentList = (List) getRhsSym(3); //#line 1533 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" if (ArgumentList.size() == 1) setResult(nf.X10ArrayAccess1(pos(), PrimaryNoNewArray, (Expr) ArgumentList.get(0))); else setResult(nf.X10ArrayAccess(pos(), PrimaryNoNewArray, ArgumentList)); break; } // // Rule 557: NowStatement ::= now ( Clock ) Statement // case 557: { //#line 1559 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1559 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1561 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, Statement)); break; } // // Rule 558: ClockedClause ::= clocked ( ClockList ) // case 558: { //#line 1565 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(3); //#line 1567 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(ClockList); break; } // // Rule 559: AsyncStatement ::= async PlaceExpressionSingleListopt ClockedClauseopt Statement // case 559: { //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1571 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(4); //#line 1573 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, Statement)); break; } // // Rule 560: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 560: { //#line 1581 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1581 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(3); //#line 1583 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Statement)); break; } // // Rule 561: WhenStatement ::= when ( Expression ) Statement // case 561: { //#line 1590 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1590 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(5); //#line 1592 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, Statement)); break; } // // Rule 562: WhenStatement ::= WhenStatement or$or ( Expression ) Statement // case 562: { //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1595 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(6); //#line 1597 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, Statement); setResult(WhenStatement); break; } // // Rule 563: ForEachStatement ::= foreach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 563: { //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1602 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1604 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 564: AtEachStatement ::= ateach ( FormalParameter : Expression ) ClockedClauseopt Statement // case 564: { //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1612 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(8); //#line 1614 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, Statement)); break; } // // Rule 565: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 565: { //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1622 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(7); //#line 1624 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, Statement)); break; } // // Rule 566: FinishStatement ::= finish Statement // case 566: { //#line 1631 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt Statement = (Stmt) getRhsSym(2); //#line 1633 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), Statement)); break; } // // Rule 567: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 567: { //#line 1638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1638 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1640 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Now(pos(), Clock, StatementNoShortIf)); break; } // // Rule 568: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt ClockedClauseopt StatementNoShortIf // case 568: { //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(3); //#line 1644 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(4); //#line 1646 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Async(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 569: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 569: { //#line 1653 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1655 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Atomic(pos(), nf.Here(pos(getLeftSpan())), StatementNoShortIf)); break; } // // Rule 570: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 570: { //#line 1659 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1659 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(5); //#line 1661 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.When(pos(), Expression, StatementNoShortIf)); break; } // // Rule 571: WhenStatementNoShortIf ::= WhenStatement or$or ( Expression ) StatementNoShortIf // case 571: { //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" When WhenStatement = (When) getRhsSym(1); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IToken or = (IToken) getRhsIToken(2); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1664 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(6); //#line 1666 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" WhenStatement.addBranch(pos(getRhsFirstTokenIndex(2), getRightSpan()), Expression, StatementNoShortIf); setResult(WhenStatement); break; } // // Rule 572: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 572: { //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1671 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1673 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 573: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) ClockedClauseopt StatementNoShortIf // case 573: { //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockedClauseopt = (List) getRhsSym(7); //#line 1682 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(8); //#line 1684 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.AtEach(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, ClockedClauseopt, StatementNoShortIf)); break; } // // Rule 574: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 574: { //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" X10Formal FormalParameter = (X10Formal) getRhsSym(3); //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(5); //#line 1692 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(7); //#line 1694 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.ForLoop(pos(), FormalParameter.flags(FormalParameter.flags().Final()), Expression, StatementNoShortIf)); break; } // // Rule 575: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 575: { //#line 1701 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Stmt StatementNoShortIf = (Stmt) getRhsSym(2); //#line 1703 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Finish(pos(), StatementNoShortIf)); break; } // // Rule 576: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 576: { //#line 1708 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpression = (Expr) getRhsSym(2); //#line 1710 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(PlaceExpression); break; } // // Rule 578: NextStatement ::= next ; // case 578: { //#line 1718 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Next(pos())); break; } // // Rule 579: AwaitStatement ::= await Expression ; // case 579: { //#line 1722 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(2); //#line 1724 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Await(pos(), Expression)); break; } // // Rule 580: ClockList ::= Clock // case 580: { //#line 1728 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(1); //#line 1730 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(Clock); setResult(l); break; } // // Rule 581: ClockList ::= ClockList , Clock // case 581: { //#line 1735 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List ClockList = (List) getRhsSym(1); //#line 1735 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Clock = (Expr) getRhsSym(3); //#line 1737 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ClockList.add(Clock); setResult(ClockList); break; } // // Rule 582: Clock ::= Expression // case 582: { //#line 1743 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(1); //#line 1745 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Expression); break; } // // Rule 583: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 583: { //#line 1755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(2); //#line 1755 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(4); //#line 1757 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Cast(pos(), Type, UnaryExpressionNotPlusMinus)); break; } // // Rule 584: CastExpression ::= ( @ Expression ) UnaryExpressionNotPlusMinus // case 584: { //#line 1760 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1760 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr UnaryExpressionNotPlusMinus = (Expr) getRhsSym(5); //#line 1762 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.PlaceCast(pos(), Expression, UnaryExpressionNotPlusMinus)); break; } // // Rule 585: RelationalExpression ::= RelationalExpression instanceof Type // case 585: { //#line 1772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RelationalExpression = (Expr) getRhsSym(1); //#line 1772 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" TypeNode Type = (TypeNode) getRhsSym(3); //#line 1774 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Instanceof(pos(), RelationalExpression, Type)); break; } // // Rule 586: IdentifierList ::= identifier // case 586: { //#line 1780 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1782 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Name.class, false); l.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(l); break; } // // Rule 587: IdentifierList ::= IdentifierList , identifier // case 587: { //#line 1787 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List IdentifierList = (List) getRhsSym(1); //#line 1787 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(3); //#line 1789 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" IdentifierList.add(new Name(nf, ts, pos(), identifier.getIdentifier())); setResult(IdentifierList); break; } // // Rule 588: Primary ::= here // case 588: { //#line 1796 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(((X10NodeFactory) nf).Here(pos()));//// A "here" expression used to be treated as an ExpressionName instead// of as a primary.//// setResult(new Name(nf, ts, pos(), "here"){// public Expr toExpr() {// return ((X10NodeFactory) nf).Here(pos);// }// }); break; } // // Rule 591: RegionExpression ::= Expression$expr1 : Expression$expr2 // case 591: { //#line 1812 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1812 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1814 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" /*Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(expr1); l.add(expr2); Call regionCall = nf.Call( pos(), x10LangRegionFactoryRegion.prefix.toReceiver(), "region", l ); */ Call regionCall = nf.RegionMaker(pos(), expr1, expr2); setResult(regionCall); break; } // // Rule 592: RegionExpressionList ::= RegionExpression // case 592: { //#line 1830 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(1); //#line 1832 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List l = new TypedList(new LinkedList(), Expr.class, false); l.add(RegionExpression); setResult(l); break; } // // Rule 593: RegionExpressionList ::= RegionExpressionList , RegionExpression // case 593: { //#line 1837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(1); //#line 1837 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr RegionExpression = (Expr) getRhsSym(3); //#line 1839 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" RegionExpressionList.add(RegionExpression); //setResult(RegionExpressionList); break; } // // Rule 594: Primary ::= [ RegionExpressionList ] // case 594: { //#line 1844 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" List RegionExpressionList = (List) getRhsSym(2); //#line 1846 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); Name x10LangPoint = new Name(nf, ts, pos(), x10Lang, "point"); Name x10LangPointFactory = new Name(nf, ts, pos(), x10LangPoint, "factory"); Name x10LangPointFactoryPoint = new Name(nf, ts, pos(), x10LangPointFactory, "point"); Tuple tuple = nf.Tuple(pos(), x10LangPointFactoryPoint, x10LangRegionFactoryRegion, RegionExpressionList); setResult(tuple); break; } // // Rule 595: AssignmentExpression ::= Expression$expr1 -> Expression$expr2 // case 595: { //#line 1860 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr1 = (Expr) getRhsSym(1); //#line 1860 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr expr2 = (Expr) getRhsSym(3); //#line 1862 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" ConstantDistMaker call = nf.ConstantDistMaker(pos(), expr1, expr2); setResult(call); break; } // // Rule 596: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 596: { //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr PlaceExpressionSingleListopt = (Expr) getRhsSym(2); //#line 1867 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(4); //#line 1869 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(nf.Future(pos(), (PlaceExpressionSingleListopt == null ? nf.Here(pos(getLeftSpan())) : PlaceExpressionSingleListopt), Expression)); break; } // // Rule 597: FieldModifier ::= mutable // case 597: { //#line 1877 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.MUTABLE); break; } // // Rule 598: FieldModifier ::= const // case 598: { //#line 1882 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 599: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 599: throw new Error("No action specified for rule " + 599); // // Rule 600: MethodInvocation ::= MethodName ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 600: throw new Error("No action specified for rule " + 600); // // Rule 601: MethodInvocation ::= Primary . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 601: throw new Error("No action specified for rule " + 601); // // Rule 602: MethodInvocation ::= super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 602: throw new Error("No action specified for rule " + 602); // // Rule 603: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 603: throw new Error("No action specified for rule " + 603); // // Rule 604: MethodInvocation ::= TypeName . identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) // case 604: throw new Error("No action specified for rule " + 604); // // Rule 605: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 605: throw new Error("No action specified for rule " + 605); // // Rule 606: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 606: throw new Error("No action specified for rule " + 606); // // Rule 607: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt$args1 ) ( ArgumentListopt$args2 ) ClassBodyopt // case 607: throw new Error("No action specified for rule " + 607); // // Rule 608: MethodModifier ::= synchronized // case 608: { //#line 1913 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "\"synchronized\" is an invalid X10 Method Modifier"); setResult(Flags.SYNCHRONIZED); break; } // // Rule 609: FieldModifier ::= volatile // case 609: { //#line 1922 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "\"volatile\" is an invalid X10 Field Modifier"); setResult(Flags.VOLATILE); break; } // // Rule 610: SynchronizedStatement ::= synchronized ( Expression ) Block // case 610: { //#line 1929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Expr Expression = (Expr) getRhsSym(3); //#line 1929 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" Block Block = (Block) getRhsSym(5); //#line 1931 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" unrecoverableSyntaxError = true; eq.enqueue(ErrorInfo.SYNTAX_ERROR, getErrorLocation(getLeftSpan(), getRightSpan()) + "Synchronized Statement is invalid in X10"); setResult(nf.Synchronized(pos(), Expression, Block)); break; } // // Rule 611: ThisClauseopt ::= $Empty // case 611: setResult(null); break; // // Rule 613: PlaceTypeSpecifieropt ::= $Empty // case 613: setResult(null); break; // // Rule 615: DepParametersopt ::= $Empty // case 615: setResult(null); break; // // Rule 617: PropertyListopt ::= $Empty // case 617: setResult(null); break; // // Rule 619: WhereClauseopt ::= $Empty // case 619: setResult(null); break; // // Rule 621: ObjectKindopt ::= $Empty // case 621: setResult(null); break; // // Rule 623: ArrayInitializeropt ::= $Empty // case 623: setResult(null); break; // // Rule 625: PlaceExpressionSingleListopt ::= $Empty // case 625: setResult(null); break; // // Rule 627: ArgumentListopt ::= $Empty // case 627: setResult(null); break; // // Rule 629: X10ClassModifiersopt ::= $Empty // case 629: { //#line 1977 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(X10Flags.toX10Flags(Flags.NONE)); break; } // // Rule 631: DepParametersopt ::= $Empty // case 631: setResult(null); break; // // Rule 633: Unsafeopt ::= $Empty // case 633: setResult(null); break; // // Rule 634: Unsafeopt ::= unsafe // case 634: { //#line 1989 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" // any value distinct from null setResult(this); break; } // // Rule 635: ParamIdopt ::= $Empty // case 635: setResult(null); break; // // Rule 636: ParamIdopt ::= identifier // case 636: { //#line 1996 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" polyglot.lex.Identifier identifier = (polyglot.lex.Identifier) getRhsSym(1); //#line 1998 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(new Name(nf, ts, pos(), identifier.getIdentifier())); break; } // // Rule 637: ClockedClauseopt ::= $Empty // case 637: { //#line 2004 "C:/eclipse/ws6/x10.compiler/src/x10/parser/x10.g" setResult(new TypedList(new LinkedList(), Expr.class, false)); break; } default: break; } return; }
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/56cdb14fdb9589988a93eb9a76aae3872ab98272/X10Parser.java/buggy/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...
String subPath = srcFile.substring(0,slashPos);
String subPath = srcFile.substring(0, slashPos);
private String convertToRelative(String srcFile, String base) { String slash = System.getProperty("file.separator"); if (FILE_IGNORE_CASE) { srcFile = srcFile.toLowerCase(); base = base.toLowerCase(); } if (base.equals(srcFile)) return "."; if (!base.endsWith(slash)) base = base + slash; if (base.length() <= srcFile.length()) { String root = srcFile.substring(0, base.length()); if (root.equals(base)) { // Strip off the base directory, make relative return "." + System.getProperty("file.separator") + srcFile.substring(base.length()); } } //See if we can build a relative path above the base using .. notation int slashPos = srcFile.indexOf(slash); int branchPoint; if (slashPos >= 0) { String subPath = srcFile.substring(0,slashPos); if ((subPath.length() == 0) || base.startsWith(subPath)) { branchPoint = slashPos+1; slashPos = srcFile.indexOf(slash, branchPoint); while (slashPos >= 0) { subPath = srcFile.substring(0,slashPos); if (base.startsWith(subPath)) branchPoint = slashPos + 1; else break; slashPos = srcFile.indexOf(slash, branchPoint); } int slashCount = 0; slashPos = base.indexOf(slash,branchPoint); while (slashPos >= 0) { slashCount++; slashPos = base.indexOf(slash,slashPos+1); } StringBuffer path = new StringBuffer(); String upDir = ".." + slash; for (int i = 0; i < slashCount; i++) path.append(upDir); path.append(srcFile.substring(branchPoint)); return path.toString(); } } return srcFile; }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4748a5a9b76f3dd763ee6bc7755c932a711bd6a6/Project.java/clean/findbugs/src/java/edu/umd/cs/findbugs/Project.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 8137, 8574, 12, 780, 24672, 16, 514, 1026, 13, 288, 202, 202, 780, 9026, 273, 2332, 18, 588, 1396, 2932, 768, 18, 11287, 8863, 202, 202, 430, 261, 3776, 67, 20118, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 8137, 8574, 12, 780, 24672, 16, 514, 1026, 13, 288, 202, 202, 780, 9026, 273, 2332, 18, 588, 1396, 2932, 768, 18, 11287, 8863, 202, 202, 430, 261, 3776, 67, 20118, 67, ...
DefaultMutableTreeNode ret = null;
public DefaultMutableTreeNode getNodeForCode(String code) { DefaultMutableTreeNode ret = null; DefaultMutableTreeNode root = (DefaultMutableTreeNode) tree.getModel() .getRoot(); SymbolPart sp = (SymbolPart) root.getUserObject(); if (Debug.debugging("symbology.detail")) { Debug.output("Tree root object has " + sp.getClass().getName() + " user object with code |" + sp.getCode() + "| at code position " + sp.getCodePosition().startIndex); } if (sp.codeMatches(code)) { return getNodeForCodeStartingAt(root, code); } else { return null; } }
3071 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3071/60bd0949a623dd205fde69555642fa259d242be4/SymbolChooser.java/clean/src/openmap/com/bbn/openmap/tools/symbology/milStd2525/SymbolChooser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 2989, 19536, 12513, 5973, 1290, 1085, 12, 780, 981, 13, 288, 15604, 2989, 19536, 12513, 1365, 273, 261, 1868, 19536, 12513, 13, 2151, 18, 588, 1488, 1435, 10792, 263, 588, 2375, 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, 540, 1071, 2989, 19536, 12513, 5973, 1290, 1085, 12, 780, 981, 13, 288, 15604, 2989, 19536, 12513, 1365, 273, 261, 1868, 19536, 12513, 13, 2151, 18, 588, 1488, 1435, 10792, 263, 588, 2375, 5621,...
nextPage.setMessage("<B>Are you sure you want to delete the following "+d2wContext().valueForKey("displayNameForEntity")+"</B>:<br> "+object().userPresentableDescription()+ " ?");
nextPage.setMessage("Are you sure you want to delete the following "+d2wContext().valueForKey("displayNameForEntity")+":<br> "+object().userPresentableDescription()+ " ?");
public WOComponent deleteObjectAction() { // FIXME: Shouldn't ave a hard dependency on names here. String confirmConfigurationName=(String)d2wContext().valueForKey("confirmConfigurationName"); if(confirmConfigurationName!=null){ ConfirmPageInterface nextPage = (ConfirmPageInterface)D2W.factory().pageForConfigurationNamed(confirmConfigurationName,session()); nextPage.setConfirmDelegate(new ERDDeletionDelegate(object(),dataSource(),context().page())); nextPage.setCancelDelegate(new ERDDeletionDelegate(null,null,context().page())); if(nextPage instanceof ERD2WInspectPage) { ((ERD2WInspectPage)nextPage).setObject(object()); } else { nextPage.setMessage("<B>Are you sure you want to delete the following "+d2wContext().valueForKey("displayNameForEntity")+"</B>:<br> "+object().userPresentableDescription()+ " ?"); } return (WOComponent) nextPage; } else { ConfirmPageInterface nextPage = (ConfirmPageInterface)pageWithName("ERD2WConfirmPageTemplate"); nextPage.setConfirmDelegate(new ERDDeletionDelegate(object(),dataSource(),context().page())); nextPage.setCancelDelegate(new ERDDeletionDelegate(null,null,context().page())); nextPage.setMessage("<B>Are you sure you want to delete the following "+d2wContext().valueForKey("displayNameForEntity")+"</B>:<br> "+object().userPresentableDescription()+ " ?"); return (WOComponent) nextPage; } }
46145 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46145/ab1133abd34a698d2389d109b77eaec57e76ee4e/ERD2WListPage.java/clean/Common/Frameworks/ERDirectToWeb/Sources/er/directtoweb/ERD2WListPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 678, 51, 1841, 1430, 921, 1803, 1435, 288, 3639, 368, 9852, 30, 9363, 82, 1404, 279, 537, 279, 7877, 4904, 603, 1257, 2674, 18, 3639, 514, 6932, 1750, 461, 28657, 780, 13, 72, 22,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 678, 51, 1841, 1430, 921, 1803, 1435, 288, 3639, 368, 9852, 30, 9363, 82, 1404, 279, 537, 279, 7877, 4904, 603, 1257, 2674, 18, 3639, 514, 6932, 1750, 461, 28657, 780, 13, 72, 22,...
private static int indexFromString(String str) { /* It must be a string. */
private static long indexFromString(String str) { final int MAX_VALUE_LENGTH = 10;
private static int indexFromString(String str) { /* It must be a string. */ int len = str.length(); char c; boolean negate = false; int i = 0; if (len > 0 && (c = str.charAt(0)) == '-') { negate = true; i = 1; } if (len > 0 && '0' <= (c = str.charAt(i)) && c <= '9' && len <= MAX_VALUE_LENGTH) { int index = c - '0'; int oldIndex = 0; i++; if (index != 0) { while (i < len && '0' <= (c = str.charAt(i)) && c <= '9') { oldIndex = index; index = 10*index + (c - '0'); i++; } } /* Make sure all characters were consumed and that it couldn't * have overflowed. */ if (i == len && (oldIndex < (Integer.MAX_VALUE / 10) || (oldIndex == (Integer.MAX_VALUE / 10) && c < (Integer.MAX_VALUE % 10)))) { return negate ? -index : index; } } return NO_INDEX; }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/a73c6e75ae2fab8328356d16318be7fab782905c/ScriptRuntime.java/clean/src/org/mozilla/javascript/ScriptRuntime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 509, 770, 9193, 12, 780, 609, 13, 288, 3639, 1748, 2597, 1297, 506, 279, 533, 18, 1195, 3639, 509, 562, 273, 609, 18, 2469, 5621, 3639, 1149, 276, 31, 3639, 1250, 15626, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 509, 770, 9193, 12, 780, 609, 13, 288, 3639, 1748, 2597, 1297, 506, 279, 533, 18, 1195, 3639, 509, 562, 273, 609, 18, 2469, 5621, 3639, 1149, 276, 31, 3639, 1250, 15626, 273,...
final List rules = new ArrayList(); final Iterator i = this.projectRuleSet.getRules().iterator(); while (i.hasNext()) { final Rule rule = (Rule) i.next(); rules.add(new RuleSpecTO(rule.getName(), rule.getRuleSetName()));
if (this.ruleSetStoredInProject) { this.loadRuleSetFromProject(); } else { final List rules = new ArrayList(); final Iterator i = this.projectRuleSet.getRules().iterator(); while (i.hasNext()) { final Rule rule = (Rule) i.next(); rules.add(new RuleSpecTO(rule.getName(), rule.getRuleSetName())); } bean.setRules((RuleSpecTO[]) rules.toArray(new RuleSpecTO[rules.size()]));
private void saveProperties() throws DAOException { final ProjectPropertiesTO bean = new ProjectPropertiesTO(); bean.setRuleSetStoredInProject(this.ruleSetStoredInProject); bean.setWorkingSetName(this.projectWorkingSet == null ? null : this.projectWorkingSet.getName()); final List rules = new ArrayList(); final Iterator i = this.projectRuleSet.getRules().iterator(); while (i.hasNext()) { final Rule rule = (Rule) i.next(); rules.add(new RuleSpecTO(rule.getName(), rule.getRuleSetName())); // NOPMD:AvoidInstantiatingObjectInLoop } bean.setRules((RuleSpecTO[]) rules.toArray(new RuleSpecTO[rules.size()])); this.propertiesDao.writeProjectProperties(this.project, bean, this.getMonitor()); }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/c525b77b32e3f300a8d2f7945e0a0696a6dc9504/ProjectPropertiesModelImpl.java/buggy/pmd-eclipse/src/net/sourceforge/pmd/eclipse/model/ProjectPropertiesModelImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1923, 2297, 1435, 1216, 463, 20463, 503, 288, 5411, 727, 5420, 2297, 4296, 3931, 273, 394, 5420, 2297, 4296, 5621, 5411, 3931, 18, 542, 21474, 18005, 382, 4109, 12, 2211, 18, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1923, 2297, 1435, 1216, 463, 20463, 503, 288, 5411, 727, 5420, 2297, 4296, 3931, 273, 394, 5420, 2297, 4296, 5621, 5411, 3931, 18, 542, 21474, 18005, 382, 4109, 12, 2211, 18, 5...
hashClass.defineMethod("include?", CallbackFactory.getMethod(RubyHash.class, "has_key", RubyObject.class)); hashClass.defineMethod("member?", CallbackFactory.getMethod(RubyHash.class, "has_key", RubyObject.class)); hashClass.defineMethod("has_key?", CallbackFactory.getMethod(RubyHash.class, "has_key", RubyObject.class)); hashClass.defineMethod("has_value?", CallbackFactory.getMethod(RubyHash.class, "has_value", RubyObject.class)); hashClass.defineMethod("key?", CallbackFactory.getMethod(RubyHash.class, "has_key", RubyObject.class)); hashClass.defineMethod("value?", CallbackFactory.getMethod(RubyHash.class, "has_value", RubyObject.class));
public static RubyClass createHashClass(Ruby ruby) { RubyClass hashClass = ruby.defineClass("Hash", ruby.getClasses().getObjectClass());// rb_include_module(rb_cHash, rb_mEnumerable); hashClass.defineSingletonMethod("new", CallbackFactory.getOptSingletonMethod(RubyHash.class, "newInstance")); hashClass.defineSingletonMethod("[]", CallbackFactory.getOptSingletonMethod(RubyHash.class, "create")); hashClass.defineMethod("initialize", CallbackFactory.getOptMethod(RubyHash.class, "initialize")); // rb_define_method(rb_cHash,"clone", rb_hash_clone, 0);// rb_define_method(rb_cHash,"rehash", rb_hash_rehash, 0); hashClass.defineMethod("to_hash", CallbackFactory.getMethod(RubyHash.class, "to_hash")); hashClass.defineMethod("to_a", CallbackFactory.getMethod(RubyHash.class, "to_a")); hashClass.defineMethod("to_s", CallbackFactory.getMethod(RubyHash.class, "to_s")); hashClass.defineMethod("inspect", CallbackFactory.getMethod(RubyHash.class, "inspect"));// rb_define_method(rb_cHash,"==", rb_hash_equal, 1); hashClass.defineMethod("[]", CallbackFactory.getMethod(RubyHash.class, "aref", RubyObject.class));// rb_define_method(rb_cHash,"fetch", rb_hash_fetch, -1); hashClass.defineMethod("[]=", CallbackFactory.getMethod(RubyHash.class, "aset", RubyObject.class, RubyObject.class)); hashClass.defineMethod("store", CallbackFactory.getMethod(RubyHash.class, "aset", RubyObject.class, RubyObject.class));// rb_define_method(rb_cHash,"default", rb_hash_default, 0);// rb_define_method(rb_cHash,"default=", rb_hash_set_default, 1);// rb_define_method(rb_cHash,"index", rb_hash_index, 1);// rb_define_method(rb_cHash,"indexes", rb_hash_indexes, -1);// rb_define_method(rb_cHash,"indices", rb_hash_indexes, -1); hashClass.defineMethod("size", CallbackFactory.getMethod(RubyHash.class, "size")); hashClass.defineMethod("length", CallbackFactory.getMethod(RubyHash.class, "size")); hashClass.defineMethod("empty?", CallbackFactory.getMethod(RubyHash.class, "empty_p"));// rb_define_method(rb_cHash,"each", rb_hash_each_pair, 0);// rb_define_method(rb_cHash,"each_value", rb_hash_each_value, 0);// rb_define_method(rb_cHash,"each_key", rb_hash_each_key, 0);// rb_define_method(rb_cHash,"each_pair", rb_hash_each_pair, 0);// rb_define_method(rb_cHash,"sort", rb_hash_sort, 0);// rb_define_method(rb_cHash,"keys", rb_hash_keys, 0);// rb_define_method(rb_cHash,"values", rb_hash_values, 0);// rb_define_method(rb_cHash,"shift", rb_hash_shift, 0);// rb_define_method(rb_cHash,"delete", rb_hash_delete, 1);// rb_define_method(rb_cHash,"delete_if", rb_hash_delete_if, 0);// rb_define_method(rb_cHash,"reject", rb_hash_reject, 0);// rb_define_method(rb_cHash,"reject!", rb_hash_reject_bang, 0);// rb_define_method(rb_cHash,"clear", rb_hash_clear, 0);// rb_define_method(rb_cHash,"invert", rb_hash_invert, 0);// rb_define_method(rb_cHash,"update", rb_hash_update, 1);// rb_define_method(rb_cHash,"replace", rb_hash_replace, 1);// rb_define_method(rb_cHash,"include?", rb_hash_has_key, 1);// rb_define_method(rb_cHash,"member?", rb_hash_has_key, 1);// rb_define_method(rb_cHash,"has_key?", rb_hash_has_key, 1);// rb_define_method(rb_cHash,"has_value?", rb_hash_has_value, 1);// rb_define_method(rb_cHash,"key?", rb_hash_has_key, 1);// rb_define_method(rb_cHash,"value?", rb_hash_has_value, 1); return hashClass; }
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/6f48980923c4b06bac2890165c858310895f9a14/RubyHash.java/buggy/org/jruby/RubyHash.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 19817, 797, 752, 2310, 797, 12, 54, 10340, 22155, 13, 288, 2816, 797, 18, 11255, 1305, 2932, 6702, 35, 3113, 8444, 1733, 18, 588, 1305, 12, 54, 10340, 2310, 18, 1106, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 19817, 797, 752, 2310, 797, 12, 54, 10340, 22155, 13, 288, 2816, 797, 18, 11255, 1305, 2932, 6702, 35, 3113, 8444, 1733, 18, 588, 1305, 12, 54, 10340, 2310, 18, 1106, 16,...
else if (name.equals(Constants.DOM_NAMESPACES)) {
else if (name.equalsIgnoreCase(Constants.DOM_NAMESPACES)) {
public Object getParameter(String name) throws DOMException { // REVISIT: Recognizes DOM L3 default features only. // Does not yet recognize Xerces features. if (name.equals(Constants.DOM_COMMENTS)) { return ((features & COMMENTS) != 0) ? Boolean.TRUE : Boolean.FALSE; } else if (name.equals(Constants.DOM_NAMESPACES)) { return (features & NAMESPACES) != 0 ? Boolean.TRUE : Boolean.FALSE; } else if (name.equals(Constants.DOM_DATATYPE_NORMALIZATION)) { // REVISIT: datatype-normalization only takes effect if validation is on return (features & DTNORMALIZATION) != 0 ? Boolean.TRUE : Boolean.FALSE; } else if (name.equals(Constants.DOM_CDATA_SECTIONS)) { return (features & CDATA) != 0 ? Boolean.TRUE : Boolean.FALSE; } else if (name.equals(Constants.DOM_ENTITIES)) { return (features & ENTITIES) != 0 ? Boolean.TRUE : Boolean.FALSE; } else if (name.equals(Constants.DOM_SPLIT_CDATA)) { return (features & SPLITCDATA) != 0 ? Boolean.TRUE : Boolean.FALSE; } else if (name.equals(Constants.DOM_VALIDATE)) { return (features & VALIDATE) != 0 ? Boolean.TRUE : Boolean.FALSE; } else if (name.equals(Constants.DOM_WELLFORMED)) { return (features & WELLFORMED) != 0 ? Boolean.TRUE : Boolean.FALSE; } else if (name.equals(Constants.DOM_INFOSET)) { return (features & INFOSET_MASK) == INFOSET_TRUE_PARAMS ? Boolean.TRUE : Boolean.FALSE; } else if (name.equals(Constants.DOM_NORMALIZE_CHARACTERS) || name.equals(Constants.DOM_CANONICAL_FORM) || name.equals(Constants.DOM_VALIDATE_IF_SCHEMA) || name.equals(Constants.DOM_CHECK_CHAR_NORMALIZATION) ) { return Boolean.FALSE; } else if (name.equals(SEND_PSVI)) { return Boolean.TRUE; } else if (name.equals(Constants.DOM_PSVI)) { return (features & PSVI) != 0 ? Boolean.TRUE : Boolean.FALSE; } else if ( name.equals(Constants.DOM_NAMESPACE_DECLARATIONS) || name.equals(Constants.DOM_ELEMENT_CONTENT_WHITESPACE)) { return Boolean.TRUE; } else if (name.equals(Constants.DOM_ERROR_HANDLER)) { return fErrorHandlerWrapper.getErrorHandler(); } else if (name.equals(Constants.DOM_RESOURCE_RESOLVER)) { XMLEntityResolver entityResolver = getEntityResolver(); if (entityResolver != null && entityResolver instanceof DOMEntityResolverWrapper) { return ((DOMEntityResolverWrapper) entityResolver).getEntityResolver(); } return null; } else if (name.equals(Constants.DOM_SCHEMA_TYPE)) { return getProperty(Constants.JAXP_PROPERTY_PREFIX + Constants.SCHEMA_LANGUAGE); } else if (name.equals(Constants.DOM_SCHEMA_LOCATION)) { return getProperty(Constants.JAXP_PROPERTY_PREFIX + Constants.SCHEMA_SOURCE); } else if (name.equals(SYMBOL_TABLE)){ return getProperty(SYMBOL_TABLE); } else if (name.equals(GRAMMAR_POOL)){ return getProperty(GRAMMAR_POOL); } else { String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "FEATURE_NOT_FOUND", new Object[] { name }); throw new DOMException(DOMException.NOT_FOUND_ERR, msg); } }
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/f00018a29b68d07b04fbc24df9c69aaca3f6bfc4/DOMConfigurationImpl.java/clean/src/org/apache/xerces/dom/DOMConfigurationImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 5575, 12, 780, 508, 13, 1216, 4703, 503, 288, 202, 202, 759, 2438, 26780, 1285, 30, 7776, 4198, 3128, 4703, 511, 23, 805, 4467, 1338, 18, 202, 202, 759, 1850, 9637, 486,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 5575, 12, 780, 508, 13, 1216, 4703, 503, 288, 202, 202, 759, 2438, 26780, 1285, 30, 7776, 4198, 3128, 4703, 511, 23, 805, 4467, 1338, 18, 202, 202, 759, 1850, 9637, 486,...
filepath + ":58:36: ')' is preceeded by whitespace.",
filepath + ":58:36: ')' is preceeded with whitespace.",
public void testWhitespace() throws Exception { mConfig.setBooleanProperty(Defn.IGNORE_CAST_WHITESPACE_PROP, false); mConfig.setParenPadOption(PadOption.NOSPACE); mConfig.setBlockOptionProperty(Defn.TRY_BLOCK_PROP, BlockOption.IGNORE); mConfig.setBlockOptionProperty(Defn.CATCH_BLOCK_PROP, BlockOption.IGNORE); final Checker c = createChecker(); final String filepath = getPath("InputWhitespace.java"); assertNotNull(c); final String[] expected = { filepath + ":5:12: '.' is preceeded with whitespace.", filepath + ":5:14: '.' is followed by whitespace.", filepath + ":13: type Javadoc comment is missing an @author tag.", filepath + ":16:22: '=' is not preceeded with whitespace.", filepath + ":16:23: '=' is not followed by whitespace.", filepath + ":18:24: '=' is not followed by whitespace.", filepath + ":26:14: '=' is not preceeded with whitespace.", filepath + ":27:10: '=' is not preceeded with whitespace.", filepath + ":27:11: '=' is not followed by whitespace.", filepath + ":28:10: '+=' is not preceeded with whitespace.", filepath + ":28:12: '+=' is not followed by whitespace.", filepath + ":29:13: '-=' is not followed by whitespace.", filepath + ":29:14: '-' is followed by whitespace.", filepath + ":29:21: '+' is followed by whitespace.", filepath + ":30:14: '++' is preceeded with whitespace.", filepath + ":30:21: '--' is preceeded with whitespace.", filepath + ":31:15: '++' is followed by whitespace.", filepath + ":31:22: '--' is followed by whitespace.", filepath + ":37:21: 'synchronized' is not followed by whitespace.", filepath + ":39:12: 'try' is not followed by whitespace.", filepath + ":39:12: '{' is not preceeded with whitespace.", filepath + ":41:14: 'catch' is not followed by whitespace.", filepath + ":41:34: '{' is not preceeded with whitespace.", filepath + ":58:11: 'if' is not followed by whitespace.", filepath + ":58:12: '(' is followed by whitespace.", filepath + ":58:36: ')' is preceeded by whitespace.", filepath + ":59:9: '{' should be on the previous line.", filepath + ":63:9: '{' should be on the previous line.", filepath + ":74:13: '(' is followed by whitespace.", filepath + ":74:18: ')' is preceeded by whitespace.", filepath + ":75:9: '{' should be on the previous line.", filepath + ":76:19: 'return' is not followed by whitespace.", filepath + ":79:9: '{' should be on the previous line.", filepath + ":88:21: cast needs to be followed by whitespace.", filepath + ":97:29: '?' is not preceeded with whitespace.", filepath + ":97:30: '?' is not followed by whitespace.", filepath + ":97:34: ':' is not preceeded with whitespace.", filepath + ":97:35: ':' is not followed by whitespace.", filepath + ":98:15: '==' is not preceeded with whitespace.", filepath + ":98:17: '==' is not followed by whitespace.", filepath + ":104:20: '*' is not followed by whitespace.", filepath + ":104:21: '*' is not preceeded with whitespace.", filepath + ":111:22: '!' is followed by whitespace.", filepath + ":112:23: '~' is followed by whitespace.", filepath + ":119:18: '%' is not preceeded with whitespace.", filepath + ":120:20: '%' is not followed by whitespace.", filepath + ":121:18: '%' is not preceeded with whitespace.", filepath + ":121:19: '%' is not followed by whitespace.", filepath + ":123:18: '/' is not preceeded with whitespace.", filepath + ":124:20: '/' is not followed by whitespace.", filepath + ":125:18: '/' is not preceeded with whitespace.", filepath + ":125:19: '/' is not followed by whitespace.", filepath + ":129:17: '.' is preceeded with whitespace.", filepath + ":129:24: '.' is followed by whitespace.", filepath + ":136:10: '.' is preceeded with whitespace.", filepath + ":136:12: '.' is followed by whitespace.", filepath + ":153:15: 'assert' is not followed by whitespace.", filepath + ":156:20: ':' is not preceeded with whitespace.", filepath + ":156:21: ':' is not followed by whitespace.", }; verify(c, filepath, expected); c.destroy(); }
50482 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50482/513205d86a53fb1b65da8613563fa177bd5f4882/CheckerTest.java/buggy/src/tests/com/puppycrawl/tools/checkstyle/CheckerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 9431, 1435, 3639, 1216, 1185, 565, 288, 3639, 312, 809, 18, 542, 5507, 1396, 12, 3262, 82, 18, 20118, 67, 21871, 67, 20767, 67, 15811, 16, 629, 1769, 3639, 312, 809, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 9431, 1435, 3639, 1216, 1185, 565, 288, 3639, 312, 809, 18, 542, 5507, 1396, 12, 3262, 82, 18, 20118, 67, 21871, 67, 20767, 67, 15811, 16, 629, 1769, 3639, 312, 809, 18...
enums = new Property[200];
enums = new Property[ENUM_COUNT+1];
private Property makeEnumProperty(int enumValue) { if (enums == null) { enums = new Property[200]; } if (enums[enumValue] == null) { enums[enumValue] = new EnumProperty(enumValue); } return enums[enumValue]; }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/56f3fec2eefe0a0960e0807c2affd646ec8b87c1/FOPropertyMapping.java/clean/src/java/org/apache/fop/fo/FOPropertyMapping.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 4276, 1221, 3572, 1396, 12, 474, 2792, 620, 13, 288, 3639, 309, 261, 7924, 87, 422, 446, 13, 288, 5411, 17922, 273, 394, 4276, 63, 16509, 67, 7240, 15, 21, 15533, 3639, 289, 3639,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 4276, 1221, 3572, 1396, 12, 474, 2792, 620, 13, 288, 3639, 309, 261, 7924, 87, 422, 446, 13, 288, 5411, 17922, 273, 394, 4276, 63, 16509, 67, 7240, 15, 21, 15533, 3639, 289, 3639,...
public void onSuccess(ClientPutState state) {
public synchronized void onSuccess(ClientPutState state) {
public void onSuccess(ClientPutState state) { cb.onEncode(pubUSK.copy(edition), this); cb.onSuccess(this); synchronized(this) { finished = true; sbi = null; } FreenetURI targetURI = pubUSK.getSSK(edition).getURI(); FreenetURI realURI = ((SingleBlockInserter)state).getURI(); if(!targetURI.equals(realURI)) Logger.error(this, "URI should be "+targetURI+" actually is "+realURI); else { Logger.minor(this, "URI should be "+targetURI+" actually is "+realURI); ctx.uskManager.update(pubUSK, edition); } // FINISHED!!!! Yay!!! }
46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/a6a9cc01004d94d4bdefc0b76c0bdb1962187369/USKInserter.java/buggy/src/freenet/client/async/USKInserter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20613, 12, 1227, 6426, 1119, 919, 13, 288, 202, 202, 7358, 18, 265, 5509, 12, 10174, 3378, 47, 18, 3530, 12, 329, 608, 3631, 333, 1769, 202, 202, 7358, 18, 265, 4510, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20613, 12, 1227, 6426, 1119, 919, 13, 288, 202, 202, 7358, 18, 265, 5509, 12, 10174, 3378, 47, 18, 3530, 12, 329, 608, 3631, 333, 1769, 202, 202, 7358, 18, 265, 4510, 1...
if (isCacheContexts() && !requireClientSubmission) { cacheContainingDocument(pipelineContext, staticStateString, newEncodedDynamicState, containingDocument);
if (isCacheContexts()) { if (!requireClientSubmission) { cacheContainingDocument(pipelineContext, staticStateString, newEncodedDynamicState, containingDocument); } else { final ObjectPool objectPool = containingDocument.getSourceObjectPool(); if (objectPool != null) { logger.debug("XForms - containing document cache: discarding non-cacheable document from pool."); try { objectPool.invalidateObject(containingDocument); containingDocument.setSourceObjectPool(null); } catch (Exception e1) { throw new OXFException(e1); } } }
private void doIt(final PipelineContext pipelineContext, ContentHandler contentHandler) { // Extract information from request final Document requestDocument = readInputAsDOM4J(pipelineContext, INPUT_REQUEST); // Get static state final String staticStateString; { final Element staticStateElement = requestDocument.getRootElement().element(XFormsConstants.XXFORMS_STATIC_STATE_QNAME); staticStateString = staticStateElement.getTextTrim(); } // Get dynamic state final String dynamicStateString; { final Element dynamicStateElement = requestDocument.getRootElement().element(XFormsConstants.XXFORMS_DYNAMIC_STATE_QNAME); dynamicStateString = dynamicStateElement.getTextTrim(); } // Get action final Element actionElement = requestDocument.getRootElement().element(XFormsConstants.XXFORMS_ACTION_QNAME); // Get files if any final Element filesElement = requestDocument.getRootElement().element(XFormsConstants.XXFORMS_FILES_QNAME); XFormsContainingDocument containingDocument = null; // Try to obtain containing document from cache first if (isCacheContexts()) { containingDocument = getContainingDocument(pipelineContext, staticStateString, dynamicStateString, filesElement); } else { containingDocument = createXFormsContainingDocument(null, pipelineContext, staticStateString, dynamicStateString, filesElement); } try { // Run event if any boolean isInitializationRun = true; { final List eventElements = actionElement.elements(XFormsConstants.XXFORMS_EVENT_QNAME); if (eventElements != null && eventElements.size() > 0) { for (Iterator i = eventElements.iterator(); i.hasNext();) { final Element eventElement = (Element) i.next(); final String sourceControlId = eventElement.attributeValue("source-control-id"); final String otherControlId = eventElement.attributeValue("other-control-id"); final String eventName = eventElement.attributeValue("name"); final String value = eventElement.getText(); if (sourceControlId != null && eventName != null) { // An event is passed containingDocument.executeExternalEvent(pipelineContext, eventName, sourceControlId, otherControlId, value, null); isInitializationRun = false; } else if (!(sourceControlId == null && eventName == null)) { throw new OXFException("<event> element must either have source-control-id and name attributes, or no attribute."); } } } else { isInitializationRun = true; } } // Create resulting document if there is a ContentHandler if (contentHandler != null) { final XFormsControls xFormsControls = containingDocument.getXFormsControls(); xFormsControls.rebuildCurrentControlsState(pipelineContext); final XFormsControls.ControlsState currentControlsState = xFormsControls.getCurrentControlsState(); try { final ContentHandlerHelper ch = new ContentHandlerHelper(contentHandler); ch.startDocument(); contentHandler.startPrefixMapping("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI); ch.startElement("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "event-response"); // NOTE: Static state is produced externally during initialization only // Output dynamic state boolean requireClientSubmission = false; { final Document dynamicStateDocument = Dom4jUtils.createDocument(); final Element dynamicStateElement = dynamicStateDocument.addElement("dynamic-state"); // Output updated instances { final Element instancesElement = dynamicStateElement.addElement("instances"); for (Iterator i = containingDocument.getModels().iterator(); i.hasNext();) { final XFormsModel currentModel = (XFormsModel) i.next(); for (Iterator j = currentModel.getInstances().iterator(); j.hasNext();) { final XFormsInstance currentInstance = (XFormsInstance) j.next(); instancesElement.add((currentInstance).getDocument().getRootElement().createCopy()); // Log instance if needed if (logger.isDebugEnabled()) { logger.debug("XForms - resulting instance: model id='" + currentModel.getId() + "', instance id= '" + currentInstance.getId() + "'\n" + Dom4jUtils.domToString(currentInstance.getDocument())); } } } } // Output divs information { final Element divsElement = dynamicStateElement.addElement("divs"); outputSwitchDivs(divsElement, currentControlsState); } // Output repeat index information { final Map repeatIdToIndex = currentControlsState.getRepeatIdToIndex(); if (repeatIdToIndex != null && repeatIdToIndex.size() != 0) { final Element repeatIndexesElement = dynamicStateElement.addElement("repeat-indexes"); for (Iterator i = repeatIdToIndex.entrySet().iterator(); i.hasNext();) { final Map.Entry currentEntry = (Map.Entry) i.next(); final String repeatId = (String) currentEntry.getKey(); final Integer index = (Integer) currentEntry.getValue(); final Element newElement = repeatIndexesElement.addElement("repeat-index"); newElement.addAttribute("id", repeatId); newElement.addAttribute("index", index.toString()); } } } // Submission automatic event if needed { // Check for xxforms-submit event { final XFormsModelSubmission activeSubmission = containingDocument.getActiveSubmission(); if (activeSubmission != null) { final Element eventElement = dynamicStateElement.addElement("event"); eventElement.addAttribute("source-control-id", activeSubmission.getId()); eventElement.addAttribute("name", XFormsEvents.XXFORMS_SUBMIT); requireClientSubmission = true; } } // Check for xxforms-load event { final List loads = containingDocument.getClientLoads(); if (loads != null) { for (Iterator i = loads.iterator(); i.hasNext();) { final XFormsContainingDocument.Load load = (XFormsContainingDocument.Load) i.next(); if (load.isReplace() && load.isPortletLoad() && !NetUtils.urlHasProtocol(load.getResource())) { // We need to submit the event so that the portlet can load the new path final Element eventElement = dynamicStateElement.addElement("event"); eventElement.addAttribute("source-control-id", XFormsContainingDocument.CONTAINING_DOCUMENT_PSEUDO_ID); eventElement.addAttribute("resource", load.getResource()); eventElement.addAttribute("name", XFormsEvents.XXFORMS_LOAD); requireClientSubmission = true; break; } } } } } // Encode dynamic state final String newEncodedDynamicState = XFormsUtils.encodeXMLAsDOM(pipelineContext, dynamicStateDocument); ch.startElement("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "dynamic-state"); ch.text(newEncodedDynamicState); ch.endElement(); // Cache if requested and possible if (isCacheContexts() && !requireClientSubmission) { // NOTE: We check on requireClientSubmission because the event is encoded // in the dynamic state. But if we stored the event separately, then we // could still cache the containing document. cacheContainingDocument(pipelineContext, staticStateString, newEncodedDynamicState, containingDocument); } } // Output action { ch.startElement("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "action"); // Output new controls values and associated information { ch.startElement("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "control-values"); diffControlsState(ch, isInitializationRun ? null : xFormsControls.getInitialControlsState().getChildren(), currentControlsState.getChildren()); ch.endElement(); } // Output divs information { ch.startElement("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "divs"); outputSwitchDivs(ch, currentControlsState); ch.endElement(); } // Output repeats information { if (isInitializationRun) { // Output initial repeat information outputInitialRepeatInfo(ch, currentControlsState); } else { // Output index updates final Map initialRepeatIdToIndex = xFormsControls.getInitialControlsState().getRepeatIdToIndex(); final Map currentRepeatIdToIndex = currentControlsState.getRepeatIdToIndex(); if (currentRepeatIdToIndex != null && currentRepeatIdToIndex.size() != 0) { boolean found = false; for (Iterator i = initialRepeatIdToIndex.entrySet().iterator(); i.hasNext();) { final Map.Entry currentEntry = (Map.Entry) i.next(); final String repeatId = (String) currentEntry.getKey(); final Integer index = (Integer) currentEntry.getValue(); // Output information if there is a difference final Integer newIndex = (Integer) currentRepeatIdToIndex.get(repeatId); if (!index.equals(newIndex)) { if (!found) { ch.startElement("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "repeat-indexes"); found = true; } ch.element("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "repeat-index", new String[] {"id", repeatId, "old-index", index.toString(), "new-index", newIndex.toString()}); } } if (found) ch.endElement(); } } } // Output itemset information { ch.startElement("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "itemsets"); if (isInitializationRun) { outputItemsets(ch, xFormsControls.getItemsetFull()); } else { outputItemsets(ch, xFormsControls.getItemsetUpdate()); } ch.endElement(); } // Check if we want to require the client to perform a form submission { if (requireClientSubmission) outputSubmissionInfo(pipelineContext, ch); } // Output messages to display { final List messages = containingDocument.getClientMessages(); if (messages != null) { outputMessagesInfo(ch, messages); } } // Output loads { final List loads = containingDocument.getClientLoads(); if (loads != null) { outputLoadsInfo(ch, loads); } } // Output focus instructions { final String focusEffectiveControlId = containingDocument.getClientFocusEffectiveControlId(); if (focusEffectiveControlId != null) { outputFocusInfo(ch, focusEffectiveControlId); } } ch.endElement(); } ch.endElement(); contentHandler.endPrefixMapping("xxf"); ch.endDocument(); } catch (SAXException e) { throw new OXFException(e); } } } finally { // This must be done whatever happens if (containingDocument != null) { final ObjectPool objectPool = containingDocument.getObjectPool(); if (objectPool != null) { try { objectPool.returnObject(containingDocument); } catch (Exception e) { throw new OXFException(e); } } } } }
54445 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54445/a6eb47de417fd6cf006fa4e9c8c250cb033f744f/XFormsServer.java/clean/src/java/org/orbeon/oxf/xforms/XFormsServer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 741, 7193, 12, 6385, 13671, 1042, 5873, 1042, 16, 3697, 1503, 913, 1503, 13, 288, 3639, 368, 8152, 1779, 628, 590, 3639, 727, 4319, 590, 2519, 273, 855, 1210, 1463, 8168, 24, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 7193, 12, 6385, 13671, 1042, 5873, 1042, 16, 3697, 1503, 913, 1503, 13, 288, 3639, 368, 8152, 1779, 628, 590, 3639, 727, 4319, 590, 2519, 273, 855, 1210, 1463, 8168, 24, ...
rootAppearance.setAttribute( CommonAttributes.BACKGROUND_COLORS, upColor != null && downColor != null ? new Color[]{upColor, upColor, downColor, downColor} : Appearance.INHERITED ); Matrix m = new Matrix(avatarNode.getTransformation()); AABBPickSystem ps = new AABBPickSystem(); ps.setSceneRoot(terrainNode); double[] pos = m.getColumn(3); double[] dest = pos.clone(); dest[1]-=1.5; List<PickResult> picks = ps.computePick(pos, dest); if (picks.isEmpty()) { picks = ps.computePick(pos, new double[]{0,1,0,0}); } if (!picks.isEmpty()) { setAvatarHeight(picks.get(0).getWorldCoordinates()[1]); }
Matrix m = new Matrix(avatarNode.getTransformation()); AABBPickSystem ps = new AABBPickSystem(); ps.setSceneRoot(terrainNode); double[] pos = m.getColumn(3); double[] dest = pos.clone(); dest[1]-=1.5; List<PickResult> picks = ps.computePick(pos, dest); if (picks.isEmpty()) { picks = ps.computePick(pos, new double[]{0,1,0,0}); } if (!picks.isEmpty()) { setAvatarHeight(picks.get(0).getWorldCoordinates()[1]); }
private void updateLandscape() { ImageData[] cubeMap = landscape.getCubeMap(); Color upColor = landscape.getUpColor(); Color downColor = landscape.getDownColor(); String diffCol = CommonAttributes.POLYGON_SHADER+"."+CommonAttributes.DIFFUSE_COLOR; Color currentDiffuseColor = (Color) contentAppearance.getAttribute(diffCol); if (cubeMap == null) { if (currentDiffuseColor.equals(Color.white)) { contentAppearance.setAttribute(diffCol, DARK_DIFFUSE_COLOR); } } else { if (currentDiffuseColor.equals(DARK_DIFFUSE_COLOR)) { contentAppearance.setAttribute(diffCol, Color.white); } } Geometry last = terrainNode.getGeometry(); flat = landscape.isTerrainFlat(); terrainNode.setGeometry(flat ? flatTerrain : terrain); if (last != terrainNode.getGeometry()) computeShadow(); setSkyBox(cubeMap); ImageData terrainTex = landscape.getTerrainTexture(); setTerrainTexture( terrainTex, landscape.getTerrainTextureScale() ); rootAppearance.setAttribute( CommonAttributes.BACKGROUND_COLORS, upColor != null && downColor != null ? new Color[]{upColor, upColor, downColor, downColor} : Appearance.INHERITED ); Matrix m = new Matrix(avatarNode.getTransformation()); AABBPickSystem ps = new AABBPickSystem(); ps.setSceneRoot(terrainNode); double[] pos = m.getColumn(3); double[] dest = pos.clone(); dest[1]-=1.5; List<PickResult> picks = ps.computePick(pos, dest); if (picks.isEmpty()) { picks = ps.computePick(pos, new double[]{0,1,0,0}); } if (!picks.isEmpty()) { setAvatarHeight(picks.get(0).getWorldCoordinates()[1]); } }
25476 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25476/4f9531bd0811b916517ab726c75c4f05a58d1173/ViewerVR.java/clean/src-vr/de/jreality/vr/ViewerVR.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 29398, 12476, 1435, 288, 202, 202, 2040, 751, 8526, 18324, 863, 273, 19193, 12476, 18, 588, 39, 4895, 863, 5621, 202, 202, 2957, 731, 2957, 273, 19193, 12476, 18, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 29398, 12476, 1435, 288, 202, 202, 2040, 751, 8526, 18324, 863, 273, 19193, 12476, 18, 588, 39, 4895, 863, 5621, 202, 202, 2957, 731, 2957, 273, 19193, 12476, 18, 58...
if (theme != null && !templateDir.endsWith(FILE_SEPARATOR) && !theme.startsWith(FILE_SEPARATOR) ) {
if (theme != null && !templateDir.endsWith(FILE_SEPARATOR) && !theme.startsWith(FILE_SEPARATOR)) {
protected String buildTemplateName(String myTemplate, String myDefaultTemplate) { String template = myDefaultTemplate; if (myTemplate != null) { template = findString(myTemplate); if (template == null) { LOG.warn("template attribute evaluated to null; using value as-is for backwards compatibility"); template = myTemplate; } } final StringBuffer templateName = new StringBuffer(30); final String templateDir = getTemplateDir(); if (!templateDir.startsWith(FILE_SEPARATOR)) { templateName.append(FILE_SEPARATOR); } templateName.append(templateDir); final String theme = getTheme(); if (theme != null && !templateDir.endsWith(FILE_SEPARATOR) && !theme.startsWith(FILE_SEPARATOR) ) { templateName.append(FILE_SEPARATOR); } templateName.append(theme); if (template != null && !template.startsWith(FILE_SEPARATOR)) { templateName.append(FILE_SEPARATOR); } templateName.append(template); return templateName.toString(); }
15560 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15560/7043ff728a4e7f565213be22ecab23cb4d6d639a/UIBean.java/clean/src/java/com/opensymphony/webwork/components/UIBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 1361, 28917, 12, 780, 3399, 2283, 16, 514, 3399, 1868, 2283, 13, 288, 3639, 514, 1542, 273, 3399, 1868, 2283, 31, 3639, 309, 261, 4811, 2283, 480, 446, 13, 288, 5411, 1542, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 1361, 28917, 12, 780, 3399, 2283, 16, 514, 3399, 1868, 2283, 13, 288, 3639, 514, 1542, 273, 3399, 1868, 2283, 31, 3639, 309, 261, 4811, 2283, 480, 446, 13, 288, 5411, 1542, 2...
pointcuts.addAll(aspect.getGetFieldPointcuts(className, fieldMetaData));
pointcuts.addAll(aspect.getGetFieldPointcuts(classMetaData, fieldMetaData));
public List getGetFieldPointcuts(final String className, final FieldMetaData fieldMetaData) { if (className == null) throw new IllegalArgumentException("class name can not be null"); if (fieldMetaData == null) throw new IllegalArgumentException("field meta-data can not be null"); initialize(); Integer hashKey = calculateHash(className, fieldMetaData); // if cached; return the cached list if (m_getFieldPointcutCache.containsKey(hashKey)) { return (List)m_getFieldPointcutCache.get(hashKey); } List pointcuts = new ArrayList(); for (Iterator it = m_aspects.values().iterator(); it.hasNext();) { Aspect aspect = (Aspect)it.next(); pointcuts.addAll(aspect.getGetFieldPointcuts(className, fieldMetaData)); } synchronized (m_getFieldPointcutCache) { m_getFieldPointcutCache.put(hashKey, pointcuts); } return pointcuts; }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/797e662bcd4bca47d6ac84f41fbf32bf15013a33/AspectWerkz.java/buggy/aspectwerkz/src/main/org/codehaus/aspectwerkz/AspectWerkz.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 336, 967, 974, 2148, 5150, 87, 12, 6385, 514, 2658, 16, 19694, 727, 2286, 6998, 652, 6998, 13, 288, 3639, 309, 261, 12434, 422, 446, 13, 604, 394, 2754, 2932, 1106, 508, 848,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 987, 336, 967, 974, 2148, 5150, 87, 12, 6385, 514, 2658, 16, 19694, 727, 2286, 6998, 652, 6998, 13, 288, 3639, 309, 261, 12434, 422, 446, 13, 604, 394, 2754, 2932, 1106, 508, 848,...
GridData gridData = new GridData( );
GridData gridData = new GridData( GridData.FILL_BOTH );
private void buildUI( Composite parent ) { // sets the layout GridLayout layout = new GridLayout( ); layout.horizontalSpacing = 10; layout.verticalSpacing = 10; parent.setLayout( layout ); // create table and tableViewer table = new Table( parent, SWT.SINGLE | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION ); table.setLinesVisible( true ); table.setHeaderVisible( true ); GridData gridData = new GridData( ); gridData.heightHint = 100; table.setLayoutData( gridData ); for ( int i = 0; i < columnNames.length; i++ ) { TableColumn column = new TableColumn( table, SWT.LEFT ); column.setText( columnNames[i] ); if ( i == 1 ) { column.setWidth( 80 ); } else { column.setWidth( 160 ); } } createTableViewer( ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/58a61a83a3786539ef48c8634a226924baa4fbcb/ReportItemParametersDialog.java/clean/chart/org.eclipse.birt.chart.reportitem.ui/src/org/eclipse/birt/chart/reportitem/ui/dialogs/ReportItemParametersDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1361, 5370, 12, 14728, 982, 262, 202, 95, 202, 202, 759, 1678, 326, 3511, 202, 202, 6313, 3744, 3511, 273, 394, 7145, 3744, 12, 11272, 202, 202, 6741, 18, 18396, 18006, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1361, 5370, 12, 14728, 982, 262, 202, 95, 202, 202, 759, 1678, 326, 3511, 202, 202, 6313, 3744, 3511, 273, 394, 7145, 3744, 12, 11272, 202, 202, 6741, 18, 18396, 18006, ...
RubyArray array = newArray(recv.getRuntime());
RubyArray array = recv.getRuntime().newArray();
public static RubyArray newInstance(IRubyObject recv, IRubyObject[] args) { RubyArray array = newArray(recv.getRuntime()); array.setMetaClass((RubyClass) recv); array.callInit(args); return array; }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyArray.java/clean/src/org/jruby/RubyArray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 1076, 5984, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 8526, 833, 13, 288, 3639, 19817, 1076, 526, 273, 10665, 18, 588, 5576, 7675, 2704, 1076, 5621, 3639, 526, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 1076, 5984, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 8526, 833, 13, 288, 3639, 19817, 1076, 526, 273, 10665, 18, 588, 5576, 7675, 2704, 1076, 5621, 3639, 526, ...
unmarshaller.getContentHandler(unmarshalHandler));
Unmarshaller.getContentHandler(unmarshalHandler));
public void setup(SourceResolver resolver, Map objectmodel, String src, Parameters parameters) throws ProcessingException, SAXException, IOException { System.out.println("setup"); this.resolver = resolver; Store store = null; try { this.grammar = src; this.grammarSource = resolver.resolveURI(this.grammar); // Retrieve the parser automaton from the transient store store = (Store)this.manager.lookup(Store.TRANSIENT_STORE); GrammarEntry entry = (GrammarEntry)store.get(this.grammarSource.getURI()); // If the parser automaton has changed, rebuild the parser automaton if ((entry==null) || (entry.getValidity()==null) || ((entry.getValidity().isValid(this.grammarSource.getValidity()))<=0)) { this.logger.info("(Re)building the grammar from '"+this.grammarSource.getURI()+"'"); if (this.grammarSource.getInputStream()==null) throw new ProcessingException("Source '"+this.grammarSource.getURI()+"' not found"); Mapping mapping = new Mapping(); mapping.loadMapping(new InputSource(ExtendedGrammar.class.getResource("mapping.xml") .openStream())); Unmarshaller unmarshaller = new Unmarshaller(ExtendedGrammar.class); unmarshaller.setMapping(mapping); UnmarshalHandler unmarshalHandler = unmarshaller.createHandler(); SourceUtil.toSAX(this.manager, this.grammarSource, null, unmarshaller.getContentHandler(unmarshalHandler)); ExtendedGrammar grammar = (ExtendedGrammar)unmarshalHandler.getObject(); if (grammar==null) throw new ProcessingException("Error while reading the grammar from "+src); setExtendedGrammar(grammar); this.logger.info("Store grammar into store for '"+this.grammarSource.getURI()+"'"); store.store(this.grammarSource.getURI(), new GrammarEntry(grammar, this.grammarSource.getValidity())); } else { this.logger.info("Getting grammar from store for '"+this.grammarSource.getURI()+"'"); setExtendedGrammar(entry.getExtendedGrammar()); } } catch (MappingException me) { throw new ProcessingException("Error while reading the grammar", me); } catch (SourceException se) { throw new ProcessingException("Error during resolving of '"+src+"'.", se); } catch (ComponentException ce) { throw new ProcessingException("Could not lookup for component", ce); } finally { if (store!=null) this.manager.release(store); } }
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/1d238bd827c8af96d651b7f5320ed0f25b34948b/ExtendedParserTransformer.java/buggy/src/blocks/chaperon/java/org/apache/cocoon/transformation/ExtendedParserTransformer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3875, 12, 1830, 4301, 5039, 16, 1635, 733, 2284, 16, 514, 1705, 16, 7012, 1472, 13, 565, 1216, 19652, 503, 16, 14366, 16, 1860, 225, 288, 565, 2332, 18, 659, 18, 8222, 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, 282, 1071, 918, 3875, 12, 1830, 4301, 5039, 16, 1635, 733, 2284, 16, 514, 1705, 16, 7012, 1472, 13, 565, 1216, 19652, 503, 16, 14366, 16, 1860, 225, 288, 565, 2332, 18, 659, 18, 8222, 2932, ...
list.addAll((int) beg, repList);
list.addAll((int) beg, new ArrayList(repList));
public void replace(long beg, long len, RubyObject repl) { int length = getLength(); if (len < 0) { throw new RubyIndexException(getRuby(), "Negative array length: " + len); } if (beg < 0) { beg += length; } if (beg < 0) { throw new RubyIndexException(getRuby(), "Index out of bounds: " + beg); } modify(); for (int i = 0; beg < length && i < len; i++) { list.remove((int) beg); } autoExpand(beg); if (repl instanceof RubyArray) { List repList = ((RubyArray) repl).getList(); list.ensureCapacity(length + repList.size()); list.addAll((int) beg, repList); } else if (!repl.isNil()) { list.add((int) beg, repl); } }
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/2f13ba47385b7584839c7f6f6f1abfee251cbe53/RubyArray.java/clean/org/jruby/RubyArray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1453, 12, 5748, 16847, 16, 1525, 562, 16, 19817, 921, 6831, 13, 288, 3639, 509, 769, 273, 9888, 5621, 3639, 309, 261, 1897, 411, 374, 13, 288, 5411, 604, 394, 19817, 1016, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1453, 12, 5748, 16847, 16, 1525, 562, 16, 19817, 921, 6831, 13, 288, 3639, 509, 769, 273, 9888, 5621, 3639, 309, 261, 1897, 411, 374, 13, 288, 5411, 604, 394, 19817, 1016, 50...
if (!bodyWriteOnly)
if (bodyReadOnly)
public void writeString(String value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); if (value == null) ((List)payload).add(null); else ((List)payload).add(value); }
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/f957880e3959fea3b4f38d9dbb1e5dd0c710c09e/JBossStreamMessage.java/buggy/src/main/org/jboss/jms/message/JBossStreamMessage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 12967, 12, 780, 460, 13, 1216, 20343, 282, 288, 1377, 309, 261, 3432, 12066, 13, 540, 604, 394, 2350, 1248, 3067, 429, 503, 2932, 1986, 883, 1417, 353, 17102, 8863, 1377, 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, 565, 1071, 918, 12967, 12, 780, 460, 13, 1216, 20343, 282, 288, 1377, 309, 261, 3432, 12066, 13, 540, 604, 394, 2350, 1248, 3067, 429, 503, 2932, 1986, 883, 1417, 353, 17102, 8863, 1377, 309, ...
newArgs[0] = RubySymbol.newSymbol(runtime, name);
newArgs[0] = RubySymbol.newSymbol(getRuntime(), name);
private IRubyObject callMethodMissing(IRubyObject receiver, String name, IRubyObject[] args) { if (name == "method_missing") { runtime.getFrameStack().push(); try { return receiver.method_missing(args); } finally { runtime.getFrameStack().pop(); } } IRubyObject[] newArgs = new IRubyObject[args.length + 1]; System.arraycopy(args, 0, newArgs, 1, args.length); newArgs[0] = RubySymbol.newSymbol(runtime, name); return receiver.callMethod("method_missing", newArgs); }
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyModule.java/buggy/src/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 15908, 10340, 921, 745, 1305, 4841, 12, 7937, 10340, 921, 5971, 16, 514, 508, 16, 15908, 10340, 921, 8526, 833, 13, 288, 3639, 309, 261, 529, 422, 315, 2039, 67, 7337, 7923, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 15908, 10340, 921, 745, 1305, 4841, 12, 7937, 10340, 921, 5971, 16, 514, 508, 16, 15908, 10340, 921, 8526, 833, 13, 288, 3639, 309, 261, 529, 422, 315, 2039, 67, 7337, 7923, 288, ...
return getDataModel().getStringProperty(COMPONENT_NAME); }
return getDataModel().getStringProperty(COMPONENT_NAME); }
public String getModuleName() { return getDataModel().getStringProperty(COMPONENT_NAME); }
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/adfedea2b23b364bbd7b56fa3578ef4f83a91f15/J2EEComponentCreationDataModelProvider.java/clean/plugins/org.eclipse.jst.j2ee/earproject/org/eclipse/jst/j2ee/application/internal/operations/J2EEComponentCreationDataModelProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 11251, 461, 1435, 288, 202, 202, 2463, 4303, 1488, 7675, 588, 780, 1396, 12, 22922, 67, 1985, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 11251, 461, 1435, 288, 202, 202, 2463, 4303, 1488, 7675, 588, 780, 1396, 12, 22922, 67, 1985, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
for( int i = 0; i < this.columns.size(); i++ ) { ColumnTag tag = (ColumnTag)this.columns.get( i );
buf.append("<th"); if (tag.getWidth() != null) buf.append(" width=\"" + tag.getWidth() + "\"");
private String getTableHeader() { StringBuffer buf = new StringBuffer( 1000 ); int pagesizeValue = this.getPagesizeValue(); HttpServletRequest req = (HttpServletRequest)this.pageContext.getRequest(); String url = this.requestURI; if( url == null ) { url = req.getRequestURI(); }// url += req.getQueryString(); // flag to determine if we should use a ? or a & int index = url.indexOf( '?' ); String separator = ""; if( index == -1 ) { separator = "?"; } else { separator = "&"; } buf.append( "<table " ); buf.append( this.getTableAttributes().toString() ); buf.append( ">\n" ); // If they don't want the header shown for some reason, then stop here. if( !this.prop.getProperty( "basic.show.header" ).equals( "true" ) ) { return buf.toString(); } if( pagesizeValue != 0 && helper != null ) { buf.append( "<tr><td width=\"100%\" colspan=\"" + this.columns.size() ); buf.append( "\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" " ); buf.append( "cellpadding=\"0\"><tr class=\"tableRowAction\">" ); buf.append( "<td align=\"left\" valign=\"bottom\" class=\"" ); buf.append( "tableCellAction\">" ); buf.append( helper.getSearchResultsSummary() ); buf.append( "</td>\n" ); buf.append( "<td valign=\"bottom\" align=\"right\" class=\"" ); buf.append( "tableCellAction\">\n" ); buf.append( helper.getPageNavigationBar( url + separator + "page={0,number,#}" ) ); buf.append( "</td>\n</tr></table></td></tr>\n" ); } buf.append( "<tr class=\"tableRowHeader\">" ); for( int i = 0; i < this.columns.size(); i++ ) { ColumnTag tag = (ColumnTag)this.columns.get( i ); buf.append( "<th" ); if( tag.getWidth() != null ) buf.append( " width=\"" + tag.getWidth() + "\"" ); if( tag.getAlign() != null ) buf.append( " align=\"" + tag.getAlign() + "\"" ); if( tag.getHeaderStyleClass() != null ) { buf.append( " class=\"" + tag.getHeaderStyleClass() + "\">" ); } else { buf.append( " class=\"tableCellHeader\">" ); } String header = tag.getTitle(); if( header == null ) { header = StringUtil.toUpperCaseAt( tag.getProperty(), 0 ); } if( tag.getSort() != null ) {// if( this.sortColumn == 0 ) {// buf.append( "<a href=\"" + url + separator + "order=dec&sort=" + i + "\" class=\"tableCellHeader\">" );// } else { if( this.sortOrder == SORT_ORDER_ASCEENDING ) { buf.append( "<a href=\"" + url + separator + "order=dec&sort=" + i + "\" class=\"tableCellHeader\">" ); } else { buf.append( "<a href=\"" + url + separator + "order=asc&sort=" + i + "\" class=\"tableCellHeader\">" ); }// } buf.append( header ); buf.append( "</a>" ); } else { buf.append( header ); } buf.append( "</th>\n" ); } // Special case, if they don't provide any columns, then just set // the title to a message, telling them to provide some... if( this.columns.size() == 0 ) { buf.append( "<td><b>" + prop.getProperty( "error.msg.no_column_tags" ) + "</b></td>" ); } buf.append( "</tr>\n" ); return buf.toString(); }
7284 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7284/a71dc315013464c01719d449044bb7645788f6e6/TableTag.java/clean/_OLD/displaytag08/src/org/apache/taglibs/display/TableTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 514, 5638, 1864, 1435, 282, 288, 1377, 6674, 1681, 273, 394, 6674, 12, 4336, 11272, 1377, 509, 4689, 554, 620, 273, 333, 18, 588, 5716, 554, 620, 5621, 1377, 9984, 1111, 273, 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, 565, 3238, 514, 5638, 1864, 1435, 282, 288, 1377, 6674, 1681, 273, 394, 6674, 12, 4336, 11272, 1377, 509, 4689, 554, 620, 273, 333, 18, 588, 5716, 554, 620, 5621, 1377, 9984, 1111, 273, 261, ...
sB.append((char)c);
sB.append((char)c);
public String readLine(String endLine) { if (endLine == null || endLine.length() ==0) { if ( readLine(sB)) return sB.toString(); else return null; } sB.setLength(0); if (inStream==null) {return null; } else { try { if (remnantString.length() >0) { sB.append(remnantString.toString()); } remnantString.setLength(0); boolean done = false; readLineTimer.start(); int c=0; while (c!= -1) { c= readNextChar(); if (c == endLine.charAt(0)){// || oldPos == pos) remnantString.append((char)c); //appendToStringBuffer(remnantString, c); c = -1; int k; int index = 0; do{ index++; k= readNextChar(); if (k== -1){ done = true; } else remnantString.append((char)k); //appendToStringBuffer(remnantString, k); } while (index<endLine.length() && k == endLine.charAt(index) && !done); if (index>= endLine.length() && !done) { remnantString.setLength(0); // appendToStringBuffer(remnantString, k); remnantString.append((char)k); } } else if (c!= -1) // appendToStringBuffer(sB, c); sB.append((char)c); else { // end of stream had been reached done = true; remnantString.setLength(0); } } readLineTimer.end(); String s = sB.toString(); if (done && StringUtil.blank(s)) { updateProgress(); return null; } updateProgress(); return s; } catch( FileNotFoundException e ) { MesquiteModule.mesquiteTrunk.discreetAlert( CommandRecord.threadIsScripting(), "File Busy or Not Found (3): \ndirectory <" + directoryName + "> \nfile <" + fileName + ">" ); //MesquiteMessage.printStackTrace(); } catch( IOException e ) { MesquiteModule.mesquiteTrunk.discreetAlert( CommandRecord.threadIsScripting(), "IO exception in readLine for <" + directoryName + "> \nfile <" + fileName + "> " + e.getMessage() ); //MesquiteMessage.printStackTrace(); } updateProgress(); return null; } }
57538 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57538/a6cca3dab0a6fd887ee6bde71a8709e5bfbd4434/MesquiteFile.java/buggy/releases/current/Mesquite Project/Source/mesquite/lib/MesquiteFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 12273, 12, 780, 31763, 13, 288, 202, 202, 430, 261, 409, 1670, 422, 446, 747, 31763, 18, 2469, 1435, 422, 20, 13, 225, 288, 1082, 202, 430, 261, 12273, 12, 87, 38, 3719...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 12273, 12, 780, 31763, 13, 288, 202, 202, 430, 261, 409, 1670, 422, 446, 747, 31763, 18, 2469, 1435, 422, 20, 13, 225, 288, 1082, 202, 430, 261, 12273, 12, 87, 38, 3719...
public abstract Isect intersect(Ray ry);
public abstract Isect intersect(Ray ray);
public abstract Isect intersect(Ray ry);
23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/80a90996a87b23c561b5cc820ea57e1356c218b2/Primitive.java/buggy/src/org/objectweb/proactive/examples/c3d/prim/Primitive.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 8770, 467, 5709, 9136, 12, 54, 528, 16826, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 8770, 467, 5709, 9136, 12, 54, 528, 16826, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
System.out.println("index: " + index + " section.getName: " + ((InfoSection)allSections.get(index.intValue())).getName());
System.out.println( "index: " + index + " section.getName: " + ((InfoSection) allSections.get(index.intValue())).getName());
public ActionForward changeParent(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FenixActionException { HttpSession session = request.getSession(); DynaActionForm sectionForm = (DynaValidatorForm) form; String sectionName = (String) sectionForm.get("name"); Integer index = (Integer) sectionForm.get("index"); List allSections = (List) session.getAttribute("ALL_SECTIONS"); System.out.println("index: " + index + " section.getName: " + ((InfoSection)allSections.get(index.intValue())).getName()); return mapping.findForward("prepareEditSection"); }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/4db3655eef9c9497c9847d2e335c01f532c42e41/EditSectionDispatchAction.java/clean/src/ServidorApresentacao/Action/teacher/EditSectionDispatchAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4382, 8514, 2549, 3054, 12, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 9984, 590, 16, 12446, 766, 13, 202, 202, 15069, 478, 275, 697, 1803, 503, 288, 1082, 202, 2940, 2157, 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, 4382, 8514, 2549, 3054, 12, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 9984, 590, 16, 12446, 766, 13, 202, 202, 15069, 478, 275, 697, 1803, 503, 288, 1082, 202, 2940, 2157, 13...
ls.attach((Light) spatialLights.get(i));
ls.attach( spatialLight );
public Node buildScene() throws IOException { buildObject(); putTranslations(); Node uberNode=new Node("TDS Scene"); LightState ls=null; for (int i=0;i<spatialNodes.size();i++){ if (spatialNodes.get(i) instanceof Spatial){ Spatial toAttach=(Spatial)spatialNodes.get(i); if ( toAttach.getParent() == null ) { uberNode.attachChild(toAttach); } } } for (int i=0;i<spatialLights.size();i++){ if (ls==null){ ls=DisplaySystem.getDisplaySystem().getRenderer().createLightState(); ls.setEnabled(true); } ls.attach((Light) spatialLights.get(i)); } if (ls!=null) uberNode.setRenderState(ls); if (keyframes!=null){ st.interpolateMissing(); uberNode.addController(st); st.setActive(true); } return uberNode; }
19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/7bcc0cbf7d1d5d18c8a9da62c8cfd3cc911d9cba/TDSFile.java/buggy/src/com/jmex/model/XMLparser/Converters/TDSChunkingFiles/TDSFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2029, 1361, 14370, 1435, 1216, 1860, 288, 3639, 1361, 921, 5621, 3639, 1378, 12297, 5621, 3639, 2029, 13910, 264, 907, 33, 2704, 2029, 2932, 56, 3948, 29347, 8863, 3639, 15992, 1119, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2029, 1361, 14370, 1435, 1216, 1860, 288, 3639, 1361, 921, 5621, 3639, 1378, 12297, 5621, 3639, 2029, 13910, 264, 907, 33, 2704, 2029, 2932, 56, 3948, 29347, 8863, 3639, 15992, 1119, ...
VM.sysWrite("\n-- System Queues -- \n"); wakeupQueue.dump();
VM.sysWrite("\n-- System Queues -- \n");
public static void dumpVirtualMachine() throws InterruptiblePragma { VM_Processor processor; VM.sysWrite("\n-- Processors --\n"); for (int i = 1; i <= numProcessors; ++i) { processor = processors[i]; processor.dumpProcessorState(); } // system queues VM.sysWrite("\n-- System Queues -- \n"); wakeupQueue.dump(); VM.sysWrite(" wakeupQueue: "); wakeupQueue.dump(); VM.sysWrite(" debuggerQueue: "); debuggerQueue.dump(); VM.sysWrite(" deadVPQueue: "); deadVPQueue.dump(); VM.sysWrite(" collectorQueue: "); collectorQueue.dump(); VM.sysWrite(" finalizerQueue: "); finalizerQueue.dump(); VM.sysWrite("\n-- Threads --\n"); for (int i = 1; i < threads.length; ++i) { if (threads[i] != null) { threads[i].dump(); VM.sysWrite("\n"); } } VM.sysWrite("\n"); VM.sysWrite("\n-- Locks available --\n"); for (int i = PRIMORDIAL_PROCESSOR_ID; i <= numProcessors; ++i) { processor = processors[i]; int unallocated = processor.lastLockIndex - processor.nextLockIndex + 1; VM.sysWrite(" processor "); VM.sysWriteInt(i); VM.sysWrite(": "); VM.sysWriteInt(processor.locksAllocated); VM.sysWrite(" locks allocated, "); VM.sysWriteInt(processor.locksFreed); VM.sysWrite(" locks freed, "); VM.sysWriteInt(processor.freeLocks); VM.sysWrite(" free looks, "); VM.sysWriteInt(unallocated); VM.sysWrite(" unallocated slots\n"); } VM.sysWrite("\n"); VM.sysWrite("\n-- Locks in use --\n"); for (int i = 0; i < locks.length; ++i) if (locks[i] != null) locks[i].dump(); VM.sysWrite("\n"); }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/0565f4f1937add6a77876b066511f3620583f009/VM_Scheduler.java/buggy/rvm/src/vm/scheduler/VM_Scheduler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 4657, 27454, 1435, 377, 1216, 3094, 4483, 1523, 2050, 9454, 225, 288, 565, 8251, 67, 5164, 6659, 31, 565, 8251, 18, 9499, 3067, 31458, 82, 413, 4389, 1383, 1493, 64, 82, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4657, 27454, 1435, 377, 1216, 3094, 4483, 1523, 2050, 9454, 225, 288, 565, 8251, 67, 5164, 6659, 31, 565, 8251, 18, 9499, 3067, 31458, 82, 413, 4389, 1383, 1493, 64, 82, ...
new ImageIcon(getClass().getResource("images/connected-small.gif"));
new ImageIcon("ui/images/connected-small.gif");
private UIFactory() { fFolderIcon = new ImageIcon(getClass().getResource("images/folder-small.gif")); fNewsgroupIcon = new ImageIcon(getClass().getResource("images/newsgroup-small.gif")); fLocalStoreIcon = new ImageIcon(getClass().getResource("images/storeLocal-small.gif")); fRemoteStoreIcon = new ImageIcon(getClass().getResource("images/storeRemote-small.gif")); fInboxIcon = new ImageIcon(getClass().getResource("images/inbox-small.gif")); fConnectedIcon = new ImageIcon(getClass().getResource("images/connected-small.gif")); }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/3cd6e9d81112e3ab17a910eaef36b9e56b2a8b6a/UIFactory.java/clean/grendel/sources/grendel/ui/UIFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 6484, 1733, 1435, 288, 565, 284, 3899, 5554, 273, 1377, 394, 3421, 5554, 12, 588, 797, 7675, 588, 1420, 2932, 7369, 19, 5609, 17, 12019, 18, 13905, 7923, 1769, 565, 284, 1908, 1055,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6484, 1733, 1435, 288, 565, 284, 3899, 5554, 273, 1377, 394, 3421, 5554, 12, 588, 797, 7675, 588, 1420, 2932, 7369, 19, 5609, 17, 12019, 18, 13905, 7923, 1769, 565, 284, 1908, 1055,...
data = c.decompress(data, fetchContext.bucketFactory, Math.max(fetchContext.maxTempLength, fetchContext.maxOutputLength), out);
data = c.decompress(data, fetchContext.bucketFactory, maxLen, maxLen * 4, out);
private void finish() { try { synchronized(this) { if(finished) { Logger.error(this, "Was already finished"); return; } finished = true; } Bucket data = finalStatus(); // Decompress while(!decompressors.isEmpty()) { Compressor c = (Compressor) decompressors.removeLast(); try { Bucket out = returnBucket; if(!decompressors.isEmpty()) out = null; data = c.decompress(data, fetchContext.bucketFactory, Math.max(fetchContext.maxTempLength, fetchContext.maxOutputLength), out); } catch (IOException e) { cb.onFailure(new FetchException(FetchException.BUCKET_ERROR, e), this); return; } catch (CompressionOutputSizeException e) { cb.onFailure(new FetchException(FetchException.TOO_BIG, e), this); return; } } cb.onSuccess(new FetchResult(clientMetadata, data), this); } catch (FetchException e) { cb.onFailure(e, this); } }
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/f466a9cbfdb3a13d7bde7e38d0a46b0f45645263/SplitFileFetcher.java/buggy/src/freenet/client/async/SplitFileFetcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 4076, 1435, 288, 202, 202, 698, 288, 1082, 202, 22043, 12, 2211, 13, 288, 9506, 202, 430, 12, 13527, 13, 288, 6862, 202, 3328, 18, 1636, 12, 2211, 16, 315, 14992, 1818, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4076, 1435, 288, 202, 202, 698, 288, 1082, 202, 22043, 12, 2211, 13, 288, 9506, 202, 430, 12, 13527, 13, 288, 6862, 202, 3328, 18, 1636, 12, 2211, 16, 315, 14992, 1818, ...