public final class AttrPtg extends ControlPtg
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 |
---|---|
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() |
int |
getSize(SpreadsheetVersion version) |
static AttrPtg |
getSumSingle() |
int |
getType() |
boolean |
isOptimizedChoose() |
boolean |
isOptimizedIf() |
boolean |
isSemiVolatile() |
boolean |
isSkip() |
boolean |
isSpace() |
boolean |
isSum() |
String |
toFormulaString()
return a string representation of this token alone
|
String |
toFormulaString(String[] operands) |
String |
toString()
Overridden toString method to ensure object hash is not printed.
|
void |
write(LittleEndianOutput out) |
void |
write(LittleEndianOutput out,
SpreadsheetVersion version) |
getDefaultOperandClass, isBaseToken
clone, createPtg, createPtg, doesFormulaReferToDeletedCell, getEncodedSize, getEncodedSize, getEncodedSizeWithoutArrayData, getEncodedSizeWithoutArrayData, getPtgClass, getRVAType, readTokens, readTokens, serializePtgs, 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 String toString()
Ptg
public void write(LittleEndianOutput out)
public void write(LittleEndianOutput out, SpreadsheetVersion version)
public int getSize()
public int getSize(SpreadsheetVersion version)
public int getNumberOfOperands()
public int getType()
public String toFormulaString()
Ptg
toFormulaString
in class Ptg
Copyright © 2020. All rights reserved.