Class TeeGeometryOperation
java.lang.Object
org.locationtech.jtstest.geomop.TeeGeometryOperation
- All Implemented Interfaces:
GeometryOperation
- Direct Known Subclasses:
PreparedGeometryTeeOperation
A
GeometryOperation which executes the original operation
and returns that result,
but also executes a separate operation (which could be multiple operations).
The side operations can throw exceptions if they do not compute
correct results. This relies on the availability of
another reliable implementation to provide the expected result.
This class can be used via the -geomop command-line option or by the <geometryOperation> XML test file setting.
- Author:
- mbdavis
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new operation which chains to the givenGeometryMethodOperationfor non-intercepted methods. -
Method Summary
Modifier and TypeMethodDescriptiongetReturnType(String opName) Gets the class of the return type of the given operation.Invokes the named operationprotected abstract void
-
Constructor Details
-
TeeGeometryOperation
public TeeGeometryOperation() -
TeeGeometryOperation
Creates a new operation which chains to the givenGeometryMethodOperationfor non-intercepted methods.- Parameters:
chainOp- the operation to chain to
-
-
Method Details
-
getReturnType
Description copied from interface:GeometryOperationGets the class of the return type of the given operation.- Specified by:
getReturnTypein interfaceGeometryOperation- Parameters:
opName- the name of the operation- Returns:
- the class of the return type of the specified operation
-
invoke
-
runTeeOp
-