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)
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 SpaceTypecount
- the number of space characterspublic 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)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
public AttrPtg copy()
copy
in interface Duplicatable
copy
in class Ptg
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.