1 16 17 package org.apache.poi.hssf.record.formula; 18 19 import java.util.List ; 20 21 import org.apache.poi.hssf.model.Workbook; 22 23 28 29 public class PowerPtg 30 extends OperationPtg 31 { 32 public final static int SIZE = 1; 33 public final static byte sid = 0x07; 34 35 36 37 public PowerPtg() 38 { 39 } 40 41 public PowerPtg(byte [] data, int offset) 42 { 43 44 } 46 47 public void writeBytes(byte [] array, int offset) 48 { 49 array[ offset + 0 ] = sid; 50 } 51 52 public int getSize() 53 { 54 return SIZE; 55 } 56 57 public int getType() 58 { 59 return TYPE_BINARY; 60 } 61 62 public int getNumberOfOperands() 63 { 64 return 2; 65 } 66 67 public String toFormulaString(Workbook book) 68 { 69 return "^"; 70 } 71 72 public String toFormulaString(String [] operands) { 73 StringBuffer buffer = new StringBuffer (); 74 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 return new PowerPtg(); 84 } 85 86 } 87 | Popular Tags |