com.japisoft.formula.operator
Class OperatorContext

java.lang.Object
  |
  +--com.japisoft.formula.operator.OperatorContext

public class OperatorContext
extends java.lang.Object

This is a context for getting each parameter value

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

Constructor Summary
OperatorContext(AbstractNode refNode, FormulaContext context)
           
 
Method Summary
 FormulaContext getFormulaContext()
           
 int getLocation()
          For inner usage only
 java.lang.String getOperandName1()
           
 java.lang.String getOperandName2()
           
 java.lang.String getOperandName3()
           
 java.lang.Object getValue1()
           
 java.lang.Object getValue2()
           
 java.lang.Object getValue3()
           
 boolean isHighPrecisionMode()
           
 void resetInnerOperandCache()
          This method is for forcing a new operand computing when calling getValue1...
 void setLocation(int location)
          For inner usage only
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperatorContext

public OperatorContext(AbstractNode refNode,
                       FormulaContext context)
Method Detail

getFormulaContext

public FormulaContext getFormulaContext()

isHighPrecisionMode

public boolean isHighPrecisionMode()
Returns:
true if this is the high precision mode

getOperandName1

public java.lang.String getOperandName1()
Returns:
the name of the first operand

getOperandName2

public java.lang.String getOperandName2()
Returns:
the name of the second operand

getOperandName3

public java.lang.String getOperandName3()
Returns:
the name of the third operand

resetInnerOperandCache

public void resetInnerOperandCache()
This method is for forcing a new operand computing when calling getValue1...


getValue1

public java.lang.Object getValue1()
                           throws EvaluateException
Returns:
the value of the first operand
EvaluateException

getValue2

public java.lang.Object getValue2()
                           throws EvaluateException
Returns:
the value of the second operand
EvaluateException

getValue3

public java.lang.Object getValue3()
                           throws EvaluateException
Returns:
the value of the third operand
EvaluateException

setLocation

public void setLocation(int location)
For inner usage only


getLocation

public int getLocation()
For inner usage only