public final class AttrPtg extends ControlPtg
This seems to be a Misc Stuff and Junk record. One function it serves is in SUM functions (i.e. SUM(A1:A3) causes an area PTG then an ATTR with the SUM option set)
(“Special Attributes” 这似乎是一张 Misc Stuff and Junk 唱片。它提供的一个功能是在 SUM 函数中(即 SUM(A1:A3) 导致一个区域 PTG,然后是一个带有 SUM 选项集的 ATTR))Modifier and Type | Class and Description |
---|---|
static class |
AttrPtg.SpaceType |
Modifier and Type | Field and Description |
---|---|
static byte |
sid |
static AttrPtg |
SUM |
CLASS_ARRAY, CLASS_REF, CLASS_VALUE, EMPTY_PTG_ARRAY
Constructor and Description |
---|
AttrPtg(LittleEndianInput in) |
Modifier and Type | Method and Description |
---|---|
AttrPtg |
copy() |
static AttrPtg |
createIf(int dist) |
static AttrPtg |
createSkip(int dist) |
static AttrPtg |
createSpace(int type, int count) |
int |
getChooseFuncOffset() |
short |
getData() |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
int[] |
getJumpTable() |
int |
getNumberOfOperands() |
byte |
getSid() |
int |
getSize() |
static AttrPtg |
getSumSingle() |
int |
getType() |
boolean |
isOptimizedChoose() |
boolean |
isOptimizedIf() |
boolean |
isSemiVolatile() |
boolean |
isSkip() |
boolean |
isSpace() |
boolean |
isSum() |
java.lang.String |
toFormulaString()
return a string representation of this token alone
(单独返回此标记的字符串表示)
|
java.lang.String |
toFormulaString(java.lang.String[] operands) |
void |
write(LittleEndianOutput out) |
getDefaultOperandClass, isBaseToken
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 AttrPtg SUM
public AttrPtg(LittleEndianInput in)
public static AttrPtg createSpace(int type, int count)
type
- a constant from
SpaceType
(type - 来自 SpaceType 的常量)
count
- the number of space characters
(count - 空格字符的数量)
public static AttrPtg createIf(int dist)
dist
- distance (in bytes) to start of either
public static AttrPtg createSkip(int dist)
dist
- distance (in bytes) to position behind tFuncVar(IF) token (minus 1)
(dist - 到 tFuncVar(IF) 标记后面的距离(以字节为单位)(减 1))
public static AttrPtg getSumSingle()
public boolean isSemiVolatile()
public boolean isOptimizedIf()
public boolean isOptimizedChoose()
public boolean isSum()
public boolean isSkip()
public boolean isSpace()
public short getData()
public int[] getJumpTable()
public int getChooseFuncOffset()
public void write(LittleEndianOutput out)
public byte getSid()
public int getSize()
public java.lang.String toFormulaString(java.lang.String[] operands)
public int getNumberOfOperands()
public int getType()
public java.lang.String toFormulaString()
Ptg
toFormulaString
in class
Ptg
(Ptg 类中的 toFormulaString)
public AttrPtg 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.