com.japisoft.formula.node
Class UnaryOperatorNode

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

public class UnaryOperatorNode
extends AbstractNode

Version:
1.0
Author:
(c) 2004 JAPISoft / http://www.japisoft.com

Field Summary
 
Fields inherited from class com.japisoft.formula.node.AbstractNode
children, highPrecisionMode, op, roundingMode
 
Constructor Summary
UnaryOperatorNode()
           
 
Method Summary
 java.lang.Object evaluate(NodeContext ctx)
           
 void setOperator(java.lang.String name, UnaryOperator operator)
           
 java.lang.String toString()
           
 
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, wait, wait, wait
 

Constructor Detail

UnaryOperatorNode

public UnaryOperatorNode()
Method Detail

setOperator

public void setOperator(java.lang.String name,
                        UnaryOperator operator)

evaluate

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

toString

public java.lang.String toString()