|
||||||||||
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.OperandPtg
org.apache.poi.hssf.record.formula.RefPtgBase
public abstract class RefPtgBase
ReferencePtgBase - handles references (such as A1, A2, IA4)
Field Summary |
---|
Fields inherited from class org.apache.poi.hssf.record.formula.Ptg |
---|
CLASS_ARRAY, CLASS_REF, CLASS_VALUE |
Constructor Summary | |
---|---|
protected |
RefPtgBase()
|
protected |
RefPtgBase(int row,
int column,
boolean isRowRelative,
boolean isColumnRelative)
|
protected |
RefPtgBase(RecordInputStream in)
|
protected |
RefPtgBase(java.lang.String cellref)
Takes in a String representation of a cell reference and fills out the numeric fields. |
Method Summary | |
---|---|
int |
getColumn()
|
int |
getColumnRawX()
|
byte |
getDefaultOperandClass()
|
int |
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 |
protected abstract byte |
getSid()
|
int |
getSize()
|
boolean |
isColRelative()
|
boolean |
isRowRelative()
|
void |
setColRelative(boolean rel)
|
void |
setColumn(int col)
|
void |
setColumnRawX(int col)
|
void |
setRow(int row)
|
void |
setRowRelative(boolean rel)
|
java.lang.String |
toFormulaString(HSSFWorkbook 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.OperandPtg |
---|
isBaseToken |
Methods inherited from class org.apache.poi.hssf.record.formula.Ptg |
---|
clone, copy, createParsedExpressionTokens, createPtg, getBytes, getEncodedSize, getEncodedSize, getPtgClass, readTokens, serializePtgs, serializePtgStack, setClass, toDebugString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected RefPtgBase()
protected RefPtgBase(java.lang.String cellref)
protected RefPtgBase(int row, int column, boolean isRowRelative, boolean isColumnRelative)
protected RefPtgBase(RecordInputStream in)
Method Detail |
---|
public final java.lang.String toString()
Ptg
toString
in class Ptg
public final void writeBytes(byte[] array, int offset)
Ptg
writeBytes
in class Ptg
protected abstract byte getSid()
public final void setRow(int row)
public final int getRow()
public final int getRowAsInt()
public final boolean isRowRelative()
public final void setRowRelative(boolean rel)
public final boolean isColRelative()
public final void setColRelative(boolean rel)
public final void setColumnRawX(int col)
public int getColumnRawX()
public final void setColumn(int col)
public final int getColumn()
public final int getSize()
getSize
in class Ptg
public final java.lang.String toFormulaString(HSSFWorkbook book)
Ptg
toFormulaString
in class Ptg
public final byte getDefaultOperandClass()
getDefaultOperandClass
in class Ptg
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |