public final class NumberPtg extends ScalarConstantPtg
Modifier and Type | Field | Description |
---|---|---|
static byte |
sid |
|
static int |
SIZE |
CLASS_ARRAY, CLASS_REF, CLASS_VALUE, EMPTY_PTG_ARRAY
Constructor | Description |
---|---|
NumberPtg(double value) |
|
NumberPtg(java.lang.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.
|
NumberPtg(LittleEndianInput in) |
Modifier and Type | Method | Description |
---|---|---|
int |
getSize() |
|
double |
getValue() |
|
java.lang.String |
toFormulaString() |
return a string representation of this token alone
|
void |
write(LittleEndianOutput out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createPtg, doesFormulaReferToDeletedCell, getEncodedSize, getEncodedSizeWithoutArrayData, getPtgClass, getRVAType, readTokens, serializePtgs, setClass
getDefaultOperandClass, isBaseToken, toString
public static final int SIZE
public static final byte sid
public NumberPtg(LittleEndianInput in)
public NumberPtg(java.lang.String value)
value
- String representation of a floating point numberpublic NumberPtg(double value)
public double getValue()
public void write(LittleEndianOutput out)
public int getSize()
public java.lang.String toFormulaString()
Ptg
toFormulaString
in class Ptg
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.