public class LoggingGeometryOperation extends java.lang.Object implements GeometryOperation
GeometryOperation which logs
the input and output from another
GeometryOperation.
The log is sent to System.out.| Modifier and Type | Field and Description |
|---|---|
private GeometryOperation |
geomOp |
| Constructor and Description |
|---|
LoggingGeometryOperation() |
LoggingGeometryOperation(GeometryOperation geomOp) |
| 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.
|
Result |
invoke(java.lang.String opName,
Geometry geometry,
java.lang.Object[] args)
Invokes an operation on a
Geometry. |
private GeometryOperation geomOp
public LoggingGeometryOperation()
public LoggingGeometryOperation(GeometryOperation geomOp)
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 operation