Package org.apache.poi.ss.formula.ptg
Class NameXPxg
java.lang.Object
org.apache.poi.ss.formula.ptg.Ptg
org.apache.poi.ss.formula.ptg.OperandPtg
org.apache.poi.ss.formula.ptg.NameXPxg
- All Implemented Interfaces:
org.apache.poi.common.Duplicatable,GenericRecord,Pxg
A Name, be that a Named Range or a Function / User Defined
Function, addressed in the HSSF External Sheet style.
This is XSSF only, as it stores the sheet / book references
in String form. The HSSF equivalent using indexes is NameXPtg
-
Field Summary
Fields inherited from class org.apache.poi.ss.formula.ptg.Ptg
CLASS_ARRAY, CLASS_REF, CLASS_VALUE, EMPTY_PTG_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()byteintbytegetSid()intgetSize()voidsetSheetName(String sheetName) return a string representation of this token alonevoidwrite(LittleEndianOutput out) Methods inherited from class org.apache.poi.ss.formula.ptg.OperandPtg
isBaseTokenMethods inherited from class org.apache.poi.ss.formula.ptg.Ptg
createPtg, doesFormulaReferToDeletedCell, getEncodedSize, getEncodedSizeWithoutArrayData, getPtgClass, getRVAType, readTokens, serializePtgs, setClass, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren, getGenericRecordType
-
Constructor Details
-
NameXPxg
-
NameXPxg
-
NameXPxg
-
NameXPxg
-
-
Method Details
-
getExternalWorkbookNumber
public int getExternalWorkbookNumber()- Specified by:
getExternalWorkbookNumberin interfacePxg
-
getSheetName
- Specified by:
getSheetNamein interfacePxg
-
getNameName
-
setSheetName
- Specified by:
setSheetNamein interfacePxg
-
toFormulaString
Description copied from class:Ptgreturn a string representation of this token alone- Specified by:
toFormulaStringin interfacePxg- Specified by:
toFormulaStringin classPtg
-
getDefaultOperandClass
public byte getDefaultOperandClass()- Specified by:
getDefaultOperandClassin classPtg
-
getSid
public byte getSid() -
getSize
public int getSize() -
write
-
copy
- Specified by:
copyin interfaceorg.apache.poi.common.Duplicatable- Specified by:
copyin classOperandPtg
-
getGenericProperties
- Specified by:
getGenericPropertiesin interfaceGenericRecord
-