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

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

public class UnknownPtg
extends Ptg

Author:
andy, Jason Height (jheight at chariot dot net dot au)

Field Summary
 
Fields inherited from class org.apache.poi.hssf.record.formula.Ptg
CLASS_ARRAY, CLASS_REF, CLASS_VALUE, EMPTY_PTG_ARRAY
 
Constructor Summary
UnknownPtg()
          Creates new UnknownPtg
UnknownPtg(RecordInputStream in)
           
 
Method Summary
 java.lang.Object clone()
           
 byte getDefaultOperandClass()
           
 int getSize()
           
 boolean isBaseToken()
           
 java.lang.String toFormulaString()
          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
copy, createPtg, getBytes, getEncodedSize, getEncodedSizeWithoutArrayData, getPtgClass, getRVAType, readTokens, serializePtgs, setClass, toDebugString, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnknownPtg

public UnknownPtg()
Creates new UnknownPtg


UnknownPtg

public UnknownPtg(RecordInputStream in)
Method Detail

isBaseToken

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

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

getSize

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

toFormulaString

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

Specified by:
toFormulaString in class Ptg

getDefaultOperandClass

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

clone

public java.lang.Object clone()
Overrides:
clone in class Ptg


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