@Override public void doCell(Parse cell, int column) { try { columnBindings[column].doCell(this, cell); } catch (Throwable e) { // NOSONAR exception(cell, e); } }
@Override public void doCell(Parse cell, int column) { try { columnBindings[column].doCell(this, cell); } catch (Throwable e) { // NOSONAR exception(cell, e); } }
@Override public void check(Parse cell, TypeAdapter a) { try { executeIfNeeded(); } catch (Exception e) { exception(cell, e); } super.check(cell, a); }
@Override public void check(Parse cell, TypeAdapter a) { try { executeIfNeeded(); } catch (Exception e) { exception(cell, e); } super.check(cell, a); }
protected void bindColumnHeadersToMethodsAndFields(Parse heads) { try { columnBindings = new Binding[heads.size()]; for (int i = 0; heads != null; i++, heads = heads.more) { columnBindings[i] = createBinding(i, heads); } } catch (Throwable throwable) { // NOSONAR exception(heads, throwable); } }
public void check(Parse cell, TypeAdapter a) { if (!hasExecuted) { try { execute(); } catch (Exception e) { exception (cell, e); } hasExecuted = true; } super.check(cell, a); }
protected void bindColumnHeadersToMethodsAndFields(Parse heads) { try { columnBindings = new Binding[heads.size()]; for (int i = 0; heads != null; i++, heads = heads.more) { columnBindings[i] = createBinding(i, heads); } } catch (Throwable throwable) { // NOSONAR exception(heads, throwable); } }
protected void bind (Parse heads) { columnBindings = new TypeAdapter[heads.size()]; for (int i=0; heads!=null; i++, heads=heads.more) { String name = heads.text(); String suffix = "()"; try { if (name.equals("")) { columnBindings[i] = null; } else if (name.endsWith(suffix)) { columnBindings[i] = bindMethod(name.substring(0,name.length()-suffix.length())); } else { columnBindings[i] = bindField(name); } } catch (Exception e) { exception (heads, e); } } }
@Override public void doRow(Parse row) { executeCalledForRow = false; try { reset(); super.doRow(row); if (!executeCalledForRow) execute(); } catch (Exception e) { exception(row.leaf(), e); } }
public void doRow(Parse row) { hasExecuted = false; try { reset(); super.doRow(row); if (!hasExecuted) { execute(); } } catch (Exception e) { exception (row.leaf(), e); } }
@Override public void doRow(Parse row) { executeCalledForRow = false; try { reset(); super.doRow(row); if (!executeCalledForRow) execute(); } catch (Exception e) { exception(row.leaf(), e); } }
public void doCell(Parse cell, int column) { TypeAdapter a = columnBindings[column]; try { String text = cell.text(); if (text.equals("")) { check(cell, a); } else if (a == null) { ignore(cell); } else if (a.field != null) { a.set(a.parse(text)); } else if (a.method != null) { check(cell, a); } } catch(Exception e) { exception(cell, e); } }