com.japisoft.formula.node
Class NodeFactory

java.lang.Object
  |
  +--com.japisoft.formula.node.NodeFactory

public class NodeFactory
extends java.lang.Object

Factory for selecting a node. This factory is used by the parsing listener for creating a formula tree.

If you wish to use your node, you have to override this class

More information at : http://www.japisoft.com

Version:
1.1
Author:
(c) 2002-2004 JAPISOFT

Constructor Summary
NodeFactory(FormulaContext context)
          Default factory for a standard mode
NodeFactory(FormulaContext context, boolean bigDecimalMode)
           
 
Method Summary
 AbstractNode getBinaryOperatorNode(java.lang.String operator)
           
 AbstractNode getFunctionNode()
           
 AbstractNode getGroupNode()
           
 AbstractNode getListNode()
           
 AbstractNode getRootNode()
           
 AbstractNode getTernaryOperatorNode(java.lang.String operator)
           
 AbstractNode getUnaryOperatorNode(java.lang.String operator)
           
 AbstractNode getValueNode()
           
 AbstractNode getVariableNode()
           
 void setCurrentPos(int pos)
          Reset the current parse location
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeFactory

public NodeFactory(FormulaContext context)
Default factory for a standard mode


NodeFactory

public NodeFactory(FormulaContext context,
                   boolean bigDecimalMode)
Method Detail

setCurrentPos

public void setCurrentPos(int pos)
Reset the current parse location


getRootNode

public AbstractNode getRootNode()

getFunctionNode

public AbstractNode getFunctionNode()

getVariableNode

public AbstractNode getVariableNode()

getGroupNode

public AbstractNode getGroupNode()

getListNode

public AbstractNode getListNode()

getTernaryOperatorNode

public AbstractNode getTernaryOperatorNode(java.lang.String operator)

getBinaryOperatorNode

public AbstractNode getBinaryOperatorNode(java.lang.String operator)

getUnaryOperatorNode

public AbstractNode getUnaryOperatorNode(java.lang.String operator)

getValueNode

public AbstractNode getValueNode()