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

All Implemented Interfaces:
    Parser

Parses the excel ptgs into a parse tree
Constructor:
 public TokenFormulaParser(byte[] data,
    Cell c,
    ExternalSheet es,
    WorkbookMethods nt,
    WorkbookSettings ws) 
    Constructor
Method from jxl.biff.formula.TokenFormulaParser 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.TokenFormulaParser 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
 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. This takes into account any token mapping necessary because of shared formulas
 public String getFormula() 
    Gets the formula as a string
 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 sublist of tokens. In most cases this will equate to the full list
 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