org.apache.poi.hssf.record.formula
Class FuncPtg

java.lang.Object
  extended by org.apache.poi.hssf.record.formula.Ptg
      extended by org.apache.poi.hssf.record.formula.OperationPtg
          extended by org.apache.poi.hssf.record.formula.AbstractFunctionPtg
              extended by org.apache.poi.hssf.record.formula.FuncPtg
All Implemented Interfaces:
java.lang.Cloneable

public final class FuncPtg
extends AbstractFunctionPtg

Author:
aviks, Jason Height (jheight at chariot dot net dot au), Danny Mui (dmui at apache dot org) (Leftover handling)

Field Summary
static byte sid
           
static int SIZE
           
 
Fields inherited from class org.apache.poi.hssf.record.formula.AbstractFunctionPtg
field_1_num_args, field_2_fnc_index, FUNCTION_NAME_IF, paramClass, returnClass
 
Fields inherited from class org.apache.poi.hssf.record.formula.OperationPtg
TYPE_BINARY, TYPE_FUNCTION, TYPE_UNARY
 
Fields inherited from class org.apache.poi.hssf.record.formula.Ptg
CLASS_ARRAY, CLASS_REF, CLASS_VALUE
 
Constructor Summary
FuncPtg(int functionIndex)
           
FuncPtg(RecordInputStream in)
          Creates new function pointer from a byte array usually called while reading an excel file.
 
Method Summary
 int getNumberOfOperands()
          The number of operands expected by the operations
 int getSize()
           
 java.lang.String toString()
          Overridden toString method to ensure object hash is not printed.
 void writeBytes(byte[] array, int offset)
          write this Ptg to a byte array
 
Methods inherited from class org.apache.poi.hssf.record.formula.AbstractFunctionPtg
getDefaultOperandClass, getFunctionIndex, getName, getParameterClass, isBaseToken, isExternalFunction, isInternalFunctionName, lookupIndex, lookupName, toFormulaString, toFormulaString
 
Methods inherited from class org.apache.poi.hssf.record.formula.OperationPtg
getType
 
Methods inherited from class org.apache.poi.hssf.record.formula.Ptg
clone, copy, createParsedExpressionTokens, createPtg, getBytes, getEncodedSize, getEncodedSize, getPtgClass, readTokens, serializePtgs, serializePtgStack, setClass, toDebugString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sid

public static final byte sid
See Also:
Constant Field Values

SIZE

public static final int SIZE
See Also:
Constant Field Values
Constructor Detail

FuncPtg

public FuncPtg(RecordInputStream in)
Creates new function pointer from a byte array usually called while reading an excel file.


FuncPtg

public FuncPtg(int functionIndex)
Method Detail

writeBytes

public void writeBytes(byte[] array,
                       int offset)
Description copied from class: Ptg
write this Ptg to a byte array

Specified by:
writeBytes in class AbstractFunctionPtg

getNumberOfOperands

public int getNumberOfOperands()
Description copied from class: OperationPtg
The number of operands expected by the operations

Specified by:
getNumberOfOperands in class OperationPtg

getSize

public int getSize()
Specified by:
getSize in class AbstractFunctionPtg
Returns:
the encoded length of this Ptg, including the initial Ptg type identifier byte.

toString

public java.lang.String toString()
Description copied from class: Ptg
Overridden toString method to ensure object hash is not printed. This helps get rid of gratuitous diffs when comparing two dumps Subclasses may output more relevant information by overriding this method

Overrides:
toString in class AbstractFunctionPtg


Copyright 2008 The Apache Software Foundation or its licensors, as applicable.