1 16 17 package org.apache.poi.hssf.record.formula; 18 19 import org.apache.poi.hssf.model.Workbook; 20 21 24 public class UnionPtg extends OperationPtg 25 { 26 public final static byte sid = 0x10; 27 28 29 public UnionPtg() 30 { 31 } 32 33 public UnionPtg(byte [] data, int offset) 34 { 35 } 37 38 39 public int getSize() 40 { 41 return 1; 42 } 43 44 public void writeBytes( byte[] array, int offset ) 45 { 46 array[ offset + 0 ] = sid; 47 } 48 49 public Object clone() 50 { 51 return new UnionPtg(); 52 } 53 54 public int getType() 55 { 56 return TYPE_BINARY; 57 } 58 59 60 public String toFormulaString(Workbook book) 61 { 62 return ","; 63 } 64 65 66 67 public String toFormulaString(String [] operands) 68 { 69 StringBuffer buffer = new StringBuffer (); 70 71 buffer.append(operands[ 0 ]); 72 buffer.append(","); 73 buffer.append(operands[ 1 ]); 74 return buffer.toString(); 75 } 76 77 public int getNumberOfOperands() 78 { 79 return 2; 80 } 81 82 } 83 | Popular Tags |