]> source.dussan.org Git - poi.git/commitdiff
Added toString debug method to MemAreaPtg
authorJosh Micich <josh@apache.org>
Sat, 4 Apr 2009 02:53:08 +0000 (02:53 +0000)
committerJosh Micich <josh@apache.org>
Sat, 4 Apr 2009 02:53:08 +0000 (02:53 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@761862 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/record/formula/MemAreaPtg.java

index 58a836e28f7cd67d5b0a57276db8696591766a3c..d0b20e2c12b593c566610d4b3b2423b07a36c008 100644 (file)
@@ -23,7 +23,7 @@ import org.apache.poi.util.LittleEndianOutput;
 /**
  * @author Daniel Noll (daniel at nuix dot com dot au)
  */
-public class MemAreaPtg extends OperandPtg {
+public final class MemAreaPtg extends OperandPtg {
        public final static short sid = 0x26;
        private final static int SIZE = 7;
        private final int field_1_reserved;
@@ -58,4 +58,13 @@ public class MemAreaPtg extends OperandPtg {
        public byte getDefaultOperandClass() {
                return Ptg.CLASS_VALUE;
        }
+
+       @Override
+       public final String toString() {
+               StringBuffer sb = new StringBuffer(64);
+               sb.append(getClass().getName()).append(" [len=");
+               sb.append(field_2_subex_len);
+               sb.append("]");
+               return sb.toString();
+       }
 }