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() |
int[] |
getJumpTable() |
int |
getNumberOfOperands() |
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) |
java.lang.String |
toString()
Overridden toString method to ensure object hash is not printed.
|
void |
write(LittleEndianOutput out) |
getDefaultOperandClass, isBaseToken
createPtg, doesFormulaReferToDeletedCell, getEncodedSize, getEncodedSizeWithoutArrayData, getPtgClass, getRVAType, readTokens, serializePtgs, setClass
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 java.lang.String toString()
Ptg
public void write(LittleEndianOutput out)
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
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.