com.japisoft.formula.node
Class NodeFactory

java.lang.Object
  extended bycom.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

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

Constructor Summary
NodeFactory()
           
 
Method Summary
 AbstractNode getBinaryOperator()
           
 AbstractNode getFunctionNode()
           
 AbstractNode getGroupNode()
           
 AbstractNode getRootNode()
           
 AbstractNode getTernaryOperator()
           
 AbstractNode getUnaryOperator()
           
 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()
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()

getBinaryOperator

public AbstractNode getBinaryOperator()

getTernaryOperator

public AbstractNode getTernaryOperator()

getUnaryOperator

public AbstractNode getUnaryOperator()

getValueNode

public AbstractNode getValueNode()