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_UNARYCLASS_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 | 
getNumberOfOperandsclone, createParsedExpressionTokens, createPtg, getBytes, getPtgClass, serializePtgStack, setClass, toDebugStringpublic 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()
Ptgpublic int getType()
getType in class OperationPtgpublic short getFunctionIndex()
public String getName()
public String toFormulaString(Workbook book)
PtgtoFormulaString in class Ptgpublic String toFormulaString(String[] operands)
OperationPtgtoFormulaString in class OperationPtgOperationPtg.getNumberOfOperands()public abstract void writeBytes(byte[] array,
              int offset)
PtgwriteBytes in class Ptgprotected String lookupName(short index)
protected short lookupIndex(String name)
private static BinaryTree produceHash()
private static Object[][] produceFunctionData()
public byte getDefaultOperandClass()
getDefaultOperandClass in class OperationPtgpublic byte getParameterClass(int index)
Copyright © 2015 Open Microscopy Environment