jxl.biff.formula
Class SharedFormulaCellReference

java.lang.Object
  |
  +--jxl.biff.formula.ParseItem
        |
        +--jxl.biff.formula.Operand
              |
              +--jxl.biff.formula.SharedFormulaCellReference
All Implemented Interfaces:
ParsedThing

class SharedFormulaCellReference
extends Operand
implements ParsedThing

A cell reference in a formula


Field Summary
private  int column
          The column reference
private  boolean columnRelative
          Indicates whether the column reference is relative or absolute
private  Cell relativeTo
          The cell containing the formula.
private  int row
          The row reference
private  boolean rowRelative
          Indicates whether the row reference is relative or absolute
 
Fields inherited from class jxl.biff.formula.ParseItem
parent
 
Constructor Summary
SharedFormulaCellReference(Cell rt)
          Constructor
 
Method Summary
(package private)  byte[] getBytes()
          Gets the token representation of this item in RPN
 int getColumn()
           
 int getRow()
           
 void getString(java.lang.StringBuffer buf)
          Gets the string representation of this item
 int read(byte[] data, int pos)
          Reads the ptg data from the array starting at the specified position
 
Methods inherited from class jxl.biff.formula.ParseItem
setParent
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

columnRelative

private boolean columnRelative
Indicates whether the column reference is relative or absolute

rowRelative

private boolean rowRelative
Indicates whether the row reference is relative or absolute

column

private int column
The column reference

row

private int row
The row reference

relativeTo

private Cell relativeTo
The cell containing the formula. Stored in order to determine relative cell values
Constructor Detail

SharedFormulaCellReference

public SharedFormulaCellReference(Cell rt)
Constructor
Parameters:
the - cell the formula is relative to
Method Detail

read

public int read(byte[] data,
                int pos)
Reads the ptg data from the array starting at the specified position
Specified by:
read in interface ParsedThing
Parameters:
data - the RPN array
pos - the current position in the array, excluding the ptg identifier
Returns:
the number of bytes read

getColumn

public int getColumn()

getRow

public int getRow()

getString

public void getString(java.lang.StringBuffer buf)
Description copied from class: ParseItem
Gets the string representation of this item
Overrides:
getString in class ParseItem
Following copied from class: jxl.biff.formula.ParseItem
Parameters:
ws - the workbook settings

getBytes

byte[] getBytes()
Gets the token representation of this item in RPN
Overrides:
getBytes in class ParseItem
Returns:
the bytes applicable to this formula