jxl.biff.formula
Class  NameRange
java.lang.Object
  |
  +--jxl.biff.formula.ParseItem
        |
        +--jxl.biff.formula.Operand
              |
              +--jxl.biff.formula.NameRange
- All Implemented Interfaces: 
- ParsedThing
-  class NameRange- extends Operand- implements ParsedThing
A name operand
| Field Summary | 
| private  int | indexThe index into the name table
 | 
| private  java.lang.String | nameThe string name
 | 
| private  NameTable | nameTableA handle to the name table
 | 
 
 
 
| Method Summary | 
| (package private)  byte[] | getBytes()Gets the token representation of this item in RPN
 | 
|  void | getString(java.lang.StringBuffer buf)Abstract method implementation to get the string equivalent of this
 token
 | 
|  int | read(byte[] data,
     int pos)Reads the ptg data from the array starting at the specified position
 | 
 
 
| Methods inherited from class java.lang.Object | 
| , clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait | 
 
nameTable
private NameTable nameTable
- A handle to the name table
name
private java.lang.String name
- The string name
index
private int index
- The index into the name table
NameRange
public NameRange(NameTable nt)
- Constructor
NameRange
public NameRange(java.lang.String nm,
                 NameTable nt)
          throws FormulaException
- Constructor when parsing a string via the api- 
- Parameters:
- nm- the name string
- nt- the name table
 
read
public int read(byte[] data,
                int pos)
- Reads the ptg data from the array starting at the specified position- 
- Specified by: 
- readin interface- ParsedThing
 
- 
- Parameters:
- data- the RPN array
- pos- the current position in the array, excluding the ptg identifier
- Returns:
- the number of bytes read
 
getBytes
byte[] getBytes()
- Gets the token representation of this item in RPN- 
- Overrides:
- getBytesin class- ParseItem
 
- 
- Returns:
- the bytes applicable to this formula
 
getString
public void getString(java.lang.StringBuffer buf)
- Abstract method implementation to get the string equivalent of this
 token- 
- Overrides:
- getStringin class- ParseItem
 
- 
- Parameters:
- buf- the string to append to