com.japisoft.formula.operator
Class OperatorContext

java.lang.Object
  extended bycom.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
 int getColumn()
           
 FormulaContext getFormulaContext()
           
 int getLine()
           
 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 line, int column)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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
Throws:
EvaluateException

getValue2

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

getValue3

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

setLocation

public void setLocation(int line,
                        int column)

getLine

public int getLine()

getColumn

public int getColumn()