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
public class StaticMethodGeometryFunction extends BaseGeometryFunction
AGeometryFunction
which calls a staticMethod
.- Author:
- Martin Davis
-
-
Field Summary
-
Fields inherited from class org.locationtech.jtstest.geomop.BaseGeometryFunction
category, description, name, parameterNames, parameterTypes, returnType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StaticMethodGeometryFunction
createFunction(Method method)
static String
getClassname(Class javaClass)
static Object
invoke(Method method, Object target, Object[] args)
Object
invoke(Geometry g, Object[] arg)
Invokes this function.-
Methods inherited from class org.locationtech.jtstest.geomop.BaseGeometryFunction
compareTo, equals, getCategory, getDescription, getDoubleOrNull, getIntegerOrNull, getName, getParameterNames, getParameterTypes, getReturnType, isBinary, isBinaryGeomFunction
-
-
-
-
Method Detail
-
createFunction
public static StaticMethodGeometryFunction createFunction(Method method)
-
invoke
public Object invoke(Geometry g, Object[] arg)
Description copied from interface:GeometryFunction
Invokes this function. Note that any exceptions returned must beRuntimeException
s.- Specified by:
invoke
in interfaceGeometryFunction
- Specified by:
invoke
in classBaseGeometryFunction
- Parameters:
g
- the target geometryarg
- the other arguments to the function- Returns:
- the value computed by the function
-
-