org.apache.poi.hssf.record.formula
Class AddPtg

java.lang.Object
  |
  +--org.apache.poi.hssf.record.formula.Ptg
        |
        +--org.apache.poi.hssf.record.formula.AddPtg
All Implemented Interfaces:
OperationPtg

public class AddPtg
extends Ptg
implements OperationPtg

Author:
andy

Field Summary
static byte sid
           
static int SIZE
           
 
Fields inherited from interface org.apache.poi.hssf.record.formula.OperationPtg
TYPE_BINARY, TYPE_FUNCTION, TYPE_UNARY
 
Constructor Summary
  AddPtg()
          Creates new AddPtg
  AddPtg(byte[] data, int offset)
           
protected AddPtg(java.lang.String formula, int offset)
           
 
Method Summary
 int getNumberOfOperands()
           
 int getPrecedence()
          Ptg's should override this
 int getSize()
           
 int getStringLength()
           
 int getType()
           
static boolean isNextStringToken(java.lang.String formula, int pos)
           
 java.lang.String toFormulaString()
           
 java.lang.String toFormulaString(Ptg[] operands)
           
 void writeBytes(byte[] array, int offset)
           
 
Methods inherited from class org.apache.poi.hssf.record.formula.Ptg
createPtg, getBytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIZE

public static final int SIZE

sid

public static final byte sid
Constructor Detail

AddPtg

public AddPtg()
Creates new AddPtg

AddPtg

public AddPtg(byte[] data,
              int offset)

AddPtg

protected AddPtg(java.lang.String formula,
                 int offset)
Method Detail

writeBytes

public void writeBytes(byte[] array,
                       int offset)
Overrides:
writeBytes in class Ptg

getSize

public int getSize()
Overrides:
getSize in class Ptg

getType

public int getType()
Specified by:
getType in interface OperationPtg

getNumberOfOperands

public int getNumberOfOperands()
Specified by:
getNumberOfOperands in interface OperationPtg

toFormulaString

public java.lang.String toFormulaString()
Overrides:
toFormulaString in class Ptg

isNextStringToken

public static boolean isNextStringToken(java.lang.String formula,
                                        int pos)

toFormulaString

public java.lang.String toFormulaString(Ptg[] operands)
Specified by:
toFormulaString in interface OperationPtg

getPrecedence

public int getPrecedence()
Description copied from class: Ptg
Ptg's should override this
Overrides:
getPrecedence in class Ptg

getStringLength

public int getStringLength()
Overrides:
getStringLength in class Ptg


Copyright © 2002 Apache jakarta-poi project. All Rights Reserved.