Class GeometryFunctionRegistry
java.lang.Object
org.locationtech.jtstest.geomfunction.GeometryFunctionRegistry
A registry to manage a collection of
GeometryFunctions.- Author:
- Martin Davis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds functions for all the static methods in the given class.voidAdds functions for all the static methods in the given class.voidvoidadd(GeometryFunction func) Adds a function if it does not currently exist in the registry, or replaces the existing one with the same signature.createFunctions(Class<?> functionClass) CreateGeometryFunctions for all the static methods in the given classstatic GeometryFunctionRegistryFinds the first function which matches the given name.Finds the first function which matches the given name and argument count.Finds the first function which matches the given signature.Finds the first function which matches the given category and name.static StringCollection<?> Collection<?> getFunctions(String category) static booleanstatic booleanisGeometryFunction(Method method)
-
Constructor Details
-
GeometryFunctionRegistry
public GeometryFunctionRegistry() -
GeometryFunctionRegistry
-
-
Method Details
-
createTestBuilderRegistry
-
functionDescriptionHTML
-
getFunctions
-
getGeometryFunctions
-
hasGeometryResult
-
getScalarFunctions
-
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
CreateGeometryFunctions for all the static methods in the given class- Parameters:
functionClass-- Returns:
- a list of the functions created
-
isGeometryFunction
-
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
-
getCategorizedGeometryFunctions
-
getCategorizedScalarFunctions
-
getCategories
-
getFunctions
-
find
Finds the first function which matches the given signature.- Parameters:
name-paramTypes-- Returns:
- a matching function, or null
-
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
-
find
Finds the first function which matches the given category and name.- Parameters:
name-- Returns:
- a matching function, or null
-