public abstract class AbstractFunctionPtg extends OperationPtg
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTR_NAME |
protected byte |
field_1_num_args |
protected short |
field_2_fnc_index |
protected static java.lang.Object[][] |
functionData |
static short |
INDEX_EXTERNAL |
protected byte[] |
paramClass |
protected byte |
returnClass |
TYPE_BINARY, TYPE_FUNCTION, TYPE_UNARY
CLASS_ARRAY, CLASS_REF, CLASS_VALUE, ptgClass
Constructor and Description |
---|
AbstractFunctionPtg() |
Modifier and Type | Method and Description |
---|---|
byte |
getDefaultOperandClass() |
short |
getFunctionIndex() |
java.lang.String |
getName() |
byte |
getParameterClass(int index) |
abstract int |
getSize() |
int |
getType() |
protected short |
lookupIndex(java.lang.String name) |
protected java.lang.String |
lookupName(short index) |
java.lang.String |
toFormulaString(java.lang.String[] operands)
returns a string representation of the operations
the length of the input array should equal the number returned by
|
java.lang.String |
toFormulaString(Workbook book)
return a string representation of this token alone
|
java.lang.String |
toString()
Overridden toString method to ensure object hash is not printed.
|
abstract void |
writeBytes(byte[] array,
int offset)
write this Ptg to a byte array
|
getNumberOfOperands
clone, createParsedExpressionTokens, createPtg, getBytes, getPtgClass, serializePtgStack, setClass, toDebugString
public static final java.lang.String ATTR_NAME
public static final short INDEX_EXTERNAL
protected static java.lang.Object[][] functionData
protected byte returnClass
protected byte[] paramClass
protected byte field_1_num_args
protected short field_2_fnc_index
public java.lang.String toString()
Ptg
public int getType()
getType
in class OperationPtg
public short getFunctionIndex()
public java.lang.String getName()
public java.lang.String toFormulaString(Workbook book)
Ptg
toFormulaString
in class Ptg
public java.lang.String toFormulaString(java.lang.String[] operands)
OperationPtg
toFormulaString
in class OperationPtg
OperationPtg.getNumberOfOperands()
public abstract void writeBytes(byte[] array, int offset)
Ptg
writeBytes
in class Ptg
protected java.lang.String lookupName(short index)
protected short lookupIndex(java.lang.String name)
public byte getDefaultOperandClass()
getDefaultOperandClass
in class OperationPtg
public byte getParameterClass(int index)
Copyright © 2014 Open Microscopy Environment