public Object parseObject(String source, ParsePosition pos) { throw new NotImplementedException("Reverse parsing not supported"); }
/** * @return <code>null</code> if the specified functionIndex is for INDIRECT() or any external (add-in) function. */ public static Function getBasicFunction(int functionIndex) { // check for 'free ref' functions first switch (functionIndex) { case FunctionID.INDIRECT: case FunctionID.EXTERNAL_FUNC: return null; } // else - must be plain function Function result = functions[functionIndex]; if (result == null) { throw new NotImplementedException("FuncIx=" + functionIndex); } return result; }
@Override @NotImplemented public void updateFormulas(FormulaShifter formulaShifter) { throw new NotImplementedException("updateFormulas"); }
@Override @NotImplemented public void updateFormulas(FormulaShifter formulaShifter) { throw new NotImplementedException("updateFormulas"); }
@Override @NotImplemented public void updateHyperlinks(FormulaShifter formulaShifter) { throw new NotImplementedException("updateHyperlinks"); }
@Override @NotImplemented public void shiftCellsLeft(int firstShiftColumnIndex, int lastShiftColumnIndex, int step){ throw new NotImplementedException("shiftCellsLeft"); }
@Override @NotImplemented public void updateNamedRanges(FormulaShifter formulaShifter) { throw new NotImplementedException("HSSFColumnShifter.updateNamedRanges"); }
@Override @NotImplemented public void updateConditionalFormatting(FormulaShifter formulaShifter) { throw new NotImplementedException("updateConditionalFormatting"); }
@Override @NotImplemented public void updateConditionalFormatting(FormulaShifter formulaShifter) { throw new NotImplementedException("updateConditionalFormatting"); }
@Override @NotImplemented public void updateHyperlinks(FormulaShifter formulaShifter) { throw new NotImplementedException("updateHyperlinks"); }
@Override @NotImplemented public void updateNamedRanges(FormulaShifter formulaShifter) { throw new NotImplementedException("HSSFRowShifter.updateNamedRanges"); }
@Override @NotImplemented public void shiftCellsRight(int firstShiftColumnIndex, int lastShiftColumnIndex, int step){ throw new NotImplementedException("shiftCellsRight"); } @Override
/** * Adds the current cell reference to the exception for easier debugging. * Would be nice to get the formula text as well, but that seems to require * too much digging around and casting to get the FormulaRenderingWorkbook. */ private NotImplementedException addExceptionInfo(NotImplementedException inner, int sheetIndex, int rowIndex, int columnIndex) { try { String sheetName = _workbook.getSheetName(sheetIndex); CellReference cr = new CellReference(sheetName, rowIndex, columnIndex, false, false); String msg = "Error evaluating cell " + cr.formatAsString(); return new NotImplementedException(msg, inner); } catch (Exception e) { // avoid bombing out during exception handling LOG.log(POILogger.ERROR, "Can't add exception info", e); return inner; // preserve original exception } } /**
throw new EvaluationException(ErrorEval.VALUE_INVALID); throw new NotImplementedException( "D* function with formula conditions");
private static Function findFunction(int functionCode) throws EvaluationException { switch (functionCode) { case 1: return subtotalInstance(AggregateFunction.AVERAGE); case 2: return Count.subtotalInstance(); case 3: return Counta.subtotalInstance(); case 4: return subtotalInstance(AggregateFunction.MAX); case 5: return subtotalInstance(AggregateFunction.MIN); case 6: return subtotalInstance(AggregateFunction.PRODUCT); case 7: return subtotalInstance(AggregateFunction.STDEV); case 8: throw new NotImplementedFunctionException("STDEVP"); case 9: return subtotalInstance(AggregateFunction.SUM); case 10: throw new NotImplementedFunctionException("VAR"); case 11: throw new NotImplementedFunctionException("VARP"); } if (functionCode > 100 && functionCode < 112) { throw new NotImplementedException("SUBTOTAL - with 'exclude hidden values' option"); } throw EvaluationException.invalidValue(); }
throw new NotImplementedException("Sample size too small"); } else if (yOrig.length == 1 || yOrig[0].length == 1) { if (xOrig.length < 1) { throw new NotImplementedException("Sample size too small"); par = reg.estimateRegressionParameters(); } catch (SingularMatrixException e) { throw new NotImplementedException("Singular matrix in input");
public Object parseObject(String source, ParsePosition pos) { throw new NotImplementedException("Reverse parsing not supported"); } }
public ValueEval evaluate(ValueEval[] operands, int srcRow, int srcCol) { throw new NotImplementedException(_functionName); } public String getFunctionName() {
public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) { throw new NotImplementedException(_functionName); } }
public Object parseObject(String source, ParsePosition pos) { throw new NotImplementedException("Reverse parsing not supported"); } }