Home » JCraft » jxl » biff » formula » [javadoc | source]
jxl.biff.formula
class: VariableArgFunction [javadoc | source]
java.lang.Object
   jxl.biff.formula.ParseItem
      jxl.biff.formula.Operator
         jxl.biff.formula.VariableArgFunction

All Implemented Interfaces:
    ParsedThing

A built in function in a formula. These functions take a variable number of arguments, such as a range (eg. SUM etc)
Constructor:
 public VariableArgFunction(WorkbookSettings ws) 
    Constructor
 public VariableArgFunction(Function f,
    int a,
    WorkbookSettings ws) 
    Constructor used when parsing a function from a string
    Parameters:
    f - the function
    a - the number of arguments
Method from jxl.biff.formula.VariableArgFunction Summary:
adjustRelativeCellReferences,   columnInserted,   columnRemoved,   getBytes,   getFunction,   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,   getParseContext,   getString,   handleImportedCellReferences,   isValid,   isVolatile,   rowInserted,   rowRemoved,   setAlternateCode,   setInvalid,   setParent,   setParseContext,   setVolatile,   useAlternateCode
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from jxl.biff.formula.VariableArgFunction 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
 Function getFunction() 
    Gets the underlying function
 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) 
  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) throws FormulaException 
    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