com.japisoft.formula.node
Class ValueNode

java.lang.Object
  extended bycom.japisoft.formula.node.AbstractNode
      extended bycom.japisoft.formula.node.ValueNode
Direct Known Subclasses:
ValueNodeHP

public class ValueNode
extends AbstractNode

This node is for a value

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

Version:
1.0
Author:
(c) 2002-2003 JAPISOFT
See Also:
AbstractNode

Field Summary
 
Fields inherited from class com.japisoft.formula.node.AbstractNode
children, highPrecisionMode, op, roundingMode
 
Constructor Summary
ValueNode()
           
 
Method Summary
 java.lang.Object evaluate(NodeContext ctx)
           
 boolean isString()
           
 void setString(boolean string)
          Set the value as a string or as a double value
 void setValue(java.lang.String val)
           
 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

ValueNode

public ValueNode()
Method Detail

setString

public void setString(boolean string)
Set the value as a string or as a double value


isString

public boolean isString()
Returns:
true if the value is string and false if the value is a double

setValue

public void setValue(java.lang.String val)

evaluate

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

toString

public java.lang.String toString()