Package org.apache.poi.ss.formula.udf
Class AggregatingUDFFinder
- java.lang.Object
-
- org.apache.poi.ss.formula.udf.AggregatingUDFFinder
-
- All Implemented Interfaces:
UDFFinder
- Direct Known Subclasses:
IndexedUDFFinder
public class AggregatingUDFFinder extends Object implements UDFFinder
Collects add-in libraries and VB macro functions together into one UDF finder
-
-
Constructor Summary
Constructors Constructor Description AggregatingUDFFinder(UDFFinder... usedToolPacks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(UDFFinder toolPack)
Add a new toolpackFreeRefFunction
findFunction(String name)
Returns executor by specified name.void
insert(int index, UDFFinder toolPack)
Insert a toolpack
-
-
-
Field Detail
-
DEFAULT
public static final UDFFinder DEFAULT
Default UDFFinder implementation
-
-
Constructor Detail
-
AggregatingUDFFinder
public AggregatingUDFFinder(UDFFinder... usedToolPacks)
-
-
Method Detail
-
findFunction
public FreeRefFunction findFunction(String name)
Returns executor by specified name. Returnsnull
if function isn't contained by any registered tool pack.- Specified by:
findFunction
in interfaceUDFFinder
- Parameters:
name
- Name of function.- Returns:
- Function executor.
null
if not found
-
add
public void add(UDFFinder toolPack)
Add a new toolpack- Parameters:
toolPack
- the UDF toolpack to add
-
insert
public void insert(int index, UDFFinder toolPack)
Insert a toolpack- Parameters:
index
- the index to inserttoolPack
- the UDF toolpack to insert
-
-