|
||||||||||
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.ArrayPtg
public class ArrayPtg
ArrayPtg - handles arrays The ArrayPtg is a little wierd, the size of the Ptg when parsing initially only includes the Ptg sid and the reserved bytes. The next Ptg in the expression then follows. It is only after the "size" of all the Ptgs is met, that the ArrayPtg data is actually held after this. So Ptg.createParsedExpression keeps track of the number of ArrayPtg elements and need to parse the data upto the FORMULA record size.
Field Summary | |
---|---|
protected byte |
field_1_reserved
|
protected byte |
field_2_reserved
|
protected byte |
field_3_reserved
|
protected byte |
field_4_reserved
|
protected byte |
field_5_reserved
|
protected byte |
field_6_reserved
|
protected byte |
field_7_reserved
|
static byte |
sid
|
protected short |
token_1_columns
|
protected short |
token_2_rows
|
protected java.lang.Object[][] |
token_3_arrayValues
|
Fields inherited from class org.apache.poi.hssf.record.formula.Ptg |
---|
CLASS_ARRAY, CLASS_REF, CLASS_VALUE, ptgClass |
Constructor Summary | |
---|---|
protected |
ArrayPtg()
|
|
ArrayPtg(RecordInputStream in)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
|
short |
getColumnCount()
|
byte |
getDefaultOperandClass()
|
short |
getRowCount()
|
int |
getSize()
This size includes the size of the array Ptg plus the Array Ptg Token value size |
void |
readTokenValues(RecordInputStream in)
Read in the actual token (array) values. |
void |
setColumnCount(short col)
|
void |
setRowCount(short row)
|
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 |
int |
writeTokenValueBytes(byte[] array,
int offset)
|
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
protected byte field_1_reserved
protected byte field_2_reserved
protected byte field_3_reserved
protected byte field_4_reserved
protected byte field_5_reserved
protected byte field_6_reserved
protected byte field_7_reserved
protected short token_1_columns
protected short token_2_rows
protected java.lang.Object[][] token_3_arrayValues
Constructor Detail |
---|
protected ArrayPtg()
public ArrayPtg(RecordInputStream in)
Method Detail |
---|
public void readTokenValues(RecordInputStream in)
public java.lang.String toString()
Ptg
toString
in class Ptg
public void writeBytes(byte[] array, int offset)
Ptg
writeBytes
in class Ptg
public int writeTokenValueBytes(byte[] array, int offset)
public void setRowCount(short row)
public short getRowCount()
public void setColumnCount(short col)
public short getColumnCount()
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 |