Package org.geotools.mbstyle.function
Class MBFunctionFactory
- Object
-
- MBFunctionFactory
-
- All Implemented Interfaces:
FunctionFactory
public class MBFunctionFactory extends Object implements FunctionFactory
Custom functions to support the use of MBStyle,ZoomLevelFunction,ExponentialFunction.
-
-
Constructor Summary
Constructors Constructor Description MBFunctionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Functionfunction(String name, List<Expression> args, Literal fallback)Returns a function with the specified name.Functionfunction(Name name, List<Expression> args, Literal fallback)Returns a function with the specified name.List<FunctionName>getFunctionNames()Returns the list of function names the factory provides.
-
-
-
Method Detail
-
getFunctionNames
public List<FunctionName> getFunctionNames()
Description copied from interface:FunctionFactoryReturns the list of function names the factory provides.- Specified by:
getFunctionNamesin interfaceFunctionFactory- Returns:
- A list of function names, possibly empty, never null.
-
function
public Function function(String name, List<Expression> args, Literal fallback)
Description copied from interface:FunctionFactoryReturns a function with the specified name.- Specified by:
functionin 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
public Function function(Name name, List<Expression> args, Literal fallback)
Description copied from interface:FunctionFactoryReturns a function with the specified name.- Specified by:
functionin 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.
-
-