Package org.apache.poi.ss.formula.eval

Examples of org.apache.poi.ss.formula.eval.NotImplementedException


       public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos) {
          return toAppendTo.append(format((Number)obj));
       }

       public Object parseObject(String source, ParsePosition pos) {
          throw new NotImplementedException("Reverse parsing not supported");
       }
View Full Code Here


      case 3: return new Counta();
      case 4: return AggregateFunction.MAX;
      case 5: return AggregateFunction.MIN;
      case 6: return AggregateFunction.PRODUCT;
      case 7: return AggregateFunction.STDEV;
      case 8: throw new NotImplementedException("STDEVP");
      case 9: return AggregateFunction.SUM;
      case 10: throw new NotImplementedException("VAR");
      case 11: throw new NotImplementedException("VARP");
    }
    if (functionCode > 100 && functionCode < 112) {
      throw new NotImplementedException("SUBTOTAL - with 'exclude hidden values' option");
    }
    throw EvaluationException.invalidValue();
  }
View Full Code Here

    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
      e.printStackTrace();
      return inner; // preserve original exception
    }
View Full Code Here

        public NotImplemented(String functionName) {
            _functionName = functionName;
        }

        public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {
            throw new NotImplementedException(_functionName);
        }
View Full Code Here

  public NotImplementedFunction(String name) {
    _functionName = name;
  }

  public ValueEval evaluate(ValueEval[] operands, int srcRow, int srcCol) {
    throw new NotImplementedException(_functionName);
  }
View Full Code Here

      case 3: return new Counta();
      case 4: return AggregateFunction.MAX;
      case 5: return AggregateFunction.MIN;
      case 6: return AggregateFunction.PRODUCT;
      case 7: return AggregateFunction.STDEV;
      case 8: throw new NotImplementedException("STDEVP");
      case 9: return AggregateFunction.SUM;
      case 10: throw new NotImplementedException("VAR");
      case 11: throw new NotImplementedException("VARP");
    }
    if (functionCode > 100 && functionCode < 112) {
      throw new NotImplementedException("SUBTOTAL - with 'exclude hidden values' option");
    }
    throw EvaluationException.invalidValue();
  }
View Full Code Here

    public NotImplemented(String functionName) {
      _functionName = functionName;
    }

    public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {
      throw new NotImplementedException(_functionName);
    }
View Full Code Here

      throw new RuntimeException("First argument should be a NameEval, but got ("
          + nameArg.getClass().getName() + ")");
    }
    FreeRefFunction targetFunc = ec.findUserDefinedFunction(functionName);
    if (targetFunc == null) {
      throw new NotImplementedException(functionName);
    }
    int nOutGoingArgs = nIncomingArgs -1;
    ValueEval[] outGoingArgs = new ValueEval[nOutGoingArgs];
    System.arraycopy(args, 1, outGoingArgs, 0, nOutGoingArgs);
    return targetFunc.evaluate(outGoingArgs, ec);
View Full Code Here

        return null;
    }
    // else - must be plain function
    Function result = functions[functionIndex];
    if (result == null) {
      throw new NotImplementedException("FuncIx=" + functionIndex);
    }
    return result;
  }
View Full Code Here

    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
      e.printStackTrace();
      return inner; // preserve original exception
    }
View Full Code Here

TOP

Related Classes of org.apache.poi.ss.formula.eval.NotImplementedException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.