public class GeometryMethodOperation extends Object implements GeometryOperation
Geometry.
This class provides operations which are the methods
defined on the Geometry class.
Other GeometryOperation classes can delegate to
instances of this class to run standard Geometry methods.| Constructor and Description |
|---|
GeometryMethodOperation() |
| Modifier and Type | Method and Description |
|---|---|
static Class |
getGeometryReturnType(String functionName) |
Class |
getReturnType(String opName)
Gets the class of the return type of the given operation.
|
Result |
invoke(String opName,
Geometry geometry,
Object[] args)
Invokes an operation on a
Geometry. |
static boolean |
isBooleanFunction(String name) |
static boolean |
isDoubleFunction(String name) |
static boolean |
isGeometryFunction(String name) |
static boolean |
isIntegerFunction(String name) |
public static boolean isBooleanFunction(String name)
public static boolean isIntegerFunction(String name)
public static boolean isDoubleFunction(String name)
public static boolean isGeometryFunction(String name)
public Class getReturnType(String opName)
GeometryOperationgetReturnType in interface GeometryOperationopName - the name of the operationpublic Result invoke(String opName, Geometry geometry, Object[] args) throws Exception
GeometryOperationGeometry.invoke in interface GeometryOperationopName - name of the operationgeometry - the geometry to processargs - the arguments to the operation (which may be typed as Strings)Exception - if some error was encountered trying to find or process the operationCopyright © 2025. All rights reserved.