Package org.apache.poi.ss.formula.ptg
Class LetRefPtg
- java.lang.Object
-
- org.apache.poi.ss.formula.ptg.Ptg
-
- org.apache.poi.ss.formula.ptg.OperandPtg
-
- org.apache.poi.ss.formula.ptg.LetRefPtg
-
- All Implemented Interfaces:
Serializable,Duplicatable,GenericRecord
public final class LetRefPtg extends OperandPtg
Represents a reference to a LET-scoped variable in the PTG sequence. When evaluated, resolves the variable name from the current LET scope.toFormulaString()returns the user-visible LET variable name.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static bytesid-
Fields inherited from class org.apache.poi.ss.formula.ptg.Ptg
CLASS_ARRAY, CLASS_REF, CLASS_VALUE, EMPTY_PTG_ARRAY
-
-
Constructor Summary
Constructors Constructor Description LetRefPtg(String name)LetRefPtg(LittleEndianInput in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LetRefPtgcopy()bytegetDefaultOperandClass()Map<String,Supplier<?>>getGenericProperties()StringgetName()bytegetSid()intgetSize(SpreadsheetVersion version)StringtoFormulaString()Returns the user-visible LET variable name.voidwrite(LittleEndianOutput out, SpreadsheetVersion version)-
Methods inherited from class org.apache.poi.ss.formula.ptg.OperandPtg
isBaseToken
-
Methods inherited from class org.apache.poi.ss.formula.ptg.Ptg
createPtg, createPtg, doesFormulaReferToDeletedCell, getEncodedSize, getEncodedSize, getEncodedSizeWithoutArrayData, getEncodedSizeWithoutArrayData, getPtgClass, getRVAType, readTokens, readTokens, serializePtgs, serializePtgs, setClass, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren, getGenericRecordType
-
-
-
-
Field Detail
-
sid
public static final byte sid
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LetRefPtg
public LetRefPtg(LittleEndianInput in)
-
LetRefPtg
public LetRefPtg(String name)
-
-
Method Detail
-
getName
public String getName()
-
write
public void write(LittleEndianOutput out, SpreadsheetVersion version)
-
getSid
public byte getSid()
-
getSize
public int getSize(SpreadsheetVersion version)
-
toFormulaString
public String toFormulaString()
Returns the user-visible LET variable name.- Specified by:
toFormulaStringin classPtg
-
getDefaultOperandClass
public byte getDefaultOperandClass()
- Specified by:
getDefaultOperandClassin classPtg
-
copy
public LetRefPtg copy()
- Specified by:
copyin interfaceDuplicatable- Specified by:
copyin classOperandPtg- Returns:
- a deep copy of the implementing class / instance
-
-