Save This Page
Home » jexcelapi_2_6_8 » jxl.biff.formula » [javadoc | source]
jxl.biff.formula
class: BuiltInFunction [javadoc | source]
java.lang.Object
   jxl.biff.formula.ParseItem
      jxl.biff.formula.Operator
         jxl.biff.formula.BuiltInFunction

All Implemented Interfaces:
    ParsedThing

A built in function in a formula
Constructor:
 public BuiltInFunction(WorkbookSettings ws) 
    Constructor
    Parameters:
    ws - the workbook settings
 public BuiltInFunction(Function f,
    WorkbookSettings ws) 
    Constructor used when parsing a formula from a string
    Parameters:
    f - the function
    ws - the workbook settings
Method from jxl.biff.formula.BuiltInFunction Summary:
adjustRelativeCellReferences,   columnInserted,   columnRemoved,   getBytes,   getOperands,   getPrecedence,   getString,   handleImportedCellReferences,   read,   rowInserted,   rowRemoved
Methods from jxl.biff.formula.Operator:
add,   getOperands,   getOperands,   getPrecedence,   setOperandAlternateCode
Methods from jxl.biff.formula.ParseItem:
adjustRelativeCellReferences,   columnInserted,   columnRemoved,   getBytes,   getString,   handleImportedCellReferences,   isValid,   isVolatile,   rowInserted,   rowRemoved,   setAlternateCode,   setInvalid,   setParent,   setVolatile,   useAlternateCode
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from jxl.biff.formula.BuiltInFunction Detail:
 public  void adjustRelativeCellReferences(int colAdjust,
    int rowAdjust) 
    Adjusts all the relative cell references in this formula by the amount specified. Used when copying formulas
  void columnInserted(int sheetIndex,
    int col,
    boolean currentSheet) 
    Called when a column is inserted on the specified sheet. Tells the formula parser to update all of its cell references beyond this column
  void columnRemoved(int sheetIndex,
    int col,
    boolean currentSheet) 
    Called when a column is inserted on the specified sheet. Tells the formula parser to update all of its cell references beyond this column
 byte[] getBytes() 
    Gets the token representation of this item in RPN
 public  void getOperands(Stack s) 
    Gets the operands for this operator from the stack
 int getPrecedence() 
    Gets the precedence for this operator. Operator precedents run from 1 to 5, one being the highest, 5 being the lowest
 public  void getString(StringBuffer buf) 
    Gets the string for this functions
  void handleImportedCellReferences() 
    If this formula was on an imported sheet, check that cell references to another sheet are warned appropriately Does nothing, as operators don't have cell references
 public int read(byte[] data,
    int pos) 
    Reads the ptg data from the array starting at the specified position
  void rowInserted(int sheetIndex,
    int row,
    boolean currentSheet) 
    Called when a column is inserted on the specified sheet. Tells the formula parser to update all of its cell references beyond this column
  void rowRemoved(int sheetIndex,
    int row,
    boolean currentSheet) 
    Called when a column is inserted on the specified sheet. Tells the formula parser to update all of its cell references beyond this column