public abstract class AbstractFunctionPtg extends OperationPtg
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FUNCTION_NAME_IF
The name of the IF function (i.e.
(IF 函数的名称(即)
|
TYPE_BINARY, TYPE_FUNCTION, TYPE_UNARY
CLASS_ARRAY, CLASS_REF, CLASS_VALUE, EMPTY_PTG_ARRAY
Modifier | Constructor and Description |
---|---|
protected |
AbstractFunctionPtg(int functionIndex, int pReturnClass, byte[] paramTypes, int nParams) |
Modifier and Type | Method and Description |
---|---|
byte |
getDefaultOperandClass() |
short |
getFunctionIndex() |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
java.lang.String |
getName() |
int |
getNumberOfOperands()
The number of operands expected by the operations
(操作预期的操作数数量)
|
byte |
getParameterClass(int index) |
abstract int |
getSize() |
boolean |
isBaseToken() |
static boolean |
isBuiltInFunctionName(java.lang.String name)
Used to detect whether a function name found in a formula is one of the standard excel functions
(用于检测公式中找到的函数名称是否为标准excel函数之一)
|
boolean |
isExternalFunction()
external functions get some special processing
(外部函数得到一些特殊处理)
|
protected static short |
lookupIndex(java.lang.String name)
Resolves internal function names into function indexes.
(将内部函数名称解析为函数索引。)
|
protected java.lang.String |
lookupName(short index) |
protected java.lang.String |
lookupName(short index, boolean isCetab) |
java.lang.String |
toFormulaString()
return a string representation of this token alone
(单独返回此标记的字符串表示)
|
java.lang.String |
toFormulaString(java.lang.String[] operands)
returns a string representation of the operations the length of the input array should equal the number returned by
(返回操作的字符串表示输入数组的长度应等于返回的数字)
|
copy, createPtg, doesFormulaReferToDeletedCell, getEncodedSize, getEncodedSizeWithoutArrayData, getPtgClass, getRVAType, getSid, readTokens, serializePtgs, setClass, toString, write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGenericChildren, getGenericRecordType
public static final java.lang.String FUNCTION_NAME_IF
protected AbstractFunctionPtg(int functionIndex, int pReturnClass, byte[] paramTypes, int nParams)
public final boolean isBaseToken()
isBaseToken
in class
Ptg
(类 Ptg 中的 isBaseToken)
false
if this token is classified as 'reference', 'value', or 'array'
(如果此标记被分类为“参考”、“值”或“数组”,则为 false)
public final short getFunctionIndex()
public final int getNumberOfOperands()
OperationPtg
getNumberOfOperands
in class
OperationPtg
(类 OperationPtg 中的 getNumberOfOperands)
public final java.lang.String getName()
public final boolean isExternalFunction()
true
if this is an external function
(如果这是一个外部函数,则为 true)
public final java.lang.String toFormulaString()
Ptg
toFormulaString
in class
Ptg
(Ptg 类中的 toFormulaString)
public java.lang.String toFormulaString(java.lang.String[] operands)
OperationPtg
toFormulaString
in class
OperationPtg
(OperationPtg 类中的 toFormulaString)
OperationPtg.getNumberOfOperands()
public abstract int getSize()
public static boolean isBuiltInFunctionName(java.lang.String name)
The name matching is case insensitive.
(用于检测公式中找到的函数名称是否为标准 excel 函数之一。名称匹配不区分大小写。)true
if the name specifies a standard worksheet function,
false
if the name should be assumed to be an external function.
(如果名称指定标准工作表函数,则为 true;如果应假定名称为外部函数,则为 false。)
protected java.lang.String lookupName(short index)
protected final java.lang.String lookupName(short index, boolean isCetab)
protected static short lookupIndex(java.lang.String name)
The name matching is case insensitive.
(将内部函数名称解析为函数索引。名称匹配不区分大小写。)public byte getDefaultOperandClass()
getDefaultOperandClass
in class
OperationPtg
public final byte getParameterClass(int index)
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface
GenericRecord
(接口 GenericRecord 中的 getGenericProperties)
getGenericProperties
in class
OperationPtg
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.