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

java.lang.Object
  extended by org.apache.poi.hssf.record.formula.Ptg
      extended by org.apache.poi.hssf.record.formula.OperationPtg
          extended by org.apache.poi.hssf.record.formula.ValueOperatorPtg
              extended by org.apache.poi.hssf.record.formula.GreaterThanPtg
All Implemented Interfaces:
java.lang.Cloneable

public final class GreaterThanPtg
extends ValueOperatorPtg

Greater than operator PTG ">"

Author:
Cameron Riley (criley at ekmail.com)

Field Summary
static ValueOperatorPtg instance
           
static byte sid
           
 
Fields inherited from class org.apache.poi.hssf.record.formula.OperationPtg
TYPE_BINARY, TYPE_FUNCTION, TYPE_UNARY
 
Fields inherited from class org.apache.poi.hssf.record.formula.Ptg
CLASS_ARRAY, CLASS_REF, CLASS_VALUE
 
Method Summary
 int getNumberOfOperands()
          Get the number of operands for the Less than operator
protected  byte getSid()
           
 java.lang.String toFormulaString(java.lang.String[] operands)
          Implementation of method from OperationsPtg
 
Methods inherited from class org.apache.poi.hssf.record.formula.ValueOperatorPtg
getDefaultOperandClass, getSize, isBaseToken, toFormulaString, writeBytes
 
Methods inherited from class org.apache.poi.hssf.record.formula.OperationPtg
getType
 
Methods inherited from class org.apache.poi.hssf.record.formula.Ptg
clone, copy, createParsedExpressionTokens, createPtg, getBytes, getEncodedSize, getEncodedSize, getPtgClass, readTokens, serializePtgs, serializePtgStack, setClass, toDebugString, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sid

public static final byte sid
See Also:
Constant Field Values

instance

public static final ValueOperatorPtg instance
Method Detail

getSid

protected byte getSid()
Specified by:
getSid in class ValueOperatorPtg

getNumberOfOperands

public int getNumberOfOperands()
Get the number of operands for the Less than operator

Specified by:
getNumberOfOperands in class OperationPtg
Returns:
int the number of operands

toFormulaString

public java.lang.String toFormulaString(java.lang.String[] operands)
Implementation of method from OperationsPtg

Specified by:
toFormulaString in class OperationPtg
Parameters:
operands - a String array of operands
Returns:
String the Formula as a String
See Also:
OperationPtg.getNumberOfOperands()


Copyright 2008 The Apache Software Foundation or its licensors, as applicable.