Package org.apache.poi.ss.formula.ptg
Class ScalarConstantPtg
java.lang.Object
org.apache.poi.ss.formula.ptg.Ptg
org.apache.poi.ss.formula.ptg.ScalarConstantPtg
Common superclass of all
Ptgs that represent simple constant values.- Author:
- Josh Micich
-
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
Methods inherited from class org.apache.poi.ss.formula.ptg.Ptg
createPtg, doesFormulaReferToDeletedCell, getEncodedSize, getEncodedSizeWithoutArrayData, getPtgClass, getRVAType, getSize, readTokens, serializePtgs, setClass, toFormulaString, write
-
Constructor Details
-
ScalarConstantPtg
public ScalarConstantPtg()
-
-
Method Details
-
isBaseToken
public final boolean isBaseToken()- Specified by:
isBaseTokenin classPtg- Returns:
falseif this token is classified as 'reference', 'value', or 'array'
-
getDefaultOperandClass
public final byte getDefaultOperandClass()- Specified by:
getDefaultOperandClassin classPtg
-
toString
Description copied from class:PtgOverridden toString method to ensure object hash is not printed. This helps get rid of gratuitous diffs when comparing two dumps Subclasses may output more relevant information by overriding this method
-