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

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


    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 UserDefinedFunction.instance.evaluate(args, ec);
    }
    // else - must be plain function
    Function f = functions[fidx];
    if (f == null) {
      throw new NotImplementedException("FuncIx=" + fidx);
    }
    int srcCellRow = ec.getRowIndex();
    int srcCellCol = ec.getColumnIndex();
    return f.evaluate(args, srcCellRow, (short) srcCellCol);
  }
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 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

        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

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

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

    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

      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

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

        public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {
            throw new NotImplementedException(_functionName);
        }
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.