public final class SharedFormulaRecord extends SharedValueRecordBase
Note: the documentation says that the SID is BC where biffviewer reports 4BC. The hex dump shows that the two byte sid representation to be 'BC 04' that is consistent with the other high byte record types.
(主要用作excel优化,这样多个相似的公式就不会写出太多次。我们应该识别此记录并按原样序列化,因为这是在读取模板时使用的。注意:文档说 SID 是 BC,biffviewer 报告 4BC。十六进制转储显示两个字节的 sid 表示为“BC 04”,这与其他高字节记录类型一致。)Modifier and Type | Field and Description |
---|---|
static short |
sid |
Constructor and Description |
---|
SharedFormulaRecord() |
SharedFormulaRecord(RecordInputStream in) |
SharedFormulaRecord(SharedFormulaRecord other) |
Modifier and Type | Method and Description |
---|---|
SharedFormulaRecord |
copy() |
protected int |
getExtraDataSize() |
Ptg[] |
getFormulaTokens(FormulaRecord formula)
Convert formula into an array of
Ptg tokens.
(将公式转换为 Ptg 标记数组。)
|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
HSSFRecordTypes |
getGenericRecordType() |
short |
getSid()
return the non static version of the id for this record.
(返回此记录的 id 的非静态版本。)
|
boolean |
isFormulaSame(SharedFormulaRecord other) |
protected void |
serializeExtraData(LittleEndianOutput out) |
getDataSize, getFirstColumn, getFirstRow, getLastColumn, getLastRow, getRange, isFirstCell, isInRange, serialize
getRecordSize, serialize
cloneViaReserialise, serialize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGenericChildren
public static final short sid
public SharedFormulaRecord()
public SharedFormulaRecord(SharedFormulaRecord other)
public SharedFormulaRecord(RecordInputStream in)
in
- the RecordInputstream to read the record from
(in - 要从中读取记录的 RecordInputstream)
protected void serializeExtraData(LittleEndianOutput out)
serializeExtraData
in class
SharedValueRecordBase
(SharedValueRecordBase 类中的 serializeExtraData)
protected int getExtraDataSize()
getExtraDataSize
in class
SharedValueRecordBase
(类 SharedValueRecordBase 中的 getExtraDataSize)
public short getSid()
Record
public Ptg[] getFormulaTokens(FormulaRecord formula)
Ptg
tokens.
(将公式转换为 Ptg 标记数组。)
formula
- The record to break into tokens, cannot be null
(公式 - 拆分成token的记录,不能为空)
Ptg
array that the formula would have, were it not shared.
(如果不共享,公式将具有的等效 Ptg 数组。)
public SharedFormulaRecord copy()
copy
in interface
Duplicatable
(复制到界面 Duplicatable)
copy
in class
StandardRecord
(在 StandardRecord 类中复制)
public boolean isFormulaSame(SharedFormulaRecord other)
public HSSFRecordTypes getGenericRecordType()
getGenericRecordType
in interface
GenericRecord
(接口 GenericRecord 中的 getGenericRecordType)
getGenericRecordType
in class
Record
(类 Record 中的 getGenericRecordType)
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.