|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.hssf.record.formula.Ptg
org.apache.poi.hssf.record.formula.IntPtg
public class IntPtg
Integer (unsigned short intger) Stores an unsigned short value (java int) in a formula
Field Summary | |
---|---|
static byte |
sid
|
static int |
SIZE
|
Fields inherited from class org.apache.poi.hssf.record.formula.Ptg |
---|
CLASS_ARRAY, CLASS_REF, CLASS_VALUE, ptgClass |
Constructor Summary | |
---|---|
IntPtg(RecordInputStream in)
|
|
IntPtg(java.lang.String formulaToken)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
|
byte |
getDefaultOperandClass()
|
int |
getSize()
|
int |
getValue()
Returns the value as a short, which may have been wrapped into negative numbers |
int |
getValueAsInt()
Returns the value as an unsigned positive int. |
void |
setValue(int value)
Sets the wrapped value. |
java.lang.String |
toFormulaString(Workbook 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 |
---|
createParsedExpressionTokens, createPtg, getBytes, getPtgClass, serializePtgStack, setClass, toDebugString, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int SIZE
public static final byte sid
Constructor Detail |
---|
public IntPtg(RecordInputStream in)
public IntPtg(java.lang.String formulaToken)
Method Detail |
---|
public void setValue(int value)
public int getValue()
public int getValueAsInt()
public void writeBytes(byte[] array, int offset)
Ptg
writeBytes
in class Ptg
public int getSize()
getSize
in class Ptg
public java.lang.String toFormulaString(Workbook book)
Ptg
toFormulaString
in class Ptg
public byte getDefaultOperandClass()
getDefaultOperandClass
in class Ptg
public java.lang.Object clone()
clone
in class Ptg
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |