public class LessThanPtg extends OperationPtg
Modifier and Type | Field and Description |
---|---|
private static String |
LESSTHAN
identifier for LESS THAN char
|
static byte |
sid
the sid for the less than operator as hex
|
static int |
SIZE
the size of the Ptg
|
TYPE_BINARY, TYPE_FUNCTION, TYPE_UNARY
CLASS_ARRAY, CLASS_REF, CLASS_VALUE, ptgClass
Constructor and Description |
---|
LessThanPtg()
Constructor.
|
LessThanPtg(RecordInputStream in)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Implementation of clone method from Object
|
byte |
getDefaultOperandClass()
Get the default operands class value
|
int |
getNumberOfOperands()
Get the number of operands for the Less than operator
|
int |
getSize()
Get the size of the sid
|
int |
getType()
Get the type of PTG for Less Than
|
String |
toFormulaString(String[] operands)
Implementation of method from OperationsPtg
|
String |
toFormulaString(Workbook book)
Implementation of method from Ptg
|
void |
writeBytes(byte[] array,
int offset)
Write the sid to an array
|
createParsedExpressionTokens, createPtg, getBytes, getPtgClass, serializePtgStack, setClass, toDebugString, toString
public static final int SIZE
public static final byte sid
private static final String LESSTHAN
public LessThanPtg()
public LessThanPtg(RecordInputStream in)
in
- the RecordInputstream to read the record frompublic void writeBytes(byte[] array, int offset)
writeBytes
in class Ptg
array
- the array of bytes to write the sid tooffset
- the offset to add the sid topublic int getSize()
public int getType()
getType
in class OperationPtg
public int getNumberOfOperands()
getNumberOfOperands
in class OperationPtg
public String toFormulaString(Workbook book)
toFormulaString
in class Ptg
book
- the Sheet Referencespublic String toFormulaString(String[] operands)
toFormulaString
in class OperationPtg
operands
- a String array of operandsOperationPtg.getNumberOfOperands()
public byte getDefaultOperandClass()
getDefaultOperandClass
in class OperationPtg
Copyright © 2016 Open Microscopy Environment