Package loci.poi.hssf.record.formula
Class GreaterThanPtg
- java.lang.Object
-
- loci.poi.hssf.record.formula.Ptg
-
- loci.poi.hssf.record.formula.OperationPtg
-
- loci.poi.hssf.record.formula.GreaterThanPtg
-
public class GreaterThanPtg extends OperationPtg
Greater than operator PTG ">"- Author:
- Cameron Riley (criley at ekmail.com)
-
-
Field Summary
Fields Modifier and Type Field Description static bytesidstatic intSIZE-
Fields inherited from class loci.poi.hssf.record.formula.OperationPtg
TYPE_BINARY, TYPE_FUNCTION, TYPE_UNARY
-
Fields inherited from class loci.poi.hssf.record.formula.Ptg
CLASS_ARRAY, CLASS_REF, CLASS_VALUE, ptgClass
-
-
Constructor Summary
Constructors Constructor Description GreaterThanPtg()Constructor.GreaterThanPtg(RecordInputStream in)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Implementation of clone method from ObjectbytegetDefaultOperandClass()Get the default operands class valueintgetNumberOfOperands()Get the number of operands for the Less than operatorintgetSize()Get the size of the sidintgetType()Get the type of PTG for Greater Thanjava.lang.StringtoFormulaString(java.lang.String[] operands)Implementation of method from OperationsPtgjava.lang.StringtoFormulaString(Workbook book)Implementation of method from PtgvoidwriteBytes(byte[] array, int offset)Write the sid to an array-
Methods inherited from class loci.poi.hssf.record.formula.Ptg
createParsedExpressionTokens, createPtg, getBytes, getPtgClass, serializePtgStack, setClass, toDebugString, toString
-
-
-
-
Field Detail
-
SIZE
public static final int SIZE
- See Also:
- Constant Field Values
-
sid
public static final byte sid
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GreaterThanPtg
public GreaterThanPtg()
Constructor. Creates new GreaterThanPtg
-
GreaterThanPtg
public GreaterThanPtg(RecordInputStream in)
Constructor. Create a new GreaterThanPtg.- Parameters:
in- the RecordInputstream to read the record from
-
-
Method Detail
-
writeBytes
public void writeBytes(byte[] array, int offset)Write the sid to an array- Specified by:
writeBytesin classPtg- Parameters:
array- the array of bytes to write the sid tooffset- the offset to add the sid to
-
getSize
public int getSize()
Get the size of the sid
-
getType
public int getType()
Get the type of PTG for Greater Than- Specified by:
getTypein classOperationPtg- Returns:
- int the identifier for the type
-
getNumberOfOperands
public int getNumberOfOperands()
Get the number of operands for the Less than operator- Specified by:
getNumberOfOperandsin classOperationPtg- Returns:
- int the number of operands
-
toFormulaString
public java.lang.String toFormulaString(Workbook book)
Implementation of method from Ptg- Specified by:
toFormulaStringin classPtg- Parameters:
book- the Sheet References
-
toFormulaString
public java.lang.String toFormulaString(java.lang.String[] operands)
Implementation of method from OperationsPtg- Specified by:
toFormulaStringin classOperationPtg- Parameters:
operands- a String array of operands- Returns:
- String the Formula as a String
- See Also:
OperationPtg.getNumberOfOperands()
-
getDefaultOperandClass
public byte getDefaultOperandClass()
Get the default operands class value- Overrides:
getDefaultOperandClassin classOperationPtg- Returns:
- byte the Ptg Class Value as a byte from the Ptg Parent object
-
-