public class GeometryFunctionRegistry extends Object
GeometryFunction
s.Constructor and Description |
---|
GeometryFunctionRegistry() |
GeometryFunctionRegistry(Class clz) |
Modifier and Type | Method and Description |
---|---|
void |
add(Class geomFuncClass)
Adds functions for all the static methods in the given class.
|
void |
add(Collection funcs) |
void |
add(GeometryFunction func)
Adds a function if it does not currently
exist in the registry, or replaces the existing one
with the same signature.
|
void |
add(String geomFuncClassname)
Adds functions for all the static methods in the given class.
|
List |
createFunctions(Class functionClass)
Create
GeometryFunction s for all the static
methods in the given class |
static GeometryFunctionRegistry |
createTestBuilderRegistry() |
GeometryFunction |
find(String name)
Finds the first function which matches the given name.
|
GeometryFunction |
find(String name,
Class[] paramTypes)
Finds the first function which matches the given signature.
|
GeometryFunction |
find(String name,
int argCount)
Finds the first function which matches the given name and argument count.
|
static String |
functionDescriptionHTML(GeometryFunction func) |
Collection |
getCategories() |
DoubleKeyMap |
getCategorizedGeometryFunctions() |
DoubleKeyMap |
getCategorizedScalarFunctions() |
List |
getFunctions() |
Collection |
getFunctions(String category) |
List |
getGeometryFunctions() |
List |
getScalarFunctions() |
static boolean |
hasGeometryResult(GeometryFunction func) |
public GeometryFunctionRegistry()
public GeometryFunctionRegistry(Class clz)
public static GeometryFunctionRegistry createTestBuilderRegistry()
public static String functionDescriptionHTML(GeometryFunction func)
public List getFunctions()
public List getGeometryFunctions()
public static boolean hasGeometryResult(GeometryFunction func)
public List getScalarFunctions()
public void add(Class geomFuncClass)
geomFuncClass
- public void add(String geomFuncClassname) throws ClassNotFoundException
geomFuncClassname
- the name of the class to load and extract functions fromClassNotFoundException
public void add(Collection funcs)
public List createFunctions(Class functionClass)
GeometryFunction
s for all the static
methods in the given classfunctionClass
- public void add(GeometryFunction func)
func
- a functionpublic DoubleKeyMap getCategorizedGeometryFunctions()
public DoubleKeyMap getCategorizedScalarFunctions()
public Collection getCategories()
public Collection getFunctions(String category)
public GeometryFunction find(String name, Class[] paramTypes)
name
- paramTypes
- public GeometryFunction find(String name, int argCount)
name
- public GeometryFunction find(String name)
name
- Copyright © 2020. All rights reserved.