|
|||||||||
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 NameTable |
nameTable
A reference to the name table |
private int |
pos
The current position within the array |
private Cell |
relativeTo
The cell containing the formula. |
private ParseItem |
root
The parse tree |
private WorkbookSettings |
settings
The workbook settings |
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,
NameTable nt,
WorkbookSettings ws)
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
private NameTable nameTable
private WorkbookSettings settings
Constructor Detail |
public TokenFormulaParser(byte[] data, Cell c, ExternalSheet es, NameTable nt, WorkbookSettings ws)
Method Detail |
public void parse() throws FormulaException
parse
in interface Parser
FormulaException
- private void addOperator(Operator o)
public java.lang.String getFormula()
getFormula
in interface Parser
jxl.biff.formula.Parser
public byte[] getBytes()
getBytes
in interface Parser
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |