com.japisoft.formula.node
Class FunctionNode

java.lang.Object
  extended bycom.japisoft.formula.node.AbstractNode
      extended bycom.japisoft.formula.node.FunctionNode

public class FunctionNode
extends AbstractNode

Node for function. All children are for arguments.

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

Version:
1.0
Author:
(c) 2002-2003 JAPISOFT

Field Summary
 
Fields inherited from class com.japisoft.formula.node.AbstractNode
children, highPrecisionMode, op, roundingMode
 
Constructor Summary
FunctionNode()
           
 
Method Summary
 java.lang.Object evaluate(NodeContext ctx)
           
 java.lang.String getFunctionName()
           
 void setFunctionName(java.lang.String function)
          reset the function name
 void setRootMode(boolean root)
          Deprecated. Must use the class RootNode for that
 
Methods inherited from class com.japisoft.formula.node.AbstractNode
addChildNode, dump, getChildAt, getChildCount, getColumn, getContent, getLine, getPos, isLeaf, setContent, setOp, setPos, setPos
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionNode

public FunctionNode()
Method Detail

getFunctionName

public java.lang.String getFunctionName()
Returns:
the current function name

setFunctionName

public void setFunctionName(java.lang.String function)
reset the function name


setRootMode

public void setRootMode(boolean root)
Deprecated. Must use the class RootNode for that

Particular state for the function root. This function root contains the parsing evaluation node


evaluate

public java.lang.Object evaluate(NodeContext ctx)
                          throws EvaluateException
Specified by:
evaluate in class AbstractNode
Throws:
EvaluateException