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 |
---|---|
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 . |
java.lang.Class getReturnType(java.lang.String opName)
opName
- the name of the operationResult invoke(java.lang.String opName, Geometry geometry, java.lang.Object[] args) throws java.lang.Exception
Geometry
.opName
- 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