FileDocCategorySizeDatePackage
ArrayPtgV.javaAPI DocApache Poi 3.0.12998Mon Jan 01 12:39:40 GMT 2007org.apache.poi.hssf.record.formula

ArrayPtgV

public class ArrayPtgV extends 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.
author
Jason Height (jheight at chariot dot net dot au)

Fields Summary
public static final byte
sid
Constructors Summary
protected ArrayPtgV()


      
      //Required for clone methods
    
public ArrayPtgV(RecordInputStream in)

    	super(in);
    
Methods Summary
public java.lang.Objectclone()

      ArrayPtgV ptg = new ArrayPtgV();
      ptg.field_1_reserved = field_1_reserved;
      ptg.field_2_reserved = field_2_reserved;
      ptg.field_3_reserved = field_3_reserved;
      ptg.field_4_reserved = field_4_reserved;
      ptg.field_5_reserved = field_5_reserved;
      ptg.field_6_reserved = field_6_reserved;
      ptg.field_7_reserved = field_7_reserved;
      
      ptg.token_1_columns = token_1_columns;
      ptg.token_2_rows = token_2_rows;
      ptg.token_3_arrayValues = new Object[getColumnCount()][getRowCount()];
      for (int x=0;x<getColumnCount();x++) {
      	for (int y=0;y<getRowCount();y++) {
      		ptg.token_3_arrayValues[x][y] = token_3_arrayValues[x][y];
      	}
      }      
      ptg.setClass(ptgClass);
      return ptg;