|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.hssf.record.formula.Ptg
org.apache.poi.hssf.record.formula.ReferencePtg
public class ReferencePtg
ReferencePtg - handles references (such as A1, A2, IA4)
Field Summary | |
---|---|
static byte |
sid
|
Fields inherited from class org.apache.poi.hssf.record.formula.Ptg |
---|
CLASS_ARRAY, CLASS_REF, CLASS_VALUE, ptgClass |
Constructor Summary | |
---|---|
protected |
ReferencePtg()
|
|
ReferencePtg(RecordInputStream in)
Creates new ValueReferencePtg |
|
ReferencePtg(short row,
short column,
boolean isRowRelative,
boolean isColumnRelative)
|
|
ReferencePtg(java.lang.String cellref)
Takes in a String represnetation of a cell reference and fills out the numeric fields. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
short |
getColumn()
|
short |
getColumnRaw()
|
byte |
getDefaultOperandClass()
|
java.lang.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)
|
java.lang.String |
toFormulaString(Workbook book)
return a string representation of this token alone |
java.lang.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 |
Methods inherited from class org.apache.poi.hssf.record.formula.Ptg |
---|
createParsedExpressionTokens, createPtg, getBytes, getPtgClass, serializePtgStack, setClass, toDebugString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final byte sid
Constructor Detail |
---|
protected ReferencePtg()
public ReferencePtg(java.lang.String cellref)
public ReferencePtg(short row, short column, boolean isRowRelative, boolean isColumnRelative)
public ReferencePtg(RecordInputStream in)
Method Detail |
---|
public java.lang.String getRefPtgName()
public java.lang.String toString()
Ptg
toString
in class Ptg
public void writeBytes(byte[] array, int offset)
Ptg
writeBytes
in class Ptg
public 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 int getSize()
getSize
in class Ptg
public java.lang.String toFormulaString(Workbook book)
Ptg
toFormulaString
in class Ptg
public byte getDefaultOperandClass()
getDefaultOperandClass
in class Ptg
public java.lang.Object clone()
clone
in class Ptg
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |