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, toString
public 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)
Ptg
writeBytes
in class Ptg
public String toFormulaString(Workbook book)
Ptg
toFormulaString
in class Ptg
public byte getDefaultOperandClass()
getDefaultOperandClass
in class Ptg
Copyright © 2014 Open Microscopy Environment