|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.japisoft.formula.FormulaTreeBuilder
Formula parsing builder.
This classes receives parsing events and build an inner tree once for evaluating expression quickly.
This system is very similar to the SAX even system. Thus you may change of parsing without changing the evaluation system or the contrary change the evaluation system without changing the parsing process
Constructor Summary | |
FormulaTreeBuilder()
|
Method Summary | |
void |
findBinaryOperator(int op)
|
void |
findFunction(java.lang.String functionName)
|
void |
findGroup()
|
void |
findParam()
|
void |
findTernaryOperator(int op)
|
void |
findUnaryOperator(int op)
|
void |
findValue(double value)
|
void |
findValue(java.lang.String value)
|
void |
findVariable(java.lang.String variableName)
|
AbstractNode |
getRootNode()
|
void |
reset()
Reset the listener state for a new parsing |
void |
setCurrentPos(int pos)
Reset the current parsed location |
void |
setNodeFactory(NodeFactory nf)
Reset for factory for choosing formula node |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FormulaTreeBuilder()
Method Detail |
public void reset()
public void setNodeFactory(NodeFactory nf)
public void setCurrentPos(int pos)
setCurrentPos
in interface FormulaParsingListener
public void findFunction(java.lang.String functionName)
findFunction
in interface FormulaParsingListener
public void findVariable(java.lang.String variableName)
findVariable
in interface FormulaParsingListener
public void findGroup()
findGroup
in interface FormulaParsingListener
public void findParam()
findParam
in interface FormulaParsingListener
public void findUnaryOperator(int op)
findUnaryOperator
in interface FormulaParsingListener
public void findBinaryOperator(int op)
findBinaryOperator
in interface FormulaParsingListener
public void findTernaryOperator(int op)
findTernaryOperator
in interface FormulaParsingListener
public void findValue(double value)
findValue
in interface FormulaParsingListener
public void findValue(java.lang.String value)
findValue
in interface FormulaParsingListener
public AbstractNode getRootNode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |