public Parse last() { return more == null ? this : more.last(); }
/** * Returns the last node of the current sibling list. * * @return last sibling */ public Parse last() { return more == null ? this : more.last(); }
Parse lastRow() { return table.parts.last(); }
Parse lastRow() { return table.parts.last(); }
public Parse last() { return more == null ? this : more.last(); }
protected Parse appendCell(Parse row, String text) { Parse lastCell = new Parse("td", text, null, null); row.parts.last().more = lastCell; return lastCell; }
protected Parse appendCell(Parse row, String text) { Parse lastCell = new Parse("td", text, null, null); row.parts.last().more = lastCell; return lastCell; }
private void doActionOnSemaphore(String action, String name, Parse infoCells) { boolean isOk = false; if ("lock".equals(action)) { isOk = lockSemaphore(name); if (!isOk) setForcedAbort(true); } else if ("unlock".equals(action)) isOk = unlockSemaphore(name); else exception(infoCells.parts, new Throwable("Bad action: " + action)); if (isOk) { infoCells.parts.last().more = new Parse("td", makeSemaphoreName(name), null, null); right(infoCells); } else exception(infoCells.parts, new Throwable("Unable to " + action + " semaphore '" + name + "'") ); }
private void doActionOnSemaphore(String action, String name, Parse infoCells) { boolean isOk = false; if ("lock".equals(action)) { isOk = lockSemaphore(name); if (!isOk) setForcedAbort(true); } else if ("unlock".equals(action)) isOk = unlockSemaphore(name); else exception(infoCells.parts, new Throwable("Bad action: " + action)); if (isOk) { infoCells.parts.last().more = new Parse("td", makeSemaphoreName(name), null, null); right(infoCells); } else exception(infoCells.parts, new Throwable("Unable to " + action + " semaphore '" + name + "'") ); }
private void copyAndAppend(Parse lastRow, int numberOfTimes) { for (int i = 0; i < numberOfTimes; i++) { Parse columns = lastRow.parts; Parse nextColumn = columns.more; Parse newNextColumn = newParse(nextColumn, nextColumn.more); Parse newColumn = newParse(columns, newNextColumn); Parse newRow = new Parse(stripAngularBrackets(lastRow.tag), lastRow.body, newColumn, null); lastRow.last().more = newRow; } }
private void copyAndAppend(Parse lastRow, int numberOfTimes) { for (int i = 0; i < numberOfTimes; i++) { Parse columns = lastRow.parts; Parse nextColumn = columns.more; Parse newNextColumn = newParse(nextColumn, nextColumn.more); Parse newColumn = newParse(columns, newNextColumn); Parse newRow = new Parse(stripAngularBrackets(lastRow.tag), lastRow.body, newColumn, null); lastRow.last().more = newRow; } }
public void doRows(Parse rows) { try { bind(rows.parts); results = query(); match(list(rows.more), list(results), 0); Parse last = rows.last(); last.more = buildRows(surplus.toArray()); mark(last.more, "surplus"); mark(missing.iterator(), "missing"); } catch (Exception e) { exception (rows.leaf(), e); } }
@Override public void doRows(Parse rows) { try { bindColumnHeadersToMethodsAndFields(rows.parts); results = query(); match(list(rows.more), list(results), 0); Parse last = rows.last(); last.more = buildRows(surplus.toArray()); mark(last.more, "surplus"); mark(missing.iterator(), "missing"); } catch (Exception e) { exception(rows.leaf(), e); } }
@Override public void doRows(Parse rows) { try { bindColumnHeadersToMethodsAndFields(rows.parts); results = query(); match(list(rows.more), list(results), 0); Parse last = rows.last(); last.more = buildRows(surplus.toArray()); mark(last.more, "surplus"); mark(missing.iterator(), "missing"); } catch (Exception e) { exception(rows.leaf(), e); } }