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

MultiplyPtg

public class MultiplyPtg extends OperationPtg
Implements the standard mathmatical multiplication - *
author
Andrew C. Oliver (acoliver at apache dot org)
author
Jason Height (jheight at chariot dot net dot au)

Fields Summary
public static final int
SIZE
public static final byte
sid
Constructors Summary
public MultiplyPtg()
Creates new AddPtg


        

     
    
    
public MultiplyPtg(RecordInputStream in)


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

      return new MultiplyPtg();
    
public intgetNumberOfOperands()

        return 2;
    
public intgetSize()

        return SIZE;
    
public intgetStringLength()

        return 1;
    
public intgetType()

        return TYPE_BINARY;
    
public java.lang.StringtoFormulaString(java.lang.String[] operands)

        StringBuffer buffer = new StringBuffer();

        buffer.append(operands[ 0 ]);
        buffer.append(toFormulaString((Workbook)null));
        buffer.append(operands[ 1 ]);
        return buffer.toString();
    
public java.lang.StringtoFormulaString(org.apache.poi.hssf.model.Workbook book)

        return "*";
    
public java.lang.StringtoFormulaString(org.apache.poi.hssf.record.formula.Ptg[] operands)

        StringBuffer buffer = new StringBuffer();

        buffer.append(operands[ 0 ].toFormulaString((Workbook)null));
        buffer.append("*");
        buffer.append(operands[ 1 ].toFormulaString((Workbook)null));
        return buffer.toString();
    
public voidwriteBytes(byte[] array, int offset)

        array[ offset + 0 ] = sid;