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 33 public class ParenthesisPtg 34 extends OperationPtg 35 { 36 37 private final static int SIZE = 1; 38 public final static byte sid = 0x15; 39 40 public ParenthesisPtg() 41 { 42 } 43 44 public ParenthesisPtg(byte [] data, int offset) 45 { 46 47 } 49 50 51 52 public void writeBytes(byte [] array, int offset) 53 { 54 array[ offset + 0 ] = sid; 55 } 56 57 public int getSize() 58 { 59 return SIZE; 60 } 61 62 public int getType() 63 { 64 return TYPE_BINARY; 65 } 66 67 public int getNumberOfOperands() 68 { 69 return 1; 70 } 71 72 public String toFormulaString(Workbook book) 73 { 74 return "()"; 75 } 76 77 78 public String toFormulaString(String [] operands) { 79 return "("+operands[0]+")"; 80 } 81 82 public byte getDefaultOperandClass() {return Ptg.CLASS_VALUE;} 83 84 public Object clone() { 85 return new ParenthesisPtg(); 86 } 87 88 } 89 | Popular Tags |