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

UnaryMinusPtg

public class UnaryMinusPtg extends OperationPtg
Unary Plus operator does not have any effect on the operand
author
Avik Sengupta

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


        

     
    
    
public UnaryMinusPtg(RecordInputStream in)


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

      return new UnaryPlusPtg();
    
public bytegetDefaultOperandClass()

return Ptg.CLASS_VALUE;
public intgetNumberOfOperands()

        return 1;
    
public intgetSize()

        return SIZE;
    
public intgetType()

        return this.TYPE_UNARY;
    
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(MINUS);
        buffer.append(operands[ 0]);
        return buffer.toString();
    
public voidwriteBytes(byte[] array, int offset)

        array[ offset + 0 ] = sid;