org.apache.poi.hssf.record.formula.eval
Class Ref2DEval

java.lang.Object
  extended by org.apache.poi.hssf.record.formula.eval.Ref2DEval
All Implemented Interfaces:
Eval, RefEval, ValueEval

public class Ref2DEval
extends java.lang.Object
implements RefEval

Author:
adeshmukh

Constructor Summary
Ref2DEval(Ptg ptg, ValueEval value, boolean evaluated)
           
 
Method Summary
 short getColumn()
          returns the column index.
 ValueEval getInnerValueEval()
          The (possibly evaluated) ValueEval contained in this RefEval.
 short getRow()
          returns the row index.
 boolean isEvaluated()
          returns true if this RefEval contains an evaluated value instead of a direct value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ref2DEval

public Ref2DEval(Ptg ptg,
                 ValueEval value,
                 boolean evaluated)
Method Detail

getInnerValueEval

public ValueEval getInnerValueEval()
Description copied from interface: RefEval
The (possibly evaluated) ValueEval contained in this RefEval. eg. if cell A1 contains "test" then in a formula referring to cell A1 the RefEval representing A1 will return as the getInnerValueEval() the object of concrete type StringEval

Specified by:
getInnerValueEval in interface RefEval

getRow

public short getRow()
Description copied from interface: RefEval
returns the row index.

Specified by:
getRow in interface RefEval

getColumn

public short getColumn()
Description copied from interface: RefEval
returns the column index.

Specified by:
getColumn in interface RefEval

isEvaluated

public boolean isEvaluated()
Description copied from interface: RefEval
returns true if this RefEval contains an evaluated value instead of a direct value. eg. say cell A1 has the value: ="test" Then the RefEval representing A1 will return isEvaluated() equal to false. On the other hand, say cell A1 has the value: =B1 and B1 has the value "test", then the RefEval representing A1 will return isEvaluated() equal to true.

Specified by:
isEvaluated in interface RefEval


Copyright 2008 The Apache Software Foundation or its licensors, as applicable.