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