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

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


                        // Has been wrapped with cell details, but we know those
                        e = (Exception)e.getCause();
                    }
                   
                    if (e instanceof NotImplementedFunctionException) {
                        NotImplementedFunctionException nie = (NotImplementedFunctionException)e;
                        unsupportedFunctions.add(nie.getFunctionName());
                    }
                    unevaluatableCells.put(new CellReference(c), e);
                }
            }
        }
View Full Code Here


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

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

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

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

      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();
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 NotImplementedFunctionException(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

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

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

TOP

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

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.