Package org.locationtech.jtstest.geomop
Class StaticMethodGeometryFunction
java.lang.Object
org.locationtech.jtstest.geomop.BaseGeometryFunction
org.locationtech.jtstest.geomop.StaticMethodGeometryFunction
- All Implemented Interfaces:
Comparable,GeometryFunction
A
GeometryFunction which calls a static
Method.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Stringprivate Methodprivate static final StringFields inherited from class org.locationtech.jtstest.geomop.BaseGeometryFunction
category, description, name, parameterNames, parameterTypes, returnType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Object[]createFullArgs(Geometry g, Object[] arg) Creates an arg array which includes the target geometry as the first argumentstatic StaticMethodGeometryFunctioncreateFunction(Method method) private static Class[]extractParamTypes(Method method) static StringgetClassname(Class javaClass) private static Stringstatic ObjectInvokes this function.Methods inherited from class org.locationtech.jtstest.geomop.BaseGeometryFunction
compareTo, equals, getCategory, getDescription, getDoubleOrNull, getIntegerOrNull, getName, getParameterNames, getParameterTypes, getReturnType, isBinary, isBinaryGeomFunction
-
Field Details
-
FUNCTIONS_SUFFIX
- See Also:
-
PARAMETERS_SUFFIX
- See Also:
-
DESCRIPTION_SUFFIX
- See Also:
-
method
-
-
Constructor Details
-
StaticMethodGeometryFunction
-
-
Method Details
-
createFunction
-
extractParamTypes
-
invoke
Description copied from interface:GeometryFunctionInvokes this function. Note that any exceptions returned must beRuntimeExceptions.- Specified by:
invokein interfaceGeometryFunction- Specified by:
invokein classBaseGeometryFunction- Parameters:
g- the target geometryarg- the other arguments to the function- Returns:
- the value computed by the function
-
createFullArgs
Creates an arg array which includes the target geometry as the first argument- Parameters:
g-arg-- Returns:
-
invoke
-
invocationErrMsg
-
getClassname
-