Top Description Fields Constructors Methods
org.apache.poi.ss.formula.function

public final Class FunctionMetadataRegistry

extends Object
Class Inheritance
Imports
java.util.Map, .Set

Allows clients to get FunctionMetadata instances for any built-in function of Excel.

Field Summary

Modifier and TypeField and Description
private final FunctionMetadata[]
private final Map<String, FunctionMetadata>
private static FunctionMetadataRegistry
private static FunctionMetadataRegistry
public static final int
public static final short
public static final int
public static final short
public static final short
public static final String
FUNCTION_NAME_IF

The name of the IF function (i.e. "IF").

Constructor Summary

AccessConstructor and Description
pack-priv
FunctionMetadataRegistry(FunctionMetadata[] functionDataByIndex, Map<String, FunctionMetadata> functionDataByName)

Method Summary

Modifier and TypeMethod and Description
pack-priv Set<String>
public static FunctionMetadata
public static FunctionMetadata
getFunctionByIndex(int index)

private FunctionMetadata
public static FunctionMetadata
private FunctionMetadata
private static FunctionMetadataRegistry
private static FunctionMetadataRegistry
public static short

Returns:

a negative value if the function name is not found. This typically occurs for external functions.
lookupIndexByName
(String
uppercase function name
name
)

Resolves a built-in function index.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_functionDataByIndexback to summary
private final FunctionMetadata[] _functionDataByIndex
_functionDataByNameback to summary
private final Map<String, FunctionMetadata> _functionDataByName
_instanceback to summary
private static FunctionMetadataRegistry _instance
_instanceCetabback to summary
private static FunctionMetadataRegistry _instanceCetab
FUNCTION_INDEX_CHOOSEback to summary
public static final int FUNCTION_INDEX_CHOOSE
FUNCTION_INDEX_EXTERNALback to summary
public static final short FUNCTION_INDEX_EXTERNAL
FUNCTION_INDEX_IFback to summary
public static final int FUNCTION_INDEX_IF
FUNCTION_INDEX_INDIRECTback to summary
public static final short FUNCTION_INDEX_INDIRECT
FUNCTION_INDEX_SUMback to summary
public static final short FUNCTION_INDEX_SUM
FUNCTION_NAME_IFback to summary
public static final String FUNCTION_NAME_IF

The name of the IF function (i.e. "IF"). Extracted as a constant for clarity.

Constructor Detail

FunctionMetadataRegistryback to summary
pack-priv FunctionMetadataRegistry(FunctionMetadata[] functionDataByIndex, Map<String, FunctionMetadata> functionDataByName)

Method Detail

getAllFunctionNamesback to summary
pack-priv Set<String> getAllFunctionNames()
getCetabFunctionByIndexback to summary
public static FunctionMetadata getCetabFunctionByIndex(int index)
getFunctionByIndexback to summary
public static FunctionMetadata getFunctionByIndex(int index)
getFunctionByIndexInternalback to summary
private FunctionMetadata getFunctionByIndexInternal(int index)
getFunctionByNameback to summary
public static FunctionMetadata getFunctionByName(String name)
getFunctionByNameInternalback to summary
private FunctionMetadata getFunctionByNameInternal(String name)
getInstanceback to summary
private static FunctionMetadataRegistry getInstance()
getInstanceCetabback to summary
private static FunctionMetadataRegistry getInstanceCetab()
lookupIndexByNameback to summary
public static short lookupIndexByName(String name)

Resolves a built-in function index.

Parameters
name:String

uppercase function name

Returns:short

a negative value if the function name is not found. This typically occurs for external functions.