public final class NumberPtg extends ScalarConstantPtg
| Modifier and Type | Field and Description |
|---|---|
static byte |
sid |
static int |
SIZE |
CLASS_ARRAY, CLASS_REF, CLASS_VALUE, EMPTY_PTG_ARRAY| Constructor and Description |
|---|
NumberPtg(double value) |
NumberPtg(LittleEndianInput in) |
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.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getSize() |
double |
getValue() |
String |
toFormulaString()
return a string representation of this token alone
|
void |
write(LittleEndianOutput out) |
getDefaultOperandClass, isBaseToken, toStringcreatePtg, doesFormulaReferToDeletedCell, getEncodedSize, getEncodedSizeWithoutArrayData, getPtgClass, getRVAType, readTokens, serializePtgs, setClasspublic static final int SIZE
public static final byte sid
public NumberPtg(LittleEndianInput in)
public NumberPtg(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 String toFormulaString()
PtgtoFormulaString in class PtgCopyright © 2010 - 2020 Adobe. All Rights Reserved