public class NumberPtg extends Ptg
| Modifier and Type | Field and Description |
|---|---|
static byte |
sid |
static int |
SIZE |
CLASS_ARRAY, CLASS_REF, CLASS_VALUE, ptgClass| Constructor and Description |
|---|
NumberPtg(RecordInputStream in)
Create a NumberPtg from a byte array read from disk
|
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 |
|---|---|
Object |
clone() |
byte |
getDefaultOperandClass() |
int |
getSize() |
double |
getValue() |
void |
setValue(double value) |
String |
toFormulaString(Workbook book)
return a string representation of this token alone
|
void |
writeBytes(byte[] array,
int offset)
write this Ptg to a byte array
|
createParsedExpressionTokens, createPtg, getBytes, getPtgClass, serializePtgStack, setClass, toDebugString, toStringpublic static final int SIZE
public static final byte sid
public NumberPtg(RecordInputStream in)
public NumberPtg(String value)
value - : String representation of a floating point numberpublic void setValue(double value)
public double getValue()
public void writeBytes(byte[] array,
int offset)
PtgwriteBytes in class Ptgpublic String toFormulaString(Workbook book)
PtgtoFormulaString in class Ptgpublic byte getDefaultOperandClass()
getDefaultOperandClass in class PtgCopyright © 2014 Open Microscopy Environment