| Modifier and Type | Field and Description |
|---|---|
private BitField |
colRelative |
private BitField |
column |
private short |
field_1_row
The row number, between 0 and 65535, but stored as a signed
short between -32767 and 32768.
|
private short |
field_2_col
The column number, between 0 and ??
|
private static int |
MAX_ROW_NUMBER |
private BitField |
rowRelative |
static byte |
sid |
private static int |
SIZE |
CLASS_ARRAY, CLASS_REF, CLASS_VALUE, ptgClass| Modifier | Constructor and Description |
|---|---|
protected |
ReferencePtg() |
|
ReferencePtg(RecordInputStream in)
Creates new ValueReferencePtg
|
|
ReferencePtg(short row,
short column,
boolean isRowRelative,
boolean isColumnRelative) |
|
ReferencePtg(String cellref)
Takes in a String represnetation of a cell reference and fills out the
numeric fields.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
short |
getColumn() |
short |
getColumnRaw() |
byte |
getDefaultOperandClass() |
String |
getRefPtgName() |
short |
getRow()
Returns the row number as a short, which will be
wrapped (negative) for values between 32769 and 65535
|
int |
getRowAsInt()
Returns the row number as an int, between 0 and 65535
|
int |
getSize() |
boolean |
isColRelative() |
boolean |
isRowRelative() |
void |
setColRelative(boolean rel) |
void |
setColumn(short col) |
void |
setColumnRaw(short col) |
void |
setRow(int row) |
void |
setRow(short row) |
void |
setRowRelative(boolean rel) |
String |
toFormulaString(Workbook book)
return a string representation of this token alone
|
String |
toString()
Overridden toString method to ensure object hash is not printed.
|
void |
writeBytes(byte[] array,
int offset)
write this Ptg to a byte array
|
createParsedExpressionTokens, createPtg, getBytes, getPtgClass, serializePtgStack, setClass, toDebugStringprivate static final int SIZE
public static final byte sid
private static final int MAX_ROW_NUMBER
private short field_1_row
private short field_2_col
private BitField rowRelative
private BitField colRelative
private BitField column
protected ReferencePtg()
public ReferencePtg(String cellref)
public ReferencePtg(short row,
short column,
boolean isRowRelative,
boolean isColumnRelative)
public ReferencePtg(RecordInputStream in)
public String getRefPtgName()
public String toString()
Ptgpublic void writeBytes(byte[] array,
int offset)
PtgwriteBytes in class Ptgpublic void setRow(short row)
public void setRow(int row)
public short getRow()
public int getRowAsInt()
public boolean isRowRelative()
public void setRowRelative(boolean rel)
public boolean isColRelative()
public void setColRelative(boolean rel)
public void setColumnRaw(short col)
public short getColumnRaw()
public void setColumn(short col)
public short getColumn()
public String toFormulaString(Workbook book)
PtgtoFormulaString in class Ptgpublic byte getDefaultOperandClass()
getDefaultOperandClass in class PtgCopyright © 2016 Open Microscopy Environment