org.apache.poi.hssf.record.formula
Class ErrPtg

java.lang.Object
  extended by org.apache.poi.hssf.record.formula.Ptg
      extended by org.apache.poi.hssf.record.formula.ErrPtg
All Implemented Interfaces:
java.lang.Cloneable

public final class ErrPtg
extends Ptg

Author:
Daniel Noll (daniel at nuix dot com dot au)

Field Summary
static ErrPtg DIV_ZERO
          #DIV/0! - Division by zero
static ErrPtg N_A
          #N/A - Argument or function not available
static ErrPtg NAME_INVALID
          #NAME? - Wrong function or range name
static ErrPtg NULL_INTERSECTION
          #NULL! - Intersection of two cell ranges is empty
static ErrPtg NUM_ERROR
          #NUM! - Value range overflow
static ErrPtg REF_INVALID
          #REF! - Illegal or deleted cell reference
static short sid
           
static ErrPtg VALUE_INVALID
          #VALUE! - Wrong type of operand
 
Fields inherited from class org.apache.poi.hssf.record.formula.Ptg
CLASS_ARRAY, CLASS_REF, CLASS_VALUE
 
Constructor Summary
ErrPtg(int errorCode)
          Creates new ErrPtg
ErrPtg(RecordInputStream in)
           
 
Method Summary
 byte getDefaultOperandClass()
           
 int getErrorCode()
           
 int getSize()
           
 boolean isBaseToken()
           
 java.lang.String toFormulaString(HSSFWorkbook book)
          return a string representation of this token alone
 void writeBytes(byte[] array, int offset)
          write this Ptg to a byte array
 
Methods inherited from class org.apache.poi.hssf.record.formula.Ptg
clone, copy, createParsedExpressionTokens, createPtg, getBytes, getEncodedSize, getEncodedSize, getPtgClass, readTokens, serializePtgs, serializePtgStack, setClass, toDebugString, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL_INTERSECTION

public static final ErrPtg NULL_INTERSECTION
#NULL! - Intersection of two cell ranges is empty


DIV_ZERO

public static final ErrPtg DIV_ZERO
#DIV/0! - Division by zero


VALUE_INVALID

public static final ErrPtg VALUE_INVALID
#VALUE! - Wrong type of operand


REF_INVALID

public static final ErrPtg REF_INVALID
#REF! - Illegal or deleted cell reference


NAME_INVALID

public static final ErrPtg NAME_INVALID
#NAME? - Wrong function or range name


NUM_ERROR

public static final ErrPtg NUM_ERROR
#NUM! - Value range overflow


N_A

public static final ErrPtg N_A
#N/A - Argument or function not available


sid

public static final short sid
See Also:
Constant Field Values
Constructor Detail

ErrPtg

public ErrPtg(int errorCode)
Creates new ErrPtg


ErrPtg

public ErrPtg(RecordInputStream in)
Method Detail

writeBytes

public void writeBytes(byte[] array,
                       int offset)
Description copied from class: Ptg
write this Ptg to a byte array

Specified by:
writeBytes in class Ptg

toFormulaString

public java.lang.String toFormulaString(HSSFWorkbook book)
Description copied from class: Ptg
return a string representation of this token alone

Specified by:
toFormulaString in class Ptg

getSize

public int getSize()
Specified by:
getSize in class Ptg
Returns:
the encoded length of this Ptg, including the initial Ptg type identifier byte.

getErrorCode

public int getErrorCode()

isBaseToken

public boolean isBaseToken()
Specified by:
isBaseToken in class Ptg
Returns:
false if this token is classified as 'reference', 'value', or 'array'

getDefaultOperandClass

public final byte getDefaultOperandClass()
Specified by:
getDefaultOperandClass in class Ptg


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