| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jxl.biff.formula.TokenFormulaParser
Parses the excel ptgs into a parse tree
| Field Summary | |
private  int | 
pos
The current position within the array  | 
private  Cell | 
relativeTo
The cell containing the formula.  | 
private  ParseItem | 
root
The parse tree  | 
private  byte[] | 
tokenData
The Excel ptgs  | 
private  java.util.Stack | 
tokenStack
The hash table of items that have been parsed  | 
private  ExternalSheet | 
workbook
A reference to the workbook which holds the external sheet information  | 
| Constructor Summary | |
TokenFormulaParser(byte[] data,
                   Cell c,
                   ExternalSheet es)
Constructor  | 
|
| Method Summary | |
private  void | 
addOperator(Operator o)
Adds the specified operator to the parse tree, taking operands off the stack as appropriate  | 
 byte[] | 
getBytes()
Gets the bytes for the formula.  | 
 java.lang.String | 
getFormula()
Gets the formula as a string  | 
 void | 
parse()
Parses the list of tokens  | 
| Methods inherited from class java.lang.Object | 
 | 
| Field Detail | 
private byte[] tokenData
private Cell relativeTo
private int pos
private ParseItem root
private java.util.Stack tokenStack
private ExternalSheet workbook
| Constructor Detail | 
public TokenFormulaParser(byte[] data,
                          Cell c,
                          ExternalSheet es)
| Method Detail | 
public void parse()
           throws FormulaException
parse in interface ParserFormulaException -  private void addOperator(Operator o)
public java.lang.String getFormula()
getFormula in interface Parserjxl.biff.formula.Parserpublic byte[] getBytes()
getBytes in interface Parser
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||