public abstract class AbstractFunctionPtg extends OperationPtg
Modifier and Type | Field and Description |
---|---|
static String |
ATTR_NAME |
protected byte |
field_1_num_args |
protected short |
field_2_fnc_index |
protected static Object[][] |
functionData |
static short |
INDEX_EXTERNAL |
private static BinaryTree |
map |
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() |
String |
getName() |
byte |
getParameterClass(int index) |
abstract int |
getSize() |
int |
getType() |
protected short |
lookupIndex(String name) |
protected String |
lookupName(short index) |
private static Object[][] |
produceFunctionData() |
private static BinaryTree |
produceHash()
Produces the function table hashmap
|
String |
toFormulaString(String[] operands)
returns a string representation of the operations
the length of the input array should equal the number returned by
|
String |
toFormulaString(Workbook book)
return a string representation of this token alone
|
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 String ATTR_NAME
public static final short INDEX_EXTERNAL
private static BinaryTree map
protected static Object[][] functionData
protected byte returnClass
protected byte[] paramClass
protected byte field_1_num_args
protected short field_2_fnc_index
public String toString()
Ptg
public int getType()
getType
in class OperationPtg
public short getFunctionIndex()
public String getName()
public String toFormulaString(Workbook book)
Ptg
toFormulaString
in class Ptg
public String toFormulaString(String[] operands)
OperationPtg
toFormulaString
in class OperationPtg
OperationPtg.getNumberOfOperands()
public abstract void writeBytes(byte[] array, int offset)
Ptg
writeBytes
in class Ptg
protected String lookupName(short index)
protected short lookupIndex(String name)
private static BinaryTree produceHash()
private static Object[][] produceFunctionData()
public byte getDefaultOperandClass()
getDefaultOperandClass
in class OperationPtg
public byte getParameterClass(int index)
Copyright © 2016 Open Microscopy Environment