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