public class GeometryFunctionRegistry
extends java.lang.Object
GeometryFunction
s.Modifier and Type | Field and Description |
---|---|
private java.util.List |
functions |
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.
|
static GeometryFunctionRegistry |
create() |
java.util.List |
createFunctions(java.lang.Class functionClass)
Create
GeometryFunction s for all the static
methods in the given class |
GeometryFunction |
find(java.lang.String name)
Finds the first function which matches the given name.
|
GeometryFunction |
find(java.lang.String name,
int argCount)
Finds the first function which matches the given name and argument count.
|
static boolean |
hasGeometryResult(GeometryFunction func) |
public GeometryFunctionRegistry()
public GeometryFunctionRegistry(java.lang.Class clz)
public static GeometryFunctionRegistry create()
public static boolean hasGeometryResult(GeometryFunction func)
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 GeometryFunction find(java.lang.String name, int argCount)
name
- public GeometryFunction find(java.lang.String name)
name
-