public final class ArrayPtg extends Ptg
| Modifier and Type | Field and Description |
|---|---|
static int |
PLAIN_TOKEN_SIZE
The size of the plain tArray token written within the standard formula tokens
(not including the data which comes after all formula tokens)
|
static byte |
sid |
CLASS_ARRAY, CLASS_REF, CLASS_VALUE, EMPTY_PTG_ARRAY| Modifier and Type | Method and Description |
|---|---|
int |
getColumnCount() |
byte |
getDefaultOperandClass() |
int |
getRowCount() |
int |
getSize()
This size includes the size of the array Ptg plus the Array Ptg Token value size
|
int |
getSize(SpreadsheetVersion version) |
Object[][] |
getTokenArrayValues() |
boolean |
isBaseToken() |
String |
toFormulaString()
return a string representation of this token alone
|
String |
toFormulaString(Locale locale) |
String |
toInternalFormulaString() |
String |
toString()
Overridden toString method to ensure object hash is not printed.
|
void |
write(LittleEndianOutput out) |
void |
write(LittleEndianOutput out,
SpreadsheetVersion version) |
int |
writeTokenValueBytes(LittleEndianOutput out) |
clone, createPtg, createPtg, doesFormulaReferToDeletedCell, getEncodedSize, getEncodedSize, getEncodedSizeWithoutArrayData, getEncodedSizeWithoutArrayData, getPtgClass, getRVAType, readTokens, readTokens, serializePtgs, serializePtgs, setClasspublic static final byte sid
public static final int PLAIN_TOKEN_SIZE
public ArrayPtg(Object[][] values2d)
values2d - array values arranged in rowspublic Object[][] getTokenArrayValues()
public boolean isBaseToken()
isBaseToken in class Ptgfalse if this token is classified as 'reference', 'value', or 'array'public String toString()
Ptgpublic void write(LittleEndianOutput out)
public void write(LittleEndianOutput out, SpreadsheetVersion version)
public int writeTokenValueBytes(LittleEndianOutput out)
public int getRowCount()
public int getColumnCount()
public int getSize()
public int getSize(SpreadsheetVersion version)
public String toFormulaString()
PtgtoFormulaString in class Ptgpublic String toInternalFormulaString()
public byte getDefaultOperandClass()
getDefaultOperandClass in class PtgCopyright © 2020. All rights reserved.