|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjxl.biff.formula.FormulaParser
Parses the formula passed in (either as parsed strings or as a string) into a tree of operators and operands
| Constructor Summary | |
FormulaParser(byte[] tokens,
Cell rt,
ExternalSheet es,
WorkbookMethods nt,
WorkbookSettings ws)
Constructor which creates the parse tree out of tokens |
|
FormulaParser(java.lang.String form,
ExternalSheet es,
WorkbookMethods nt,
WorkbookSettings ws)
Constructor which creates the parse tree out of the string |
|
| Method Summary | |
void |
adjustRelativeCellReferences(int colAdjust,
int rowAdjust)
Adjusts all the relative cell references in this formula by the amount specified. |
void |
columnInserted(int sheetIndex,
int col,
boolean currentSheet)
Called when a column is inserted on the specified sheet. |
void |
columnRemoved(int sheetIndex,
int col,
boolean currentSheet)
Called when a column is inserted on the specified sheet. |
byte[] |
getBytes()
Gets the bytes for the formula. |
java.lang.String |
getFormula()
Gets the formula as a string |
void |
parse()
Parses the formula into a parse tree |
void |
rowInserted(int sheetIndex,
int row,
boolean currentSheet)
Called when a column is inserted on the specified sheet. |
void |
rowRemoved(int sheetIndex,
int row,
boolean currentSheet)
Called when a column is inserted on the specified sheet. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FormulaParser(byte[] tokens,
Cell rt,
ExternalSheet es,
WorkbookMethods nt,
WorkbookSettings ws)
throws FormulaException
tokens - the list of parsed tokensrt - the cell containing the formulaes - a handle to the external sheetnt - a handle to the name tablews - the workbook settings
FormulaException
public FormulaParser(java.lang.String form,
ExternalSheet es,
WorkbookMethods nt,
WorkbookSettings ws)
form - the formula stringes - the external sheet handlent - the name tablews - the workbook settings| Method Detail |
public void adjustRelativeCellReferences(int colAdjust,
int rowAdjust)
colAdjust - the amount to add on to each relative cell referencerowAdjust - the amount to add on to each relative row reference
public void parse()
throws FormulaException
FormulaException
public java.lang.String getFormula()
throws FormulaException
FormulaExceptionpublic byte[] getBytes()
public void columnInserted(int sheetIndex,
int col,
boolean currentSheet)
sheetIndex - the sheet on which the column was insertedcol - the column number which was insertedcurrentSheet - TRUE if this formula is on the sheet in which the
column was inserted, FALSE otherwise
public void columnRemoved(int sheetIndex,
int col,
boolean currentSheet)
sheetIndex - the sheet on which the column was insertedcol - the column number which was insertedcurrentSheet - TRUE if this formula is on the sheet in which the
column was inserted, FALSE otherwise
public void rowInserted(int sheetIndex,
int row,
boolean currentSheet)
sheetIndex - the sheet on which the column was insertedrow - the column number which was insertedcurrentSheet - TRUE if this formula is on the sheet in which the
column was inserted, FALSE otherwise
public void rowRemoved(int sheetIndex,
int row,
boolean currentSheet)
sheetIndex - the sheet on which the column was insertedcurrentSheet - TRUE if this formula is on the sheet in which the
column was inserted, FALSE otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||