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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OperatorContext
public OperatorContext(AbstractNode refNode,
FormulaContext context)
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()