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

public final Class NumberPtg

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

Number Stores a floating point value in a formula value stored in a 8 byte field using IEEE notation

Field Summary

Modifier and TypeField and Description
private final double
public static final byte
public static final int

Constructor Summary

AccessConstructor and Description
public
public
NumberPtg(String
String representation of a floating point number
value
)

Create a NumberPtg from a string representation of the number Number format is not checked, it is expected to be validated in the parser that calls this method.

public
NumberPtg(double value)

Method Summary

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

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

return a string representation of this token alone

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

Field Detail

field_1_valueback to summary
private final double field_1_value
sidback to summary
public static final byte sid
SIZEback to summary
public static final int SIZE

Constructor Detail

NumberPtgback to summary
public NumberPtg(LittleEndianInput in)
NumberPtgback to summary
public NumberPtg(String value)

Create a NumberPtg from a string representation of the number Number format is not checked, it is expected to be validated in the parser that calls this method.

Parameters
value:String

String representation of a floating point number

NumberPtgback to summary
public NumberPtg(double value)

Method Detail

copyback to summary
public NumberPtg copy()

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

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

Returns:NumberPtg

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

a deep copy of the implementing class / instance

Annotations
@Override
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.

Annotations
@Override
getValueback to summary
public double getValue()
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

Annotations
@Override
writeback to summary
public void write(LittleEndianOutput out)

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

Annotations
@Override