Class FunctionMetadataRegistry
java.lang.Object
org.apache.poi.ss.formula.function.FunctionMetadataRegistry
Allows clients to get
FunctionMetadata
instances for any built-in function of Excel.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final short
static final int
static final short
static final short
static final String
The name of the IF function (i.e. -
Method Summary
Modifier and TypeMethodDescriptionstatic FunctionMetadata
getCetabFunctionByIndex
(int index) static FunctionMetadata
getFunctionByIndex
(int index) static FunctionMetadata
getFunctionByName
(String name) static short
lookupIndexByName
(String name) Resolves a built-in function index.
-
Field Details
-
FUNCTION_NAME_IF
The name of the IF function (i.e. "IF"). Extracted as a constant for clarity.- See Also:
-
FUNCTION_INDEX_IF
public static final int FUNCTION_INDEX_IF- See Also:
-
FUNCTION_INDEX_SUM
public static final short FUNCTION_INDEX_SUM- See Also:
-
FUNCTION_INDEX_CHOOSE
public static final int FUNCTION_INDEX_CHOOSE- See Also:
-
FUNCTION_INDEX_INDIRECT
public static final short FUNCTION_INDEX_INDIRECT- See Also:
-
FUNCTION_INDEX_EXTERNAL
public static final short FUNCTION_INDEX_EXTERNAL- See Also:
-
-
Method Details
-
getFunctionByIndex
-
getCetabFunctionByIndex
-
lookupIndexByName
Resolves a built-in function index.- Parameters:
name
- uppercase function name- Returns:
- a negative value if the function name is not found. This typically occurs for external functions.
-
getFunctionByName
-