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

All Implemented Interfaces:
    Parser

Parses a string formula into a parse tree
Constructor:
 public StringFormulaParser(String f,
    ExternalSheet es,
    WorkbookMethods nt,
    WorkbookSettings ws) 
    Constructor
    Parameters:
    f -
    ws -
Method from jxl.biff.formula.StringFormulaParser Summary:
adjustRelativeCellReferences,   columnInserted,   columnRemoved,   getBytes,   getFormula,   handleImportedCellReferences,   parse,   rowInserted,   rowRemoved
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from jxl.biff.formula.StringFormulaParser Detail:
 public  void adjustRelativeCellReferences(int colAdjust,
    int rowAdjust) 
    Default behaviour is to do nothing
 public  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
 public  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
 public byte[] getBytes() 
    Gets the bytes for the formula
 public String getFormula() 
    Gets the formula as a string. Uses the parse tree to do this, and does not simply return whatever string was passed in
 public boolean handleImportedCellReferences() 
    If this formula was on an imported sheet, check that cell references to another sheet are warned appropriately
 public  void parse() throws FormulaException 
    Parses the list of tokens
 public  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
 public  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