Package org.geotools.mbstyle.function
Class MBFunctionFactory
Object
MBFunctionFactory
- All Implemented Interfaces:
FunctionFactory
Custom functions to support the use of MBStyle,
ZoomLevelFunction
, ExponentialFunction
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfunction
(String name, List<Expression> args, Literal fallback) Returns a function with the specified name.function
(Name name, List<Expression> args, Literal fallback) Returns a function with the specified name.Returns the list of function names the factory provides.
-
Constructor Details
-
MBFunctionFactory
public MBFunctionFactory()
-
-
Method Details
-
getFunctionNames
Description copied from interface:FunctionFactory
Returns the list of function names the factory provides.- Specified by:
getFunctionNames
in interfaceFunctionFactory
- Returns:
- A list of function names, possibly empty, never null.
-
function
Description copied from interface:FunctionFactory
Returns a function with the specified name.- Specified by:
function
in interfaceFunctionFactory
- Parameters:
name
- The name of the functionargs
- Variable list of expression arguments for the function.fallback
- A fallback literal to use in cases where the function does not exist or can not be created. This argument may benull
.
-
function
Description copied from interface:FunctionFactory
Returns a function with the specified name.- Specified by:
function
in interfaceFunctionFactory
- Parameters:
name
- The name of the functionargs
- Variable list of expression arguments for the function.fallback
- A fallback literal to use in cases where the function does not exist or can not be created. This argument may benull
.
-