Top Fields Constructors Methods
org.apache.poi.ss.formula.ptg

public final Class ErrPtg

extends ScalarConstantPtg
Class Inheritance
Imports
java.util.Map, java.util.function.Supplier, org.apache.poi.ss.usermodel.FormulaError, org.apache.poi.util.GenericRecordUtil, .LittleEndianInput, .LittleEndianOutput

Field Summary

Modifier and TypeField and Description
public static final ErrPtg
DIV_ZERO

#DIV/0!

private final int
public static final ErrPtg
N_A

#N/A - Argument or function not available

public static final ErrPtg
public static final ErrPtg
public static final ErrPtg
NUM_ERROR

#NUM!

public static final ErrPtg
public static final short
private static final int
public static final ErrPtg

Constructor Summary

AccessConstructor and Description
private
ErrPtg(int errorCode)

Creates new ErrPtg

Method Summary

Modifier and TypeMethod and Description
public ErrPtg
public int
public Map<String, Supplier<?>>
public byte
public int
public static ErrPtg
public String
toFormulaString()

Implements abstract org.apache.poi.ss.formula.ptg.Ptg.toFormulaString.

return a string representation of this token alone

public static ErrPtg
valueOf(int code)

public void
Inherited from org.apache.poi.ss.formula.ptg.ScalarConstantPtg:
getDefaultOperandClassisBaseToken

Field Detail

DIV_ZEROback to summary
public static final ErrPtg DIV_ZERO

#DIV/0! - Division by zero

field_1_error_codeback to summary
private final int field_1_error_code
N_Aback to summary
public static final ErrPtg N_A

#N/A - Argument or function not available

NAME_INVALIDback to summary
public static final ErrPtg NAME_INVALID

#NAME? - Wrong function or range name

NULL_INTERSECTIONback to summary
public static final ErrPtg NULL_INTERSECTION

#NULL! - Intersection of two cell ranges is empty

NUM_ERRORback to summary
public static final ErrPtg NUM_ERROR

#NUM! - Value range overflow

REF_INVALIDback to summary
public static final ErrPtg REF_INVALID

#REF! - Illegal or deleted cell reference

sidback to summary
public static final short sid
SIZEback to summary
private static final int SIZE
VALUE_INVALIDback to summary
public static final ErrPtg VALUE_INVALID

#VALUE! - Wrong type of operand

Constructor Detail

ErrPtgback to summary
private ErrPtg(int errorCode)

Creates new ErrPtg

Method Detail

copyback to summary
public ErrPtg copy()

Implements abstract org.apache.poi.ss.formula.ptg.Ptg.copy.

Implements org.apache.poi.common.Duplicatable.copy.

Returns:ErrPtg

Doc from org.apache.poi.common.Duplicatable.copy.

a deep copy of the implementing class / instance

Annotations
@Override
getErrorCodeback to summary
public int getErrorCode()
getGenericPropertiesback to summary
public Map<String, Supplier<?>> getGenericProperties()

Implements org.apache.poi.common.usermodel.GenericRecord.getGenericProperties.

Annotations
@Override
getSidback to summary
public byte getSid()

Implements abstract org.apache.poi.ss.formula.ptg.Ptg.getSid.

Returns:byte

Doc from org.apache.poi.ss.formula.ptg.Ptg.getSid.

structure id of the parsed thing, or -1 if the record has no sid

Annotations
@Override
getSizeback to summary
public int getSize()

Implements abstract org.apache.poi.ss.formula.ptg.Ptg.getSize.

Returns:int

Doc from org.apache.poi.ss.formula.ptg.Ptg.getSize.

the encoded length of this Ptg, including the initial Ptg type identifier byte.

readback to summary
public static ErrPtg read(LittleEndianInput in)
toFormulaStringback to summary
public String toFormulaString()

Implements abstract org.apache.poi.ss.formula.ptg.Ptg.toFormulaString.

Doc from org.apache.poi.ss.formula.ptg.Ptg.toFormulaString.

return a string representation of this token alone

valueOfback to summary
public static ErrPtg valueOf(int code)
writeback to summary
public void write(LittleEndianOutput out)

Implements abstract org.apache.poi.ss.formula.ptg.Ptg.write.