Package org.locationtech.jtstest.geomop
Class GeometryFunctionRegistry
java.lang.Object
org.locationtech.jtstest.geomop.GeometryFunctionRegistry
A registry to manage a collection of
GeometryFunction
s.- Author:
- Martin Davis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds functions for all the static methods in the given class.void
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.static GeometryFunctionRegistry
create()
createFunctions
(Class functionClass) CreateGeometryFunction
s for all the static methods in the given classFinds the first function which matches the given name.Finds the first function which matches the given name and argument count.int
int
findIndex
(GeometryFunction func) static boolean
-
Constructor Details
-
GeometryFunctionRegistry
public GeometryFunctionRegistry() -
GeometryFunctionRegistry
-
-
Method Details
-
create
-
hasGeometryResult
-
add
Adds functions for all the static methods in the given class.- Parameters:
geomFuncClass
-
-
add
Adds functions for all the static methods in the given class.- Parameters:
geomFuncClassname
- the name of the class to load and extract functions from- Throws:
ClassNotFoundException
-
add
-
createFunctions
CreateGeometryFunction
s for all the static methods in the given class- Parameters:
functionClass
-- Returns:
- a list of the functions created
-
add
Adds a function if it does not currently exist in the registry, or replaces the existing one with the same signature.- Parameters:
func
- a function
-
findIndex
-
findIndex
-
find
Finds the first function which matches the given name and argument count.- Parameters:
name
-- Returns:
- a matching function, or null
-
find
Finds the first function which matches the given name.- Parameters:
name
-- Returns:
- a matching function, or null
-