FileDocCategorySizeDatePackage
AddPtg.javaAPI DocApache Poi 3.0.12625Mon Jan 01 12:39:40 GMT 2007org.apache.poi.hssf.record.formula

AddPtg

public class AddPtg extends OperationPtg
Addition operator PTG the "+" binomial operator. If you need more explanation than that then well...We really can't help you here.
author
Andrew C. Oliver (acoliver@apache.org)
author
Jason Height (jheight at chariot dot net dot au)

Fields Summary
public static final int
SIZE
public static final byte
sid
private static final String
ADD
Constructors Summary
public AddPtg()
Creates new AddPtg


        

     
    
    
public AddPtg(RecordInputStream in)


        // doesn't need anything
    
Methods Summary
public java.lang.Objectclone()

      return new AddPtg();
    
public bytegetDefaultOperandClass()

return Ptg.CLASS_VALUE;
public intgetNumberOfOperands()

        return 2;
    
public intgetSize()

        return SIZE;
    
public intgetType()

        return TYPE_BINARY;
    
public java.lang.StringtoFormulaString(org.apache.poi.hssf.model.Workbook book)
Implementation of method from Ptg

        return "+";
    
public java.lang.StringtoFormulaString(java.lang.String[] operands)
implementation of method from OperationsPtg

        StringBuffer buffer = new StringBuffer();

        buffer.append(operands[ 0 ]);
        buffer.append(ADD);
        buffer.append(operands[ 1 ]);
        return buffer.toString();
    
public voidwriteBytes(byte[] array, int offset)

        array[ offset + 0 ] = sid;