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)
(标准公式标记中写入的普通 tArray 标记的大小(不包括所有公式标记之后的数据))
|
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
(此大小包括数组 Ptg 的大小加上 Array Ptg Token 值大小)
|
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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGenericChildren, getGenericRecordType
public 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 rows
(values2d - 排列成行的数组值)
public java.lang.Object[][] getTokenArrayValues()
public boolean isBaseToken()
isBaseToken
in class
Ptg
(类 Ptg 中的 isBaseToken)
false
if this token is classified as 'reference', 'value', or 'array'
(如果此标记被分类为“参考”、“值”或“数组”,则为 false)
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()
Ptg
toFormulaString
in class
Ptg
(Ptg 类中的 toFormulaString)
public byte getDefaultOperandClass()
getDefaultOperandClass
in class
Ptg
(类 Ptg 中的 getDefaultOperandClass)
public ArrayPtg copy()
copy
in interface
Duplicatable
(复制到界面 Duplicatable)
copy
in class
Ptg
(在 Ptg 类中复制)
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.