|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.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
More information at : http://www.japisoft.com
| Constructor Summary | |
FormulaTreeBuilder()
|
|
| Method Summary | |
void |
findBinaryOperator(java.lang.String op)
|
void |
findFunction(java.lang.String functionName)
|
void |
findGroup()
|
void |
findList()
|
void |
findNumber(java.lang.String value)
|
void |
findParam()
|
void |
findTernaryOperator(java.lang.String op)
|
void |
findUnaryOperator(java.lang.String op)
|
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 |
setFormulaContext(FormulaContext context)
It MUST be called before using this builder |
void |
setNodeFactory(NodeFactory nf)
Reset for factory for choosing formula nodes. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FormulaTreeBuilder()
| Method Detail |
public void setNodeFactory(NodeFactory nf)
public void setFormulaContext(FormulaContext context)
public void reset()
public void setCurrentPos(int pos)
setCurrentPos in interface FormulaParsingListenerpublic void findFunction(java.lang.String functionName)
findFunction in interface FormulaParsingListenerpublic void findVariable(java.lang.String variableName)
findVariable in interface FormulaParsingListenerpublic void findList()
findList in interface FormulaParsingListenerpublic void findGroup()
findGroup in interface FormulaParsingListenerpublic void findParam()
findParam in interface FormulaParsingListenerpublic void findUnaryOperator(java.lang.String op)
findUnaryOperator in interface FormulaParsingListenerpublic void findBinaryOperator(java.lang.String op)
findBinaryOperator in interface FormulaParsingListenerpublic void findTernaryOperator(java.lang.String op)
findTernaryOperator in interface FormulaParsingListenerpublic void findNumber(java.lang.String value)
findNumber in interface FormulaParsingListenerpublic void findValue(java.lang.String value)
findValue in interface FormulaParsingListenerpublic AbstractNode getRootNode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||