public interface GeometryOperation
Geometry
s.
The arguments may be presented as Strings, even if they
should be calling a method with non-String arguments.
Geometry will always be supplied as Geometry objects, however.
This interface abstracts out the invocation of a method
on a Geometry during a Test. Subclasses can provide substitute
or additional methods during runs of the same test file.Modifier and Type | Method and Description |
---|---|
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 . |
Class getReturnType(String opName)
opName
- the name of the operationResult invoke(String opName, Geometry geometry, Object[] args) throws Exception
Geometry
.opName
- 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 © 2017. All rights reserved.