public final class StringPtg extends ScalarConstantPtg
Modifier and Type | Field and Description |
---|---|
static byte |
sid |
CLASS_ARRAY, CLASS_REF, CLASS_VALUE, EMPTY_PTG_ARRAY
Constructor and Description |
---|
StringPtg(LittleEndianInput in)
Create a StringPtg from a stream
|
StringPtg(String value)
Create a StringPtg 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() |
int |
getSize(SpreadsheetVersion version) |
String |
getValue() |
String |
toFormulaString()
return a string representation of this token alone
|
void |
write(LittleEndianOutput out) |
void |
write(LittleEndianOutput out,
SpreadsheetVersion version) |
getDefaultOperandClass, isBaseToken, toString
clone, createPtg, createPtg, doesFormulaReferToDeletedCell, getEncodedSize, getEncodedSize, getEncodedSizeWithoutArrayData, getEncodedSizeWithoutArrayData, getPtgClass, getRVAType, readTokens, readTokens, serializePtgs, serializePtgs, setClass
public static final byte sid
public StringPtg(LittleEndianInput in)
public StringPtg(String value)
value
- :
String representation of a floating point numberpublic String getValue()
public void write(LittleEndianOutput out)
public void write(LittleEndianOutput out, SpreadsheetVersion version)
public int getSize()
public int getSize(SpreadsheetVersion version)
public String toFormulaString()
Ptg
toFormulaString
in class Ptg
Copyright © 2020. All rights reserved.