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| Constructor and Description |
|---|
ArrayPtg(ArrayPtg other) |
ArrayPtg(java.lang.Object[][] values2d) |
| Modifier and Type | Method and Description |
|---|---|
ArrayPtg |
copy() |
int |
getColumnCount() |
byte |
getDefaultOperandClass() |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
int |
getRowCount() |
byte |
getSid() |
int |
getSize()
This size includes the size of the array Ptg plus the Array Ptg Token value size
|
java.lang.Object[][] |
getTokenArrayValues() |
boolean |
isBaseToken() |
java.lang.String |
toFormulaString()
return a string representation of this token alone
|
void |
write(LittleEndianOutput out) |
int |
writeTokenValueBytes(LittleEndianOutput out) |
createPtg, doesFormulaReferToDeletedCell, getEncodedSize, getEncodedSizeWithoutArrayData, getPtgClass, getRVAType, readTokens, serializePtgs, setClass, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetGenericChildren, getGenericRecordTypepublic static final byte sid
public static final int PLAIN_TOKEN_SIZE
public ArrayPtg(ArrayPtg other)
public ArrayPtg(java.lang.Object[][] values2d)
values2d - array values arranged in rowspublic java.lang.Object[][] getTokenArrayValues()
public boolean isBaseToken()
isBaseToken in class Ptgfalse if this token is classified as 'reference', 'value', or 'array'public void write(LittleEndianOutput out)
public int writeTokenValueBytes(LittleEndianOutput out)
public int getRowCount()
public int getColumnCount()
public int getSize()
public byte getSid()
public java.lang.String toFormulaString()
PtgtoFormulaString in class Ptgpublic byte getDefaultOperandClass()
getDefaultOperandClass in class Ptgpublic ArrayPtg copy()
copy in interface Duplicatablecopy in class Ptgpublic java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.