Uses of Class
org.apache.poi.ss.formula.eval.EvaluationException
Packages that use EvaluationException
Package
Description
-
Uses of EvaluationException in org.apache.poi.ss.formula.eval
Methods in org.apache.poi.ss.formula.eval that return EvaluationExceptionModifier and TypeMethodDescriptionstatic EvaluationExceptionEvaluationException.invalidRef()#REF! - Illegal or deleted cell referencestatic EvaluationExceptionEvaluationException.invalidValue()#VALUE! - Wrong type of operandstatic EvaluationExceptionEvaluationException.numberError()#NUM! - Value range overflowMethods in org.apache.poi.ss.formula.eval that throw EvaluationExceptionModifier and TypeMethodDescriptionstatic ValueEvalOperandResolver.chooseSingleElementFromArea(AreaEval ae, int srcCellRow, int srcCellCol) Implements (some perhaps not well known) Excel functionality to select a single cell from an area depending on the coordinates of the calling cell.static intOperandResolver.coerceDoubleToInt(double d) Converts a double to an int, truncating toward zero, for use as an integer argument of a function.static BooleanOperandResolver.coerceValueToBoolean(ValueEval ve, boolean stringsAreBlanks) static doubleOperandResolver.coerceValueToDouble(ValueEval ev) Applies some conversion rules if the supplied value is not already a number.static intOperandResolver.coerceValueToInt(ValueEval ev) Applies some conversion rules if the supplied value is not already an integer.
Value is first coerced to adouble( SeecoerceValueToDouble()).protected abstract doubleTwoOperandNumericOperation.evaluate(double d0, double d1) static ValueEvalOperandResolver.getSingleValue(ValueEval arg, int srcCellRow, int srcCellCol) Retrieves a single value from a variety of different argument types according to standard Excel rules.protected final doubleTwoOperandNumericOperation.singleOperandEvaluate(ValueEval arg, int srcCellRow, int srcCellCol) -
Uses of EvaluationException in org.apache.poi.ss.formula.functions
Methods in org.apache.poi.ss.formula.functions that throw EvaluationExceptionModifier and TypeMethodDescriptionprotected ValueEvalAverageIf.aggregateMatchingCells(org.apache.poi.ss.formula.functions.Baseifs.Aggregator aggregator, AreaEval sumRange, AreaEval testRange, org.apache.poi.ss.formula.functions.CountUtils.I_MatchPredicate mp) static voidNumericFunction.checkValue(double result) static voidMatrixFunction.checkValues(double[] results) double[]MatrixFunction.MutableValueCollector.collectValues(ValueEval... operands) protected abstract double[]MatrixFunction.OneArrayArg.collectValues(ValueEval arg) protected abstract double[]MatrixFunction.TwoArrayArg.collectValues(ValueEval arg) doubleprotected abstract doubledoubleprotected doubleFinanceFunction.evaluate(double[] ds) protected abstract doubleFinanceFunction.evaluate(double rate, double arg1, double arg2, double arg3, boolean type) protected abstract double[][]MatrixFunction.OneArrayArg.evaluate(double[][] d1) protected abstract double[][]MatrixFunction.TwoArrayArg.evaluate(double[][] d1, double[][] d2) protected doubleMirr.evaluate(double[] values) static doubleMode.evaluate(double[] v) if v is zero length or contains no duplicates, return value is Double.NaN.protected abstract doubleMultiOperandNumericFunction.evaluate(double[] values) protected static doubleTextFunction.evaluateDoubleArg(ValueEval arg, int srcCellRow, int srcCellCol) static intChoose.evaluateFirstArg(ValueEval arg0, int srcRowIndex, int srcColumnIndex) static booleanIfFunc.evaluateFirstArg(ValueEval arg, int srcCellRow, int srcCellCol) protected abstract ValueEvalTextFunction.evaluateFunc(ValueEval[] args, int srcCellRow, int srcCellCol) protected static intTextFunction.evaluateIntArg(ValueEval arg, int srcCellRow, int srcCellCol) protected static StringTextFunction.evaluateStringArg(ValueEval eval, int srcRow, int srcCol) protected final double[]MultiOperandNumericFunction.getNumberArray(ValueEval[] operands) Returns a double array that contains values for the numeric cells from among the list of operands.static intLookupUtils.lookupFirstIndexOfValue(ValueEval lookupValue, LookupUtils.ValueVector vector, boolean isRangeLookup) static booleanLookupUtils.resolveRangeLookupArg(ValueEval rangeLookupArg, int srcCellRow, int srcCellCol) Resolves the last (optional) parameter (range_lookup) to the VLOOKUP and HLOOKUP functions.static intLookupUtils.resolveRowOrColIndexArg(ValueEval rowColIndexArg, int srcCellRow, int srcCellCol) Processes the third argument to VLOOKUP, or HLOOKUP (col_index_num or row_index_num respectively).
Sample behaviour: Sample behaviour Input ReturnValue Thrown Error 54 2.92 "5"4 "2.18e1"21 "-$2"-3* FALSE-1* TRUE0 "TRUE" #REF! "abc" #REF! "" #REF! <blank> #VALUE!
Note - out of range errors (result index too high) are handled by the caller.static TwoDEvalLookupUtils.resolveTableArrayArg(ValueEval eval) The second argument (table_array) should be an area ref, but can actually be a cell ref, in which case it is interpreted as a 1x1 area ref.protected final doubleMatrixFunction.singleOperandEvaluate(ValueEval arg, int srcCellRow, int srcCellCol) protected static doubleNumericFunction.singleOperandEvaluate(ValueEval arg, int srcRowIndex, int srcColumnIndex) static intLookupUtils.xlookupIndexOfValue(ValueEval lookupValue, LookupUtils.ValueVector vector, LookupUtils.MatchMode matchMode, LookupUtils.SearchMode searchMode) -
Uses of EvaluationException in org.apache.poi.ss.util
Methods in org.apache.poi.ss.util that throw EvaluationException