Class StaticMethodGeometryFunction
- java.lang.Object
-
- org.locationtech.jtstest.geomfunction.BaseGeometryFunction
-
- org.locationtech.jtstest.geomfunction.StaticMethodGeometryFunction
-
- All Implemented Interfaces:
Comparable,GeometryFunction
public class StaticMethodGeometryFunction extends BaseGeometryFunction
AGeometryFunctionwhich calls a staticMethod.- Author:
- Martin Davis
-
-
Field Summary
-
Fields inherited from class org.locationtech.jtstest.geomfunction.BaseGeometryFunction
category, description, isRequiredB, name, parameterNames, parameterTypes, returnType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StaticMethodGeometryFunctioncreateFunction(Method method)static StringgetClassname(Class<?> javaClass)static Objectinvoke(Method method, Object target, Object[] args)Objectinvoke(Geometry g, Object[] arg)Invokes this function.-
Methods inherited from class org.locationtech.jtstest.geomfunction.BaseGeometryFunction
compareTo, equals, firstScalarParamIndex, getCategory, getDescription, getDoubleOrNull, getIntegerOrNull, getName, getParameterNames, getParameterTypes, getReturnType, getSignature, hashCode, isBinary, isBinaryGeomFunction, isRequiredB
-
-
-
-
Method Detail
-
createFunction
public static StaticMethodGeometryFunction createFunction(Method method)
-
invoke
public Object invoke(Geometry g, Object[] arg)
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
-
-