Package org.apache.poi.ss.formula.ptg
Class ErrPtg
- java.lang.Object
-
- org.apache.poi.ss.formula.ptg.Ptg
-
- org.apache.poi.ss.formula.ptg.ScalarConstantPtg
-
- org.apache.poi.ss.formula.ptg.ErrPtg
-
- All Implemented Interfaces:
Serializable
,Duplicatable
,GenericRecord
public final class ErrPtg extends ScalarConstantPtg
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ErrPtg
DIV_ZERO
#DIV/0! - Division by zerostatic ErrPtg
N_A
#N/A - Argument or function not availablestatic ErrPtg
NAME_INVALID
#NAME? - Wrong function or range namestatic ErrPtg
NULL_INTERSECTION
#NULL! - Intersection of two cell ranges is emptystatic ErrPtg
NUM_ERROR
#NUM! - Value range overflowstatic ErrPtg
REF_INVALID
#REF! - Illegal or deleted cell referencestatic short
sid
static ErrPtg
VALUE_INVALID
#VALUE! - Wrong type of operand-
Fields inherited from class org.apache.poi.ss.formula.ptg.Ptg
CLASS_ARRAY, CLASS_REF, CLASS_VALUE, EMPTY_PTG_ARRAY
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrPtg
copy()
int
getErrorCode()
Map<String,Supplier<?>>
getGenericProperties()
byte
getSid()
int
getSize(SpreadsheetVersion version)
static ErrPtg
read(LittleEndianInput in)
String
toFormulaString()
return a string representation of this token alonestatic ErrPtg
valueOf(int code)
void
write(LittleEndianOutput out, SpreadsheetVersion version)
-
Methods inherited from class org.apache.poi.ss.formula.ptg.ScalarConstantPtg
getDefaultOperandClass, isBaseToken
-
Methods inherited from class org.apache.poi.ss.formula.ptg.Ptg
createPtg, createPtg, doesFormulaReferToDeletedCell, getEncodedSize, getEncodedSize, getEncodedSizeWithoutArrayData, getEncodedSizeWithoutArrayData, getPtgClass, getRVAType, readTokens, readTokens, serializePtgs, serializePtgs, setClass, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren, getGenericRecordType
-
-
-
-
Field Detail
-
NULL_INTERSECTION
public static final ErrPtg NULL_INTERSECTION
#NULL! - Intersection of two cell ranges is empty
-
DIV_ZERO
public static final ErrPtg DIV_ZERO
#DIV/0! - Division by zero
-
VALUE_INVALID
public static final ErrPtg VALUE_INVALID
#VALUE! - Wrong type of operand
-
REF_INVALID
public static final ErrPtg REF_INVALID
#REF! - Illegal or deleted cell reference
-
NAME_INVALID
public static final ErrPtg NAME_INVALID
#NAME? - Wrong function or range name
-
NUM_ERROR
public static final ErrPtg NUM_ERROR
#NUM! - Value range overflow
-
N_A
public static final ErrPtg N_A
#N/A - Argument or function not available
-
sid
public static final short sid
- See Also:
- Constant Field Values
-
-
Method Detail
-
read
public static ErrPtg read(LittleEndianInput in)
-
write
public void write(LittleEndianOutput out, SpreadsheetVersion version)
-
toFormulaString
public String toFormulaString()
Description copied from class:Ptg
return a string representation of this token alone- Specified by:
toFormulaString
in classPtg
-
getSid
public byte getSid()
-
getSize
public int getSize(SpreadsheetVersion version)
-
getErrorCode
public int getErrorCode()
-
valueOf
public static ErrPtg valueOf(int code)
-
copy
public ErrPtg copy()
- Specified by:
copy
in interfaceDuplicatable
- Specified by:
copy
in classPtg
- Returns:
- a deep copy of the implementing class / instance
-
-