public class GeometryFunctionOperation extends java.lang.Object implements GeometryOperation
Geometry.
This class allows overriding Geometry methods
or augmenting them
with functions defined in a GeometryFunctionRegistry.| Modifier and Type | Field and Description |
|---|---|
private ArgumentConverter |
argConverter |
private GeometryOperation |
defaultOp |
private GeometryFunctionRegistry |
registry |
| Constructor and Description |
|---|
GeometryFunctionOperation() |
GeometryFunctionOperation(GeometryFunctionRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class |
getReturnType(java.lang.String opName)
Gets the class of the return type of the given operation.
|
private Result |
invoke(GeometryFunction func,
Geometry geometry,
java.lang.Object[] args) |
Result |
invoke(java.lang.String opName,
Geometry geometry,
java.lang.Object[] args)
Invokes an operation on a
Geometry. |
private GeometryFunctionRegistry registry
private GeometryOperation defaultOp
private ArgumentConverter argConverter
public GeometryFunctionOperation()
public GeometryFunctionOperation(GeometryFunctionRegistry registry)
public java.lang.Class getReturnType(java.lang.String opName)
GeometryOperationgetReturnType in interface GeometryOperationopName - the name of the operationpublic Result invoke(java.lang.String opName, Geometry geometry, java.lang.Object[] args) throws java.lang.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)java.lang.Exception - if some error was encountered trying to find or process the operationprivate Result invoke(GeometryFunction func, Geometry geometry, java.lang.Object[] args) throws java.lang.Exception
java.lang.Exception