From: Andrew C. Oliver Date: Wed, 17 Apr 2002 23:04:53 +0000 (+0000) Subject: changed to match Avik's X-Git-Tag: REL_1_5_0~36 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=afefc43fbd1ffeadfe0f168f1c41ba58a06e4bca;p=poi.git changed to match Avik's git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352433 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/poi/hssf/record/formula/ParenthesisPtg.java b/src/java/org/apache/poi/hssf/record/formula/ParenthesisPtg.java index 104fd65860..5bf163b07d 100644 --- a/src/java/org/apache/poi/hssf/record/formula/ParenthesisPtg.java +++ b/src/java/org/apache/poi/hssf/record/formula/ParenthesisPtg.java @@ -53,51 +53,51 @@ * . */ -/* - * ParenthesisPtg.java - * - * Created on November 21, 2001, 6:42 PM - */ package org.apache.poi.hssf.record.formula; /** - * Denotes that the previous operation (if just after an operation) or operand - * (if just after an operand) should appear in parenthesis. For display purposes only. + * Dummy class, we want it only for for the parsing process + * does not actually get into the file -- note by andy...there is a parenthesis PTG + * that can be written and is sometimes! * - * @author andy + * Avik Sengupta */ - public class ParenthesisPtg extends Ptg + implements OperationPtg { - private final static int SIZE = 1; - public final static byte sid = 0x15; + - /** Creates new ParenthesisPtg */ + - public ParenthesisPtg() + public void writeBytes(byte [] array, int offset) { + //do nothing } - /** Creates new ParenthesisPtg */ - - public ParenthesisPtg(byte [] data, int offset) + public int getSize() { - - // doesn't read anything + return 0; } - public void writeBytes(byte [] array, int offset) + public int getType() { + return TYPE_BINARY; } - public int getSize() + public int getNumberOfOperands() { - return SIZE; + return 0; } public String toFormulaString() { - return "()"; // bug...should be an operation? have a new "Cosmetic and unnecessary" interface? + return "("; + } + + public String toFormulaString(Ptg [] operands) + { + return "("; } } +