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

LessEqualPtg

public class LessEqualPtg extends OperationPtg
Ptg class to implement less than or equal
author
fred at stsci dot edu

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


            
     
    

    
public LessEqualPtg(RecordInputStream in)

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

        return new LessEqualPtg();
    
public intgetNumberOfOperands()

        return 2;
    
public intgetSize()

        return SIZE;
    
public intgetType()

        return TYPE_BINARY;
    
public java.lang.StringtoFormulaString(org.apache.poi.hssf.model.Workbook book)

        return "<=";
    
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 voidwriteBytes(byte[] array, int offset)

        array[offset + 0] = sid;