Package loci.poi.hssf.record.formula
Class LessThanPtg
- java.lang.Object
-
- loci.poi.hssf.record.formula.Ptg
-
- loci.poi.hssf.record.formula.OperationPtg
-
- loci.poi.hssf.record.formula.LessThanPtg
-
public class LessThanPtg extends OperationPtg
Less than operator PTG "<". The SID is taken from the Openoffice.orgs Documentation of the Excel File Format, Table 3.5.7- Author:
- Cameron Riley (criley at ekmail.com)
-
-
Field Summary
Fields Modifier and Type Field Description static byte
sid
the sid for the less than operator as hexstatic int
SIZE
the size of the Ptg-
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 LessThanPtg()
Constructor.LessThanPtg(RecordInputStream in)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
Implementation of clone method from Objectbyte
getDefaultOperandClass()
Get the default operands class valueint
getNumberOfOperands()
Get the number of operands for the Less than operatorint
getSize()
Get the size of the sidint
getType()
Get the type of PTG for Less ThanString
toFormulaString(String[] operands)
Implementation of method from OperationsPtgString
toFormulaString(Workbook book)
Implementation of method from Ptgvoid
writeBytes(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
the size of the Ptg- See Also:
- Constant Field Values
-
sid
public static final byte sid
the sid for the less than operator as hex- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LessThanPtg
public LessThanPtg()
Constructor. Creates new LessThanPtg
-
LessThanPtg
public LessThanPtg(RecordInputStream in)
Constructor. Create a new LessThanPtg.- 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:
writeBytes
in 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 Less Than- Specified by:
getType
in classOperationPtg
- Returns:
- int the identifier for the type
-
getNumberOfOperands
public int getNumberOfOperands()
Get the number of operands for the Less than operator- Specified by:
getNumberOfOperands
in classOperationPtg
- Returns:
- int the number of operands
-
toFormulaString
public String toFormulaString(Workbook book)
Implementation of method from Ptg- Specified by:
toFormulaString
in classPtg
- Parameters:
book
- the Sheet References
-
toFormulaString
public String toFormulaString(String[] operands)
Implementation of method from OperationsPtg- Specified by:
toFormulaString
in 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:
getDefaultOperandClass
in classOperationPtg
- Returns:
- byte the Ptg Class Value as a byte from the Ptg Parent object
-
-