public class GeometryFunctionRegistry
extends java.lang.Object
GeometryFunction
s.Modifier and Type | Field and Description |
---|---|
private DoubleKeyMap |
categorizedFunctions |
private DoubleKeyMap |
categorizedGeometryFunctions |
private DoubleKeyMap |
categorizedScalarFunctions |
private java.util.List |
functions |
private java.util.Map |
sortedFunctions |
Constructor and Description |
---|
GeometryFunctionRegistry() |
GeometryFunctionRegistry(java.lang.Class clz) |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.Class geomFuncClass)
Adds functions for all the static methods in the given class.
|
void |
add(java.util.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(java.lang.String geomFuncClassname)
Adds functions for all the static methods in the given class.
|
java.util.List |
createFunctions(java.lang.Class functionClass)
Create
GeometryFunction s for all the static
methods in the given class |
static GeometryFunctionRegistry |
createTestBuilderRegistry() |
GeometryFunction |
find(java.lang.String name)
Finds the first function which matches the given name.
|
GeometryFunction |
find(java.lang.String name,
java.lang.Class[] paramTypes)
Finds the first function which matches the given signature.
|
GeometryFunction |
find(java.lang.String name,
int argCount)
Finds the first function which matches the given name and argument count.
|
static java.lang.String |
functionDescriptionHTML(GeometryFunction func) |
java.util.Collection |
getCategories() |
DoubleKeyMap |
getCategorizedGeometryFunctions() |
DoubleKeyMap |
getCategorizedScalarFunctions() |
java.util.List |
getFunctions() |
java.util.Collection |
getFunctions(java.lang.String category) |
java.util.List |
getGeometryFunctions() |
java.util.List |
getScalarFunctions() |
static boolean |
hasGeometryResult(GeometryFunction func) |
private java.util.List functions
private java.util.Map sortedFunctions
private DoubleKeyMap categorizedFunctions
private DoubleKeyMap categorizedGeometryFunctions
private DoubleKeyMap categorizedScalarFunctions
public GeometryFunctionRegistry()
public GeometryFunctionRegistry(java.lang.Class clz)
public static GeometryFunctionRegistry createTestBuilderRegistry()
public static java.lang.String functionDescriptionHTML(GeometryFunction func)
public java.util.List getFunctions()
public java.util.List getGeometryFunctions()
public static boolean hasGeometryResult(GeometryFunction func)
public java.util.List getScalarFunctions()
public void add(java.lang.Class geomFuncClass)
geomFuncClass
- public void add(java.lang.String geomFuncClassname) throws java.lang.ClassNotFoundException
geomFuncClassname
- the name of the class to load and extract functions fromjava.lang.ClassNotFoundException
public void add(java.util.Collection funcs)
public java.util.List createFunctions(java.lang.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 java.util.Collection getCategories()
public java.util.Collection getFunctions(java.lang.String category)
public GeometryFunction find(java.lang.String name, java.lang.Class[] paramTypes)
name
- paramTypes
- public GeometryFunction find(java.lang.String name, int argCount)
name
- public GeometryFunction find(java.lang.String name)
name
-