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

public final Class DefaultUDFFinder

extends Object
implements UDFFinder
Class Inheritance
All Implemented Interfaces
org.apache.poi.ss.formula.udf.UDFFinder
Imports
java.util.HashMap, .Locale, .Map, org.apache.poi.ss.formula.functions.FreeRefFunction

Default UDF finder - for adding your own user defined functions.

Field Summary

Modifier and TypeField and Description
private final Map<String, FreeRefFunction>

Constructor Summary

AccessConstructor and Description
public
DefaultUDFFinder(String[] functionNames, FreeRefFunction[] functionImpls)

Method Summary

Modifier and TypeMethod and Description
public FreeRefFunction
findFunction(String
Name of function.
name
)

Implements org.apache.poi.ss.formula.udf.UDFFinder.findFunction.

Returns executor by specified name.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_functionsByNameback to summary
private final Map<String, FreeRefFunction> _functionsByName

Constructor Detail

DefaultUDFFinderback to summary
public DefaultUDFFinder(String[] functionNames, FreeRefFunction[] functionImpls)

Method Detail

findFunctionback to summary
public FreeRefFunction findFunction(String name)

Implements org.apache.poi.ss.formula.udf.UDFFinder.findFunction.

Doc from org.apache.poi.ss.formula.udf.UDFFinder.findFunction.

Returns executor by specified name. Returns null if the function name is unknown.

Parameters
name:String

Name of function.

Returns:FreeRefFunction

Function executor.

Annotations
@Override